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

2017-02-22 Thread vi...@advaitamtech.com

Hi All,
 
Am not using the authentication in the kamailio.
 
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. 
 
Please let me know if there is a way to fetch this header.
 
Thanks,
Vivek.___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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

2017-02-22 Thread vi...@advaitamtech.com

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" 
Sent: Wednesday, 22 February, 2017 7:16pm
To: "Kamailio (SER) - Users Mailing List" 
Subject: Re: [SR-Users] Fetching proxy-autheticate header from 407 Response



On Wed, Feb 22, 2017 at 07:04:32PM +0530, vi...@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@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Configuration to fetch SIP response body.

2017-03-16 Thread vi...@advaitamtech.com

Hi,
 
Is there any configuration to fetch SIP response body received?.
 
My requirement is to fetch the SIP response body and save it into database.
 
Thanks,
Vivek___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Configuration to fetch SIP response body.

2017-03-16 Thread vi...@advaitamtech.com

Yes. It worked.
 
Thank you.
 
-Original Message-
From: "Alex Balashov" 
Sent: Thursday, 16 March, 2017 8:32pm
To: "Kamailio (SER) - Users Mailing List" 
Subject: Re: [SR-Users] Configuration to fetch SIP response body.



Won't accessing $mb in an onreply_route work?

On Thu, Mar 16, 2017 at 08:25:48PM +0530, vi...@advaitamtech.com wrote:

> 
> Hi,
> 
> Is there any configuration to fetch SIP response body received?.
> 
> My requirement is to fetch the SIP response body and save it into database.
> 
> Thanks,
> Vivek

> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users