[OpenSIPS-Users] Modified SDP from RTPEngine
Pat Burke
pat at voxtelesys.com
Thu Mar 15 09:34:17 EDT 2018
Răzvan,
Thanks for the reply. PERFECT.
I was looking at 2.2 documentation. I didn't think of looking at 2.4. It is just another reason for us to move to 2.4. Can't wait for the LTS release.
Regards,
Pat Burke
-----Original Message-----
> From: "Răzvan Crainea" <razvan at opensips.org>
> To: users at lists.opensips.org
> Date: 03/15/18 03:21
> Subject: Re: [OpenSIPS-Users] Modified SDP from RTPEngine
>
> Hi, Pat!
>
> Take a look at the sock_pvar parameter of the rtpengine_offer() function[1].
>
> [1]
> http://www.opensips.org/html/docs/modules/2.4.x/rtpengine.html#rtpengine.f.rtpengine_offer
>
> Best regards,
> Răzvan
>
> On 03/15/2018 03:39 AM, Pat Burke wrote:
> > Hello,
> >
> >
> > I am trying to get the IP address of the RTPEngine selected by the
> > rtpengine_offer (we are load balancing across several rtpengines). In
> > rtpproxy, there was the optional parameter
> >
> > /sock_pvar(optional)/ - pvar used to store the RTPProxy socket
> > chosen for this call. Note that the variable will only be
> > populated in the initial request.
> >
> >
> > There is no equivalent in rtpengine. The following code, gets reads the
> > request sdp line, but not the modified sdp. Is there a way to get to
> > the modified sdp?
> >
> >
> > rtpengine_offer("$dlg_val(rtpofferoptions)");
> >
> > $var(regex) = "/c=IN IP4 //g";
> >
> > $var(cline) = $(rb{sdp.line,c,0});
> >
> > $var(ipaddr) = $(var(cline){re.subst,$var(regex)});
> >
> > xlog("L_INFO", "$tU SCRIPT:RTPPROXY:DEBUG: response
> > = $var(response) - $var(ipaddr) - $rc\n");
> >
> >
> > Regards,
> > *Pat Burke*
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
> --
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
> OpenSIPS Summit 2018
> http://www.opensips.org/events/Summit-2018Amsterdam
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list