Dear All,<br><br>I think i detected the bug, I've made a patch to fix it, and it's working in my Opensips 1.6.1, follows the patch file attached, please analyze if the patch is ok, and than commit in the SVN.<br><br>
Best Regards,<br><br clear="all">Antonio Anderson M. Souza<br>Voice Technology<br><a href="http://www.antonioams.com">http://www.antonioams.com</a><br>
<br><br><div class="gmail_quote">2009/12/28 Antonio Anderson M. de Souza <span dir="ltr"><<a href="mailto:antonioams@gmail.com">antonioams@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear All,<br><br>I've compiled the Opensips with debug (make mode=debug) and now instead of exiting it logs an ERROR message saying that there are no more pkg memory (see the log bellow [1]), I already increased the PKG memory in the config.h [2] to 8MB and recompiled it, and increased the shared memory to 256MB [3].<br>
<br>I think probably it's a bug in the uac_replace_to function because the replace from is working perfectly.<br><br>How can i go forward to investigate and fix this issue? Are there some other kind of logs that i can activate it?<br>
<br>[1]----------------------------------<br>Dec 28 16:48:46 localhost opensips[2224]: Route: destination is a ported number. INVITE ruri:[<a href="mailto:sip%3A060151175257543@192.168.191.169">sip:060151175257543@192.168.191.169</a>] from:[<a href="mailto:sip%3A1135880188@192.168.191.169">sip:1135880188@192.168.191.169</a>] to:[<a href="mailto:sip%3A1175257543@192.168.191.169">sip:1175257543@192.168.191.169</a>] sourceip:[192.168.191.85] callid:[oFApwsCQwnsJlrv3k5N7nXl6Do8GeYxI] <br>
<b>Dec 28 16:48:46 localhost opensips[2224]: ERROR:uac:replace_uri: no more pkg mem </b><br>Dec 28 16:48:46 localhost opensips[2224]: RouteRelay started: INVITE ruri:[<a href="http://sip:060151175257543@192.168.191.85:5080">sip:060151175257543@192.168.191.85:5080</a>] from:[<a href="mailto:sip%3A1135880188@192.168.191.169">sip:1135880188@192.168.191.169</a>] to:[<a href="mailto:sip%3A1175257543@192.168.191.169">sip:1175257543@192.168.191.169</a>] sourceip:[192.168.191.85] callid:[oFApwsCQwnsJlrv3k5N7nXl6Do8GeYxI] <br>
Dec 28 16:48:46 localhost opensips[2232]: OnReplyRoute: INVITE rs:[100] from:[<a href="mailto:sip%3A60151175257543@192.168.191.169">sip:60151175257543@192.168.191.169</a>] to:[<a href="mailto:sip%3A1175257543@192.168.191.169">sip:1175257543@192.168.191.169</a>] sourceip:[192.168.191.85] callid:[oFApwsCQwnsJlrv3k5N7nXl6Do8GeYxI] <br>
<br>[2]---------------------------------<br>define PKG_MEM_POOL_SIZE 8*1024*1024<br><br>[3]---------------------------------<br>
[root@localhost opensips]# opensips -m 256<br><br>Best regards,<br><br clear="all">Antonio Anderson M. Souza<br>Voice Technology<br><a href="http://www.antonioams.com">http://www.antonioams.com</a><br>
<br><br><div class="gmail_quote">2009/12/28 Antonio Anderson M. de Souza <span dir="ltr"><<a href="mailto:antonioams@gmail.com">antonioams@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear All,<br><br>I'm using the Opensips 1.6.1 on a CentOS 5.2, and Opensips is crashing when the script call the uac_replace_to function, follow the piece of script bellow [1], and the logs [2].<br><br>[1] ---------------------------------<br>
route[ROUTE] {
<br> xlog("L_INFO", "Route: $rm ruri:[$ru] from:[$fu] to:[$tu] sourceip:[$si] callid:[$ci]\n");
<br> <br> #check number portability
<br> if (alias_db_lookup("dbaliases", "d")) {
<br> xlog("L_INFO", "Route: destination is a ported number: $rm ruri:[$ru] from:[$fu] to:[$tu] sourceip:[$si] callid:[$ci]\n");<br> uac_replace_to("$ru");
<br> }<br><br>[2] ---------------------------------<br>Dec 28 13:34:02 localhost opensips[7004]: RouteAuthenticate: INVITE bypassed the auth. Using allow_trusted. INVITE ruri:[<a href="mailto:sip%3A1175257543@192.168.191.169" target="_blank">sip:1175257543@192.168.191.169</a>] from:[<a href="mailto:sip%3A1135880188@192.168.191.169" target="_blank">sip:1135880188@192.168.191.169</a>] to:[<a href="mailto:sip%3A1175257543@192.168.191.169" target="_blank">sip:1175257543@192.168.191.169</a>] sourceip:[192.168.191.85] callid:[Udf20i5wMLHHJB6e5RDMxmmyfs1eQzWC] <br>
Dec 28 13:34:02 localhost opensips[7004]: RouteRequests: INVITE ruri:[<a href="mailto:sip%3A1175257543@192.168.191.169" target="_blank">sip:1175257543@192.168.191.169</a>] from:[<a href="mailto:sip%3A1135880188@192.168.191.169" target="_blank">sip:1135880188@192.168.191.169</a>] to:[<a href="mailto:sip%3A1175257543@192.168.191.169" target="_blank">sip:1175257543@192.168.191.169</a>] sourceip:[192.168.191.85] callid:[Udf20i5wMLHHJB6e5RDMxmmyfs1eQzWC] <br>
Dec 28 13:34:02 localhost opensips[7004]: Route: INVITE ruri:[<a href="mailto:sip%3A1175257543@192.168.191.169" target="_blank">sip:1175257543@192.168.191.169</a>] from:[<a href="mailto:sip%3A1135880188@192.168.191.169" target="_blank">sip:1135880188@192.168.191.169</a>] to:[<a href="mailto:sip%3A1175257543@192.168.191.169" target="_blank">sip:1175257543@192.168.191.169</a>] sourceip:[192.168.191.85] callid:[Udf20i5wMLHHJB6e5RDMxmmyfs1eQzWC] <br>
Dec 28 13:34:02 localhost opensips[7004]: Route: destination is a ported number. INVITE ruri:[<a href="mailto:sip%3A060151175257543@192.168.191.169" target="_blank">sip:060151175257543@192.168.191.169</a>] from:[<a href="mailto:sip%3A1135880188@192.168.191.169" target="_blank">sip:1135880188@192.168.191.169</a>] to:[<a href="mailto:sip%3A1175257543@192.168.191.169" target="_blank">sip:1175257543@192.168.191.169</a>] sourceip:[192.168.191.85] callid:[Udf20i5wMLHHJB6e5RDMxmmyfs1eQzWC] <br>
Dec 28 13:34:03 localhost opensips[6992]: INFO:core:handle_sigs: child process 7004 exited by a signal 11 <br>Dec 28 13:34:03 localhost opensips[6992]: INFO:core:handle_sigs: core was generated <br>Dec 28 13:34:03 localhost opensips[6992]: INFO:core:handle_sigs: terminating due to SIGCHLD <br>
Dec 28 13:34:03 localhost opensips[7015]: INFO:core:sig_usr: signal 15 received <br>Dec 28 13:34:03 localhost opensips[7016]: INFO:core:sig_usr: signal 15 received <br>Dec 28 13:34:03 localhost opensips[7005]: INFO:core:sig_usr: signal 15 received <br>
Dec 28 13:34:03 localhost opensips[7014]: INFO:core:sig_usr: signal 15 received <br>Dec 28 13:34:03 localhost opensips[7002]: INFO:core:sig_usr: signal 15 received <br>Dec 28 13:34:03 localhost opensips[7010]: INFO:core:sig_usr: signal 15 received <br>
Dec 28 13:34:03 localhost opensips[7001]: INFO:core:sig_usr: signal 15 received <br>Dec 28 13:34:03 localhost opensips[7003]: INFO:core:sig_usr: signal 15 received <br>Dec 28 13:34:03 localhost opensips[7000]: INFO:core:sig_usr: signal 15 received <br>
Dec 28 13:34:03 localhost opensips[6998]: INFO:core:sig_usr: signal 15 received <br><br>Does anybody has some clue?<br><br>Best regards,<br><br clear="all">Antonio Anderson M. Souza<br>Voice Technology<br><a href="http://www.antonioams.com" target="_blank">http://www.antonioams.com</a><br>
</blockquote></div><br></blockquote></div><br>