El 09/04/14 12:36, Daniel-Constantin Mierla escribió:
The safety checks were pushed to master and 4.1 branches. Can you try with the latest git version and report the result?
Cheers, Daniel
On 09/04/14 18:43, Daniel-Constantin Mierla wrote:
OK, that's the reason, the _reg_htable is initialized only when reg_db_url is set, otherwise there is no source of user profile to do registration for, and no point to do uac_reg_lookup().
I will add safety checks for this case.
Cheers, Daniel
On 09/04/14 18:30, Alex Villacís Lasso wrote:
El 09/04/14 03:11, Daniel-Constantin Mierla escribió:
Hello,
can you share here the parameters for uac module?
Currently there are no explicit parameters. All parameters are currently commented out: [root@elx3 ~]# grep uac /etc/kamailio/kamailio.cfg loadmodule "uac.so" #modparam("uac", "reg_db_url", DBASTURL) # uacreg table is actually a view in DBASTURL #modparam("uac", "reg_contact_addr", "127.0.0.1")
The safety checks work, in the sense that the process no longer crashes. Before the crash, the websocket connection used to get disconnected after a timeout, so I am checking whether this is still the case now. Additionally I am getting these messages on the log:
Apr 9 15:42:14 elx3 /usr/sbin/kamailio[3051]: ERROR: <core> [resolve.c:1733]: sip_hostport2su(): ERROR: sip_hostport2su: could not resolve hostname: "o0f99a1p8fp7.invalid" Apr 9 15:42:14 elx3 /usr/sbin/kamailio[3051]: ERROR: tm [ut.h:337]: uri2dst2(): failed to resolve "o0f99a1p8fp7.invalid" Apr 9 15:42:14 elx3 /usr/sbin/kamailio[3051]: ERROR: tm [t_fwd.c:1773]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches Apr 9 15:42:14 elx3 /usr/sbin/kamailio[3051]: ERROR: sl [sl_funcs.c:387]: sl_reply_error(): ERROR: sl_reply_error used: Unresolvable destination (478/SL) Apr 9 15:42:19 elx3 /usr/sbin/kamailio[3103]: ERROR: uac [uac_reg.c:363]: reg_ht_get_byuuid(): reg hash table not initialized Apr 9 15:42:19 elx3 /usr/sbin/kamailio[3103]: ERROR: uac [uac_reg.c:363]: reg_ht_get_byuuid(): reg hash table not initialized Apr 9 15:43:56 elx3 /usr/sbin/kamailio[3053]: ERROR: uac [uac_reg.c:363]: reg_ht_get_byuuid(): reg hash table not initialized Apr 9 15:43:56 elx3 /usr/sbin/kamailio[3053]: ERROR: uac [uac_reg.c:363]: reg_ht_get_byuuid(): reg hash table not initialized Apr 9 15:44:10 elx3 /usr/sbin/kamailio[3053]: ERROR: uac [uac_reg.c:363]: reg_ht_get_byuuid(): reg hash table not initialized Apr 9 15:44:10 elx3 /usr/sbin/kamailio[3053]: ERROR: uac [uac_reg.c:363]: reg_ht_get_byuuid(): reg hash table not initialized
How come nobody else using kamailio for websockets stumbled into this crash before?