[SR-Users] How to get SIP parameter values
Daniel-Constantin Mierla
miconda at gmail.com
Tue Aug 19 17:37:56 CEST 2014
Hello,
can you try with:
$sel(authorization[_REALM_].username)
$sel(authorization[_REALM_].uri)
$sel(authorization[_REALM_].response)
You have to replace _REALM_ with the value of the realm you are using
for authentication. Also, if the header you look for is
Proxy-Puthorization, then replace 'authorization' with
'proxy_authorization'.
Let me know if works.
Cheers,
Daniel
On 19/08/14 17:20, Kamrul Khan wrote:
> Hi Daniel,
>
> Thanks for your reply. I need username, uri and response. We will also
> pass some custom headers with our SIP. I need a way to get that too.
>
> BR//Kamrul
>
> ------------------------------------------------------------------------
> Date: Tue, 19 Aug 2014 10:04:43 +0200
> From: miconda at gmail.com
> To: sr-users at lists.sip-router.org
> Subject: Re: [SR-Users] How to get SIP parameter values
>
> Do you want a specific attribute from Authorization header or the
> entire header?
>
> $au should return the authentication username. If the select you used
> doesn't work properly, open an issue on tracker not to forget about
> and we will look at it once we get a chance.
>
> Cheers,
> Daniel
>
> On 18/08/14 23:58, Kamrul Khan wrote:
>
> I want to send the authorization information that I received from
> my SIP devices to another server for authentication. How to get
> the values of Authorization header. I tried using hf_value and
> hf_value2 but for *@hf_value2.Authorization.username* I get
> "Digest" as output. Is there any other way of doing this?
>
>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> -http://www.linkedin.com/in/miconda
> Next Kamailio Advanced Trainings 2014 -http://www.asipto.com
> Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
>
> _______________________________________________ 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140819/bf5b9b93/attachment.html>
More information about the sr-users
mailing list