Re: [SR-Users] Parsing diversion headers correctly

2016-06-24 Thread Federico Cabiddu
Hi Joel, to the extract the username part of the last Diversion header you could modify your last example like this: $(hdr(Diversion)[-1]{nameaddr.uri}{uri.user}) Regards, Federico On Sat, Jun 25, 2016 at 3:23 AM, Joel Serrano | VOZELIA wrote: > Hi, > > If you receive an INVITE with 2 diversi

Re: [SR-Users] Specify alternative OpenSSL engine for Kamailio

2016-06-24 Thread Joel Serrano | VOZELIA
Hi Cibin, The way it works is using the current openssl installation. Basically what you do is compile an extra engine, this creates a libcavium.so, you copy this file to the openssl engines directory and that allows you to specify it. For example, with the regular debian openssl installation,

Re: [SR-Users] Specify alternative OpenSSL engine for Kamailio

2016-06-24 Thread Cibin Paul
Hi, Did you install openssl with shared libraries? If you have pkg-config available, check the output of pkg-config --libs openssl pkg-config --libs libssl Openssl.pc and libssl.pc should be pointed to your new openssl libraries. This is how it worked for me. No changes required in kamaili

[SR-Users] Parsing diversion headers correctly

2016-06-24 Thread Joel Serrano | VOZELIA
Hi, If you receive an INVITE with 2 diversion headers such as (in this order): Diversion: ;privacy=off;screen=no; reason=user-busy; counter=1 Diversion: ;privacy=off;screen=no; reason=unknown; counter=1 How is a nice way of extracting the user part from the URI of the last one? (in this case

Re: [SR-Users] Count number of headers of type

2016-06-24 Thread Joel Serrano | VOZELIA
Hi Alex, I thought it could end up being something like that. I just tried that and it worked perfectly. Thanks for your help :) Best regards, Joel. - Original Message - > From: "Alex Balashov" > To: sr-users@lists.sip-router.org > Sent: Friday, June 24, 2016 5:53:31 PM > Subject:

Re: [SR-Users] Count number of headers of type

2016-06-24 Thread Alex Balashov
On 06/24/2016 07:51 PM, Joel Serrano | VOZELIA wrote: - How many 'via' headers: $hdrcount(Via) ? - How many 'diversion' headers: $hdrcount(Diversion) ? Unfortunately, it's probably going to come down to: $var(i) = 0; while(defined $(hdr(Via)[$var(i)])) $var(i) = $var(i) + 1; -

[SR-Users] (no subject)

2016-06-24 Thread jay binks
Hi Guys, Im using a keepalived solution between 2 kamailio boxes, with net.ipv4.ip_nonlocal_bind =1 . On the "non master" I pretty much constantly get these logs in syslog. What Im looking for is a way to suppress these because they are expected in my configuration. is there any way to tell kama

[SR-Users] Count number of headers of type

2016-06-24 Thread Joel Serrano | VOZELIA
Hi, It there an easy way to count the number of existing headers of certain type? For example: - How many 'via' headers: $hdrcount(Via) ? - How many 'diversion' headers: $hdrcount(Diversion) ? The $hdrcount is an example, just wondering if there is an easy way to get the number. Thanks. Bes

Re: [SR-Users] t_on_failure route not being called

2016-06-24 Thread Colin Morelli
Sorry all - I've been staring a kamailio config files for too long. The issue was obvious when I read log messages more closely: the route[REROUTE] needed to be failure_route[REROUTE]. Everything works fine now . Best, Colin On Fri, Jun 24, 2016 at 3:01 PM Colin Morelli wrote: > Hey all, > > I

Re: [SR-Users] S-CSCF (kamailio) crashes after deregistration of client

2016-06-24 Thread Christoph Valentin
Hi,   Will this bugfix be part of the release 4.4.2, which is planned for next week?   Best regards, Christoph   Gesendet: Dienstag, 07. Juni 2016 um 16:48 Uhr Von: "Christoph Valentin" An: "Jason Penton" Cc: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing Lis

[SR-Users] t_on_failure route not being called

2016-06-24 Thread Colin Morelli
Hey all, I'm using a combination of http_async_client and rtjson to query my API and retrieve a JSON target route set for an incoming SIP request that Kamailio will forward to. The HTTP portion of it works great. I'm able to hit my API and get back a JSON document. Additionally, the rtjson parsin

Re: [SR-Users] Kamailio behind ELB AWS

2016-06-24 Thread Frank Carmickle
> On Jun 24, 2016, at 4:53 AM, yann christophe > wrote: > > Hello Everyone, > > I would like to know, if i can use ELB and route53 behind some > Kamailio servers for the high availibility ? It really depends on what you are trying to do. An ELB doesn’t help with SIP routing. > I use Kamaili

[SR-Users] Specify alternative OpenSSL engine for Kamailio

2016-06-24 Thread Joel Serrano | VOZELIA
Hi, This is a similar question on a previous thread: "[SR-Users] Compiling kamailio with custom openssl" Is it possible to specify a different OpenSSL engine for kamailio to use? For example: On nginx you have the config param: ssl_engine On apache you have the config param: SSLCryptoDevice

[SR-Users] rtpengine installation delete ethernet interface on Centos

2016-06-24 Thread Yasin CANER
Hello;     i trying to install rtpengine on Centos 6.7 . rtpengine is made compilation correctly that downloaded from git. it has kernel version 2.6.32-573.26.1.el6.x86_64. only it happens after installing kernel rptengine file. i am following this tuts "https://voi

[SR-Users] Kamailio behind ELB AWS

2016-06-24 Thread yann christophe
Hello Everyone, I would like to know, if i can use ELB and route53 behind some Kamailio servers for the high availibility ? I use Kamailio behind Freeswitch. I would like deploy these servers on AWS. What do you suggest me for the high availibility on AWS with Kamailio. Thanks Best regards Yann

Re: [SR-Users] How to understad that user is de-registrating

2016-06-24 Thread Alexandru Covalschi
Thanks for the info guys, I've fixed my config to suit the correct logic. Thanks again! 2016-06-23 8:40 GMT+03:00 Daniel-Constantin Mierla : > Hello, > > On 19/06/16 19:41, Alexandru Covalschi wrote: > > Hello list, > > I need to send to an external API events when user is registrated and > de-re