Re: [SR-Users] how to remove non-digits using dp_translate

2014-07-03 Thread Daniel-Constantin Mierla
Hello, you have to replace [^0-9] with empty, using the global flag. Cheers, Daniel On 02/07/14 23:11, Henry Fernandes wrote: I'd like to use the dialplan module to remove all non-digits from a string. For example, 1-306-555-1234 becomes 13065551234 and (306) 555-1234 becomes 3065551234.

Re: [SR-Users] need help on kamailio-snmpstats module

2014-07-03 Thread Daniel-Constantin Mierla
Hello, the net-snmp-agent-libs was present on the build system, otherwise the rpm creation would have failed. Are you using the rpms from opensuse build service? Cheers, Daniel On 03/07/14 01:56, Allen Zhang wrote: Hi, I’m having trouble on installing kamailio-snmpstats module. I’m

Re: [SR-Users] Replys though onsend_route?

2014-07-03 Thread Daniel-Constantin Mierla
Hello, if you relay the request with tm (e.g., via t_relay()) and set before the flag for siptrace, the responses should be traced two times: as they get in and are sent out. Cheers, Daniel On 02/07/14 14:55, Jöran Vinzens wrote: Hi Daniel, we trace the responses, but we cannot see

[SR-Users] no rtpengine.so module

2014-07-03 Thread Yuriy Gorlichenko
Hello. I install kamailio 4.1.3 and it works fine. But I neen proxy DTLS SRTP to backend media servers through kamailio. rtpproxy no not work with dtls srtp? so I installed rtpengine but can not find rtpengine.so file for copiyng to kamailio modules directory. Does anyone can install rtpengine as

Re: [SR-Users] no rtpengine.so module

2014-07-03 Thread Dani Kamailio
You can use rtpproxy-ng.so that is included (It does the conversion of SDP packets) with rtpengine media relay from Sipwise , the rtpengine.so is still a devel module. Regards. 2014-07-03 10:38 GMT+02:00 Yuriy Gorlichenko ovoshl...@gmail.com: Hello. I install kamailio 4.1.3 and it works fine.

Re: [SR-Users] UAC remote registration - refreshing database

2014-07-03 Thread Dan Christian Bogos
Hey Alex, Many thanks for so fast answer. Could be I have missed the past interest (hence re-posting). Anyway, I wonder what would be the chances that we get Ovidiu's interest so he can port registrant module to kamailio maybe? Unfortunately without reloads it is hard to push remote

Re: [SR-Users] UAC remote registration - refreshing database

2014-07-03 Thread Daniel-Constantin Mierla
Hello, not having against adding alternatives to existing features/modules, apparently here is just about implementing the reload capability. Most of the features should be there, like loading from database (which is done at startup) and destroying exiting structures in memory (which is done

Re: [SR-Users] Server generated 408 time out goes to onreply route?

2014-07-03 Thread Daniel-Constantin Mierla
Hello, local 408 doesn't go in onreply routes, but you can get to failure_route and there use t_reply(...) to send out a different response code. However, never tried replacing 408 with 200 because it a different meaning and makes no much sense at least for INVITEs. But failure route is used

[SR-Users] Calls per second

2014-07-03 Thread Olle E. Johansson
Hi! Have you implemented a per-customer rate limit in Calls per second? If so - how? I've played with ratelimit/pipelimit and it seems like I can define a database with one pipe per customer - but have to restart Kamailio to add customers. There are warnings for low timer settings, like 1

Re: [SR-Users] Calls per second

2014-07-03 Thread Fred Posner
I've done this with dialog and a sql lookup/update. The sql call updates the table with how many calls are in total for the client and how many international calls. There's a max calls and a max international. If current max, the call can go through. The db allows me to combine the lookup over

Re: [SR-Users] Calls per second

2014-07-03 Thread Olle E. Johansson
I am looking for calls setups per second - not concurrent calls. Sorry for not being exact. /O On 03 Jul 2014, at 13:41, Fred Posner f...@palner.com wrote: I've done this with dialog and a sql lookup/update. The sql call updates the table with how many calls are in total for the client and

Re: [SR-Users] How to check message queue (buffer) in Kamailio

2014-07-03 Thread Morten Isaksen
Hi, Check out rtimer http://kamailio.org/docs/modules/4.1.x/modules/rtimer.html /Morten On Wed, Jul 2, 2014 at 6:59 PM, AliReza Khoshgoftar Monfared khoshgof...@gmail.com wrote: Thanks very much. That is the correct answer. just for the record, one can loadmodule exec and then use

Re: [SR-Users] Calls per second

2014-07-03 Thread Alex Balashov
I do it using htable. I maintain a rolling 3-second sample of number of calls in 'htable', the tail of which is auto-expired. The need to implement CPS limits was the basis for the 'updateexpires' option I added to the htable code in Dec 2011--I wanted updates not to cause entries' expiration

Re: [SR-Users] Calls per second

2014-07-03 Thread Abdelkader Allam
Hello Olle, If you are to reimplement this by scripting instead of developing a C module, maybe you could use redis as a database, and for each invite of a customer, create a unique key in the redis database like this: CUSTOMER_A:CALLID Then set this key to auto expire in let's 10 seconds for

Re: [SR-Users] Calls per second

2014-07-03 Thread Alex Balashov
On 07/03/2014 08:12 AM, Abdelkader Allam wrote: Then to check the number of invite per seconds for CUSTOMER_A smoothed over a window of 10 seconds, you count the keys in the DB that starts with CUSTOMER_A ( KEYS CUSTOMER_A*) and divide it by 10. Indeed. But one could also do this with a

Re: [SR-Users] Calls per second

2014-07-03 Thread Abdelkader Allam
Very true Alex, didnt knew about htables, just checking about it, very interesting :) The added value of Redis though is that other scripts running outside of Kamailio can interact with it and potentially interact with kamailio, can an external script have access to htables in memory db ? On

