i am trying to connect to my kamailio through websocket. I added the below code in my config file: event_route[xhttp:request] { xlog("websocket connection request"); set_reply_close(); set_reply_no_connect(); if (ws_handle_handshake()) { exit; } xhttp_reply("404", "Not found", "", "");} However, when I try to connect from my web phone, It shows : Aug 15 15:22:31 ubuntu /usr/local/kamailio-devel//sbin/kamailio[17202]: WARNING: xhttp [xhttp_mod.c:133]: mod_init(): event_route[xhttp:request] is empty Can someone please tell me what wrong im doing ?
Hello,
can you check to be sure that event_route is not in a disable part of config by #!ifdef conditions?
Cheers, Daniel
On 16/08/14 02:33, Kamrul Khan wrote:
i am trying to connect to my kamailio through websocket. I added the below code in my config file:
event_route[xhttp:request] { xlog("websocket connection request"); set_reply_close(); set_reply_no_connect(); if (ws_handle_handshake()) { exit; } xhttp_reply("404", "Not found", "", ""); }
However, when I try to connect from my web phone, It shows :
Aug 15 15:22:31 ubuntu /usr/local/kamailio-devel//sbin/kamailio[17202]: WARNING: xhttp [xhttp_mod.c:133]: mod_init(): event_route[xhttp:request] is empty
Can someone please tell me what wrong im doing ?
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
Hey, thanks for your reply. Do I need additional #!define to enable event_route ? I didnt see any in my configuration. I didnt find anything like #!ifdef EVENT_ROUTE or anything slimier in my configuration aswell. Date: Mon, 18 Aug 2014 13:27:32 +0200 From: miconda@gmail.com To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] event_route xhttp:request
Hello,
can you check to be sure that event_route is not in a disable part of config by #!ifdef conditions?
Cheers,
Daniel
On 16/08/14 02:33, Kamrul Khan wrote:
i am trying to connect to my kamailio through websocket. I added the below code in my config file:
event_route[xhttp:request] { xlog("websocket connection request"); set_reply_close(); set_reply_no_connect();
if (ws_handle_handshake())
{ exit; }
xhttp_reply("404", "Not found", "", ""); }
However, when I try to connect from my web phone, It shows :
Aug 15 15:22:31 ubuntu /usr/local/kamailio-devel//sbin/kamailio[17202]: WARNING: xhttp [xhttp_mod.c:133]: mod_init(): event_route[xhttp:request] is empty
Can someone please tell me what wrong im doing ?
_______________________________________________ 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
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?
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?
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@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
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@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://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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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: miconda@gmail.com To: dodul@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: miconda@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
Hi, Found the issue. I needed to configure, tcp_accept_no_cl=yes. Working fine now. From: dodul@live.com To: miconda@gmail.com; sr-users@lists.sip-router.org Subject: RE: [SR-Users] event_route xhttp:request Date: Mon, 18 Aug 2014 21:38:18 +0600
Hey, thanks for your reply. Do I need additional #!define to enable event_route ? I didnt see any in my configuration. I didnt find anything like #!ifdef EVENT_ROUTE or anything slimier in my configuration aswell. Date: Mon, 18 Aug 2014 13:27:32 +0200 From: miconda@gmail.com To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] event_route xhttp:request
Hello,
can you check to be sure that event_route is not in a disable part of config by #!ifdef conditions?
Cheers,
Daniel
On 16/08/14 02:33, Kamrul Khan wrote:
i am trying to connect to my kamailio through websocket. I added the below code in my config file:
event_route[xhttp:request] { xlog("websocket connection request"); set_reply_close(); set_reply_no_connect();
if (ws_handle_handshake())
{ exit; }
xhttp_reply("404", "Not found", "", ""); }
However, when I try to connect from my web phone, It shows :
Aug 15 15:22:31 ubuntu /usr/local/kamailio-devel//sbin/kamailio[17202]: WARNING: xhttp [xhttp_mod.c:133]: mod_init(): event_route[xhttp:request] is empty
Can someone please tell me what wrong im doing ?
_______________________________________________ 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
On 18/08/14 17:38, Kamrul Khan wrote:
Hey, thanks for your reply. Do I need additional #!define to enable event_route ?
No special #!ifdef needed -- what I meant was to check that you didn't add the event_route inside an #!ifdef or #!else with undefined id.
Cheers, Daniel
I didnt see any in my configuration. I didnt find anything like #!ifdef EVENT_ROUTE or anything slimier in my configuration aswell.
Date: Mon, 18 Aug 2014 13:27:32 +0200 From: miconda@gmail.com To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] event_route xhttp:request
Hello,
can you check to be sure that event_route is not in a disable part of config by #!ifdef conditions?
Cheers, Daniel
On 16/08/14 02:33, Kamrul Khan wrote:
i am trying to connect to my kamailio through websocket. I added the below code in my config file: event_route[xhttp:request] { xlog("websocket connection request"); set_reply_close(); set_reply_no_connect(); if (ws_handle_handshake()) { exit; } xhttp_reply("404", "Not found", "", ""); } However, when I try to connect from my web phone, It shows : Aug 15 15:22:31 ubuntu /usr/local/kamailio-devel//sbin/kamailio[17202]: WARNING: xhttp [xhttp_mod.c:133]: mod_init(): event_route[xhttp:request] is empty Can someone please tell me what wrong im doing ? _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto: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://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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users