[Spce-user] remove a=direction:both

Jon Bonilla (Manwe) manwe at sipdoc.net
Tue Nov 27 08:35:51 EST 2018


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Firma digital OpenPGP
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20181127/8d60399a/attachment-0001.sig>


More information about the Spce-user mailing list