<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Courier New, Courier, monospace">Hi
folks, <br>
<br>
I am trying to recreate a serialforking scenario which I am
receiving<br>
the following problems with. <br>
As far as I know(?), the config is just the same as last week
when I <br>
used the same config and everything worked. <br>
Unfortunately I dont have the old config so I cant compare, but
the changes<br>
are so small that I cant figure out the differences.<br>
<br>
I am running the latest opensips 1.6.3 from svn. <br>
But I've tried a few other 1.6.3 versions with the same results.
<br>
<br>
Heres part of the script:<br>
</font></font><font size="-1"><font face="Courier New, Courier,
monospace">-------------------</font></font><br>
<font size="-1"><font face="Courier New, Courier, monospace">
lookup("location", "m");<br>
switch ($retcode)<br>
{<br>
case 1:<br>
log(2, "(lab2) - Contact found in location
server, rerouting.\n");<br>
if (!load_contacts())<br>
{<br>
log(1, "(lab2) - Unable to load contacts
for serial forking\n");<br>
t_reply("500", "Server Internal Error
(Serial fork)");<br>
exit;<br>
}<br>
if ( !next_contacts() )<br>
{<br>
t_reply("509", "Serial fork error");<br>
exit;<br>
}<br>
return(1);<br>
</font></font><font size="-1"><font face="Courier New, Courier,
monospace">-------------------</font></font><br>
<font size="-1"><font face="Courier New, Courier, monospace">But the
next_contacts() fails for some reason, and the error-printouts
in the log, doesnt tell <br>
me enough to know where to continue.<br>
<br>
Heres the debug printout:<br>
----------------------------<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:db_mysql:db_mysql_val2bind: added val (1): len=8; type=254;
is_null=0<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:db_mysql:db_mysql_do_prepared_query: doing BIND_PARAM in...<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:db_mysql:db_mysql_do_prepared_query: prepared statement has
1 columns in result<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:db_new_result: allocate 28 bytes for result set at
0x81cfc24<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:db_mysql:db_mysql_get_columns: 1 columns returned from the
query<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:db_allocate_columns: allocate 16 bytes for result
columns at 0x81cc42c<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:db_mysql:db_mysql_get_columns:
RES_NAMES(0x81cc430)[0]=[username]<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:db_mysql:db_mysql_get_columns: use DB_STRING result type<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:db_allocate_rows: allocate 28 bytes for result rows and
values at 0x81cfc50<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:db_mysql:db_mysql_str2val: converting STRING [jane]<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:uri:does_uri_exist: User in request uri does exist<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:db_free_columns: freeing result columns at 0x81cc42c<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:db_free_rows: freeing 1 rows<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:db_free_row: freeing row values at 0x81cfc58<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:db_free_rows: freeing rows at 0x81cfc50<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:db_free_result: freeing result set at 0x81cfc24<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]: (lab2) - Its a
valid local user<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:comp_scriptvar: int 20 : 0 / 0<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]: (lab2) -
Stateful LS lookup()<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:registrar:lookup: setting as ruri <a
class="moz-txt-link-rfc2396E" href="sip:jane@10.10.2.33:5060"><sip:jane@10.10.2.33:5060></a><br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:registrar:lookup: looking for branches<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:registrar:lookup: setting branch <a
class="moz-txt-link-rfc2396E" href="sip:jane@10.10.1.24:5061"><sip:jane@10.10.1.24:5061></a><br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]: (lab2) -
Contact found in location server, rerouting.<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:lcr:socket2str: <udp::><br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:lcr:load_contacts: Loaded contact <a
class="moz-txt-link-rfc2396E"
href="sip:jane@10.10.1.24:5061%A0%A0udp::0"><sip:jane@10.10.1.24:5061
udp:: 0 ></a> with q_flag <0><br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:lcr:socket2str: <udp::><br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:lcr:load_contacts: Loaded contact <a
class="moz-txt-link-rfc2396E"
href="sip:jane@10.10.2.33:5060%A0%A0udp::0"><sip:jane@10.10.2.33:5060
udp:: 0 ></a> with q_flag <4><br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:lcr:next_contacts: Next contact is <a
class="moz-txt-link-rfc2396E"
href="sip:jane@10.10.2.33:5060%A0%A0udp::0"><sip:jane@10.10.2.33:5060
udp:: 0 ></a><br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]: ERROR:</font></font><font
size="-1"><font face="Courier New, Courier, monospace">lcr:parse_phostport:
too many colons in udp:: 0</font></font><br>
<font size="-1"><font face="Courier New, Courier, monospace">Sep 28
16:12:21 sip-laptop2 opensips_lab2[2118]:
ERROR:lcr:decode_branch_info: Parsing of socket info
<udp::> failed<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
ERROR:lcr:next_contacts: Decoding of branch info <a
class="moz-txt-link-rfc2396E"
href="sip:jane@10.10.2.33:5060%A0%A0udp::0"><sip:jane@10.10.2.33:5060
udp:: 0 ></a> failed<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:parse_headers: flags=ffffffffffffffff<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:check_ip_address: params 10.10.10.11, sip.core.net, 0<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:core:_shm_resize: resize(0) called<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:tm:cleanup_uac_timers: RETR/FR timers reset<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:tm:set_timer: relative timeout is 500000<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:tm:insert_timer_unsafe: [4]: 0xb5b6345c (159600000)<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:tm:set_timer: relative timeout is 32<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:tm:insert_timer_unsafe: [0]: 0xb5b63478 (191)<br>
Sep 28 16:12:21 sip-laptop2 opensips_lab2[2118]:
DBG:tm:_reply_light: reply sent out. buf=0x81cff60: SIP/2.0
5..., shmem=0xb5b61374:<br>
-------------------------<br>
<br>
Many thanks for any help/tips you can give, I'm kind of lost...<br>
<br>
Regards<br>
Taisto Qvist<br>
<br>
</font></font>
</body>
</html>