[SR-Users] is $td.did avp a normal avp?

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 26 10:49:13 CEST 2011


afaik, the list should be saved for tm lifetime. If you run with high 
debug level, do you see any message when the list is destroyed?

Cheers,
Daniel

On 4/22/11 3:00 PM, 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the sr-users mailing list