[OpenSIPS-Users] Duplication of media IP address in SDP of 200OK While using RTPPROXY

Husnain Taseer husnain.taseer at gmail.com
Sat Jan 2 12:23:34 CET 2016


Dear Terrance,
Thank You for your reply the issue has been solved, yesterday I figured out that on 200OK rtpproxy_answer() was executing twice because of that it was appending IP address 2 times in the SDP. so Now I am setting flag when calling this function and checking the status of that flag in the condition:

 if (has_body("application/sdp") && t_check_status("(200)") && !isflagset(RTPANS)) {
		xlog("L_NOTICE", "[$pr:$fU@$si:$sp]: ANSWERING RTPProxy in Reply Route 1 with flag EE\n");
		rtpproxy_answer("OCNFWEE");
		setflag(RTPANS);
Regards,
Husnain Taseer
Sent from my iPhone

> On Jan 2, 2016, at 2:00 PM, users-request at lists.opensips.org wrote:
> 
> Send Users mailing list submissions to
>    users at lists.opensips.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
>    users-request at lists.opensips.org
> 
> You can reach the person managing the list at
>    users-owner at lists.opensips.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
> 
> 
> Today's Topics:
> 
>   1. Duplication of media IP address in SDP of 200OK    While using
>      RTPPROXY (Husnain Taseer)
>   2. Re: Duplication of media IP address in SDP of 200OK While
>      using RTPPROXY (Terrance Devor)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 1 Jan 2016 19:58:13 +0300
> From: Husnain Taseer <husnain.taseer at gmail.com>
> Subject: [OpenSIPS-Users] Duplication of media IP address in SDP of
>    200OK    While using RTPPROXY
> To: users at lists.opensips.org
> Message-ID:
>    <CALkA4hKQw1k4te=rzBJAd0t6KPDzrBMtRTG0ckFU6whu6VjOWw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Dear Users,
> 
> I am working on a scenario where I am using RTPProxy in bridging mode. The
> flow of my scenario is as follows:
> 
> *Caller ---Pub-IP--->  Opensips + RTPP ---LAN---> IVR Server*
> 
> Client sends INVITE on public interface of Opensips, then Opensips relays
> that INVITE to IVR Server (asterisk) on Private Interface with
> *rtpproxy_offer("OCNFWEI")* in branch route. Then IVR server sends 183 and
> start playing audio announcement without answering.
> 
> *IVR Server --183---> Opensips + RTPP ----183---> Client*
> 
> in on_reply_route when opensips receives 183 it calls
> *rtpproxy_answer("OCNFWIE")
> *and media flow starts toward the client and client can listen the
> announcement properly.
> 
> 
> *IVR Server --RTP---> RTPProxy ----RTP---> Client*
> 
> After the audio, IVR server send 486 Busy to opensips. and then on
> Opensips I am calling *rtpproxy_unforce()* in failure_route. and then
> sending INVITE to callee. And for this INVITE I am again calling
> *rtpproxy_offer("OCNFWEE")* in branch route.
> 
> *IVR Server ----486 Busy----> Opensips + RTPP ---INVITE--->  Callee*
> 
> 
> Up-till here everything is perfect in the trace the problem occurs when I
> receive 200-OK from callee. On 200OK in reply route I am calling
> *rtpproxy_answer("OCNFWEE")* and this function call is adding  duplicate
> media IPs in SDP of 200OK which opensips is sending to the callee. The IP
> is like this *70.12.15.XX70.12.15.XX* in c= field of SDP.
> 
> 
> In short my flow is like this:
> 
> On Invite -> offer with EI
> On 183 -> answer with IE
> On 486 -> unforce
> 
> On invite to Callee -> offer with EE
> On 200Ok from Callee -> answer with EE
> On Bye -> unforce
> 
> 
> Please let me know that am I doing some thing wrong or is there any bug in
> RTPProxy module of opensips. I am running rtpproxy like this :
> 
> rtpproxy -s udp:127.0.0.1:12221 -l 10.168.1.120/70.12.15.XX -p
> /var/run/rtpproxy.pid -u root root -F -d DBUG LOG_LOCAL2 -P -a -r
> /var/spool/recordings/
> 
> 
> Regards,
> *Husnain Taseer*
> *VoIP Developer*
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.opensips.org/pipermail/users/attachments/20160101/1347e27f/attachment.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 1 Jan 2016 14:57:56 -0500
> From: Terrance Devor <ter.devor at gmail.com>
> Subject: Re: [OpenSIPS-Users] Duplication of media IP address in SDP
>    of 200OK While using RTPPROXY
> To: OpenSIPS users mailling list <users at lists.opensips.org>
> Message-ID:
>    <CA+w+2f9YQx5rSMnQUE2=soYA-vGkwUJk78giMQbPYJJWjPMhXQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Please post your route and branch cfg
> ?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.opensips.org/pipermail/users/attachments/20160101/89959d0c/attachment-0001.htm>
> 
> ------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 
> End of Users Digest, Vol 90, Issue 1
> ************************************



More information about the Users mailing list