[SR-Users] sip response not handled by kamailio

2014-10-24 Thread Marko Seidenglanz
Hello, We are trying to use Kamailio 4.2 with RTPEngine 3.3 behind NAT. Somehow SIP responses (200 OK) are not handled by Kamailio. The following INVITE is send to the receiving end (WebRTC Client): INVITE sip:evqzk4l62mdf3g7u6e...@whtest3.24dial.com SIP/2.0 Record-Route: Via: SIP/2.0/UDP 10

Re: [SR-Users] Problem initiating a call with dlg_bridge

2014-10-24 Thread Paul Smith
Thank you for the reply Daniel. I have enabled debug=3 and put in a few more xlog lines. I can see the REFER coming in on local interface 127.0.0.1. I am now trying to narrow down the issue in the kamailio.cfg. My conclusions so far are: 1) The REFER packet has a problem which causes it to fa

[SR-Users] Crash after async_sleep().

2014-10-24 Thread Vitaliy Aleksandrov
Hello list. root@proxy:/# kamcmd core.version kamailio 4.1.4 (i386/linux) I'm getting a crash when I'm trying to simulate a ringing UAS from kamailio config. To achieve this I've added the next config actions: if (is_method("INVITE") && !has_totag() && $rU =~ "^999") { sl_send_reply("100

Re: [SR-Users] Problem initiating a call with dlg_bridge

