<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>When calling load_gws(), try putting $rU and $fu in double quotes, e.g. "$rU" rather than $rU bare.&nbsp;</div><div><br></div><div><br></div><div><br></div><div><br></div><div><div style="font-size:75%;color:#575757">-- Alex<br><br>--<br>Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. <br><br>Alex Balashov - Principal<br>Evariste Systems LLC<br>235 E Ponce de Leon Ave<br>Suite 106<br>Decatur, GA 30030<br>Tel: +1-678-954-0670<br>Web: http://www.evaristesys.com/</div></div> <br>Antanas Masevicius &lt;antanas.masevicius@ntt.lt&gt; wrote:<br>Hello,<br><br>having trouble running LCR in kamailio 3.3 (head).<br><br>Here is my DB excerpt which i use to reproduce the problem:<br>INSERT INTO `lcr_rule` VALUES (2617960,90,'118','.*',1,1,'.*');<br>INSERT INTO `lcr_rule_target` VALUES (7771454,90,2617960,1424,0,100);<br>INSERT INTO `lcr_gw` VALUES<br>(1424,90,'OP1','10.10.10.10','',5060,NULL,1,0,NULL,'11#',1,NULL,NULL);<br><br>I stripped all other LCR data from my DB and only this rule with<br>from_uri and request_uri&nbsp; seems to bother me.<br><br>Tried this version on debian lenny and debian squeeze. On Lenny i am not<br>able to load lcr tables at all, get a segfault.<br>On squeeze, lcr tables loads up, but this rule gets marked as disabled.<br>Here is config part which i use to load a rule:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (load_gws(90, $rU, $fu)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (next_gw()) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_failure("FAIL_GW");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(NO_ROUTE);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>On squeeze, if i add following code to lcr_mod.c:1249 :<br>&nbsp; LM_INFO("LOADING lcr rule &lt;%u&gt; \n", rule_id);<br>right after:<br>&nbsp; rule_id = (unsigned int)VAL_INT(ROW_VALUES(row));<br><br>rule_id is still printed, but i get segfault like this:<br><br>Jul 24 10:17:43 sp1 kernel: [23482626.105865] kamailio[15136]: segfault<br>at a4 ip 00007fde15cb8802 sp 00007fff39d68320 error 4 in<br>lcr.so[7fde15ca8000+23000]<br><br>Not sure what i do terribly wrong. Setting from_uri and request_uri to<br>anythig but NULL makes the code to segfault with that print line added.<br>Without print line, kamailio starts, but never loads that rule.<br><br>Any help would be appreciated.<br><br>best regards,<br><br>Antanas Masevicius<br>NTT<br><br><br>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>sr-users@lists.sip-router.org<br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></body>