Re: [SR-Users] xhttp module and IPv6

2015-02-20 Thread Sergey Okhapkin
Here is web browser's log: Request URL:ws://sip1.callwithus.com:5060/ Request Method:GET Status Code:101 Switching Protocols Request Headers Accept-Encoding:gzip, deflate, sdch Accept-Language:en-US,en;q=0.8 Cache-Control:no-cache Connection:Upgrade Host:sip1.callwithus.com:5060

Re: [SR-Users] xhttp module and IPv6

2015-02-20 Thread Daniel-Constantin Mierla
Do you have event route for local replies generated via sl module? The error log messages seems to come from a situation like that. If yes, then perhaps is good to restrict the event route to sip replies only, because the sip parser for http replies is not compatible always. Otherwise, the

Re: [SR-Users] xhttp module and IPv6

2015-02-20 Thread Sergey Okhapkin
Works but something is still wrong: Feb 20 15:19:32 east /usr/local/sbin/kamailio[31935]: INFO: script: HTTP Request Received Feb 20 15:19:32 east /usr/local/sbin/kamailio[31935]: ERROR: core [parser/parse_fline.c:257]: parse_first_line(): parse_fir st_line: bad message (offset: 22) Feb 20

[SR-Users] xhttp module and IPv6

2015-02-20 Thread Sergey Okhapkin
It looks like when http request comes from ipv6 address, the module inserts Via header without [] around the address: Feb 20 14:26:17 east /usr/local/sbin/kamailio[30965]: ERROR: core [parser/parse_via.c:2193]: parse_via(): ERROR:parse_via: bad port Feb 20 14:26:17 east

Re: [SR-Users] xhttp module and IPv6

2015-02-20 Thread Daniel-Constantin Mierla
Can you try with the small patch from the commit? https://github.com/kamailio/kamailio/commit/5c1a9df4fc8bd72f44066bcef13f381f01cd9d07 If ok, I will backport. Cheers, Daniel On 20/02/15 20:30, Sergey Okhapkin wrote: It looks like when http request comes from ipv6 address, the module

Re: [SR-Users] xhttp Module Version 4.1

2014-08-11 Thread Daniel-Constantin Mierla
: Fri, 8 Aug 2014 13:33:20 +0200 From: mico...@gmail.com To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] xhttp Module Version 4.1 Hello, yes, $rb is the way to get the body. If you have big bodies and you use it in other expressions, you may need to increase the value for pv_buffer_size

[SR-Users] xhttp Module Version 4.1

2014-08-08 Thread Jonathan Hunter
Hi All, I am using the xhttp module to receive and respond to HTTP requests to my kamailio instance, and I am trying to extract the body of the HTTP post sent into kamailio, so that I can store it in variables. Is this possible? I can send 200ok responses with content, this is working well, I

Re: [SR-Users] xhttp Module Version 4.1

2014-08-08 Thread Jonathan Hunter
Hi Guys, I am able to do this using $rb , is this the best method for this if I want to capture the details and manipulate or store accordingly into variables? Thanks Jon From: hunter...@hotmail.com To: sr-users@lists.sip-router.org Date: Fri, 8 Aug 2014 10:31:44 + Subject: [SR-Users] xhttp

Re: [SR-Users] xhttp Module Version 4.1

2014-08-08 Thread Daniel-Constantin Mierla
Subject: [SR-Users] xhttp Module Version 4.1 Hi All, I am using the xhttp module to receive and respond to HTTP requests to my kamailio instance, and I am trying to extract the body of the HTTP post sent into kamailio, so that I can store it in variables. Is this possible? I can send 200ok

Re: [SR-Users] xhttp Module Version 4.1

2014-08-08 Thread Jonathan Hunter
To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] xhttp Module Version 4.1 Hello, yes, $rb is the way to get the body. If you have big bodies and you use it in other expressions, you may need to increase the value for pv_buffer_size global parameter

[SR-Users] xHTTP module.

2011-05-20 Thread David J.
I was wondering if I can make an HTTP request to Kamailio; and then have kamailio do a lookup based on passed parameters to connect callers. I am trying to make a click-to-dial type application; I was looking at the HTTP server inside kamailio; It was interesting to me to try to use this as an

Re: [SR-Users] xHTTP module.

2011-05-20 Thread Daniel-Constantin Mierla
Hello, On 5/20/11 3:25 PM, David J. wrote: I was wondering if I can make an HTTP request to Kamailio; and then have kamailio do a lookup based on passed parameters to connect callers. I am trying to make a click-to-dial type application; I was looking at the HTTP server inside kamailio; It

Re: [SR-Users] xHTTP module.

2011-05-20 Thread David J.
Thanks Daniel; What creates the Initial Dialog and REFER method Just calling dlg_bridge(sip:m...@myproxy.com, sip:y...@yourproxy.com, sip:myproxy.com:5080); When I get an HTTP event; On 5/20/11 9:32 AM, Daniel-Constantin Mierla wrote: Hello, On 5/20/11 3:25 PM, David J. wrote:

Re: [SR-Users] xHTTP module.

2011-05-20 Thread Daniel-Constantin Mierla
On 5/20/11 3:44 PM, David J. wrote: Thanks Daniel; What creates the Initial Dialog and REFER method Just calling dlg_bridge(sip:m...@myproxy.com, sip:y...@yourproxy.com, sip:myproxy.com:5080); When I get an HTTP event; not sure you ask something or not, but if you don't know where to

Re: [SR-Users] xHTTP module.

2011-05-20 Thread David J.
Daniel; Sorry for not being clear; I understand the HTTP stuff; I was asking if it is a simple as just calling the dialog bridge method within the HTTP event route. for example; event_route[xhttp:request] { dlg_bridge(sip:m...@myproxy.com, sip:y...@yourproxy.com, sip:myproxy.com:5080);