Hi
I am using Kamailio 4.4. and calling the function sdp_remove_transport in order to remove some SRTP media lines.
The function works (of course!) however I would like to get access to the modified SDP within the cfg.
I thought this would do the trick:
sdp_remove_transport("RTP/SAVP"); sdp_get("$avp(foo)"); xlog("$avp(foo)");
However $avp(foo) does not contain the newly modified SDP.
Is there a way for me to access it? I have been looking at things like t_save_lumps() and msg_apply_changes().
Any pointers or confirmation that this is or isn't possible would be very welcome!
Thanks
Pete
Hi Pete,
you could try the following:
sdp_remove_transport("RTP/SAVP"); msg_apply_changes(); // from textopsx sdp_get("$avp(foo)"); xlog("$avp(foo)");
I believe, that should do the job.
Thanks, Carsten
2016-12-09 16:17 GMT+01:00 Pete Kelly pkelly@gmail.com:
Hi
I am using Kamailio 4.4. and calling the function sdp_remove_transport in order to remove some SRTP media lines.
The function works (of course!) however I would like to get access to the modified SDP within the cfg.
I thought this would do the trick:
sdp_remove_transport("RTP/SAVP"); sdp_get("$avp(foo)"); xlog("$avp(foo)");
However $avp(foo) does not contain the newly modified SDP.
Is there a way for me to access it? I have been looking at things like t_save_lumps() and msg_apply_changes().
Any pointers or confirmation that this is or isn't possible would be very welcome!
Thanks
Pete
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Awesome, this looks to have done the trick nicely - thank you.
On 9 December 2016 at 15:31, Carsten Bock carsten@ng-voice.com wrote:
Hi Pete,
you could try the following:
sdp_remove_transport("RTP/SAVP"); msg_apply_changes(); // from textopsx sdp_get("$avp(foo)"); xlog("$avp(foo)");
I believe, that should do the job.
Thanks, Carsten
2016-12-09 16:17 GMT+01:00 Pete Kelly pkelly@gmail.com:
Hi
I am using Kamailio 4.4. and calling the function sdp_remove_transport in order to remove some SRTP media lines.
The function works (of course!) however I would like to get access to the modified SDP within the cfg.
I thought this would do the trick:
sdp_remove_transport("RTP/SAVP"); sdp_get("$avp(foo)"); xlog("$avp(foo)");
However $avp(foo) does not contain the newly modified SDP.
Is there a way for me to access it? I have been looking at things like t_save_lumps() and msg_apply_changes().
Any pointers or confirmation that this is or isn't possible would be very welcome!
Thanks
Pete
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Carsten Bock CEO (Geschäftsführer)
ng-voice GmbH Millerntorplatz 1 20359 Hamburg / Germany
http://www.ng-voice.com mailto:carsten@ng-voice.com
Office +49 40 5247593-40 Fax +49 40 5247593-99
Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284
Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/
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.
Any ideas?
On 12 December 2016 at 14:36, Pete Kelly pkelly@gmail.com wrote:
Awesome, this looks to have done the trick nicely - thank you.
On 9 December 2016 at 15:31, Carsten Bock carsten@ng-voice.com wrote:
Hi Pete,
you could try the following:
sdp_remove_transport("RTP/SAVP"); msg_apply_changes(); // from textopsx sdp_get("$avp(foo)"); xlog("$avp(foo)");
I believe, that should do the job.
Thanks, Carsten
2016-12-09 16:17 GMT+01:00 Pete Kelly pkelly@gmail.com:
Hi
I am using Kamailio 4.4. and calling the function sdp_remove_transport
in
order to remove some SRTP media lines.
The function works (of course!) however I would like to get access to
the
modified SDP within the cfg.
I thought this would do the trick:
sdp_remove_transport("RTP/SAVP"); sdp_get("$avp(foo)"); xlog("$avp(foo)");
However $avp(foo) does not contain the newly modified SDP.
Is there a way for me to access it? I have been looking at things like t_save_lumps() and msg_apply_changes().
Any pointers or confirmation that this is or isn't possible would be
very
welcome!
Thanks
Pete
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Carsten Bock CEO (Geschäftsführer)
ng-voice GmbH Millerntorplatz 1 20359 Hamburg / Germany
http://www.ng-voice.com mailto:carsten@ng-voice.com
Office +49 40 5247593-40 Fax +49 40 5247593-99
Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284
Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/
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).
Cheers, Daniel
On 13/12/2016 13:16, Pete Kelly wrote:
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.
Any ideas?
On 12 December 2016 at 14:36, Pete Kelly <pkelly@gmail.com mailto:pkelly@gmail.com> wrote:
Awesome, this looks to have done the trick nicely - thank you. On 9 December 2016 at 15:31, Carsten Bock <carsten@ng-voice.com <mailto:carsten@ng-voice.com>> wrote: Hi Pete, you could try the following: sdp_remove_transport("RTP/SAVP"); msg_apply_changes(); // from textopsx sdp_get("$avp(foo)"); xlog("$avp(foo)"); I believe, that should do the job. Thanks, Carsten 2016-12-09 16:17 GMT+01:00 Pete Kelly <pkelly@gmail.com <mailto:pkelly@gmail.com>>: > Hi > > I am using Kamailio 4.4. and calling the function sdp_remove_transport in > order to remove some SRTP media lines. > > The function works (of course!) however I would like to get access to the > modified SDP within the cfg. > > I thought this would do the trick: > > sdp_remove_transport("RTP/SAVP"); > sdp_get("$avp(foo)"); > xlog("$avp(foo)"); > > However $avp(foo) does not contain the newly modified SDP. > > Is there a way for me to access it? I have been looking at things like > t_save_lumps() and msg_apply_changes(). > > Any pointers or confirmation that this is or isn't possible would be very > welcome! > > Thanks > > Pete > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users> > -- Carsten Bock CEO (Geschäftsführer) ng-voice GmbH Millerntorplatz 1 20359 Hamburg / Germany http://www.ng-voice.com mailto:carsten@ng-voice.com <mailto:carsten@ng-voice.com> Office +49 40 5247593-40 <tel:%2B49%2040%205247593-40> Fax +49 40 5247593-99 <tel:%2B49%2040%205247593-99> Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ <http://www.ng-voice.com/imprint/>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
It was in a branch route. Schoolboy error, apologies!
Thanks Pete
On 13 December 2016 at 12:52, Daniel-Constantin Mierla miconda@gmail.com wrote:
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).
Cheers, Daniel
On 13/12/2016 13:16, Pete Kelly wrote:
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.
Any ideas?
On 12 December 2016 at 14:36, Pete Kelly pkelly@gmail.com wrote:
Awesome, this looks to have done the trick nicely - thank you.
On 9 December 2016 at 15:31, Carsten Bock carsten@ng-voice.com wrote:
Hi Pete,
you could try the following:
sdp_remove_transport("RTP/SAVP"); msg_apply_changes(); // from textopsx sdp_get("$avp(foo)"); xlog("$avp(foo)");
I believe, that should do the job.
Thanks, Carsten
2016-12-09 16:17 GMT+01:00 Pete Kelly pkelly@gmail.com:
Hi
I am using Kamailio 4.4. and calling the function sdp_remove_transport
in
order to remove some SRTP media lines.
The function works (of course!) however I would like to get access to
the
modified SDP within the cfg.
I thought this would do the trick:
sdp_remove_transport("RTP/SAVP"); sdp_get("$avp(foo)"); xlog("$avp(foo)");
However $avp(foo) does not contain the newly modified SDP.
Is there a way for me to access it? I have been looking at things like t_save_lumps() and msg_apply_changes().
Any pointers or confirmation that this is or isn't possible would be
very
welcome!
Thanks
Pete
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Carsten Bock CEO (Geschäftsführer)
ng-voice GmbH Millerntorplatz 1 20359 Hamburg / Germany
http://www.ng-voice.com mailto:carsten@ng-voice.com
Office +49 40 5247593-40 <%2B49%2040%205247593-40> Fax +49 40 5247593-99 <%2B49%2040%205247593-99>
Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284
Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com