2014-10-24 Thread Paul Smith
I added a log line to the top of kamailio.cfg request_route block to grab the message buffer of the REFER. I also put a condition around the sanity_check to skip it for method=REFER … I got the following output for $mb at the start of request_route for the REFER packet (I have substituted MYP

Re: [SR-Users] RPC uac.reg_info hangs second time

2014-10-24 Thread Dan Christian Bogos
Hey Daniel, Thanks for your fast reply! I am using the 4.2.0 out of debian packages (not nightly). Will shift on nightly and retest. Not a big deal regarding 150 seconds, maybe it should be a good reason for async reloads (reply with the delay number of seconds when reload will happen). Rel

Re: [SR-Users] sip response not handled by kamailio

2014-10-24 Thread Camille Oudot
Le Fri, 24 Oct 2014 10:51:57 +0200, Marko Seidenglanz a écrit : > I have a xlog call as the first statement in kamailio routing script. > I can see the request, which get's handled correctly but the response > does not appear in kamailio log, though it arrives at the machine. Hi Marko, the SIP

Re: [SR-Users] Kamailio Infront of Asterisk with remote PBX

2014-10-24 Thread Daniel Tryba
On Thursday 23 October 2014 19:16:58 Kenny Watson wrote: > What I need to figure out is how to on kamailo maybe using a dial prefix > specify that the call is going to a remote extension on a "user" and > rewrite the to header to be extension@useripaddress rather than > user@useripaddress. I think

Re: [SR-Users] Problem initiating a call with dlg_bridge

2014-10-24 Thread Daniel-Constantin Mierla
I don't recall any change to this part for 4.2 and I am using dlg_bridge with 4.1 (no time to upgrade that box yet) -- but apparently there is a bug building the REFER. There were few changes on how From/To are built locally, but they are ok. I am traveling at Astricon, but with first occasion I w

Re: [SR-Users] Crash after async_sleep().

2014-10-24 Thread Daniel-Constantin Mierla
Hello, async_sleep() has some limitations internally (I think there are some notes about in readme), as the next actions are executed in a different process, thus the context is not the same as before the function. It should not crash, so I look over it. Can you try async_route() instead? Just mo

Re: [SR-Users] async workers causing unexplained high load average

2014-10-24 Thread Daniel-Constantin Mierla
Can you attach with gdb to one of the async processes and see with the backtrace command what is the process doing at that time? Cheers, Daniel On 24/10/14 05:30, Alex Balashov wrote: > I just tested the same thing on a Rackspace VPS (Xen I think) and am > seeing the same climbing load average wi

Re: [SR-Users] async workers

2014-10-24 Thread Daniel-Constantin Mierla
Hello, On 23/10/14 03:36, Alex Balashov wrote: > Hi, > > What is the practical limit to the number of async worker processes? > > With SIP child processes, it seems to be about the number of available > CPUs in /proc/cpuinfo. After that--at least, per my testing--one > begins to hit the point of d

Re: [SR-Users] async workers

2014-10-24 Thread Alex Balashov
On 10/24/2014 09:07 AM, Daniel-Constantin Mierla wrote: Hello, On 23/10/14 03:36, Alex Balashov wrote: Hi, What is the practical limit to the number of async worker processes? With SIP child processes, it seems to be about the number of available CPUs in /proc/cpuinfo. After that--at least, p

Re: [SR-Users] async workers

2014-10-24 Thread Daniel-Constantin Mierla
On 23/10/14 04:03, Alex Balashov wrote: > Also, what is the point of core async_workers setting versus the > 'workers' modparam to async? Are they supposed to equal each other? > Does one override the other? async_workers from core are common for all modules, being a decision not to have each mod

Re: [SR-Users] Converting JSON string to normal string

2014-10-24 Thread Daniel-Constantin Mierla
Hello, no transformation to "unquote", at this time probably chaining s.strip and s.striptail would be an option. Adding transformations to "quote" and "unquote" can be useful indeed if json operation returns the full value. Cheers, Daniel On 23/10/14 21:02, Muhammad Shahzad wrote: > Hi, > > Us

Re: [SR-Users] sip response not handled by kamailio

2014-10-24 Thread Marko Seidenglanz
Hello Camille, thank you for your fast response. I have defined a reply route: onreply_route[REPLY_FROM_WEBRTC] { xlog("L_DEBUG", "<<< SIP WEBRTC_REPLY: $si:$sp --> $du "); xlog("L_DEBUG", "WEBRTC

Re: [SR-Users] async workers

2014-10-24 Thread Frank Carmickle
On Oct 24, 2014, at 9:15 AM, Daniel-Constantin Mierla wrote: > > On 23/10/14 04:03, Alex Balashov wrote: >> Also, what is the point of core async_workers setting versus the >> 'workers' modparam to async? Are they supposed to equal each other? >> Does one override the other? > > async_workers

Re: [SR-Users] async workers

2014-10-24 Thread Alex Balashov
Thanks, Daniel. So, does this mean that the module "reserves" a "workers" number of common async_workers for its exclusive use? Or do those async_workers just receive whatever they are sent from any number of modules? In that case, what exactly is the role of the "workers" parameter? To limit th

Re: [SR-Users] async workers

2014-10-24 Thread Vitaliy Aleksandrov
Hi, What is the practical limit to the number of async worker processes? With SIP child processes, it seems to be about the number of available CPUs in /proc/cpuinfo. After that--at least, per my testing--one begins to hit the point of diminishing returns, presumably due to SHM IPC and synchro

Re: [SR-Users] async workers

2014-10-24 Thread Alex Balashov
Vitaliy, The argument against more workers holds that the specific interprocess communication used by them causes one to reach the point of diminishing returns rather quickly, due to contention and locking. In many applications, one can create dozens of hundreds of workers in such a situation,

Re: [SR-Users] Kamailio Infront of Asterisk with remote PBX

2014-10-24 Thread Kenny Watson
Hi Daniel, thanks for this, it looks like exactly what I'm looking for. I've been moved onto another project for the next week but will try this as soon as I can. Thanks Kenny Watson -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-rou

Re: [SR-Users] RPM Based installs...

2014-10-24 Thread Ovidiu Sas
Maybe it has to do with the old dependency on libconfuse. The dependency is no longer required since 4.1 and all release bigger then 4.1 should provide the rpm. Right now, the rpm is available for Fedora: http://download.opensuse.org/repositories/home:/kamailio:/v4.2.x-rpms/Fedora_20/x86_64/kamail

Re: [SR-Users] sip response not handled by kamailio

2014-10-24 Thread Marko Seidenglanz
Hello, The problem of kamailio not receiving the packet's is that packet size of 200 response seems to be too large. I removed the SDP from response and it arrives. Anyone had a similar problem and knows how it might get solved (accept switching to TCP) Kind regards, Marko 2014-10-24 10:51 GMT+

Re: [SR-Users] dispatcher behind NAT - lost ACK

2014-10-24 Thread Ovidiu Sas
The issue here is that your carrier is detecting you as a NATed client and this breaks your ACK routing. I overloaded the meaning of interfaces. Two sockets (same IP, different ports) works fine in a multihomed setting. One socket for internal traffic and one socket (with external advertised IP)

[SR-Users] Kamailio, authentication and MongoDB

2014-10-24 Thread Nolan Darilek
Hello. I'm attempting to set up Kamailio for the first time and have a few questions. 1. The auth_db module specifically calls out MySQL, Postgres and flat file databases, but makes no mention of the new MongoDB module. Is the new MongoDB module supported as well and the docs just haven't been upd

Re: [SR-Users] Kamailio, authentication and MongoDB

2014-10-24 Thread Nolan Darilek
On 10/24/2014 10:43 AM, Nolan Darilek wrote: > 2. In looking at the auth_db parameters, I see values for column names, > but nothing for a table/collection. How do I specify what table or > collection my user data is in? > Ah, found this one, it was in the authenticate functions. Sorry, I expected

Re: [SR-Users] async workers causing unexplained high load average

2014-10-24 Thread Alex Balashov
Hi Daniel, On 10/24/2014 09:03 AM, Daniel-Constantin Mierla wrote: Can you attach with gdb to one of the async processes and see with the backtrace command what is the process doing at that time? Sometimes I can do this: (gdb) where #0 0x7f4c17007673 in __recvfrom_nocancel () from /lib6

[SR-Users] Dealing with High PDD

2014-10-24 Thread Ryan Brindley
Hey Community, I've tried to google and view the docs for Kamailio about fr_inv_timer (and other timers), but I don't think they do what I'm wanting. Basically, I want to cancel an INVITE request and progress to the next contact if the current contact has not send a non-100 provisional code or fi

Re: [SR-Users] Dealing with High PDD

2014-10-24 Thread Alex Balashov
On 10/24/2014 12:17 PM, Ryan Brindley wrote: Am I missing some obvious setting that I overlooked in my searches or do I have to approach this 'manually' (aka, not just a setting)? Correct; there is no TM timer that deals with this scenario. Your best bet is to set the fr_inv_timer to somethin

Re: [SR-Users] Dealing with High PDD

2014-10-24 Thread Ryan Brindley
Alex -- oh, awesome. thanks for the help. I had read you could reset the timer via a setting, but for some reason didn't even think to look for a function that does it manually. Thanks again for the help! Ryan Brindley Software Development Officer Stratics Networks, Inc. 1.866.635.6918 x108 On F

[SR-Users] Kamailio + RTPEngine behind NAT (STUN Handling)

2014-10-24 Thread Marko Seidenglanz
Hello, We want to use Kamailio (4.2) + RTPEngine (3.3) behind NAT. Unfortunately the STUN Messages (Binding Requests) sent from remote peer (Google Chrome ) do not arrive at RTPEngine host. I think they get blocked by the firewall. RTPEngine itself does not send any STUN Messages until it get's t

Re: [SR-Users] async workers causing unexplained high load average

2014-10-24 Thread Alex Balashov
But most of the time, I do get this from both processes: (gdb) where #0 0x7fb699e07673 in __recvfrom_nocancel () from /lib64/libc.so.6 #1 0x0042c10c in async_task_run (idx=2) at async_task.c:201 #2 0x0042b449 in async_task_child_init (rank=0) at async_task.c:144 #3 0x0

[SR-Users] How do I configure this thing?

2014-10-24 Thread Nolan Darilek
OK, sorry for the basic question, but I'm overwhelmed. My install gives me a kamailio-basic.cfg, kamailio.cfg and kamailio-oob.cfg. Is there any explanation as to the difference between these? I assume "basic" is a simpler config, but I don't know what it lacks vs. kamailio.cfg, and I have no idea

Re: [SR-Users] How do I configure this thing?

2014-10-24 Thread Alex Balashov
On 10/24/2014 12:53 PM, Nolan Darilek wrote: OK, sorry for the basic question, but I'm overwhelmed. My install gives me a kamailio-basic.cfg, kamailio.cfg and kamailio-oob.cfg. Is there any explanation as to the difference between these? I assume "basic" is a simpler config, but I don't know wha

Re: [SR-Users] async workers causing unexplained high load average

2014-10-24 Thread Alex Balashov
I also find this in 'dmesg' about the async workers periodically: INFO: task kamailio:4480 blocked for more than 120 seconds. Not tainted 2.6.32-431.29.2.el6.x86_64 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kamailio D 0001 0 4480 44

Re: [SR-Users] How do I configure this thing?

2014-10-24 Thread Nolan Darilek
On 10/24/2014 11:59 AM, Alex Balashov wrote: > > At the moment, the only real answer, besides commercial training, is > the upcoming Kamailio Admin book put out by ASIPTO. But, of course, > strides are being made to improve the documentation and make it more > accessible to a wider audience, espec

Re: [SR-Users] How do I configure this thing?

2014-10-24 Thread Alex Balashov
On 10/24/2014 01:21 PM, Nolan Darilek wrote: Cool, I don't object to paying for a book, especially if it's available electronically. Is there a rough cut or some other preview out? I believe so, but I do believe it is quite a rough cut: http://www.asipto.com/index.php/kamailio-admin-book/ -

Re: [SR-Users] How do I configure this thing?

2014-10-24 Thread Mahmoud Ramadan Ali
When the book will be available...? i'm waiting for it... On Fri, Oct 24, 2014 at 10:23 AM, Alex Balashov wrote: > On 10/24/2014 01:21 PM, Nolan Darilek wrote: > > Cool, I don't object to paying for a book, especially if it's available >> electronically. Is there a rough cut or some other previ

Re: [SR-Users] How do I configure this thing?

2014-10-24 Thread Alex Balashov
On 10/24/2014 01:36 PM, Mahmoud Ramadan Ali wrote: When the book will be available...? i'm waiting for it... I'm afraid only Daniel would have the answer to that question. :-) -- Alex Balashov - Principal Evariste Systems LLC Tel: +1-678-954-0670 Web: http://www.evaristesys.com/, http://www.a

Re: [SR-Users] Kamailio + RTPEngine behind NAT (STUN Handling)

2014-10-24 Thread Richard Fuchs
On 10/24/14 12:34, Marko Seidenglanz wrote: > Hello, > > We want to use Kamailio (4.2) + RTPEngine (3.3) behind NAT. > Unfortunately the STUN Messages (Binding Requests) sent from remote peer > (Google Chrome ) do not arrive at RTPEngine host. > > I think they get blocked by the firewall. RTPEngi

Re: [SR-Users] How do I configure this thing?

2014-10-24 Thread Mahmoud Ramadan Ali
and i'm afraid Daniel him self does not know when to publish his book :D On Fri, Oct 24, 2014 at 10:37 AM, Alex Balashov wrote: > On 10/24/2014 01:36 PM, Mahmoud Ramadan Ali wrote: > > When the book will be available...? i'm waiting for it... >> > > I'm afraid only Daniel would have the answer

[SR-Users] Setting up web sockets and ephemeral auth

2014-10-24 Thread Nolan Darilek
Having a hard time piecing together lots of pieces out of context. Here's what I want: 1. User logs in to my web app via its own authentication mechanisms. 2. Via an authenticated REST endpoint, my web app connects to the ephemeral auth service and returns a temporary username/password to the clie

[SR-Users] Failed to install Kamailio database

2014-10-24 Thread Mahmoud Ramadan Ali
Hiii everyone, I can not create kamailio database and get this error message... any ideas ? Thanks in advance... ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-b

Re: [SR-Users] Failed to install Kamailio database

2014-10-24 Thread Fred Posner
Do you have mysql installed? Fred Posner The Palner Group, Inc. http://www.palner.com (web) +1-503-914-0999 (direct) +1-954-472-2896 (fax) On 10/24/2014 08:52 PM, Mahmoud Ramadan Ali wrote: Hiii everyone, I can not create kamailio database and get this error message... any ideas ? Thanks in

Re: [SR-Users] Failed to install Kamailio database

2014-10-24 Thread Mahmoud Ramadan Ali
No ! i do not have mysql installed...does the script will install it for me or i should install it previously ? On 10/24/14, Fred Posner wrote: > Do you have mysql installed? > > Fred Posner > The Palner Group, Inc. > http://www.palner.com (web) > +1-503-914-0999 (direct) > +1-954-472-2896 (fax)

Re: [SR-Users] Failed to install Kamailio database

2014-10-24 Thread Fred Posner
You will need to install mysql if you would like to use a mysql database. It is not required that you use mysql. Other databases are supported as well as a database not being a requirement for the software. Fred Posner On 10/24/2014 08:57 PM, Mahmoud Ramadan Ali wrote: No ! i do not have mysq

Re: [SR-Users] Failed to install Kamailio database

2014-10-24 Thread Mahmoud Ramadan Ali
I'm following the installation instructions in this link http://www.kamailio.org/wiki/install/4.2.x/git and thank u...i will install mysql and i will try again and if i have issues i will contact u... best regards On Fri, Oct 24, 2014 at 6:09 PM, Fred Posner wrote: > You will need to install mys

Re: [SR-Users] Failed to install Kamailio database

2014-10-24 Thread Mahmoud Ramadan Ali
Solved ! thank u :D On Fri, Oct 24, 2014 at 6:09 PM, Fred Posner wrote: > You will need to install mysql if you would like to use a mysql database. > It is not required that you use mysql. Other databases are supported as > well as a database not being a requirement for the software. > > Fred Po

Re: [SR-Users] Failed to install Kamailio database

2014-10-24 Thread Mahmoud Ramadan Ali
I have another question please...i want to use Kamailio to do load balancing between multiple asterisk servers - say two servers - . I suppose that the configuration of the SIP users should be identical on the two servers but i do not know what is the best way to achieve this whether it will be by

Re: [SR-Users] Converting JSON string to normal string

2014-10-24 Thread Muhammad Shahzad
Thanks, i managed to use s.rm to remove quotes in single shot. Thank you. On Fri, Oct 24, 2014 at 3:20 PM, Daniel-Constantin Mierla wrote: > Hello, > > no transformation to "unquote", at this time probably chaining s.strip and > s.striptail would be an option. > > Adding transformations to "qu