<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 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 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 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 href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
> <a 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 href="http://www.ng-voice.com" rel="noreferrer" target="_blank">http://www.ng-voice.com</a><br>
mailto:<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a><br>
<br>
Office <a href="tel:%2B49%2040%205247593-40" value="+4940524759340" target="_blank">+49 40 5247593-40</a><br>
Fax <a 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 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>