Hello,

Seems the disable_gruu parameter was only added in >= 1.9.x .
Attached is a patch that adds the 'disabled_gruu' parameter in 1.8 as well.

Best Regards,

Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com


On 04/22/2013 03:12 PM, Bogdan-Andrei Iancu wrote:
Hello Craig,

I see you use GRUU for callee and caller and each device uses as contact (in INVITE and 200 OK) the GRUU URI (I guess obtained as a result of registration ) - I guess the devices do register with OpenSIPS, right ?

Now, when you have GRUU, for sequential requests you also need to do a lookup(location) before loose_route to translate RURI from GRUU to actual IP of the device (of course if RURI has GRUU indication and IP address belongs to OpenSIPS).

Why it worked with 1.7 is because GRUU was not supported in 1.7 . If you want to disable GRUU in 1.8, see http://www.opensips.org/html/docs/modules/1.9.x/registrar.html#id292719 .

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 04/19/2013 01:20 PM, Craig Harper wrote:
Hi Bogdan

Please find links bellow the information as discussed before.

Background

We have been using Opensips 1.7 and the Cisco E20 had no issues. Since we upgraded to 1.8 even with the same config are having the issue of the ACK not being forwarded on by the Opensips even tho i see the matching information in the dialog. I have tried match_dialog and checked with $DLG_status and it is unable to match the dialog

SIP Trace

http://pastebin.com/CTtRAV5R

Opensips Dialog

http://pastebin.com/7bfp4JfA

Opensips Debug

http://pastebin.com/GL685NGi

Thanks


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Index: modules/registrar/save.c
===================================================================
--- modules/registrar/save.c    (revision 9974)
+++ modules/registrar/save.c    (working copy)
@@ -73,6 +73,7 @@
 #include "path.h"
 #include "save.h"
 
+extern int disable_gruu;
 
 struct save_ctx {
        unsigned int flags;
Index: modules/registrar/reg_mod.c
===================================================================
--- modules/registrar/reg_mod.c (revision 9974)
+++ modules/registrar/reg_mod.c (working copy)
@@ -116,6 +116,7 @@
 
 str sock_hdr_name = {0,0};
 str gruu_secret = {0,0};
+int disable_gruu = 0;
 
 #define RCV_NAME "received"
 str rcv_param = str_init(RCV_NAME);
@@ -180,6 +181,7 @@
        {"sock_hdr_name",      STR_PARAM, &sock_hdr_name.s     },
        {"mcontact_avp",       STR_PARAM, &mct_avp_param       },
        {"gruu_secret",        STR_PARAM, &gruu_secret.s       },
+       {"disable_gruu",       INT_PARAM, &disable_gruu        },
        {0, 0, 0}
 };
 
Index: modules/registrar/reply.c
===================================================================
--- modules/registrar/reply.c   (revision 9974)
+++ modules/registrar/reply.c   (working copy)
@@ -87,6 +87,7 @@
 
 extern str gruu_secret;
 str default_gruu_secret=str_init("0p3nS1pS");
+extern int disable_gruu;
 
 /*! \brief
  * Buffer for Contact header field
@@ -226,7 +227,7 @@
        int build_gruu = 0;
        struct socket_info *sock;
 
-       if (_m->supported && parse_supported(_m) == 0 &&
+       if (!disable_gruu && _m->supported && parse_supported(_m) == 0 &&
                (get_supported(_m) & F_SUPPORTED_GRUU))
                build_gruu=1;
 
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to