[OpenSIPS-Users] mid_registrar

volga629 at networklab.ca volga629 at networklab.ca
Tue Apr 4 10:46:27 EDT 2017


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 <liviu at opensips.org> 
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, volga629 at networklab.ca wrote:
>> Hello Liviu,
>> Here are full trace of RIGISTRAR, but I don't see not in request not 
>> in reply regid.
>> 
>> https://paste.fedoraproject.org/paste/o2EcKdTbJcXTY9oX6lFfRV5M1UNdIGYhyRLivL9gydE=
>> 
>> Thank you.
>> 
>> volga629
>> 
>> On Tue, 4 Apr, 2017 at 5:13 AM, Liviu Chircu <liviu at opensips.org> 
>> 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, volga629 at networklab.ca 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 
>>>> (sip:4310 at 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 at 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 at 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
>>>> Users at lists.opensips.org
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>> 
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170404/20609a2b/attachment-0001.html>


More information about the Users mailing list