Re: [SR-Users] Calls per second

2014-07-03 Thread Alex Balashov
On 07/03/2014 08:18 AM, Abdelkader Allam wrote: Very true Alex, didnt knew about htables, just checking about it, very interesting :) The added value of Redis though is that other scripts running outside of Kamailio can interact with it and potentially interact with kamailio, can an external

Re: [SR-Users] Calls per second

2014-07-03 Thread Fred Posner
I think my head isn't fully woken up yet -- sorry about that. Fred Posner The Palner Group, Inc. http://www.palner.com (web) +1-503-914-0999 (direct) +1-954-472-2896 (fax) On 07/03/2014 07:48 AM, Olle E. Johansson wrote: I am looking for calls setups per second - not concurrent calls. Sorry

Re: [SR-Users] Calls per second

2014-07-03 Thread Olle E. Johansson
On 03 Jul 2014, at 14:21, Alex Balashov abalas...@evaristesys.com wrote: On 07/03/2014 08:18 AM, Abdelkader Allam wrote: Very true Alex, didnt knew about htables, just checking about it, very interesting :) The added value of Redis though is that other scripts running outside of Kamailio can

Re: [SR-Users] Calls per second

2014-07-03 Thread Abdelkader Allam
Yes if you set the key created to auto expire in a second On Thu, Jul 3, 2014 at 12:31 PM, Olle E. Johansson o...@edvina.net wrote: On 03 Jul 2014, at 14:21, Alex Balashov abalas...@evaristesys.com wrote: On 07/03/2014 08:18 AM, Abdelkader Allam wrote: Very true Alex, didnt knew about

Re: [SR-Users] Calls per second

2014-07-03 Thread Alex Balashov
On 07/03/2014 08:31 AM, Olle E. Johansson wrote: I really need per second, not average. I need to react FAST. That was why I picked an interval of 3. It seemed the shortest practicable interval in which to collect meaningful sampling. But if the volume of calls is so large that 1-second

Re: [SR-Users] Calls per second

2014-07-03 Thread Carlos Ruiz Díaz
Hi, do you know how the autoexpire is implemented in the htable module? If it's a timer doing the polling and checking the expiration value, it may not be ideal for your CPU do it that way. Several entries will surely impact negatively on the performance. I'm planning to implement this for cnxcc

Re: [SR-Users] Calls per second

2014-07-03 Thread Alex Balashov
On 07/03/2014 08:52 AM, Carlos Ruiz Díaz wrote: Hi, do you know how the autoexpire is implemented in the htable module? If it's a timer doing the polling and checking the expiration value, it may not be ideal for your CPU do it that way. Several entries will surely impact negatively on the

Re: [SR-Users] Calls per second

2014-07-03 Thread Carlos Ruiz Díaz
Ok. Thanks Alex. On Thu, Jul 3, 2014 at 8:00 AM, Alex Balashov abalas...@evaristesys.com wrote: On 07/03/2014 08:52 AM, Carlos Ruiz Díaz wrote: Hi, do you know how the autoexpire is implemented in the htable module? If it's a timer doing the polling and checking the expiration value, it

Re: [SR-Users] Calls per second

2014-07-03 Thread Daniel-Constantin Mierla
Hello, On 03/07/14 13:37, Olle E. Johansson wrote: Hi! Have you implemented a per-customer rate limit in Calls per second? If so - how? I've played with ratelimit/pipelimit and it seems like I can define a database with one pipe per customer - but have to restart Kamailio to add customers.

[SR-Users] how to m_store to database not just a body with MSILO?

2014-07-03 Thread denis kremov
Hello All, Subj, need you help, How to store this type of message to MSILO database? Content-Type: message/external-body;access-type=URL;URL=https://xxx.com//download/539c28884_3e071c9db68044f687bf.jpg;   I modified and recompiled msilo.c to resolve this error: ERROR: msilo [msilo.c:626]:

Re: [SR-Users] no rtpengine.so module

2014-07-03 Thread Yuriy Gorlichenko
thanks for fas reply. If I may user rtpengine as rtpproxy maybe you already use it or just know - does rtpengine provide ridge mode as rtpproxy between internal and external interfaces? At my instalne if I add rtpengine --ip=my.ext.net.addr/my.int.net.addr It shows that ip if wrong, but I neet

Re: [SR-Users] no rtpengine.so module

2014-07-03 Thread Andrew Pogrebennyk
On 03/07/14 16:42, Yuriy Gorlichenko wrote: thanks for fas reply. If I may user rtpengine as rtpproxy maybe you already use it or just know - does rtpengine provide ridge mode as rtpproxy between internal and external interfaces? At my instalne if I add rtpengine

Re: [SR-Users] UAC remote registration - refreshing database

2014-07-03 Thread Ovidiu Sas
Porting the registrant module is not straight forward. Best solution here - as Daniel pointed out - would be to enhance the existing implementation. -ovidiu On Thu, Jul 3, 2014 at 6:32 AM, Daniel-Constantin Mierla mico...@gmail.com wrote: Hello, not having against adding alternatives to