Re: [SR-Users] Kamailio sending HTTP request to another app

2013-12-09 Thread Victor Torre Antunez
For the record, I used app_python and httplib to get timeout value in milliseconds (http_query modules only supports seconds) and works fine. Thanks to all people ! 2013/11/19 Klaus Darilion > > > On 18.11.2013 15:45, Alex Balashov wrote: > >> >> http://kamailio.org/docs/modules/4.1.x/modules/

Re: [SR-Users] Kamailio sending HTTP request to another app

2013-11-19 Thread Klaus Darilion
On 18.11.2013 15:45, Alex Balashov wrote: http://kamailio.org/docs/modules/4.1.x/modules/tmx.html#idp15326008 Does it only suspend the transaction, but not the script processing? Is there somewhere a more complete example how to do some async stuff meanwhile and then resume the transaction

Re: [SR-Users] Kamailio sending HTTP request to another app

2013-11-18 Thread Olle E. Johansson
On 18 Nov 2013, at 15:45, Alex Balashov wrote: > Hi Victor, > > Pretty much all HTTP calls, no matter how you architect them, block Kamailio > SIP worker threads. There is a low practical limit to the number of of SIP > worker threads you can have, so this can lead to SIP messages being drop

Re: [SR-Users] Kamailio sending HTTP request to another app

2013-11-18 Thread Konstantin M.
Hello, 2013/11/18 Victor Torre Antunez > Hi all, > > I´m using EXEC Module to execute a HTTP request via curl, to comunicate > with another app like this: > > exec_avp("curl --connect-timeout 1 --max-time 2 > http://IP_ADDR:PORT/PATH/'$fU'/'$tU'/'$hdr(Call-ID)'", > "$avp(s:output)"); > >

Re: [SR-Users] Kamailio sending HTTP request to another app

2013-11-18 Thread Victor Torre Antunez
Hi Alex, I don't mind blocks SIP execution script, but I need to block only certain seconds. I´m going to test http_query() function and let you know. Thanks for the aclaration ! 2013/11/18 Alex Balashov > Hi Victor, > > Pretty much all HTTP calls, no matter how you architect them, block > Ka

Re: [SR-Users] Kamailio sending HTTP request to another app

2013-11-18 Thread Alex Balashov
Hi Victor, Pretty much all HTTP calls, no matter how you architect them, block Kamailio SIP worker threads. There is a low practical limit to the number of of SIP worker threads you can have, so this can lead to SIP messages being dropped and sluggish response time very quickly. The exec_av

[SR-Users] Kamailio sending HTTP request to another app

2013-11-18 Thread Victor Torre Antunez
Hi all, I´m using EXEC Module to execute a HTTP request via curl, to comunicate with another app like this: exec_avp("curl --connect-timeout 1 --max-time 2 http://IP_ADDR:PORT/PATH/'$fU'/'$tU'/'$hdr(Call-ID)'", "$avp(s:output)"); Sometimes Kamailio blocks when HTTP server does not response i