Re: [SR-Users] Send JSON document over http and process response

2016-08-22 Thread Jonathan Hunter
Hey Colin, Perfect will try it out. Thanks very much. Jon Get Outlook for iOS On Mon, Aug 22, 2016 at 2:57 PM +0100, "Colin Morelli" wrote: Hey Jonathan, You can also use the Jansson module to create the JSON request. For example, in one of my configs, I have a route that looks basical

Re: [SR-Users] Howto timeout INVITEs over TCP to something < 30s?

2016-08-22 Thread Daniel Tryba
On Mon, Aug 22, 2016 at 12:30:18PM +0200, Daniel Tryba wrote: > > OK. I will have to look at the source code? > > > > Btw, did you try with longer timeout? Still the same? If you change the > > modparam for the timeout, is it used? These will help to narrow down of > > t_set_fr() has no effect here

Re: [SR-Users] Evapi module is not broadcasting any data

2016-08-22 Thread Efelin Novak
Hi Daniel, sorry for not being clear. I have all three evapi event routes in my config. When I telnet to port 8448, xlog shows that evapi:connection-new is exectued. When I send 6:efelin, to telnet, the evapi:message-received is executed. When I close the telnet session, the evapi:connection-clos

Re: [SR-Users] Send JSON document over http and process response

2016-08-22 Thread Colin Morelli
Hey Jonathan, You can also use the Jansson module to create the JSON request. For example, in one of my configs, I have a route that looks basically like: $var(params) = $null; jansson_set("string", "request.uri", "$ru", "$var(params)"); jansson_set("string", "request.method", "$rm", "$var(params

[SR-Users] Send JSON document over http and process response

2016-08-22 Thread Jonathan Hunter
Hi Guys, I need to send a JSON document over HTTP to a server, and then process the response, both in the kamailio configuration file. I assume I need to use Jansson module to extract contents of response? What is the best method for generating the initial request containing JSON ? Many thanks Jo

Re: [SR-Users] Howto timeout INVITEs over TCP to something < 30s?

2016-08-22 Thread Daniel Tryba
On Mon, Aug 22, 2016 at 09:27:25AM +0200, Daniel-Constantin Mierla wrote: > > Ringing timeout, the task is to forward the call to an other destination > > (or voicemail). > > > OK. I will have to look at the source code? > > Btw, did you try with longer timeout? Still the same? If you change the >

Re: [SR-Users] 4.4 topos ignoring Record-Route?

2016-08-22 Thread Daniel Tryba
On Mon, Aug 22, 2016 at 09:19:52AM +0200, Daniel-Constantin Mierla wrote: > can you try with git master branch? There were some fixes there which > were not ported yet (they will get into next 4.4.x release, which will > be sometime in the next 2 weeks). Just tried it, makes no difference. The pat

Re: [SR-Users] Evapi module is not broadcasting any data

2016-08-22 Thread Daniel-Constantin Mierla
On 22/08/16 09:31, Efelin Novak wrote: > [...] > > When I connect to evapi using telnet, I receive NO answer: > > root@PC:~$ telnet 192.168.30.29 8448 > Trying 192.168.30.29... > Connected to 192.168.30.29. > Escape character is '^]'. > > > However it reacts on my netstring messages and executes

Re: [SR-Users] Evapi module is not broadcasting any data

2016-08-22 Thread Efelin Novak
Hi Daniel, kamctl ps: root@cgrates:/usr/share/cgrates/tutorials/kamevapi/cgrates/etc/init.d# kamctl ps Process:: ID=0 PID=14529 Type=main process - attendant Process:: ID=1 PID=14530 Type=udp receiver child=0 sock=192.168.30.29:5060 Process:: ID=2 PID=14531 Type=udp receiver child=1 sock=192.1

Re: [SR-Users] Evapi module is not broadcasting any data

2016-08-22 Thread Daniel-Constantin Mierla
Hello, did you get the event_route[evapi:connection-new] executed when you opened the connection towards evapi? Cheers, Daniel On 22/08/16 09:26, Efelin Novak wrote: > Hi, > > thanks for a reply. Command "ngrep -d any -t -W byline port 8448" prints > > # > > when CGRateS and telnet connect

Re: [SR-Users] Howto timeout INVITEs over TCP to something < 30s?

2016-08-22 Thread Daniel-Constantin Mierla
On 19/08/16 13:07, Daniel Tryba wrote: > On Fri, Aug 19, 2016 at 09:37:15AM +0200, Daniel-Constantin Mierla wrote: >>> If an enduser INVITEted over TCP t_set_fr(t) with t < 30s have no >>> effect, the INVITE will always timeout after 30s. What is controlling >>> this 30s? The only default at 30s

Re: [SR-Users] Evapi module is not broadcasting any data

2016-08-22 Thread Daniel-Constantin Mierla
Hello, did you get the evapi message on your application or telnet connection? Can you give the output of: kamctl ps to see if the evapi processes are running? Cheers, Daniel On 19/08/16 18:45, Efelin Novak wrote: > Hi folks, > > I came into a problem with evapi module, while I was trying to

Re: [SR-Users] Evapi module is not broadcasting any data

2016-08-22 Thread Efelin Novak
Hi, thanks for a reply. Command "ngrep -d any -t -W byline port 8448" prints # when CGRateS and telnet connect (TCP handshakes) and stays quiet during the rest of the test. When I type something into telnet, I can see incoming packets: T 2016/08/22 09:18:21.115922 192.168.30.1:46378 -> 192.

Re: [SR-Users] 4.4 topos ignoring Record-Route?

2016-08-22 Thread Daniel-Constantin Mierla
Hello, can you try with git master branch? There were some fixes there which were not ported yet (they will get into next 4.4.x release, which will be sometime in the next 2 weeks). Cheers, Daniel On 19/08/16 12:11, Daniel Tryba wrote: > Looking into the topos module of 4.4.2 I see something un