[SR-Users] Compiling errors

2017-06-29 Thread Yasin CANER
Hello,   on compiling git master branch gives error as below. Could you check it please. Cheers. make include_modules="acc_radius auth_radius misc_radius" cfg make all make[3]: `libsrutils.so.1.0' is up to

Re: [SR-Users] Compiling errors

2017-06-29 Thread Daniel-Constantin Mierla
Hello, what's your compiler (and its version)? clang was dealing fine with this case. Anyhow, should be fixed in master branch, just fetch latest version. Cheers, Daniel On 29.06.17 09:23, Yasin CANER wrote: > > Hello, > > > > > on compiling git master branch gives error as below. Could you

Re: [SR-Users] Segfault on kamailio 5.0.2. Suddenly stops processing traffic, then generates a core when restarting

2017-06-29 Thread Joel Serrano
Thanks Daniel. Let's continue in github. Joel. On Wed, Jun 28, 2017 at 11:20 PM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > I answered on the github issue tracker and let's continue there. > > In short here: from the provided details, it seems to be the case when all > gat

Re: [SR-Users] Compiling errors

2017-06-29 Thread Yasin CANER
Hello , gcc is updated from  4.4.7 20120313 (Red Hat 4.4.7-16) to 4.4.7 20120313 (Red Hat 4.4.7-18) and then kamailio cloned from git again. it didnt give any error. thanks. 29.06.2017 10:35 tarihinde Daniel-Constantin Mierla ya

[SR-Users] remote ip address of sender and receiver

2017-06-29 Thread vuleetu
Hi, all Is there any way to get remote ip address of both sender($si) and receiver(?)? I am configuring kamailio with multiple rtpproxy sets. Basically, rtpproxy set will be choosed based on the country those ip addresses of caller and callee belong to. Lets say if caller and callee are both in

Re: [SR-Users] remote ip address of sender and receiver

2017-06-29 Thread Sebastian Damm
Hi, where do you get the IP address of the receiver from? You can get the local interface address of Kamailio where the request was received with $Ri, but I guess you want the IP address of the target host. If you are dealing with locally registered users only, you can use the request URI after ca

Re: [SR-Users] remote ip address of sender and receiver

2017-06-29 Thread Mojtaba
Hi. I wrote this code, I check do the both peers are in the same network or not. It works correctly. # Check if both peers are in the same network(nat). if (is_method("INVITE")){ lookup("location","m"); $var(x) = $(ru{s.select,1,@}); $var(y) = $(var(x){s.select,0,:});

[SR-Users] remote ip address of sender and receiver

2017-06-29 Thread vuleetu
Hi, all Is there any way to get remote ip address of both sender($si) and receiver(?)? I am configuring kamailio with multiple rtpproxy sets. Basically, rtpproxy set will be choosed based on the country those ip addresses of caller and callee belong to. Lets say if caller and callee are both in

[SR-Users] host to get name of local server

2017-06-29 Thread Henry Fernandes
We have multiple Kamailio 4.4.x servers and I am setting up stats tracking. I would like to track the stats for each individual Kamailio server separately like so: kamailio_1.sip.register.count kamailio_2.sip.register.count kamailio_3.sip.register.count The problem is that we use one common fi

[SR-Users] Add extra headers on HTTP requests in Kamailio v5

2017-06-29 Thread Joel Serrano
Hi all, Is there a way to add extra headers with http_client_query() from http_client module? In current http_query() from utils module, according to the doc, you can add a custom header: *4. Functions* *4.1. http_query(url, [post-data], [header-data], result)* *...* *If you want to add addit

Re: [SR-Users] Question regarding calling a shell script from kamailio

2017-06-29 Thread Anuradha Selvarajan
Hello, Resending as I didn't get any reply yet. I tried to use exec_msg to call a external script but that is not working as expected (used it under request_route function as suggested). Also exec_msg doesn't store any return value so not sure if this will help. Like mentioned in my previous em