<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello Daniel,<div><br></div><div>It worked. Thanks a lot. I forgot to mention i needed the nonce value aswell; but that one worked too. I added a new bug report in your tracker for hf_value and hf_value2</div><div><br></div><div><a href="http://sip-router.org/tracker/index.php?do=details&task_id=461" target="_blank">http://sip-router.org/tracker/index.php?do=details&task_id=461</a></div><div><br></div><div>And what about the custom headers ?<br><br><br>BR//Kamrul<br><div><hr id="stopSpelling">Date: Tue, 19 Aug 2014 17:37:56 +0200<br>From: miconda@gmail.com<br>To: dodul@live.com; sr-users@lists.sip-router.org<br>Subject: Re: [SR-Users] How to get SIP parameter values<br><br>
Hello,<br>
<br>
can you try with:<br>
<br>
$sel(authorization[_REALM_].username)<br>
$sel(authorization[_REALM_].uri)<br>
$sel(authorization[_REALM_].response)<br>
<br>
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'.<br>
<br>
Let me know if works.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="ecxmoz-cite-prefix">On 19/08/14 17:20, Kamrul Khan wrote:<br>
</div>
<blockquote cite="mid:BLU180-W24373B56389672EA96B732D5D50@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hi Daniel,
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>BR//Kamrul<br>
<br>
<div>
<hr id="ecxstopSpelling">Date: Tue, 19 Aug 2014 10:04:43 +0200<br>
From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
Subject: Re: [SR-Users] How to get SIP parameter values<br>
<br>
Do you want a specific attribute from Authorization header
or the entire header?<br>
<br>
$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.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="ecxmoz-cite-prefix">On 18/08/14 23:58, Kamrul
Khan wrote:<br>
</div>
<blockquote cite="mid:BLU180-W451508ADFB6411935663ED5D40@phx.gbl">
<div dir="ltr">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">
<div>
<div dir="ltr">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 <b>@hf_value2.Authorization.username</b>
I get "Digest" as output. Is there any other way
of doing this? </div>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla
<a class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA</pre>
<br>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></div>
</div>
</div>
</blockquote>
<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla
<a class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA</pre></div></div> </div></body>
</html>