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

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Jun 13 13:27:17 CEST 2014


Hi,

Somehow is hard to believe that a single call to rtpproxy_offer() will 
insert 2 ips. So :
     - what are the params you pass to this function ?
     - place an xlog("*** Before rtpproxy_offer() \n"); before the 
function call and check how many times you get it for a single reply 
processing.

Regards,

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

On 09.06.2014 08:43, kaushik parmar wrote:
> Hi,
>
> I am using opensips 1.11.1-notls (x86_64/linux). If i dont write 
> rtpproxy_offer() not modify SDP and send address of voip switch. If i 
> write rtpproxy_offer() write in write onreply_route[] then it adds IP 
> and Ports two times.
>
>
> On Sun, Jun 8, 2014 at 8:17 PM, Bogdan-Andrei Iancu 
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
>     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
>
>
>
>
> -- 
> Kind regards,
>
> Kaushik Parmar

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


More information about the Users mailing list