Quantcast

mid_registrar

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

mid_registrar

volga629
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar (sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar (sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=udp) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact 'sip:4310@99.245.176.196:46639;rinstance=cc4a62e9cf84e6cf;transport=tcp' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

Liviu Chircu

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

Slava Bendersky
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu <[hidden email]> wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

volga629
In reply to this post by Liviu Chircu
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu <[hidden email]> wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

Liviu Chircu

Are you sure mid_registrar_save() is called at all? Please either provide some DBG logs of this scenario, or relevant part of the script.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, [hidden email] wrote:
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu [hidden email] wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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



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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

volga629
Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3154 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e40 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3149 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e70 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process exited, code=dumped, status=11/SEGV



volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu <[hidden email]> wrote:

Are you sure mid_registrar_save() is called at all? Please either provide some DBG logs of this scenario, or relevant part of the script.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, [hidden email] wrote:
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu [hidden email] wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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



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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

volga629
In reply to this post by Liviu Chircu
Hello Liviu,
Here are script which I am use.


route {
        route(REQINIT);

        if (is_method("CANCEL")) {
                if (t_check_trans()) {
                        t_relay();
                }
                exit;
        }

        route(CHECK_SOURCE_IP);

        if (is_method("REGISTER")) {
                mid_registrar_save("location");
                xlog("L_INFO", "Forwarding REGISTER to main registrar ($ci=$ci)\n");
        }

        route(RTP_MANAGE);

        # handle requests within SIP dialogs
        route(WITHINDLG);

        remove_hf("Route");
        if(is_method("INVITE|REFER|SUBSCRIBE")) {
                record_route();
        }

        route(DISPATCH);

        route(relay);
}

volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu <[hidden email]> wrote:

Are you sure mid_registrar_save() is called at all? Please either provide some DBG logs of this scenario, or relevant part of the script.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, [hidden email] wrote:
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu [hidden email] wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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



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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

Liviu Chircu
In reply to this post by volga629

Ok, so it looks like there is a bug with Contact expirations, with some chunk of memory being freed twice. I will reply as soon as I have more info.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 17:40, [hidden email] wrote:
Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3154 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e40 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3149 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e70 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process exited, code=dumped, status=11/SEGV



volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu [hidden email] wrote:

Are you sure mid_registrar_save() is called at all? Please either provide some DBG logs of this scenario, or relevant part of the script.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, [hidden email] wrote:
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu [hidden email] wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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



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



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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

volga629
Hello Liviu,
Thank you for all help.

On Tue, 4 Apr, 2017 at 12:05 PM, Liviu Chircu <[hidden email]> wrote:

Ok, so it looks like there is a bug with Contact expirations, with some chunk of memory being freed twice. I will reply as soon as I have more info.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 17:40, [hidden email] wrote:
Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3154 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e40 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3149 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e70 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process exited, code=dumped, status=11/SEGV



volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu [hidden email] wrote:

Are you sure mid_registrar_save() is called at all? Please either provide some DBG logs of this scenario, or relevant part of the script.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, [hidden email] wrote:
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu [hidden email] wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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



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



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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

Liviu Chircu

Speaking of help, could you also dump all your mid_registrar modparams? This should speed up debugging a bit.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 18:22, [hidden email] wrote:
Hello Liviu,
Thank you for all help.

On Tue, 4 Apr, 2017 at 12:05 PM, Liviu Chircu [hidden email] wrote:

Ok, so it looks like there is a bug with Contact expirations, with some chunk of memory being freed twice. I will reply as soon as I have more info.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 17:40, [hidden email] wrote:
Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3154 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e40 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3149 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e70 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process exited, code=dumped, status=11/SEGV



volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu [hidden email] wrote:

Are you sure mid_registrar_save() is called at all? Please either provide some DBG logs of this scenario, or relevant part of the script.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, [hidden email] wrote:
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu [hidden email] wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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



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



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



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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

volga629
Hello Liviu,
Here are mod params

#### REGISTRAR module
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 1)
modparam("mid_registrar", "insertion_mode", 0)
modparam("mid_registrar", "received_avp", "$avp(rcv)")
modparam("mid_registrar", "max_contacts", 4)
modparam("mid_registrar", "tcp_persistent_flag", 10)
modparam("mid_registrar", "contact_match_param", "regid")

volga629

On Tue, 4 Apr, 2017 at 12:25 PM, Liviu Chircu <[hidden email]> wrote:

Speaking of help, could you also dump all your mid_registrar modparams? This should speed up debugging a bit.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 18:22, [hidden email] wrote:
Hello Liviu,
Thank you for all help.

On Tue, 4 Apr, 2017 at 12:05 PM, Liviu Chircu [hidden email] wrote:

Ok, so it looks like there is a bug with Contact expirations, with some chunk of memory being freed twice. I will reply as soon as I have more info.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 17:40, [hidden email] wrote:
Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3154 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e40 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3149 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e70 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process exited, code=dumped, status=11/SEGV



volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu [hidden email] wrote:

