Re: [SR-Users] Changing SDP with subst after rtpproxy_answer corrupts SDP

2015-01-15 Thread Daniel Tryba
On Thursday 15 January 2015 13:38:00 Matthias van der Vlies wrote: I have an on-reply route that needs to change the SDP version for the reply coming in. The use case is that I have a mobile originated call and there is some Ericsson switch that doesn't like it when the SDP version is updated

Re: [SR-Users] Changing SDP with subst after rtpproxy_answer corrupts SDP

2015-01-15 Thread Matthias van der Vlies
That's also a solution, but I prefer not dropping the 183 :) Daniel's (the other one ;-)) suggestion was the solution in the end: if(subst(/^o=somestuff ([0-9]+) ([0-9]+) IN IP4 (.*)$/o=somestuff \1 \1 IN IP4 \3/)) { xlog(L_INFO, Fixed

Re: [SR-Users] Changing SDP with subst after rtpproxy_answer corrupts SDP

2015-01-15 Thread Daniel-Constantin Mierla
Hello, use msg_apply_changes() from textops modules in between the changes done to sdp. No time to check the code, so I am not sure at this moment if can be done inside the onreply_route[x], which is executed by tm, but should be possible in core reply_route - -there you can make a filter and

[SR-Users] Changing SDP with subst after rtpproxy_answer corrupts SDP

2015-01-15 Thread Matthias van der Vlies
Dear all, I have an on-reply route that needs to change the SDP version for the reply coming in. The use case is that I have a mobile originated call and there is some Ericsson switch that doesn't like it when the SDP version is updated (in this case by asterisk) although nothing has changed to