Re: [SR-Users] dlg.end_dlg on RTP timeout

2020-01-21 Thread Miteshkumar Thakkar
No, that is not the case. It is visiting K+RTPENGINE only once. Mitesh > On 22-Jan-2020, at 1:00 PM, Daniel-Constantin Mierla > wrote: > > Hello, > > is the call looped via rtpengine twice? Like > > UA1 K+RTPENGINE SIP Server - K+RTPENGINE UA2 > > Cheers, > Daniel > >

Re: [SR-Users] dlg.end_dlg on RTP timeout

2020-01-21 Thread Daniel-Constantin Mierla
Hello, is the call looped via rtpengine twice? Like UA1 K+RTPENGINE SIP Server - K+RTPENGINE UA2 Cheers, Daniel On 22.01.20 08:21, Miteshkumar Thakkar wrote: > Hi, > > Any thoughts on this? > > Mitesh > >> On 26-Dec-2019, at 1:36 PM, Miteshkumar Thakkar >>

Re: [SR-Users] dlg.end_dlg on RTP timeout

2020-01-21 Thread Miteshkumar Thakkar
Hi, Any thoughts on this? Mitesh > On 26-Dec-2019, at 1:36 PM, Miteshkumar Thakkar > wrote: > > This is really helpful development. > > I am facing one issue, when I use this. > RTPEngine is sending two "dlg.terminate_dlg" events for single call to > kamailio with same call-id but reversed

Re: [SR-Users] pipelimit: inexistent pipe error logs

2020-01-21 Thread Daniel-Constantin Mierla
Hello, what version of kamailio are you using and what http version is curl using? Can you paste here the http request taken with ngrep from the network? Cheers, Daniel On 21.01.20 19:00, Nuno Ferreira wrote: > Hi Daniel, > > There's no other traffic than the HTTP requests. > This comment in

Re: [SR-Users] Implicit branch creation and private variables questions

2020-01-21 Thread Alex Balashov
I would put these in an $xavp array and iterate through them in a failure_route. On Tue, Jan 21, 2020 at 11:09:51PM +0200, George Diamantopoulos wrote: > Hello all, > > I'm trying to accomplish the following scenario, and some questions have > been raised during testing: I'd like to be able to

[SR-Users] Implicit branch creation and private variables questions

2020-01-21 Thread George Diamantopoulos
Hello all, I'm trying to accomplish the following scenario, and some questions have been raised during testing: I'd like to be able to fork serially to a number of downstream destinations in case of failure, but also try several hosts which are available per destination network before failing

Re: [SR-Users] pipelimit: inexistent pipe error logs

2020-01-21 Thread Nuno Ferreira
Hi Daniel, There's no other traffic than the HTTP requests. This comment in src/core/parser/parse_fline.c 99 - 113, caugh my attention: } else if (http_reply_parse != 0 && (*tmp=='H' || *tmp=='h') && /* 'HTTP/1.' */ strncasecmp( tmp+1, HTTP_VERSION+1, HTTP_VERSION_LEN-1)==0 && /* [0|1] */

[SR-Users] Param.valueat not returning special chars

2020-01-21 Thread Duarte Rocha
Hello, I've run into a problem while using parameters parsing tools from Kamailio. When i request the value of a parameter it discards some characters like "" for example. Here is an example : $var(Parameters) = "kamailio=\"version5\";sip=hey"; xerr("String Parameter = $var(Parameters)");

Re: [SR-Users] Printing xavp

2020-01-21 Thread Julien Chavanton
Glad to see that pv_isset can be used, I will use this one more, it seems more consistent than some other alternatives ! On Tue, Jan 21, 2020 at 7:35 AM Ovidiu Sas wrote: > Here's something that works: > $xavp(x=>a) = "1"; > $xavp(x[0]=>b) = "2"; > $xavp(x=>a) = "10"; >

Re: [SR-Users] pipelimit: inexistent pipe error logs

2020-01-21 Thread Daniel-Constantin Mierla
Hello, as I said, watch the traffic on port 8000 with ngrep or some other network sniffer to see what data comes there. You can also start kamailio with debug=3 in config, more debug logs should be printed to syslog to get the context of what is processed at that time. Cheers, Daniel On

Re: [SR-Users] Printing xavp

2020-01-21 Thread Daniel-Constantin Mierla
Based on that function you can add a simplified one to print the format you like. Daniel On 21.01.20 16:08, Ovidiu Sas wrote: > This is to verbose and hard to read. > I was looking for something more configurable from the script. > > -ovidiu > > On Tue, Jan 21, 2020 at 7:34 AM Daniel-Constantin

Re: [SR-Users] pipelimit: inexistent pipe error logs

