[Spce-user] remove a=direction:both

Tomi Hakkarainen tomishakkarainen at gmail.com
Tue Nov 27 08:37:43 EST 2018


:)

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




More information about the Spce-user mailing list