[SR-Users] SIP Registartion Sharing between two kamailio

Julien Chavanton jchavanton at gmail.com
Fri Apr 27 11:39:12 CEST 2018


Hi Suresh, you are using lookup() and it is not finding the contact ?

...
lookup("location");
switch ($retcode) {
    case -1:
    case -3:
        sl_send_reply("404", "Not Found");
        exit;
    case -2:
        sl_send_reply("405", "Not Found");
        exit;
};
...


In this case you probably want to do a "kamctl ul show" before making the
call to see if you find the AOR and the related contact
You can also do some manual test using the ul.lookup command

Regards
Julien

On Thu, Apr 26, 2018 at 11:37 PM, Suresh Talasaniya <
suresh.talasaniya at gmail.com> wrote:

> Hello All,
>
>
> I have two Kamailio servers and shared the database between two Kamailio.
>
> Below are my usrloc configuration in kamailio.cfg
>
> # ----- usrloc params -----
>
> modparam("usrloc", "db_url", DBURL)
> *modparam("usrloc", "db_mode", 3)*
> modparam("usrloc", "use_domain", MULTIDOMAIN)
>
> modparam("usrloc", "timer_interval", 30)
> modparam("usrloc", "matching_mode", 1)
> modparam("usrloc", "cseq_delay", 10)
> modparam("usrloc", "fetch_rows", 3000)
> modparam("usrloc", "hash_size", 12)
> modparam("usrloc", "timer_procs", 4)
> modparam("usrloc", "handle_lost_tcp", 1)
> modparam("usrloc", "close_expired_tcp", 1)
> modparam("usrloc", "db_timer_clean", 1)
>
>
>
> # ----- registrar params -----
>
> modparam("registrar", "method_filtering", 1)
> modparam("registrar", "gruu_enabled", 0)
> modparam("registrar", "received_avp", "$avp(RECEIVED)")
> modparam("registrar", "default_expires", 3600)
> modparam("registrar", "min_expires", 1200)
> modparam("registrar", "max_expires", 3600)
> modparam("registrar", "default_q", 1000)
> modparam("registrar", "max_contacts", 10)
> modparam("registrar", "retry_after", 10)
> modparam("registrar", "xavp_cfg", "reg")
> modparam("registrar", "use_path", 1)
> modparam("registrar", "path_mode", 0)
> modparam("registrar", "path_use_received", 1)
> modparam("registrar", "contact_max_size", 1024)
>
> modparam("registrar", "path_check_local", 1)
> modparam("registrar", "sock_flag", 18)
> modparam("registrar", "sock_hdr_name", "Sock-Info")
>
> #------------------------------------------------------------
>
> I have two users in same domain.
>
> 1. 1000 at dev.domain.com  --> Registered on kamailio 1
> 2. 1001 at dev.domain.com  --> Registered on kamailio 2
>
> I am not able to make a call from 1000 at dev.domain.com to
> 1001 at dev.domain.com and vice versa.
>
> It will be appreciable if anyone help to resolve the issue.
>
> Thank you in advance!
>
>
>
> --
> Regards,
> Suresh Talasaniya.
> Contact : +91-9724264776
> Skype : suresh.talsaniya
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180427/445717ec/attachment.html>


More information about the sr-users mailing list