[Spce-user] remove a=direction:both
Daniel Grotti
dgrotti at sipwise.com
Tue Nov 27 08:42:20 EST 2018
Hi,
just consider that in mr6.5 we have a built-in section for SDP
filterning that can be used to such things.
Something like that should work:
sdp_line_filter:
enable: no
remove_line_startswith:
- a=direction:both
Cheers,
--
Head of Customer Support Sipwise GmbH
e: dgrotti at sipwise.com Europaring F15
t: +43(0)130120332 A-2345 Brunn Am Gebirge
w: www.sipwise.com FN: 305595f FG: LG Wiener Neustadt
On 11/27/18 2:37 PM, Tomi Hakkarainen wrote:
> :)
>
> Ps. Nice fix by the way ...
>
>> On 27 Nov 2018, at 15.35, Jon Bonilla (Manwe) <manwe at sipdoc.net> wrote:
>>
>> El Mon, 26 Nov 2018 20:52:09 +0000
>> VoipMax <admin at voipmax.us> escribió:
>>
>>> hi, how do i remove a=direction:both from spce to peer invite? my carrier is
>>> rejecting the call if the a=direction:both is present. My endpoint to spce
>>> invite doesnt include this part, thank you
>>
>> Sonus sucks.
>>
>> --- kamailio.cfg.tt2 2018-07-26 13:33:18.000000000 -0400
>> +++ kamailio.cfg.customtt.tt2 2018-11-19 16:18:04.575332893 -0500
>> @@ -398,6 +398,12 @@
>> # consume local routes
>> loose_route();
>>
>> + #manwe patch: Sonus doesn't like
>> + if (has_body("application/sdp")) {
>> + replace_body_all("a=direction:both\r?\n", "");
>> + }
>> + #manwe end
>> +
>> if($hdr(P-D-Uri) != $null)
>> {
>> xlog("L_INFO", "Recovering D-URI - [% logreq
>> -%]\n");
>>
>>
>> --
>> https://pekepbx.com
>> https://www.issabel.com/multitenant
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> https://lists.sipwise.com/listinfo/spce-user
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
More information about the Spce-user
mailing list