[SR-Users] cnxcc serial fork

2014-08-28 Thread Kelvin Chua
hi carlos, i have a serial forking scenario to several providers as failover. and i used cnxcc_set_max_credit to control the session credit/time. just wanted to make sure it does what i think it should do so i made a little experiment. the logic goes this way. 1. cnxcc_set_max_credit -> $100, cos

Re: [SR-Users] Kamailio 4.0.4 slow memory leak

2014-08-28 Thread Daniel-Constantin Mierla
Looking at the logs, there are 1336 URIs, which seems ok given your numbers, because the module keeps also the previous set of records (needed because at reload time there can be kamailio worker processes using the records -- perhaps we can improve a bit here, I will review the current reload c

Re: [SR-Users] Add websocket header to SIP

2014-08-28 Thread Daniel-Constantin Mierla
Hello, the header Origin is inside the http request used for opening the websocket connection. It is no longer available at invite time. You can use htable module to store the origin header using connection id. The logic in the config file should be like: - in event_route during the handling

[SR-Users] Calls to devices behind NAT not working

2014-08-28 Thread Adnan
Hi all, I'm trying to configure a Kamailio server, and am having trouble getting devices behind NAT receive calls. Looking at a SIP trace, nothing is being received by the end point, even though Kamailio seems to be sending out a response. I've opened up my firewall rules, so that shouldn't

Re: [SR-Users] [sr-dev] rfc: distributing dialog profiles

2014-08-28 Thread Daniel-Constantin Mierla
Indeed it seems to be after dlg profile structure changes. Then I suggest to merge your branch into master so everyone can easily continue to work on it, if needed. As you already did it with dmq, makes this option selected for now. Also, I noticed other fixes/enhancements to dialog (e.g., rpc

[SR-Users] Wrong ACK to Provider

2014-08-28 Thread Yuriy Gorlichenko
Hello. I try to provide call scheme: internal client -> asterisk -> Kamailio -> provider -> external endpoint call when I make call I see this: asterisk kamailio provider invite --> invite --> <-- 407 ACK -->

Re: [SR-Users] Wrong ACK to Provider

2014-08-28 Thread Olle E. Johansson
On 28 Aug 2014, at 14:14, Yuriy Gorlichenko wrote: > Hello. I try to provide call scheme: > > internal client -> asterisk -> Kamailio -> provider -> external endpoint call > > when I make call I see this: > > asterisk kamailio provider > invite --> invite --> >

Re: [SR-Users] Wrong ACK to Provider

2014-08-28 Thread Daniel-Constantin Mierla
On 28/08/14 14:45, Olle E. Johansson wrote: On 28 Aug 2014, at 14:14, Yuriy Gorlichenko > wrote: Hello. I try to provide call scheme: internal client -> asterisk -> Kamailio -> provider -> external endpoint call when I make call I see this: asterisk kama

Re: [SR-Users] Wrong ACK to Provider

2014-08-28 Thread Yuriy Gorlichenko
All packets (INVITE,ACK,BYE) that comes from Asterisk and sends to Provider handled by Kamailio (changed tU, fU and td and from d). so I write to PLIVO this question, but they still answer to me nothing... As I see my trace there are no simple muistakes (such as wrong dst or wrong contact header).

Re: [SR-Users] Wrong ACK to Provider

2014-08-28 Thread Olle E. Johansson
On 28 Aug 2014, at 14:57, Daniel-Constantin Mierla wrote: > > On 28/08/14 14:45, Olle E. Johansson wrote: >> >> On 28 Aug 2014, at 14:14, Yuriy Gorlichenko wrote: >> >>> Hello. I try to provide call scheme: >>> >>> internal client -> asterisk -> Kamailio -> provider -> external endpoint >

Re: [SR-Users] Wrong ACK to Provider

2014-08-28 Thread Daniel-Constantin Mierla
You should send a pcap file with all packets, from first incoming INVITE to kamailio. It is important to have both sides of signaling from kamailio point of view, from first packet in that call. Cheers, Daniel On 28/08/14 15:11, Yuriy Gorlichenko wrote: All packets (INVITE,ACK,BYE) that comes

Re: [SR-Users] Wrong ACK to Provider

2014-08-28 Thread Daniel-Constantin Mierla
On 28/08/14 15:11, Olle E. Johansson wrote: On 28 Aug 2014, at 14:57, Daniel-Constantin Mierla > wrote: On 28/08/14 14:45, Olle E. Johansson wrote: On 28 Aug 2014, at 14:14, Yuriy Gorlichenko > wrote: Hello. I try to provide call sc

[SR-Users] What does "::" operator do in statements related to hashtable?

2014-08-28 Thread aft
Hi, >From kamailio documentation, the usage of hashtable is given as : modparam("htable", "htable", "a=>size=4;") ... $sht(a=>test) = 1; $sht(a=>$ci::srcip) = $si; I get it that in the first statement, a is the hashtable, a new key-value pair is added to one of its empty bucket (test,1). What i

Re: [SR-Users] [Kamailio-4.1.5] [/etc/init.d/kamailio/start] Error

2014-08-28 Thread Gertjan Wolzak
Dont want to be mean I've also had to learn, but this is just log/message reading.. What does it mean... /etc/init.d/kamailio: line 131: log_daemon_msg: command not found Well, in the file /etc/init.d/kamailio on line 131 a command is called that is not known So you have to check the kama

Re: [SR-Users] cnxcc serial fork

2014-08-28 Thread Carlos Ruiz Díaz
Hi Kelvin, this is an interesting scenario. I will have to reproduce it myself in order to reply you properly. Answering your question, yes, it should be updated to 200. Let me check ASAP. Regards, Carlos On Thu, Aug 28, 2014 at 4:31 AM, Kelvin Chua wrote: > hi carlos, > > i have a serial

Re: [SR-Users] What does "::" operator do in statements related to hashtable?

2014-08-28 Thread Alex Balashov
It's not an operator, actually. :-) It's just a convention. You can call your keys anything you like (that's grammatically valid). On 08/28/2014 09:37 AM, aft wrote: Hi, From kamailio documentation, the usage of hashtable is given as : modparam("htable", "htable", "a=>size=4;") ... $sht(a=>

[SR-Users] Asterisk cluster behind kamailio natted to pubic IP, presenting internal ip addresses in From tag

2014-08-28 Thread Tim Chubb
Hi All I'm scratching my head on this one, I have set everything up in the following configuration: Public ip natted to DMZ via Cisco ASA 5510 <= DMZ => Kamailio & RTP Proxy <= Voice DMZ => Asterisk My kamailio configuration is based heavily on the one found here: http://saevolgo.blogspot.co

Re: [SR-Users] What does "::" operator do in statements related to hashtable?

2014-08-28 Thread Daniel-Constantin Mierla
To give a better visual perspective, practically if you do: $sht(a=>$ci::srcip) = $si; for and INVITE request that comes from 1.2.3.4 and has the header: Call-Id: abcd Then in the the hash table a is added the pair ('abcd::srcip', '1.2.3.4'). So, the pseudo variables (the $xy... tokens are ev

Re: [SR-Users] Asterisk cluster behind kamailio natted to pubic IP, presenting internal ip addresses in From tag

2014-08-28 Thread Fred Posner
On 08/28/2014 12:44 PM, Tim Chubb wrote: > Hi All > > ...snip... > > So far everything is working fine, I can register via the public IP > address, IM & presence is working, and as does audio, however when I > dial an extension the caller id comes up like this > 12345@172.16.15.123:5080

Re: [SR-Users] Add websocket header to SIP

2014-08-28 Thread Kamrul Khan
Worked perfectly. Thanks a lot! Date: Thu, 28 Aug 2014 12:11:04 +0200 From: mico...@gmail.com To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Add websocket header to SIP Hello, the header Origin is inside the http request used for opening the websocket c

Re: [SR-Users] Help analysing segmentation fault

2014-08-28 Thread Jason Penton
Hey Daniel, I am puzzled by how this could make any difference? Could you explain? Is this dependent on the compiler used and whether or not void* arithmetic is allowed? Cheers Jason On Fri, Aug 22, 2014 at 1:17 PM, Daniel-Constantin Mierla wrote: > Hello, > > can you try this small patch? >

Re: [SR-Users] Asterisk cluster behind kamailio natted to pubic IP, presenting internal ip addresses in From tag

2014-08-28 Thread Tim Chubb
> I'm assuming with the 5080 that this call goes through the Asterisk box > before hitting the registered user on Kamailio... if that's correct, have you > also forced a CALLERID(name) on the call? > A grep of the sip traffic would show if you have something perhaps removing > this information

Re: [SR-Users] Help analysing segmentation fault

2014-08-28 Thread Daniel-Constantin Mierla
Hello, On 28/08/14 20:32, Jason Penton wrote: Hey Daniel, I am puzzled by how this could make any difference? Could you explain? Is this dependent on the compiler used and whether or not void* arithmetic is allowed? void is incomplete type, of no defined data size, you cannot have: void x;

Re: [SR-Users] Add websocket header to SIP

2014-08-28 Thread Daniel-Constantin Mierla
Welcome! Daniel On 28/08/14 20:21, Kamrul Khan wrote: Worked perfectly. Thanks a lot! Date: Thu, 28 Aug 2014 12:11:04 +0200 From: mico...@gmail.com To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Add websocket h

[SR-Users] Kamailio as Websocket bridge to Asterisk, and Asterisk-sent OPTIONS

2014-08-28 Thread Alex Villací­s Lasso
As a continuation of my project, I am trying to set up Kamailio as a Websocket bridge to Asterisk. The asterisk instance is running as localhost, with its own websocket support disabled, but otherwise has accounts with all of the avfp and dtls settings for websockets. Additionally, I have removed

Re: [SR-Users] Kamailio as Websocket bridge to Asterisk, and Asterisk-sent OPTIONS

2014-08-28 Thread Paul Belanger
On Thu, Aug 28, 2014 at 7:18 PM, Alex Villací­s Lasso wrote: > As a continuation of my project, I am trying to set up Kamailio as a > Websocket bridge to Asterisk. The asterisk instance is running as localhost, > with its own websocket support disabled, but otherwise has accounts with all > of the

Re: [SR-Users] Help analysing segmentation fault

2014-08-28 Thread Jason Penton
Yeah, would be cool to see what compiler Charles is using. Thanks Daniel On 28 Aug 2014 22:25, "Daniel-Constantin Mierla" wrote: > Hello, > > On 28/08/14 20:32, Jason Penton wrote: > > Hey Daniel, > > I am puzzled by how this could make any difference? Could you explain? > Is this dependent on

Re: [SR-Users] Wrong ACK to Provider

2014-08-28 Thread Yuriy Gorlichenko
My pcap file. Daniel sorry for first time sended message to your private mail. Was a mistake. 2014-08-28 17:27 GMT+04:00 Daniel-Constantin Mierla : > > On 28/08/14 15:11, Olle E. Johansson wrote: > > > On 28 Aug 2014, at 14:57, Daniel-Constantin Mierla > wrote: > > > On 28/08/14 14:45, Olle E.