Re: [SR-Users] Accessing SDP changes

2016-12-13 Thread Pete Kelly
It was in a branch route. Schoolboy error, apologies! Thanks Pete On 13 December 2016 at 12:52, Daniel-Constantin Mierla 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

Re: [SR-Users] Accessing SDP changes

2016-12-13 Thread Daniel-Constantin Mierla
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, bu

Re: [SR-Users] Accessing SDP changes

2016-12-13 Thread Pete Kelly
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 wrote: > Awesome, this looks to have done the trick nicely - thank you.

Re: [SR-Users] Accessing SDP changes

2016-12-12 Thread Pete Kelly
Awesome, this looks to have done the trick nicely - thank you. On 9 December 2016 at 15:31, Carsten Bock 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, th

Re: [SR-Users] Accessing SDP changes

2016-12-09 Thread Carsten Bock
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 : > Hi > > I am using Kamailio 4.4. and calling the fu

[SR-Users] Accessing SDP changes

2016-12-09 Thread Pete Kelly
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