<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>You have to execute the function in request_route {} (or
sub-routes executed from there) -- don't executed it inside
branch_route or failure_route (or sub-routes executed from there).</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 13/12/2016 13:16, Pete Kelly wrote:<br>
</div>
<blockquote
cite="mid:CAEWH9M_V8Zv9DAM2g6K9Dt59wYxr_EUeROBLjeYWnOxKS8i-Bg@mail.gmail.com"
type="cite">
<div dir="ltr">Spoke too soon there - it works for initial
requests, but then subsequently does not work for invites. The
function complains it is not being called from a request route.
<div><br>
</div>
<div>Any ideas?</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 12 December 2016 at 14:36, Pete
Kelly <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:pkelly@gmail.com" target="_blank">pkelly@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Awesome, this looks to have done the trick
nicely - thank you.</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On 9 December 2016 at 15:31,
Carsten Bock <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:carsten@ng-voice.com"
target="_blank">carsten@ng-voice.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
Pete,<br>
<br>
you could try the following:<br>
<br>
sdp_remove_transport("RTP/SAVP<wbr>");<br>
msg_apply_changes(); // from textopsx<br>
<span>sdp_get("$avp(foo)");<br>
xlog("$avp(foo)");<br>
<br>
</span>I believe, that should do the job.<br>
<br>
Thanks,<br>
Carsten<br>
<div>
<div class="m_1044244345716943675h5"><br>
2016-12-09 16:17 GMT+01:00 Pete Kelly <<a
moz-do-not-send="true"
href="mailto:pkelly@gmail.com"
target="_blank">pkelly@gmail.com</a>>:<br>
> Hi<br>
><br>
> I am using Kamailio 4.4. and calling the
function sdp_remove_transport in<br>
> order to remove some SRTP media lines.<br>
><br>
> The function works (of course!) however I
would like to get access to the<br>
> modified SDP within the cfg.<br>
><br>
> I thought this would do the trick:<br>
><br>
> sdp_remove_transport("RTP/SAVP<wbr>");<br>
> sdp_get("$avp(foo)");<br>
> xlog("$avp(foo)");<br>
><br>
> However $avp(foo) does not contain the
newly modified SDP.<br>
><br>
> Is there a way for me to access it? I
have been looking at things like<br>
> t_save_lumps() and msg_apply_changes().<br>
><br>
> Any pointers or confirmation that this is
or isn't possible would be very<br>
> welcome!<br>
><br>
> Thanks<br>
><br>
> Pete<br>
><br>
</div>
</div>
> ______________________________<wbr>_________________<br>
> SIP Express Router (SER) and Kamailio
(OpenSER) - sr-users mailing list<br>
> <a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org"
target="_blank">sr-users@lists.sip-router.org</a><br>
> <a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
><br>
<br>
<br>
<br>
--<br>
Carsten Bock<br>
CEO (Geschäftsführer)<br>
<br>
ng-voice GmbH<br>
Millerntorplatz 1<br>
20359 Hamburg / Germany<br>
<br>
<a moz-do-not-send="true"
href="http://www.ng-voice.com" rel="noreferrer"
target="_blank">http://www.ng-voice.com</a><br>
mailto:<a moz-do-not-send="true"
href="mailto:carsten@ng-voice.com"
target="_blank">carsten@ng-voice.com</a><br>
<br>
Office <a moz-do-not-send="true"
href="tel:%2B49%2040%205247593-40"
value="+4940524759340" target="_blank">+49 40
5247593-40</a><br>
Fax <a moz-do-not-send="true"
href="tel:%2B49%2040%205247593-99"
value="+4940524759399" target="_blank">+49 40
5247593-99</a><br>
<br>
Sitz der Gesellschaft: Hamburg<br>
Registergericht: Amtsgericht Hamburg, HRB 120189<br>
Geschäftsführer: Carsten Bock<br>
Ust-ID: DE279344284<br>
<br>
Hier finden Sie unsere handelsrechtlichen
Pflichtangaben:<br>
<a moz-do-not-send="true"
href="http://www.ng-voice.com/imprint/"
rel="noreferrer" target="_blank">http://www.ng-voice.com/imprin<wbr>t/</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>