Re: [SR-Users] Keep Number of Messages per Source

2014-08-12 Thread AliReza Khoshgoftar Monfared
Thanks Alex, This is exactly the module I needed. Now just another small usage question. How can I reset the value of all entries in my hash table to 0 every, say "10" seconds? - Here is what I tried, but the values seem to persist: Option 1) in the parameter definition set

[SR-Users] freeradius Duplicate attribute name Event-Timestamp

2014-08-12 Thread Satish Patel
somehow i am getting following error, if i start radius Error: Errors reading dictionary: dict_init: /etc/freeradius/dictionary.opensips[93]: dict_addattr: Duplicate attribute name Event-Timestamp If i remove it from /etc/freeradius/dictionary.opensips file it works! but my it screwed my time in

[SR-Users] Kamailio + FreeRadius + MySQL Accounting STOP not updating

2014-08-12 Thread Satish Patel
returns ok Tue Aug 12 22:45:36 2014 : Info: [acct_unique] Hashing 'NAS-Port = 5060,Client-IP-Address = 127.0.0.1,NAS-IP-Address = 127.0.0.1,Acct-Session-Id = "M2IwZTVkY2Y5YTU2ZjdmOTQ5NWMzYzI1NTU3MWMwYjQ.",User-Name = "2002@192.168.1.5 "' Tue Aug 12 22:45:36 2014 : Info

Re: [SR-Users] Keep Number of Messages per Source

2014-08-12 Thread Alex Balashov
On 08/12/2014 03:56 PM, AliReza Khoshgoftar Monfared wrote: Hi List, I am trying to keep a counter for number of messages received per source ip in my kamailio script. The basic challenge is to keep this data in a neat structure. Ideally, I want some array with keys named after source IP addres

[SR-Users] Keep Number of Messages per Source

2014-08-12 Thread AliReza Khoshgoftar Monfared
Hi List, I am trying to keep a counter for number of messages received per source ip in my kamailio script. The basic challenge is to keep this data in a neat structure. Ideally, I want some array with keys named after source IP addresses, sth like number_of_messages["10.10.10.10"] = 23 Of cour

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

2014-08-12 Thread Heenan, Timothy Steven
Hi Daniel, Here's a list of the modules I'm running: mi_fifo db_mysql sl kex tm tmx rr xlog maxfwd usrloc registrar textops pv acc permissions siputils auth lcr dispatcher sanity debugger siptrace We're setting the memory allocation to 256 ( -m 256 -M 64 ). I'll see about recompiling with MEMDB

Re: [SR-Users] SDP ending with CRLF and a=nortpproxy:yes

2014-08-12 Thread Narsay, Deep
Hello Daniel, Adding msg_apply_changes corrected the extra CRLF, But ICE candidates (Added using set_iattr("ice_priority", "1"); ) are not getting added anymore. I have removed sdp_remove_line_by_prefix from kamailio.cfg for now. Thanks, -Deep N. On Tue, Aug 12, 2014 at 2:42 PM, Narsay,

Re: [SR-Users] SDP ending with CRLF and a=nortpproxy:yes

2014-08-12 Thread Narsay, Deep
Thanks Daniel. record_route() is already being done. I will go through my test cases with your suggestion. - Deep N On Tue, Aug 12, 2014 at 1:11 PM, Daniel-Constantin Mierla wrote: > Hello, > > use msg_apply_changes() after sdp_remove_line_by_prefix(). > > > Also, you should do record_route

Re: [SR-Users] SDP ending with CRLF and a=nortpproxy:yes

2014-08-12 Thread Daniel-Constantin Mierla
Hello, use msg_apply_changes() after sdp_remove_line_by_prefix(). Also, you should do record_route() after applying changes. Cheers, Daniel On 12/08/14 17:49, Narsay, Deep wrote: Hello, Please let me know if there is any work around for this. Details of the issue: kamailio.cfg has this s

[SR-Users] SDP ending with CRLF and a=nortpproxy:yes

2014-08-12 Thread Narsay, Deep
Hello, Please let me know if there is any work around for this. Details of the issue: kamailio.cfg has this sequence in kamailio.cfg, .. modparam("rtpproxy", "ice_candidate_priority_avp", "$avp(ice_priority)" ) sdp_remove_line_by_prefix("a=candidate");

[SR-Users] subst_hf does unexpected append instead of a replace (WAS: How do I make subst_hf() use variables in search (not replacement)?)

