On Wed, Feb 22, 2017 at 07:04:32PM +0530, vivek(a)advaitamtech.com wrote:
So I will be receiving the "407 Proxy
Authentication Required" response from the third party server for the first INVITE.
I want to fetch the Proxy-Authenticate header present in the 407 response.
I browsed and tried using the pseudo-variables "$adu/$aa/$ar". It dint work.
I think you are looking for T_rpl:
https://www.kamailio.org/wiki/cookbooks/4.4.x/pseudovariables#t_rpl_pv
So it might be something like
$T_rpl($adu)
or
$T_rpl($hdr(Proxy-Authorization))