Re: [SR-Users] kamailio as load balancer

2018-03-16 Thread Daniel Tryba
On Thu, Mar 15, 2018 at 03:32:00PM +, Seyed Mohammad Mirheydari wrote: > I have 5 asterisk servers. And I want to use kamailio as load balancer. > How can route sip calls from outside to asterisk servers? > > Note: > I installed kamailio and mairadb , etc. > I configured subscriber for

Re: [SR-Users] INFO: Relevant fixes in the last releases

2018-03-16 Thread Daniel Tryba
On Wed, Mar 14, 2018 at 05:30:23PM +0100, Daniel-Constantin Mierla wrote: > I want to highlight that the last stable versions (for the latest 3 > release series: 4.4, 5.0 and 5.1) include fixes for two issues that can > crash a running instance of Kamailio, therefore it is strongly > recommended

Re: [SR-Users] Select last URI from Record-Route

2018-03-16 Thread John Petrini
Hi Carsten, Thanks for the suggestion but it looks like that takes the URI from the route header not record-route. I tested to be sure but the assignment fails because there is no route header. John Petrini Platforms Engineer [image: Call CoreDial] 215.297.4400 x 232 <215-297-4400> [image:

Re: [SR-Users] Select last URI from Record-Route

2018-03-16 Thread Carsten Bock
Hi, Check for $route_uri, we use it to determine the session-case (no or Mt) on the Proxy-CSCF. Thanks, Carsten Am 16.03.2018 17:07 schrieb "John Petrini" : > The simple answer to that is it's a last ditch effort to look up an AOR > record on a reply but it's part of

Re: [SR-Users] Select last URI from Record-Route

2018-03-16 Thread John Petrini
The simple answer to that is it's a last ditch effort to look up an AOR record on a reply but it's part of other logic we use to establish direct media. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

Re: [SR-Users] Select last URI from Record-Route

2018-03-16 Thread Alex Balashov
I do have to wonder: what do you need to do that for? What are you trying to accomplish? On Fri, Mar 16, 2018 at 11:40:01AM -0400, John Petrini wrote: > Hello list, > > Does anyone how I can extract the last URI from a compact Record-Route > header? > > I've tried using a negative index in the

[SR-Users] Select last URI from Record-Route

2018-03-16 Thread John Petrini
Hello list, Does anyone how I can extract the last URI from a compact Record-Route header? I've tried using a negative index in the parameter of my select but it returns the first URI in the header instead of the last. $var(rr_last_uri) = @record_route.uri[-1]; Maybe there's another way

Re: [SR-Users] Need useful graphics ideas

2018-03-16 Thread Joel Serrano
Good stuff!! We use something similar too, so only stats served when requested on 127.0.0.1/stats while keeping websockets as usual. I’m not good with grafana but it would be nice if anyone shares some dashboard or graph ideas that make the metrics look nice ;) Joel. On Fri, Mar 16, 2018 at

Re: [SR-Users] Lua script reload

2018-03-16 Thread Igor Olhovskiy
In most cases with parameter. Regards, Igor On Mar 16, 2018, 1:29 PM +0200, Daniel-Constantin Mierla , wrote: > Hello, > indeed, I looked at code and ds_is_from_list is not exported. Do you need to > use it with parameters or without? > Cheers, > Daniel > > On 15.03.18

Re: [SR-Users] Need useful graphics ideas

2018-03-16 Thread Karsten Horsmann
Hello Joel and List, okay i found a "maybe good" way to bind it to localhost without break WSS. Btw - if the returning lines of data within var(metrics_count) are higher than 100, the max_while_loops protection cuts off the rest. Mar 16 12:11:05 sipedge1 /usr/sbin/kamailio[3531]: ERROR:

[SR-Users] Issue in cdr generation in seconds format

2018-03-16 Thread Narayan P
Hello Sir, I need your expertise for kamailio cdr generation in seconds format. I have a requirement to generate cdr duration in second format.Now I am getting second.milliseconds format.Below is the log where duration is 18.676 but I want this to be 19.(suppose where duration =18.234, I

Re: [SR-Users] Need useful graphics ideas

2018-03-16 Thread Karsten Horsmann
Hi Joel, thank you very much for the hints and the input. I am not sure if i should run that in the REQUEST, but it works for me. Only headache with that is, that i also use Websockets in my event_route. And AFAIK there is "only one" event_route[xhttp:request]. Would be nice to separate the