[SR-Users] How to get modified SDP by RTPProxy

Daniel-Constantin Mierla miconda at gmail.com
Wed May 31 14:37:33 CEST 2017


Hello,


On 30.05.17 19:15, Albert Petit wrote:
> Hi list,
>
> We are using RTPProxy as media proxy. When doing a SIPcall  we would
> need to know the final ports used by RTPProxy.
> Hence  I would need to access the rewritten SDP of the 200 OK  send by
> our application server. 
> Unfortunately we are not achieving to get that rewritten SDP.
>
> I tried calling sdp_print("1") using module  sdpops  just after
> calling rtpproxy_offer or rtpproxy_answer in kamailio script.
> (According the doc those methods do: "Rewrites SDP body to ensure that
> media is passed through an RTP proxy. To be invoked on INVITE for the
> cases the SDPs are in INVITE and 200 OK and on 200 OK when SDPs are in
> 200 OK and ACK".)
>
> However the sdp we print just after calling that is still having the
> original ports set by the AS but not the ports used in the rtpproxy or
> that we will send to the client in the rewritten SDP 
>
> What are we doing wrong? Any hint how we can get the  rewritten SDP in
> the 200 OK answer we send to caller side?
>
if you do the rtpproxy function in core reply_route{} block, then you
can use msg_apply_changes().

Alternative could be enabling the onsend_route for replies and looking
there inside the $snd(buf).

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170531/df5d4c6a/attachment.html>


More information about the sr-users mailing list