Hello,
I cannot create a configuration consistent with uac_reg_lookup. Does someone have a configuration with a simple example of uac_reg_lookup that works with db_text file uacreg?
I have kamailio 3.3 running on linux. Based on suggestions in http://kamailio.org/docs/modules/3.3.x/modules_k/uac.html and http://by-miconda.blogspot.com/2010/10/best-of-new-in-kamailio-310-10.html I created this record in db_text file uacreg: 2:12345678:daniel:mysipserver.com:daniel123:sipprovider.com:sipprovider.com:daniel123:xxxxx:"sip:sipprovider.com"
I assume that function uac_reg_lookup retrieves registration information from this record after it is loaded into a memory table. One version of the configuration file is attached. Here are three examples of failures to create a configuration.
$rU = 12345678;
if(uac_reg_lookup("$rU", "$ru")){ #line 73
0(13856) DEBUG: <core> [rvalue.c:2857]: RV fixing type 1 0(13856) DEBUG: <core> [rvalue.c:2861]: RV is int: 12345678 0(13856) DEBUG: <core> [rvalue.c:2857]: RV fixing type 4 0(13856) DEBUG: <core> [route.c:929]: fixing uac_reg_lookup() 0(13856) ERROR: <core> [route.c:1216]: fixing failed (code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:73 --------- $rU = "12345678";
if(uac_reg_lookup("$rU", "$ru")){ #line 73
0(13973) DEBUG: <core> [rvalue.c:2857]: RV fixing type 2 0(13973) DEBUG: <core> [rvalue.c:2865]: RV is str: "12345678" 0(13973) DEBUG: <core> [rvalue.c:2857]: RV fixing type 4 0(13973) DEBUG: <core> [route.c:929]: fixing uac_reg_lookup() 0(13973) ERROR: <core> [route.c:1216]: fixing failed (code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:73 -------- $rU = "12345678"; $ru = "sip:mysipserver.com";
if(uac_reg_lookup("$rU", "$ru")){ #line 74
0(13976) DEBUG: <core> [rvalue.c:2857]: RV fixing type 2 0(13976) DEBUG: <core> [rvalue.c:2865]: RV is str: "12345678" 0(13976) DEBUG: <core> [rvalue.c:2857]: RV fixing type 2 0(13976) DEBUG: <core> [rvalue.c:2865]: RV is str: "sip:mysipserver.com" 0(13976) DEBUG: <core> [rvalue.c:2857]: RV fixing type 4 0(13976) DEBUG: <core> [route.c:929]: fixing uac_reg_lookup() 0(13976) ERROR: <core> [route.c:1216]: fixing failed (code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:74
--------------------- regards, Ron Hopson