Are you sure mid_registrar_save() is called at all? Please either provide some DBG logs of this scenario, or relevant part of the script.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, [hidden email] wrote:
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu [hidden email] wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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



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



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



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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

volga629
Hello Liviu,
Are planning open github issue about it ?

volga629

On Tue, 4 Apr, 2017 at 12:32 PM, [hidden email] wrote:
Hello Liviu,
Here are mod params

#### REGISTRAR module
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 1)
modparam("mid_registrar", "insertion_mode", 0)
modparam("mid_registrar", "received_avp", "$avp(rcv)")
modparam("mid_registrar", "max_contacts", 4)
modparam("mid_registrar", "tcp_persistent_flag", 10)
modparam("mid_registrar", "contact_match_param", "regid")

volga629

On Tue, 4 Apr, 2017 at 12:25 PM, Liviu Chircu <[hidden email]> wrote:

Speaking of help, could you also dump all your mid_registrar modparams? This should speed up debugging a bit.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 18:22, [hidden email] wrote:
Hello Liviu,
Thank you for all help.

On Tue, 4 Apr, 2017 at 12:05 PM, Liviu Chircu [hidden email] wrote:

Ok, so it looks like there is a bug with Contact expirations, with some chunk of memory being freed twice. I will reply as soon as I have more info.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 17:40, [hidden email] wrote:
Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3154 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e40 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3149 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e70 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process exited, code=dumped, status=11/SEGV



volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu [hidden email] wrote:

Are you sure mid_registrar_save() is called at all? Please either provide some DBG logs of this scenario, or relevant part of the script.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, [hidden email] wrote:
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu [hidden email] wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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



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



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



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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

volga629
Hello Liviu,
Is contact header should be replaced with insert mode 1 ?
Configuration like this 


#### REGISTRAR module
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 1)
modparam("mid_registrar", "insertion_mode", 0)
modparam("mid_registrar", "received_avp", "$avp(rcv)")
modparam("mid_registrar", "max_contacts", 4)
modparam("mid_registrar", "tcp_persistent_flag", 10)
modparam("mid_registrar", "outgoing_expires", 900)
modparam("mid_registrar", "contact_match_param", "regid")

Because I see Contact get rewritten complete with opensips local ip and and port. Only parameters like transport are preserved which break rest routing.

=================================================================================================
Call-ID: 141351_rel51MTBiMTgzN2NmYjBhZmFkMzAzNTNjNDI4Yzk3YThmYmU
Contact: "volga629" <sip:4310@10.18.130.27:5060;rinstance=b236f661867df3aa;transport=tcp;regid=c2lwOjQzMTBAOTkuMjQ1LjE3Ni4xOTY6MzczMzU7cmluc3RhbmNlPWIyMzZmNjYxODY3ZGYzYWE7dHJhbnNwb3J0PXRjcA--;fs_path=sip%3A4310%4010.18.130.27%3A5060%3Btransport%3Dudp>
Agent: Bria Android 3.9.2 build 96033
Status: Registered(TCP)(unknown) EXP(2017-04-26 22:31:32) EXPSECS(592)
Ping-Status: Reachable
Ping-Time: 0.00
Host: prod.com
IP: 10.18.130.27
Port: 5060
Auth-User: unknown
Auth-Realm: sip.company.tld
MWI-Account: [hidden email]

 

volga629


On Thu, 6 Apr, 2017 at 10:56 AM, [hidden email] wrote:
Hello Liviu,
Are planning open github issue about it ?

volga629

On Tue, 4 Apr, 2017 at 12:32 PM, [hidden email] wrote:
Hello Liviu,
Here are mod params

#### REGISTRAR module
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 1)
modparam("mid_registrar", "insertion_mode", 0)
modparam("mid_registrar", "received_avp", "$avp(rcv)")
modparam("mid_registrar", "max_contacts", 4)
modparam("mid_registrar", "tcp_persistent_flag", 10)
modparam("mid_registrar", "contact_match_param", "regid")

volga629

On Tue, 4 Apr, 2017 at 12:25 PM, Liviu Chircu <[hidden email]> wrote:

Speaking of help, could you also dump all your mid_registrar modparams? This should speed up debugging a bit.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 18:22, [hidden email] wrote:
Hello Liviu,
Thank you for all help.

On Tue, 4 Apr, 2017 at 12:05 PM, Liviu Chircu [hidden email] wrote:

Ok, so it looks like there is a bug with Contact expirations, with some chunk of memory being freed twice. I will reply as soon as I have more info.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 17:40, [hidden email] wrote:
Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3154 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e40 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3149 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e70 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process exited, code=dumped, status=11/SEGV



volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu [hidden email] wrote:

Are you sure mid_registrar_save() is called at all? Please either provide some DBG logs of this scenario, or relevant part of the script.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, [hidden email] wrote:
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu [hidden email] wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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



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



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



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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mid_registrar

Liviu Chircu

Hi volga,

Well, it looks like your "insertion_mode" is set to 0, not 1, hence the Contact gets rewritten.

