Re: [SR-Users] How to extract SIP-I ISUP parameters

2018-04-02 Thread Daniel-Constantin Mierla
I said that this needs C code development to combine parts of get_body_part and isup_to_json. You are trying to do it in config. Cheers, Daniel On 29.03.18 20:53, Eugene Prokopiev wrote: > Tried to use get_body_part and isup_to_json first, but looks like I > can't understand syntax. My config:

Re: [SR-Users] SQLOps module + KEMI

2018-04-02 Thread Igor Olhovskiy
Yup, this helps, thanks ) I’m not that good in manual compiling Regards, Igor On Apr 2, 2018, 9:18 AM +0300, Daniel-Constantin Mierla , wrote: > Hello, > do you have pkg-config installed? This is a tool that helps locating libs and > include files. > Cheers, > Daniel > > On

Re: [SR-Users] rare crash at kamailio 5.0.1

2018-04-02 Thread Daniel-Constantin Mierla
Hello, do you have the pcap for such call? Cheers, Daniel On 30.03.18 09:14, David Escartin wrote: > > Hello all > >   > > last March 26th we experienced a crash on a 5.0.1 kamailio server and > a core was generated. > Seems that the call involved in the core generated was doing several >

Re: [SR-Users] topos redis -> failed to store

2018-04-02 Thread Daniel-Constantin Mierla
I just pushed a commit for it in master, I will backport if no complains:   - https://github.com/kamailio/kamailio/commit/6d2312b8b0913f2f48e0f951c9578924e1d14f1d Cheers, Daniel On 28.03.18 16:25, Daniel Tryba wrote: > On Wed, Mar 28, 2018 at 03:49:18PM +0200, Daniel-Constantin Mierla wrote:

Re: [SR-Users] SQLOps module + KEMI

2018-04-02 Thread Daniel-Constantin Mierla
Hello, do you have pkg-config installed? This is a tool that helps locating libs and include files. Cheers, Daniel On 31.03.18 11:13, Igor Olhovskiy wrote: > Hi! > > A bit dumb question - how to specify lua.h file path to make command? > It looks in  > > ls: cannot access

Re: [SR-Users] KEMI get_body_part

2018-04-02 Thread Igor Olhovskiy
Actual packet INVITE sip:555@172.31.1.100:5060;transport=UDP SIP/2.0 Via: SIP/2.0/UDP X.X.X.X:35111;branch=z9hG4bK-524287-1---d6f4a1cf0574662e;rport Max-Forwards: 70 Contact: To: From:

Re: [SR-Users] audio issues

2018-04-02 Thread Daniel-Constantin Mierla
Hello, do you have any firewall running in the lan? Cheers, Daniel On 30.03.18 16:09, Atux Atux wrote: > Hi. I am doing my first steps with Kamailio and i have installed it > according to the > http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour. > i did create 3 users

Re: [SR-Users] How to extract SIP-I ISUP parameters

2018-04-02 Thread Daniel-Constantin Mierla
On 30.03.18 13:49, Eugene Prokopiev wrote: > Tried to do the same and even less with KEMI/Lua: > > $ cat kamailio/config/kamailio.lua > > function ksr_request_route() > KSR.info("Lua route\n") > if (KSR.textops.has_body("application/isup")) { > KSR.info("ISUP body exists\n") >

Re: [SR-Users] KEMI get_body_part

2018-04-02 Thread Igor Olhovskiy
No, it’s only application/sdp. Will use $rb, thanks Regards, Igor On Apr 2, 2018, 9:28 AM +0300, Daniel-Constantin Mierla , wrote: > Hello, > > On 30.03.18 14:44, Igor Olhovskiy wrote: > > Hi! > > > > I’m trying to get SDP body in my var. > > > > I’m using smth like this > >

Re: [SR-Users] KEMI and SQL - best practices

2018-04-02 Thread Daniel-Constantin Mierla
Hello, if you use sqlops module, one connection is created at startup. If you want to use the scripting language libs to connect to db, then you can rely on a global variable to do the connection only first time is needed, like: global dbcon = 0; if(dbcon == 0) {    // connect to db    dbcon

Re: [SR-Users] KEMI get_body_part

2018-04-02 Thread Daniel-Constantin Mierla
Hello, On 30.03.18 14:44, Igor Olhovskiy wrote: > Hi! > > I’m trying to get SDP body in my var. > > I’m using smth like this > >     if (KSR.textops.has_body() ~= -1 and > KSR.textops.has_body_type("application/sdp") ~= -1) then >         KSR.textops.get_body_part("application/sdp",

[SR-Users] Kamailio ​ds_ping_interval Performance

2018-04-02 Thread Atul Thosar
Hi All, I am using Kamailio ​*​* *v4.4.x* to load balanced traffic to FreeSWITCH servers. I have query regarding ds_ping_interval and ds_probing_threshold. We have very high traffic (around 200-400 ​ (CPS)​ calls per sec) hitting on Kamailio which then distribute it to 2-3 FreeSWITCH servers. ​ ​

Re: [SR-Users] Kamailio ​ds_ping_interval Performance

2018-04-02 Thread Alex Balashov
2-3 gateways? You're worrying about nothing. Just set it to as low an interval as you like. -- Alex -- Sent via mobile, please forgive typos and brevity. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

Re: [SR-Users] Kamailio ​ds_ping_interval Performance

2018-04-02 Thread Sergiu Pojoga
Hi Atul, What is your main concern? I don't see how a lightweight Options request and reply every second or so for each of your 2-3 gateways can overwhelm a network (presumably LAN), considering that you are handling 400 heavyweight Invites per second. Cheers. On Mon, Apr 2, 2018, 9:07 PM Atul