[OpenSIPS-Users] Remove Sdp line

Liviu Chircu liviu at opensips.org
Thu Apr 5 10:45:11 EDT 2018


This feature works as expected on 2.4. Three calls, with three expected 
results:

replace_body("s=Zoiper", "");
replace_body("s=Zoiper\r", "");
replace_body("s=Zoiper\r\n", "");

........
v=0.
o=Zoiper 0 0 IN IP4 10.0.0.14.
.
c=IN IP4 10.0.0.14.
t=0 0.
m=audio 55536 RTP/AVP 3 101 0 8.
a=rtpmap:3 GSM/8000.
a=rtpmap:101 telephone-event/8000.
..........

..........
v=0.
o=Zoiper 0 0 IN IP4 10.0.0.14.

c=IN IP4 10.0.0.14.
t=0 0.
m=audio 55536 RTP/AVP 3 101 0 8.
a=rtpmap:3 GSM/8000.
a=rtpmap:101 telephone-event/8000.
..........

..........
v=0.
o=Zoiper 0 0 IN IP4 10.0.0.14.
c=IN IP4 10.0.0.14.
t=0 0.
m=audio 55536 RTP/AVP 3 101 0 8.
a=rtpmap:3 GSM/8000.
a=rtpmap:101 telephone-event/8000.
..........

My advice is to first double-check your script flow (use xlog() 
printing), then double-check for any special characters which require 
escaping within the regexp.

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 05.04.2018 16:50, Kirill Galinurov wrote:
> Yes. I tried both .
>
> 2018-04-05 16:13 GMT+03:00 Kirill Galinurov <k.galinurov at gmail.com 
> <mailto:k.galinurov at gmail.com>>:
>
>     Hi Bogdan. I try use replace_body("s=Asterisk PBX 13.17.2\r\n","")
>     but its not working...
>
>     2018-04-04 17:58 GMT+03:00 Bogdan-Andrei Iancu
>     <bogdan at opensips.org <mailto:bogdan at opensips.org>>:
>
>         Hi Kirill,
>
>         Please see
>         http://lists.opensips.org/pipermail/users/2018-April/039219.html
>         <http://lists.opensips.org/pipermail/users/2018-April/039219.html>
>
>         Regards,
>
>         Bogdan-Andrei Iancu
>
>         OpenSIPS Founder and Developer
>            http://www.opensips-solutions.com
>         <http://www.opensips-solutions.com>
>         OpenSIPS Summit 2018
>            http://www.opensips.org/events/Summit-2018Amsterdam
>         <http://www.opensips.org/events/Summit-2018Amsterdam>
>
>         On 04/03/2018 05:36 PM, Kirill Galinurov wrote:
>>         Hi All. I use opensips 2.3 How I can remove sdp line
>>         like s=Asterisk PBX 13.18.1
>>          in SDP ?
>>
>>
>>         _______________________________________________
>>         Users mailing list
>>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>         <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180405/a6354870/attachment.html>


More information about the Users mailing list