[SR-Users] Fetching proxy-autheticate header from 407 Response

vivek at advaitamtech.com vivek at advaitamtech.com
Thu Feb 23 08:24:17 CET 2017


It dint solve my problem. Am not able to get the proxy authenticate header values using the module you mentioned too.
Does this allow to fetch the SIP header individually?
 
Thanks,
Vivek
 
-----Original Message-----
From: "Daniel Tryba" <d.tryba at pocos.nl>
Sent: Wednesday, 22 February, 2017 7:16pm
To: "Kamailio (SER) - Users Mailing List" <sr-users at lists.sip-router.org>
Subject: Re: [SR-Users] Fetching proxy-autheticate header from 407 Response



On Wed, Feb 22, 2017 at 07:04:32PM +0530, vivek at 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))


_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170223/5b5790b6/attachment.html>


More information about the sr-users mailing list