[SR-Users] http_query failed to perform curl (28) errors

2015-06-15 Thread Armen Babikyan
Hello, I am running across the same issue as described here: http://lists.sip-router.org/pipermail/sr-users/2015-February/086796.html Was there a resolution to this issue? I come across this issue fairly regularly. Unlike the OP, however, I do not have any luck by retrying my query: when I p

Re: [SR-Users] Kamailio license usage

2015-06-15 Thread Alexandru Covalschi
Thank you for clear responses guys! 15 июня 2015 г. 20:42 пользователь "Daniel-Constantin Mierla" < mico...@gmail.com> написал: > Yes, you can use kamailio to provide VoIP backend -- all free of charge > and without constraints. > > As Fred pointed in another email, kamailio is GPLv2 and the main

Re: [SR-Users] CANCEL request and subsequent 487 response to INVTE configuration problem

2015-06-15 Thread Joao Alves
Hi Daniel, As suggested, I've add the t_newtran() after the SIP INVITE and did work. Now the responses are being send correctly (which is great!), and in fact no need did notice that the 487 response is sent automatically, and thus no need to explicitly generate one. Curious to understand why

Re: [SR-Users] CANCEL request and subsequent 487 response to INVTE configuration problem

2015-06-15 Thread Daniel-Constantin Mierla
Hello, have you created the transaction for INVITE request? There is also a function t_cancel_callid() that could help better than t_reply_callid(). Cheers, Daniel On 15/06/15 19:29, Joao Alves wrote: > > Hi, > > > > I’m creating a configuration is for a SIP <> HTTP gateway (performing > prot

Re: [SR-Users] Kamailio license usage

2015-06-15 Thread Daniel-Constantin Mierla
Yes, you can use kamailio to provide VoIP backend -- all free of charge and without constraints. As Fred pointed in another email, kamailio is GPLv2 and the main restriction of that license is to distribute the sources to anyone that gets the binaries from you. If you install kamailio on your serv

[SR-Users] CANCEL request and subsequent 487 response to INVTE configuration problem

2015-06-15 Thread Joao Alves
Hi, I'm creating a configuration is for a SIP <> HTTP gateway (performing protocol conversion) and thus all SIP messages and responses needs to be generated from the kamailio config file. I'm failing to create the case where the calling user abandons the session, and thus, following the recept

Re: [SR-Users] Kamailio license usage

2015-06-15 Thread Fred Posner
Kamailio is released under GNU Public License v2 (GPLv2), which does provide for commercial use. It's a very common licensing structure and of course I am not a lawyer and this should not be taken as legal advise. You can/should use the licensing information provided to have your lawyer advise yo

[SR-Users] Kamailio license usage

2015-06-15 Thread Alexandru Covalschi
Maybe it may be an offtopic, but I'm not really into legal issues - so I'm sorry if this message is not fully related to this mailing list. Can I use Kamailio to provide VoIP backend for kind of CRM system in case of SaaS? --- Alexandru Covalschi ABRISS-Solutions VoIP engineer and system administ

Re: [SR-Users] Kamailio number of LCR rules

2015-06-15 Thread Juha Heinanen
Juha Heinanen writes: > OK, I got it. Now priorities choose from equally long prefixes instead > of all matching prefixes. I'll take a look at the code to check if the > latter could be easily added as an option. looks like the change would be very easy. only comp_matched function would need t

Re: [SR-Users] Kamailio number of LCR rules

2015-06-15 Thread Juha Heinanen
Henry Fernandes writes: > But we didn¹t want to add hundreds of thousands or millions of extra rules > just to deal with this problem. We didn¹t consider that a good > workaround. OK, I got it. Now priorities choose from equally long prefixes instead of all matching prefixes. I'll take a look

Re: [SR-Users] Kamailio number of LCR rules

2015-06-15 Thread Henry Fernandes
You¹re right. The problem will be solved if you add that rule. But we didn¹t want to add hundreds of thousands or millions of extra rules just to deal with this problem. We didn¹t consider that a good workaround. In the end, we used sqlops to do our own LCR matching/routing. -H On 2015-06-15,

Re: [SR-Users] Kamailio number of LCR rules

2015-06-15 Thread Juha Heinanen
Henry Fernandes writes: > Let’s say you have the following info in your LCR. > > Prefix, Carrier/Route, Rate > 1306, A, 1.5 > 1306343, A, 1.7 > 1306, B, 1.4 > > If you have phone number 1306343, the LCR module matches it to the > longest prefix (1306343) and routes the call to Carrier A. Ho

Re: [SR-Users] Kamailio number of LCR rules

2015-06-15 Thread Henry Fernandes
The problem is that the LCR module matches to the longest prefix rather than longest prefix per route/carrier. Take a look at the example below. Let’s say you have the following info in your LCR. Prefix, Carrier/Route, Rate 1306, A, 1.5 1306343, A, 1.7 1306, B, 1.4 If you have phone number 1306

Re: [SR-Users] Removing parameters from user part of URI

2015-06-15 Thread Alex Balashov
‎I was under the impression that as long as the parameters have a value (key=value), they can appear anywhere. But I should double-check before making that proclamation. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel

Re: [SR-Users] SIP-over-Websocket Load Balancing

2015-06-15 Thread Alexandru Covalschi
thanks, will try that 2015-06-15 14:07 GMT+03:00 Juha Heinanen : > Alexandru Covalschi writes: > > > > sorry, i thought you use registrar/usrloc modules > > Well, I do use them - so if you could explain in which table does > Kamailio > > write the user's proto and which flags I can use - I'll mak

Re: [SR-Users] Removing parameters from user part of URI

2015-06-15 Thread Daniel-Constantin Mierla
On 15/06/15 15:18, Alex Hermann wrote: > On Monday 15 June 2015, Alex Balashov wrote: >> On 06/15/2015 04:20 AM, Alex Hermann wrote: >>> $(rU{select,0,;}) will always select the username with all parameters >>> stripped. >> Will it? What if the parameters precede the username, i.e. >> >> sip:

Re: [SR-Users] Removing parameters from user part of URI

2015-06-15 Thread Alex Hermann
On Monday 15 June 2015, Alex Balashov wrote: > On 06/15/2015 04:20 AM, Alex Hermann wrote: > > $(rU{select,0,;}) will always select the username with all parameters > > stripped. > > Will it? What if the parameters precede the username, i.e. > > sip:param1=hyz;param2;abc;user@host I have nev

Re: [SR-Users] Removing parameters from user part of URI

2015-06-15 Thread Alex Balashov
On 06/15/2015 04:20 AM, Alex Hermann wrote: On Friday 12 June 2015, Alex Balashov wrote: Sure, but that presumes that I know the position of the parameter and the number of parameters. Why would you need to know that? I'm looking for a generic approach to lob off all parameters. $(rU{sele

Re: [SR-Users] SIP-over-Websocket Load Balancing

2015-06-15 Thread Juha Heinanen
Alexandru Covalschi writes: > > sorry, i thought you use registrar/usrloc modules > Well, I do use them - so if you could explain in which table does Kamailio > write the user's proto and which flags I can use - I'll make a test to see > which scheme is preferable :) before calling save() functio

Re: [SR-Users] SIP-over-Websocket Load Balancing

2015-06-15 Thread Murugan Pandian
Let me try this script ,Thanks On Mon, Jun 15, 2015 at 1:27 PM, Alexandru Covalschi <568...@gmail.com> wrote: > > sorry, i thought you use registrar/usrloc modules > Well, I do use them - so if you could explain in which table does Kamailio > write the user's proto and which flags I can use - I'l

Re: [SR-Users] Removing parameters from user part of URI

2015-06-15 Thread Alex Hermann
On Friday 12 June 2015, Alex Balashov wrote: > Sure, but that presumes that I know the position of the parameter and the > number of parameters. Why would you need to know that? > I'm looking for a generic approach to lob off all parameters. $(rU{select,0,;}) will always select the username wit

Re: [SR-Users] SIP-over-Websocket Load Balancing

2015-06-15 Thread Alexandru Covalschi
> sorry, i thought you use registrar/usrloc modules Well, I do use them - so if you could explain in which table does Kamailio write the user's proto and which flags I can use - I'll make a test to see which scheme is preferable :) So, about script: 1.) Write to redis Please read http://kamailio.