PS: Your other report (regarding "regid" in mirror mode) is definitely valid, and I'll push a fix for it today.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 27.04.2017 05:23, [hidden email] wrote:
Hello Liviu,
Is contact header should be replaced with insert mode 1 ?
Configuration like this 


#### REGISTRAR module
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 1)
modparam("mid_registrar", "insertion_mode", 0)
modparam("mid_registrar", "received_avp", "$avp(rcv)")
modparam("mid_registrar", "max_contacts", 4)
modparam("mid_registrar", "tcp_persistent_flag", 10)
modparam("mid_registrar", "outgoing_expires", 900)
modparam("mid_registrar", "contact_match_param", "regid")

Because I see Contact get rewritten complete with opensips local ip and and port. Only parameters like transport are preserved which break rest routing.

=================================================================================================
Call-ID: 141351_rel51MTBiMTgzN2NmYjBhZmFkMzAzNTNjNDI4Yzk3YThmYmU
Contact: "volga629" [hidden email]
Agent: Bria Android 3.9.2 build 96033
Status: Registered(TCP)(unknown) EXP(2017-04-26 22:31:32) EXPSECS(592)
Ping-Status: Reachable
Ping-Time: 0.00
Host: prod.com
IP: 10.18.130.27
Port: 5060
Auth-User: unknown
Auth-Realm: sip.company.tld
MWI-Account: [hidden email]

 

volga629


On Thu, 6 Apr, 2017 at 10:56 AM, [hidden email] wrote:
Hello Liviu,
Are planning open github issue about it ?

volga629

On Tue, 4 Apr, 2017 at 12:32 PM, [hidden email] wrote:
Hello Liviu,
Here are mod params

#### REGISTRAR module
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 1)
modparam("mid_registrar", "insertion_mode", 0)
modparam("mid_registrar", "received_avp", "$avp(rcv)")
modparam("mid_registrar", "max_contacts", 4)
modparam("mid_registrar", "tcp_persistent_flag", 10)
modparam("mid_registrar", "contact_match_param", "regid")

volga629

On Tue, 4 Apr, 2017 at 12:25 PM, Liviu Chircu [hidden email] wrote:

Speaking of help, could you also dump all your mid_registrar modparams? This should speed up debugging a bit.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 18:22, [hidden email] wrote:
Hello Liviu,
Thank you for all help.

On Tue, 4 Apr, 2017 at 12:05 PM, Liviu Chircu [hidden email] wrote:

Ok, so it looks like there is a bug with Contact expirations, with some chunk of memory being freed twice. I will reply as soon as I have more info.

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 17:40, [hidden email] wrote:
Hello Liviu,

I modified script and I see regid, but module crash again

Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3154 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3154]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e40 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3154 (opensips) of user 992 killed by SIGSEGV - dumping core
Apr 4 10:35:57 casbc00 audit: ANOM_ABEND auid=4294967295 uid=992 gid=992 ses=4294967295 pid=3149 comm="opensips" exe="/usr/sbin/opensips" sig=11
Apr 4 10:35:57 casbc00 kernel: opensips[3149]: segfault at 98 ip 0000556b953bcdb0 sp 00007ffe5dc47e70 error 4 in opensips[556b9538b000+219000]
Apr 4 10:35:57 casbc00 abrt-hook-ccpp: Process 3149 (opensips) of user 992 killed by SIGSEGV - ignoring (repeated crash)
Apr 4 10:35:57 casbc00 systemd: opensips.service: Main process exited, code=dumped, status=11/SEGV



volga629


On Tue, 4 Apr, 2017 at 10:07 AM, Liviu Chircu [hidden email] wrote:

Are you sure mid_registrar_save() is called at all? Please either provide some DBG logs of this scenario, or relevant part of the script.

Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 15:37, [hidden email] wrote:
Hello Liviu,
Here are full trace of RIGISTRAR, but I don't see not in request not in reply regid.


Thank you.

volga629

On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu [hidden email] wrote:

Hi, Volga!

The errors are pretty straightforward, and suggest that the "regid" Contact header field parameter has been stripped when the 200 OK reply contact set was constructed. To confirm or infirm this, however, we need a full SIP packet trace.

Best regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04.04.2017 04:24, [hidden email] wrote:
Hello Everyone,
Trying implement mid_registrar but module throwing error.


Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:fix_rpl_contact_by_ct: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:mid_reg_resp_in: failed to overwrite Contact header field domain
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:get_match_token: a Contact from main registrar ([hidden email]) is missing the 'regid' hf parameter
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:match_contact: failed to get match token
Apr  3 20:55:47 casbc00 /usr/sbin/opensips[1770]: ERROR:mid_registrar:insert_rpl_contacts: Contact '[hidden email]' not found in reply from main registrar!


My setup 

                UDP transport       |               TCP transport                              
 freeswitch---- ( LAN) --- opensips  --- (WAN) ---- UA (soft client) 

Any help thank you, volga629




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



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



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



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



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