[OpenSIPS-Users] rtpproxy_offer() adds IP and Port twice in SDP

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Jun 6 19:15:47 CEST 2014


Hello,

Check your script, for sure you do the rtpproxy_offer twice for that SIP 
message.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 19:03, kaushik parmar wrote:
> Hello,
>
> rtpproxy_offer() set IP and Port numbers twice in SDP. My code and SDP 
> output are as below.
>
> *Opensips.cfg*
>
> onreply_route[handle_nat] {
>             if (is_method("INVITE") && has_body("application/sdp"))
> {
>                      rtpproxy_offer();
>             }
> }
>
>
>
> *SDP Packet : *
>
> *SDP Before rtpproxy_offer(); *
> *
> *
> v=0
> o=Sippy 44829008 1 IN IP4  yy.yy.yy.yy
> s=-
> t=0 0
> m=audio 46946 RTP/AVP 110 0 8 3 101
> c=IN IP4 yy.yy.yy.yy
> a=rtpmap:110 speex/8000
> a=fmtp:110 mode=3;vbr=on
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:3 gsm/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-15
> a=sendrecv
> a=silenceSupp:off - - - -
>
> *SDP After rtpproxy_offer(); **
> *
>
> v=0
> o=Sippy 44829008 1 IN IP4 xx.xx.xx.xx
> s=-
> t=0 0
> m=audio 40240 40240 RTP/AVP 110 0 8 3 101
> c=IN IP4 xx.xx.xx.xx xx.xx.xx.xx
> a=rtpmap:110 speex/8000
> a=fmtp:110 mode=3;vbr=on
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:3 gsm/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-15
> a=sendrecv
> a=silenceSupp:off - - - -
> a=oldmediaip:yy.yy.yy.yy
> a=oldmediaip:yy.yy.yy.yy
> a=nortpproxy:yes
> a=nortpproxy:yes
>
> Please help to resolve issue for Double IP and Port in SDP.
>
>
> -- 
> Kind regards,
>
> Kaushik Parmar
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140606/3b8a7321/attachment.htm>


More information about the Users mailing list