Hello Daniel, 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 http://sip-router.org/tracker/index.php?do=details&task_id=461 And what about the custom headers ?
BR//Kamrul Date: Tue, 19 Aug 2014 17:37:56 +0200 From: mico...@gmail.com To: do...@live.com; sr-users@lists.sip-router.org Subject: Re: [SR-Users] How to get SIP parameter values 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: mico...@gmail.com To: sr-users@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://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@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
_______________________________________________ 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