2020-01-21 Thread Nuno Ferreira
Hi Daniel, Thanks for your feedback. I have a dedicated listen directive for JSONRPC listen = 127.0.0.1:8000 and then an event_route for it: event_route[xhttp:request] { if ($Rp != 8000) { xhttp_reply("403", "Forbidden", "text/html", "Forbidden"); exit; } if ($hu =~

Re: [SR-Users] Printing xavp

2020-01-21 Thread Ovidiu Sas
Here's something that works: $xavp(x=>a) = "1"; $xavp(x[0]=>b) = "2"; $xavp(x=>a) = "10"; $xavp(x[0]=>b) = "20"; $xavp(x=>a) = "100"; $xavp(x[0]=>b) = "200"; $var(i) = 0; while (pv_isset("$xavp(x[$var(i)])")) { xlog("L_INFO", "[$mi] xavp_copy $var(i)\n");

Re: [SR-Users] Printing xavp

2020-01-21 Thread Ovidiu Sas
This is to verbose and hard to read. I was looking for something more configurable from the script. -ovidiu On Tue, Jan 21, 2020 at 7:34 AM Daniel-Constantin Mierla wrote: > > Hello, > > if you are looking to print the content to syslog for troubleshooting, > then there is pv_xapv_print(). > >

Re: [SR-Users] Get destination IP from forwarded invite

2020-01-21 Thread Sergiu Pojoga
Hi Cumhur, ruri.hostport won't return the de-facto IPv[4,6] address if the RURI contains a domain name, that's why ppl have suggested to use the *onsend_route*, as it's the only route where the IP is exposed after DNS resolver is performed following the t_relay() or forward(). Cheers. On Tue,

Re: [SR-Users] pipelimit: inexistent pipe error logs

2020-01-21 Thread Daniel-Constantin Mierla
Hello, can you want the traffic on port 8000 and see if there is no "unexpected" traffic there? There should be no error message for parsing the first line of an HTTP request. The error message related the missing pipe can be made debug. Cheers, Daniel On 21.01.20 15:34, Nuno Ferreira wrote: >

Re: [SR-Users] TLS Profiles : server_name and server_id query

2020-01-21 Thread Daniel-Constantin Mierla
Hello, looks like a bug in that matching conditions. I guess I used with same value for server id and server name, so the issue was not exposed. I will fix it soon. Cheers, Daniel On 21.01.20 13:54, mahesh b wrote: > Hi All, > > Am using kamailio 5.1.9 version > > From 

Re: [SR-Users] Get destination IP from forwarded invite

2020-01-21 Thread CUMHUR KARAHAN
Hi again, I used $sel(ruri.hostport) for Kamailio1 after t_relay in Relay route. So I managed to get the request-line URI's IP and port parameters of the outgoing INVITE that is leaving the first Kamailio box. Thank you very much. -Original Message- From: sr-users On Behalf Of CUMHUR

[SR-Users] TLS Profiles : server_name and server_id query

2020-01-21 Thread mahesh b
Hi All, Am using kamailio 5.1.9 version >From http://www.kamailio.org/docs/modules/5.1.x/modules/tls.html , i understand " The value for server_id can be any string, being used to match TLS client config profile, overriding the match on ip:port and server_name. " Which suggests that the

Re: [SR-Users] Printing xavp

2020-01-21 Thread Daniel-Constantin Mierla
Hello, if you are looking to print the content to syslog for troubleshooting, then there is pv_xapv_print(). Cheers, Daniel On 20.01.20 23:07, Ovidiu Sas wrote: > What's the best way to print the entire content of an xavp? > The xavp_params_implode() doesn't print the entire stack of an xavp, >

Re: [SR-Users] [EXT] Re: Kamailio 5.2.2 IMS -enum_query question

2020-01-21 Thread Woscek, Martin W.
Hi Henning, It turned out that I didn't know how an e.164 lookup is initiated particularly the required format of the calling number. Reading through the source code, the function call: is_e164() showed I was missing the leading + char. I also noticed that I missed the LM_ERR in my log files

Re: [SR-Users] Kamailio service error

2020-01-21 Thread Voip support
I think you need to capture w tcpdump on kamailio port and then check what packet is causing this. tcmdump -f "port 5060" -w file.pcap Then open file in wireshark and try figure out ( i think not valid sip packet coming on 5060 port). wt., 21 sty 2020 o 11:26 Mike from ApoloCore napisał(a): >

Re: [SR-Users] Possible bug in Presence module !?

2020-01-21 Thread Daniel-Constantin Mierla
Hello, are the notify requests for the same event? Can you paste here the subscriber and reply, along with the first two notify requests that have same version? Cheers, Daniel On 19.01.20 03:47, SamyGo wrote: > Hi,  > I'm experiencing a strange behavior with the Kamailio presence module. > I've

Re: [SR-Users] systemd - properly starting up rtpengine with kernel forwarding

2020-01-21 Thread Daniel-Constantin Mierla
On 17.01.20 15:50, Richard Fuchs wrote: > On 17/01/2020 09.01, Daniel-Constantin Mierla wrote: >> Hello, >> >> do people here have (implemented) special ways to properly start >> rtpengine with kernel forwarding after system reboot? > On our own systems, we have xt_RTPENGINE loaded through >