On 08/13/2016 04:30 PM, jaflong jaflong wrote:
On an 302 message caught in failure_route Is it possible to get to access $hdr(xxx) of the 302. When I do this $hdr(xxx) it is null.
Yes; you will need to use $T_rpl($hdr(...)), e.g. $T_rpl($ct):
http://www.kamailio.org/wiki/cookbooks/4.4.x/pseudovariables#t_rpl_pv
Remember that a failure_route is a transaction failure event unrelated to any particular SIP reply per se, and may be triggered by things other than negative failure replies, such as timeouts. So, it's necessary to do some gymnastics to say that you want to access attributes of the negative reply on the winning branch.
-- Alex