Hi Daniel,
Please find the code and corresponding error trace. This happens only for 1 subscriber randomly out of 2000 subscribers. This can be reproduced consistently also.
route(1)
{
:
:
:
#
-----------------------------------------------------------------
#
Registration handling dynamic endpoints
#
-----------------------------------------------------------------
$avp(reg_contact)= $ct;
$var(reg_contact)= $ct;
t_on_reply("3");
if(!is_avp_set("$avp(reg_contact)"))
xlog("L_ERR", "R1 - not set the reg_contact3 F=$fu T=$tu
Ct=$ct IP=$si CI=$ci var_contact:$var(reg_contact)\n");
# relay
if(!t_relay_to("0x3"))
{
xlog("L_ERR",
"R1/R10 - Registration failed - M=$rm F=$fu T=$tu CT=$ct IP=$si
CI=$ci\n");
append_to_reply("Warning: 399 $Ri - R1 - Registration
failed: fail in relay in R10.\r\n");
sl_reply_error();
exit;
}
if(!is_avp_set("$avp(reg_contact)"))
xlog("L_ERR", "R1 - not set the reg_contact4 F=$fu T=$tu
Ct=$ct IP=$si CI=$ci var_contact:$var(reg_contact)\n");
xlog("L_ERR", "R1 - Saving Registration-2 save to location F=$fu T=$tu Ct=$ct IP=$si CI=$ci reg_ct:$avp(reg_contact)\n");
if(!isflagset(28) &&
is_avp_set("$avp(reg_contact)")) # Check if we need to save it in location
table
{
if(!save("location","0x02"))
{
xlog("L_ERR",
"R1 - Location save for Registration failed - M=$rm F=$fu T=$tu IP=$si
CT=$ct\n");
}
}
LOGS for the error condtion.
2011-02-15T12:19:30-05:00 [err] sipserver: ERROR: <script>:
R1 - not set the reg_contact4 F=sip:5614510478@10.235.86.54:5060;transport=UDP
T=sip:5614510478@10.235.86.54:5060;transport=UDP
Ct=<sip:5614510478@10.235.204.5:5060> IP=10.235.204.5
CI=119ac328-4cceb0a-13c4-7fa55-76a2903a-7fa55
var_contact:<sip:5614510478@10.235.204.5:5060>
2011-02-15T12:19:30-05:00
[err] sipserver: ERROR: <script>: R1 - Saving Registration-2 save to
location F=sip:5614510478@10.235.86.54:5060;transport=UDP
T=sip:5614510478@10.235.86.54:5060;transport=UDP
Ct=<sip:5614510478@10.235.204.5:5060> IP=10.235.204.5
CI=119ac328-4cceb0a-13c4-7fa55-76a2903a-7fa55 reg_ct:<null>