Not helping with this issue - but having another question: what is
$td.did? Is it a pseudo variable (as it starts with $)? Is it somehow
related/derived to/from $td or is the '.' just a character like a-z?
thanks
klaus
Juha Heinanen wrote:
domain module sets $td.did at lookup_domain call.
$td.did seems to be a
normal avp, because i can print its value with xlog by referring to it
as $avp(td.did). however, its value is gone at failure route, which
makes me suspect that $td.did is not really a normal avp.
in route block i have
$avp(did) = $td.did;
xlog("L_INFO", "at t_relay: <td/td.did> =
<$avp(did)/$avp(td.did)>\n");
if (t_relay()) exit;
branch route, onreply route, and failure route are set when the above
t_relay() takes place.
at the end of branch route block, i have
xlog("L_INFO", "at end of contact branches: <did/td.did> =
<$avp(did)/$avp(td.did)>\n");
and at the beginning of onreply route block:
xlog("L_INFO", "at beginning of onreply: <did/td.did> =
<$avp(did)/$avp(td.did)>\n");
and at the beginning of failure route block:
xlog("L_INFO", "at beginning of contact failure: <did/td.did =
<$avp(did)/$avp(td.did)>\n");
when i make a call, i get to syslog:
Apr 22 15:53:27 sip /usr/sbin/sip-proxy[13706]: INFO: at t_relay: <td/td.did> =
<test.fi/test.fi>
Apr 22 15:53:27 sip /usr/sbin/sip-proxy[13706]: INFO: at end of contact branches:
<did/td.did> = <test.fi/test.fi>
Apr 22 15:53:27 sip /usr/sbin/sip-proxy[13708]: INFO: at beginning of onreply:
<did/td.did> = <test.fi/<null>>
Apr 22 15:53:27 sip /usr/sbin/sip-proxy[13705]: INFO: at beginning of contact failure:
<did/td.did = <test.fi/<null>>
why is it that $avp(did) value has been preserved from route/branch
route block to onreply/failure blocks, but value of $avp(td.did) is not?
i'll cc to jan in case he is not on this list.
-- juha
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users