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

Bogdan-Andrei Iancu bogdan at opensips.org
Sun Jun 8 16:47:40 CEST 2014


Hi,

Your script logic should take care of avoiding multiple rtpproxy_offer() 
- if logic is too complex, use a flag to remember if set or not.

BTW, what opensips version are you using ?

Regards,

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

On 07.06.2014 08:42, kaushik parmar wrote:
> Hello,
>
> Thank you for reply. I have checked it. Is there any way to check if 
> ip address already set to xx.xx.xx.xx or not in opensips? If set then 
> do nothing else apply rtpproxy_offer().
>
>
> On Fri, Jun 6, 2014 at 10:45 PM, Bogdan-Andrei Iancu 
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
>     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  <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> -- 
> Kind regards,
>
> Kaushik Parmar

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


More information about the Users mailing list