Re: [SR-Users] Replacing Asterisk with Kamailio

2016-09-14 Thread anfecora
Valter, you can buy the the draft of Kamailio Admin Book. It will really help you understand Kamilio how it works , how it porcess calls and what each part of the cfg means. yes it is true that you need to know about sip and how request correlate with responses etc because it does correlate the w

Re: [SR-Users] Replacing Asterisk with Kamailio

2016-09-14 Thread Yuriy Gorlichenko
Yes. Thats correct Kamailio.cfg is a script. It is a sublnguage. You must think as programmer for using it Input data is sip method. Thist script using it for handling making changes if it need and make him to know where it must be proxyed That is a main idea. Actually in asteirks for example it

Re: [SR-Users] Replacing Asterisk with Kamailio

2016-09-14 Thread Valter Nogueira
Yes, you are absolutely right: I don't understand (yet) how Kamailio works! I prefer installing it from sources. What I get until now, is that kamailio.cfg is more a program than a configuration file at all. I really appreciate the links and I will try to understand them. Thank you Valter 20

Re: [SR-Users] Branch variables in branch_failure_route

2016-09-14 Thread Anthony Joseph Messina
On Wednesday, September 14, 2016 3:11:08 PM CDT Paul Smith wrote: > Hi, > I am struggling to figure out variable scope in branches and > branch_failure_routes. Is there a way to store a variable in a branch > route so that I can then read it from the branch failure route if that > branch fails? A

Re: [SR-Users] Branch variables in branch_failure_route

2016-09-14 Thread Paul Smith
Makes sense. I thought I was missing something. Hash table will work well. Thanks Daniel. > On 14 Sep 2016, at 15:36, Daniel-Constantin Mierla wrote: > > Hello, > > there is no variable that is stored in the scope of the branch. What you can > use is a hash table and compose the key from

Re: [SR-Users] help with kamailio rpm made from source

2016-09-14 Thread Daniel-Constantin Mierla
Then you just need add those files in various packages inside the spec file, so they are not detected to be orphaned. Maybe you can inspire from: - https://build.opensuse.org/package/view_file/home:kamailio:v4.3.x-rpms/kamailio43/kamailio.spec?expand=1 Cheers, Daniel On 14/09/16 16:35, Dmitry

Re: [SR-Users] help with kamailio rpm made from source

2016-09-14 Thread Dmitry
4.3.4 version is for KazooIt is on production server currently. I need to rebuild the current RPM so as to apply patches. But first I want to get a working Kamailio and only after it I will apply the patches. I think I may take a list of modules from the production Kazoo-kamailio and rearchive th

Re: [SR-Users] Branch variables in branch_failure_route

2016-09-14 Thread Daniel-Constantin Mierla
Hello, there is no variable that is stored in the scope of the branch. What you can use is a hash table and compose the key from callid and branch index variables with expires that is same as transaction lifetime (max retransmission timeout). And indeed you need to 'touch' the r-uri in order to s

[SR-Users] Kamailio v4.4.3 Released

2016-09-14 Thread Daniel-Constantin Mierla
Hello, Kamailio SIP Server v4.4.3 stable release is out. This is a maintenance release of the latest stable branch, 4.4, that includes fixes since the release of v4.4.2. There is no change to database schema or configuration language structure that you have to do on previous installations of v4.4

[SR-Users] Branch variables in branch_failure_route

2016-09-14 Thread Paul Smith
Hi, I am struggling to figure out variable scope in branches and branch_failure_routes. Is there a way to store a variable in a branch route so that I can then read it from the branch failure route if that branch fails? Also does writing $ru in branch_failure_route append a branch? For exampl

Re: [SR-Users] Permissions module question

2016-09-14 Thread Ivan Dudko
Hi Tim, I think in this thread you talk about this commit: https://github.com/kamailio/kamailio/commit/5d285e90b0f145410acd15a7abf96d3b339a31b5 But i talk about work of function allow_source_address() which have to check if ip address in the 'address' table. Like in vanilla config: #!ifdef WITH

Re: [SR-Users] jansson_get path to access a JSON reponse containing an array

2016-09-14 Thread Daniel-Constantin Mierla
Hello, great -- I was just reading through the jsonpath specs, because I used to do name[index] and seemed to work... Cheers, Daniel On 14/09/16 14:09, Jonathan Hunter wrote: > Hi guys, > > Sorry for the noise! > > This works; > > jansson_get("destination[0].msisdn", > > Thanks > > Jon > >

Re: [SR-Users] jansson_get path to access a JSON reponse containing an array

2016-09-14 Thread Jonathan Hunter
Hi guys, Sorry for the noise! This works; jansson_get("destination[0].msisdn", Thanks Jon From: hunter...@hotmail.com To: sr-users@lists.sip-router.org Date: Wed, 14 Sep 2016 08:41:41 + Subject: [SR-Users] jansson_get path to access a JSON reponse containing an array Hi guys, Sorry fo

Re: [SR-Users] help with kamailio rpm made from source

2016-09-14 Thread Daniel-Constantin Mierla
Hello, any reason not to use series 4.4.x? Iirc, the latest spec that got update on 4.4 are those for oracle enterprise linux, perhaps is something that you can reuse a lot for upgrading to the centos flavour. On the other hand, you can use opensuse build service if you want to build yourself, th

Re: [SR-Users] Permissions module question

2016-09-14 Thread Tim Balmer
Hi Ivan, What Kamailio version are you using? If 4.4.2 maybe take a look at the thread I started a few weeks back: http://lists.sip-router.org/pipermail/sr-users/2016-July/093682.html TL;DR: The 4.4.2 release of the permissions module contains some bugs which are already fixed by Daniel in the

[SR-Users] jansson_get path to access a JSON reponse containing an array

2016-09-14 Thread Jonathan Hunter
Hi guys, Sorry for the question but Its not clear to me using json_path and the jansson module how to get the contents of a response containing an array. Please see the returned response below that I am getting on kamailio; {"status":"success","destination"[{"msisdn":"4412345566","route":"Carrier1

Re: [SR-Users] help with kamailio rpm made from source

2016-09-14 Thread Dmitry
Hellowhich SPEC file is used by the Kamailio group to build rpm? On Tuesday, September 13, 2016 7:56 PM, Dmitry wrote: I use Centos 6.7 On Tuesday, September 13, 2016 7:51 PM, Dmitry wrote: Hello I used: kamailio-4.3.4_src.tar.gz /kamailio-4.3.4/pkg/kamailio/centos/6/ I

[SR-Users] Permissions module question

2016-09-14 Thread Ivan Dudko
Hello! I am new to kamailio and trying to use it vanilla config. Now main question is how to use ip based auth. I found recent post of Daniel-Constantin Mierla: http://lists.sip-router.org/pipermail/sr-users/2011-December/071147.html Here he recommends to use 'address' table from permissions modul

Re: [SR-Users] Planning the release of Kamailio v4.4.3

2016-09-14 Thread Daniel-Constantin Mierla
Hello, short note to remind that v4.4.3 is on its way, so if anyone wants to backport sny commit to 4.4 branch, then do it before 12:00GMT today. Afterwards, write before to sr-dev in order to sync and be sure the builds are not affected. Cheers, Daniel On 07/09/16 11:11, Daniel-Constantin Mier