2014-08-12 Thread Alex Villací­s Lasso
Mensaje original Return-Path: Delivered-To: Received: from palosanto.com by mail.palosanto.com (Dovecot) with LMTP id o9JTLusS6VNAYAAA3RMWGw for ; Mon, 11 Aug 2014 14:02:20 -0500 Received: from localhost (mail.palosanto.com [127.0.0.1]) by palosanto.com (

Re: [SR-Users] Dialog module event_route problem

2014-08-12 Thread davy
why don’t you hook your http_queries up to the relevant SIP packets passing by? INVITE -> start 180/183 -> ringing 200 -> pickup BYE/CANCEL -> end It’s quite straightforward to get that cleanly in your configfile, and it give you a massive control over things. (just be aware of packets arriving

Re: [SR-Users] kamctl not creates /tmp/kamailio_fifo file

2014-08-12 Thread Daniel-Constantin Mierla
Can you run with debug=3 in kamailio.cfg and look in syslog for the messages printed by mi_fifo module? Are there any? If yes, send them to mailing list. Daniel On 12/08/14 11:21, Yuriy Gorlichenko wrote: Kamailio running perfectly. No error messages. Errors only with kamctl (kamcmd) 2014-

[SR-Users] Dialog module event_route problem

2014-08-12 Thread betul.cerit
Hello; I am trying to build a prepaid accounting system. I use dialog module's start/end event-route. When even_route[dialog:started] triggered, a http_query works for the started call. When event_route[dialog:end] triggered , a http_query works for call is ended. When http_query works in eve

Re: [SR-Users] Call disconnects within 30 seconds

2014-08-12 Thread davy
If your Kamailio setup is close to vanilla, it should do it by default. But Kamailio is a very powerfull tool, it can easily be setup to stop passing over ACKs :) To attempt to answer what explicitly sends along the ACKs, that will most likely be the t_relay function, together with the logic w

Re: [SR-Users] Call disconnects within 30 seconds

2014-08-12 Thread Rahul MathuR
Hello Davy, Thanks for writing back.. Tonight I'll take the tcpdump on Kamailio box and share the file. Please note that Kamailio and Freeswitch are both on public IP & at Freeswitch param, enable_timer=false is set. Is there any explicit way wherein ACKs can be transmitted to FS ? Thanks in

Re: [SR-Users] Call disconnects within 30 seconds

2014-08-12 Thread davy van de moere
Are you sure you're getting the ACK correctly to FS? FS typically has this behavior when it did not correctly receive a confirmation of an answer, and after 30 seconds disconnects, as for FS the call has failed. Do you have a trace of the packets? grtz, Davy Van De Moere 2014-08-12 13:37 GMT+0

[SR-Users] Call disconnects within 30 seconds

2014-08-12 Thread Rahul MathuR
Hello, I have an iPhone/Android/Windows 8 based UAC, proxy server Kamailio and Sip server FreeSwitch. Whenever I call directly from UAC to Sip server, the call gets established for as long as I want, however when I use the proxy in between, it gets disconnected within 30 seconds. It seems that FS

Re: [SR-Users] rtpengine symmetric RTP behavior

2014-08-12 Thread Narsay, Deep
Hello Frank, Main reason to put rtpengine in front of FS is to keep the topology from being exposed. Only Kamailio and rtpengine will be facing the public Internet. Since that is the only hop, the quality won't be affected. disable_rtp_auto_adjust option is available as dialplan variable. (Was tr

Re: [SR-Users] kamctl not creates /tmp/kamailio_fifo file

2014-08-12 Thread Yuriy Gorlichenko
Kamailio running perfectly. No error messages. Errors only with kamctl (kamcmd) 2014-08-12 13:18 GMT+04:00 Daniel-Constantin Mierla : > Was Kamailio running at that time? Any error message in syslog file? > > Cheers, > Daniel > > > On 11/08/14 23:46, Yuriy Gorlichenko wrote: > > *modparam("mi_f

Re: [SR-Users] kamctl not creates /tmp/kamailio_fifo file

2014-08-12 Thread Daniel-Constantin Mierla
Was Kamailio running at that time? Any error message in syslog file? Cheers, Daniel On 11/08/14 23:46, Yuriy Gorlichenko wrote: /modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")/in your kamailio.cfg -It exisits But /tmp/kamailo_fifo not found I created it by myself (for test) through

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

2014-08-12 Thread Daniel-Constantin Mierla
Hello, can you give the list of loaded modules? How much memory did you allocate (-m parameter value)? It will narrow down searches to see if there was anything similar fixed since 4.0.4. To troubleshoot easier, would be good to recompile with MEMDBG=1, then the details of chunks in memory