Re: [SR-Users] LCR module HowTo (Spanish)

2017-02-09 Thread Daniel-Constantin Mierla
Hello, thanks for sharing the article and the knowledge with the community! I published a news about it at: - https://www.kamailio.org/w/2017/02/lcr-system-with-kamailio-on-centos-7/ Cheers, Daniel On 08/02/2017 14:06, Campus VoToVoice wrote: > Hello, > > My small contribution to Kamailio's

Re: [SR-Users] LCR module dont_strip_or_tag_flag -> dont_strip_or_prefix_flag

2017-01-17 Thread Victor Seva
2017-01-16 21:31 GMT+01:00 Mikko Lehto : > Looks like that parameter is now¹ called dont_strip_or_prefix_flag > but module documentation was just not updated. > > [1] Change was committed in 2010 > https://github.com/kamailio/kamailio/commit/8c0501bfaa27acab9721953e8c1551687c96edf2 Pushed the fix

Re: [SR-Users] LCR module dont_strip_or_tag_flag -> dont_strip_or_prefix_flag

2017-01-16 Thread Annus Fictus
Thnak you... With dont_strip_or_prefix_flag working. Regards El 16/01/2017 a las 15:31, Mikko Lehto escribió: Annus Fictus : modparam("lcr", "dont_strip_or_tag_flag", 10) and then restart kamailio, i receive this error: ERROR: [modparam.c:141]: set_mod_param_regex(): parameter of type <2

Re: [SR-Users] LCR module dont_strip_or_tag_flag -> dont_strip_or_prefix_flag

2017-01-16 Thread Mikko Lehto
Annus Fictus : > modparam("lcr", "dont_strip_or_tag_flag", 10) > > and then restart kamailio, i receive this error: > > ERROR: [modparam.c:141]: set_mod_param_regex(): parameter > of type <2> not found in module Hi Looks like that parameter is now¹ called dont_strip_or_prefix_flag but modul

Re: [SR-Users] LCR modules troubles

2016-11-29 Thread ycaner
hello; lcr module dont touch to header. you can use UAC module to manipulate it. -- View this message in context: http://sip-router.1086192.n5.nabble.com/LCR-modules-troubles-tp153582p153614.html Sent from the Users mailing list archive at Nabble.com. _

Re: [SR-Users] LCR routing, and finaly route to media gateway if not found

2016-09-26 Thread Daniel Tryba
On Fri, Sep 23, 2016 at 03:59:20PM +0200, Loic Chabert wrote: > - I have some sbc for one destination. If one destination fail, kamailio > try to second one etc.. > - If no SBC is available for this destination (for exemple, all are down), > i want to send my call to an error server (asterisk), pla

Re: [SR-Users] LCR routing, and finaly route to media gateway if not found

2016-09-23 Thread Juha Heinanen
Loic Chabert writes: > In fact, kamailio is out from lcr at this point, no more gateway to try > (all gateways are down). > I just want to send call to a static server for playing sound. > > To be more specific, if no gateways are not set on database, a sound must > be played. > > Should i chang

Re: [SR-Users] LCR routing, and finaly route to media gateway if not found

2016-09-23 Thread Loic Chabert
In fact, kamailio is out from lcr at this point, no more gateway to try (all gateways are down). I just want to send call to a static server for playing sound. To be more specific, if no gateways are not set on database, a sound must be played. Should i change $du and $ru to make it work ? Le 23

Re: [SR-Users] LCR Module Question

2016-05-08 Thread Alberto Sagredo
Thanks Both Fred/Juha System is in production when i have a "free slot" i will check repeating each rule with lower priority. I think that would work as i expect Thanks for your tips guys! Have a nice week Alberto 2016-05-06 13:44 GMT+02:00 Juha Heinanen : > Alberto Sagredo writes: > > > > I

Re: [SR-Users] LCR Module Question

2016-05-06 Thread Fred Posner
Have you considered either dispatcher or just using a failure route? -- Fred > On May 6, 2016, at 7:15 AM, Alberto Sagredo > wrote: > > Hi > > I have it working but i have re-read documentation and do not see how to do > what i need. > > I explain it :) > > Now i have only one LCR provide

Re: [SR-Users] LCR prefix based

2016-03-21 Thread Daniel-Constantin Mierla
Hello, did you use t_relay() after all the lcr logic? Cheers, Daniel On 10/03/16 23:19, Roberto Innaimi wrote: > Hi to all, > > i want to use prefix based LCR routing, but for some reason, something > is not working as expected. > > Can anyone help me? > > This is the LCR configuration: > > >

Re: [SR-Users] LCR Commands Kamctl

2016-03-02 Thread Daniel-Constantin Mierla
On 02/03/16 08:54, Juha Heinanen wrote: > Alberto Sagredo writes: > >> I have just edited kamctl in order to make lcr commands work. Hope that >> helps someone. >> >> Using Kamailio 4.3.0 >> >> Please find kamctl attached also > Alberto, > > Thanks for your kamctl contribution. If you like it to

Re: [SR-Users] LCR Module issue

2016-02-18 Thread Alberto Sagredo
Thank you! That resolved my issue :) 2016-02-18 17:23 GMT+01:00 ycaner : > There is parameter for lcr_id. you need to set max lcr_count in .cfg. > > lcr_count > lcr_gw_count > > > > -- > View this message in context: > http://sip-router.1086192.n5.nabble.com/LCR-Module-issue-tp145861p145863.ht

Re: [SR-Users] LCR Module issue

2016-02-18 Thread ycaner
There is parameter for lcr_id. you need to set max lcr_count in .cfg. lcr_count lcr_gw_count -- View this message in context: http://sip-router.1086192.n5.nabble.com/LCR-Module-issue-tp145861p145863.html Sent from the Users mailing list archive at Nabble.com. _

Re: [SR-Users] LCR

2016-02-15 Thread Alexey V. Panfilov
15.02.2016 11:11, Juha Heinanen wrote: > Alexey V. Panfilov writes: > >> It's a pity. May I ask (as feature request) to add it to the future >> version of Kam? > > I currently don't need such a feature. It might be possible to > implement it by adding target_id field to struct target and to stru

Re: [SR-Users] LCR

2016-02-15 Thread Juha Heinanen
Alexey V. Panfilov writes: > It's a pity. May I ask (as feature request) to add it to the future > version of Kam? I currently don't need such a feature. It might be possible to implement it by adding target_id field to struct target and to struct matched_gw_info. Then add_gws_into_avps() functi

Re: [SR-Users] LCR

2016-02-14 Thread Alexey V. Panfilov
15.02.2016 10:13, Juha Heinanen wrote: > Alexey V. Panfilov writes: > >> I'm using LCR module in my kamailio setup. I can access to the >> gw_uri_avp's value of matched gateway, but I'd like to get value of >> selected id of lcr_rule_target. Is there any way to get it? > > id of lcr_rule_target i

Re: [SR-Users] LCR module : re load_gws uri errors

2015-12-04 Thread ycaner
Hello; i commented your last commit. Sorry , i think i couldn't explain situation. Here is log for more understand. - Here is first load_gws and next_gws() functions are  called- 6(10299) DEBUG: lcr [

Re: [SR-Users] LCR module : re load_gws uri errors

2015-12-04 Thread Juha Heinanen
ycaner writes: > in load_gws function > there is a delete_avp for gw_uri_avp as you mentioned . but in my > view it needs a delete_avp for ruri_user_avp. > Because it is reloading gws for different route. I added deletion of possible old ruri_user_avp value when next_gw()

Re: [SR-Users] LCR module : re load_gws uri errors

2015-12-04 Thread ycaner
in load_gws function there is a delete_avp for gw_uri_avp as you mentioned . but in my view it needs a delete_avp for ruri_user_avp. Because it is reloading gws for different route. Thanks. 04.12.2015 11:44 tarihinde Juha Heinanen [via SI

Re: [SR-Users] LCR module : re load_gws uri errors

2015-12-04 Thread Juha Heinanen
ycaner writes: > Thanks for reply. before load_gws , setting ruri_user_avp to null solves > request uri problems. load_gws() tries to delete possibly existing avp values by this statement: delete_avp(gw_uri_avp_type|AVP_VAL_STR, gw_uri_avp); obviously there is something wrong with if the av

Re: [SR-Users] LCR module : re load_gws uri errors

2015-12-03 Thread ycaner
Hey; Thanks for reply. before load_gws , setting ruri_user_avp to null solves request uri problems. -- View this message in context: http://sip-router.1086192.n5.nabble.com/LCR-module-re-load-gws-uri-errors-tp143602p143648.html Sent from the Users mailing list archive at Nabble.com. ___

Re: [SR-Users] LCR module : re load_gws uri errors

2015-12-03 Thread Juha Heinanen
ycaner writes: > when first usage of load_gws() and next_gw() functions , next_gw() fills all > uri avps to ru_AVPs from gws tables. if it goes to failure route or route > again , it can re use ru_AVPs in next_gw(). so if recall the load_gws() > again for choose new route , it uses old uri avps i

Re: [SR-Users] LCR module : re load_gws uri errors

2015-12-03 Thread ycaner
Hello; i found the problem i hope i can explain the problem to get solution. when first usage of load_gws() and next_gw() functions , next_gw() fills all uri avps to ru_AVPs from gws tables. if it goes to failure route or route again , it can re use ru_AVPs in next_gw(). so if recall the load_gws

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-12 Thread Arun Kumar
thanks to all On Tue, Aug 11, 2015 at 3:58 PM, Alexandru Covalschi <568...@gmail.com> wrote: > Thanks! > > 2015-08-11 13:19 GMT+03:00 DanB : > >> Hi Alexandru, >> >> Well the concept is simple: on INVITE, you will issue a special format >> evapi request. You will receive the list of suppliers in

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-11 Thread Alexandru Covalschi
Thanks! 2015-08-11 13:19 GMT+03:00 DanB : > Hi Alexandru, > > Well the concept is simple: on INVITE, you will issue a special format > evapi request. You will receive the list of suppliers in the reply (which > is received in a separate route) and you continue processing from there. > These suppl

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-11 Thread DanB
Hi Alexandru, Well the concept is simple: on INVITE, you will issue a special format evapi request. You will receive the list of suppliers in the reply (which is received in a separate route) and you continue processing from there. These suppliers are simple tags so your creativity will be the

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-10 Thread Alexandru Covalschi
DanB, well, I never used it - can you please describe how does it work? :) I mean, the logic in short 2015-08-10 13:15 GMT+03:00 DanB : > Guys, > > Since I saw the thread growing, I am around if you got questions on > CGRateS related LCR, fully compatible with Kamailio via evapi module. > > DanB

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-10 Thread DanB
Guys, Since I saw the thread growing, I am around if you got questions on CGRateS related LCR, fully compatible with Kamailio via evapi module. DanB ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-route

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alexandru Covalschi
you already have cost, just write a script to transform it into weight, I don't see a hard task here. It can be easily automated 2015-08-09 21:15 GMT+03:00 Arun Kumar : > hi Alexandru > >so we have manually set prefix , weight and priority > depanding upon rates ? is there any aval

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Arun Kumar
hi Alexandru so we have manually set prefix , weight and priority depanding upon rates ? is there any avaliable way to automate or we have to rewrite/modify the lcr/drouting module for rate selection , On Sun, Aug 9, 2015 at 9:22 PM, Alexandru Covalschi <568...@gmail.com> wrote:

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Juha Heinanen
Arun Kumar writes: > but above guide is only prefix priority and weight based , but we should > involve rate as well. may be you can use priority as your rate. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-us

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alex Balashov
t Reply To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] LCR Routing - Cost based routing ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/l

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alexandru Covalschi
however you can try building LCR based on prefix and weight, why not? 2015-08-09 18:52 GMT+03:00 Alexandru Covalschi <568...@gmail.com>: > I know CGRateS allow cost-based LCR for Kamailio. Maybe there are some > internal Kamailio modules, but I don't know about them > > 2015-08-09 17:10 GMT+03:00

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alexandru Covalschi
I know CGRateS allow cost-based LCR for Kamailio. Maybe there are some internal Kamailio modules, but I don't know about them 2015-08-09 17:10 GMT+03:00 Arun Kumar : > but above guide is only prefix priority and weight based , but we should > involve rate as well. > , > > On Sun, Aug 9, 2015 a

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Arun Kumar
but above guide is only prefix priority and weight based , but we should involve rate as well. , On Sun, Aug 9, 2015 at 3:09 PM, Alexandru Covalschi <568...@gmail.com> wrote: > Or, well, see that guide > http://dopensource.com/least-cost-routing-with-kamailio-v4-1/ - we have > priority and wei

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alexandru Covalschi
Or, well, see that guide http://dopensource.com/least-cost-routing-with-kamailio-v4-1/ - we have priority and weight on LCR module 2015-08-09 12:37 GMT+03:00 Alexandru Covalschi <568...@gmail.com>: > try using CGRateS > > 2015-08-09 12:06 GMT+03:00 Arun Kumar : > >> Hi >> >> is there any way

Re: [SR-Users] LCR Routing - Cost based routing

2015-08-09 Thread Alexandru Covalschi
try using CGRateS 2015-08-09 12:06 GMT+03:00 Arun Kumar : > Hi > > is there any way to achive following usecase using carrier route / > LCR / droude module > > i have 10 different termination gateways, each gateways will have more > than 1 destinations and each gateways will have differe

Re: [SR-Users] LCR with gateway capabilities

2015-04-29 Thread Vitaliy Aleksandrov
The Tag column size is 64. If I make this larger in the database, will it be truncated once it is loaded into memory? According to modules source code Tag's max size is hardcoded and will be truncated. But this is not a bit problem. You can keep capabilities list in htable and only put a key

Re: [SR-Users] LCR with gateway capabilities

2015-04-29 Thread Grant Bagdasarian
t of both methods. From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Vitaliy Aleksandrov Sent: Wednesday, April 29, 2015 12:27 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] LCR with gateway capabilities On 29/04/15 12:34, Grant Bagdasarian wrote: That s

Re: [SR-Users] LCR with gateway capabilities

2015-04-29 Thread Vitaliy Aleksandrov
r.org *Subject:* Re: [SR-Users] LCR with gateway capabilities What about configuring two LCR instances with different "lcr_id". The first one can use only gateways with requested capabilities and the second one all gateways. Then you can make a decision about which instance to use durin

Re: [SR-Users] LCR with gateway capabilities

2015-04-29 Thread Grant Bagdasarian
d g711ulaw codec? Etc. Wouldn't this cause the data to grow exponentially? From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Vitaliy Aleksandrov Sent: Wednesday, April 29, 2015 10:36 AM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] LCR with gateway cap

Re: [SR-Users] LCR with gateway capabilities

2015-04-29 Thread Vitaliy Aleksandrov
What about configuring two LCR instances with different "lcr_id". The first one can use only gateways with requested capabilities and the second one all gateways. Then you can make a decision about which instance to use during call routing process providing this lcr_id to load_gws() function.

Re: [SR-Users] LCR base on call rate

2014-09-10 Thread Juha Heinanen
Satish Patel writes: > Thanks for replay, anyone did that before? Any example or sample > script will help. you just call load_gw() first and then make next_gw() calls until call succeeds. this is explained in the README. -- juha ___ SIP Express Rout

Re: [SR-Users] LCR base on call rate

2014-09-10 Thread Satish Patel
Thanks for replay, anyone did that before? Any example or sample script will help Sent from my iPhone On Sep 10, 2014, at 12:17 PM, Juha Heinanen wrote: > Satish Patel writes: > >> I heard somewhere LCR can do routing based on call rate and call >> price, does it true? I haven't seen any con

Re: [SR-Users] LCR

2014-07-30 Thread Moritz Graf
Hi Keith, you can take the from userpart from the pseudovar $fU. Find further infos on the pseudovar documentation site: http://www.kamailio.org/wiki/cookbooks/4.1.x/pseudovariables After that you can try to match that with the module regex, see documentation here: http://kamailio.org/docs/module

Re: [SR-Users] LCR

2014-07-30 Thread Juha Heinanen
Keith writes: > I want to do LCR based on from uri. I get I need to do regular expression > matching but have no idea where to look to start. see lcr module readme if lcr module from uri matching meets your needs. -- juha ___ SIP Express Router (SER)

Re: [SR-Users] LCR

2014-07-29 Thread Keith
Hi, I want to do LCR based on from uri. I get I need to do regular expression matching but have no idea where to look to start. Any pointers would be good. Thanks Keith ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users

Re: [SR-Users] LCR from URI (CLI)

2014-06-17 Thread Juha Heinanen
Keith writes: > Is there a way I can manipulate the CLI based on the destination the call > is being sent to? you can, for example, set a lcr_gw flag that tells what the representation of cli need to be and then add p-a-i header accordingly. -- juha _

Re: [SR-Users] LCR from URI (CLI)

2014-06-17 Thread Keith
Hi all, I have an issue where I have two carriers, one only accepts +44 then the CLI and the other only accepts the number with the leading zero dropped. I am using LCR to route to carriers, however I can only switch carriers by manually altering the CLI. Is there a way I can manipulate the CLI

Re: [SR-Users] LCR from_uri help

2014-04-25 Thread Juha Heinanen
Geoffrey Mina writes: > What can I do to debug this? I checked and we aren't seeing any of the > "failed to compile regex" errors in the logs. We have 4 servers that are > all displaying the same behavior (read: ignoring the from_uri match on a > lower priority). you didn't answer if this issue

Re: [SR-Users] LCR from_uri help

2014-04-25 Thread Geoffrey Mina
Juha, Thank you for all of your help so far, but we are still totally stuck trying to make this work. We have double and triple checked our configuration, database, and INVITE and everything is in-line with what previously worked (in 1.5). We are running 4.1.3, is that what you were testing on?

Re: [SR-Users] LCR from_uri help

2014-04-23 Thread Juha Heinanen
Geoffrey Mina writes: > Right now, I would think that with our Priority of 0 on the route with the > from_URI match, the algorithm should always look at that one first and > route the calls accordingly. > > Since we have the priority correctly set to evaluate in the order we want, > what next can

Re: [SR-Users] LCR from_uri help

2014-04-22 Thread Geoffrey Mina
OK, has this behavior changed since Kamailio 1.5 because this previously worked. Right now, I would think that with our Priority of 0 on the route with the from_URI match, the algorithm should always look at that one first and route the calls accordingly. Since we have the priority correctly set

Re: [SR-Users] LCR from_uri help

2014-04-22 Thread Juha Heinanen
Geoffrey Mina writes: > OK. WE have made a change so that the priority is 0 for the route that has > the from_uri. We are still not seeing this route get matched > properly. i tried to say that from uri plays no role in your lcr setup, because +1 matches both rules 31 and 5. if you want it mat

Re: [SR-Users] LCR from_uri help

2014-04-22 Thread Geoffrey Mina
OK. WE have made a change so that the priority is 0 for the route that has the from_uri. We are still not seeing this route get matched properly. Here is what the INVITE looks like: INVITE sip:+19137274555@1.2.3.4:5060 SIP/2.0 Via: SIP/2.0/UDP 1.2.3.4:5060;branch=z9hG4bK5b52e524;rport From: "20

Re: [SR-Users] LCR

2014-04-10 Thread Juha Heinanen
Keith writes: > I am having issues with trying to use multiple lcr_ids so I can route to > different groups. When I reload lcr it always only shows one group. I have > copied the first group exactly and just changed the number but can't work > out why it's not working. check lcr_count module para

Re: [SR-Users] LCR

2014-04-10 Thread Keith
Hi, I am having issues with trying to use multiple lcr_ids so I can route to different groups. When I reload lcr it always only shows one group. I have copied the first group exactly and just changed the number but can't work out why it's not working. Any ideas? Thanks Keith _

Re: [SR-Users] LCR help

2014-01-25 Thread Juha Heinanen
Pete Ashdown writes: > Thank you Juha. I'm muddling through this. One thing that is puzzling > to me is that LCR entries are ranked by weight and priority, both > integers. When I have a rate deck of costs like .003211 per minute per > prefix, translating thousands of those to integers between

Re: [SR-Users] LCR help

2014-01-23 Thread Pete Ashdown
On 01/22/2014 03:19 PM, Juha Heinanen wrote: > Pete Ashdown writes: > >> 2) How do I populate the rest of the LCR database? It appears that >> using "kamctl lcr" has been depreciated. Am I supposed to use Siremis? >> Is there any way to do this via shell? Does anyone have any scripts >> that di

Re: [SR-Users] LCR help

2014-01-23 Thread Daniel Tryba
On Wednesday 22 January 2014 23:19:09 Juha Heinanen wrote: > prefix column cannot hold a regular expression. lcr routing is based on > longest match, which cannot be efficiently implemented using regular > expressions. If lcr is based on longest prefix, Pete could just use a little logic to impl

Re: [SR-Users] LCR Question

2013-07-05 Thread Juha Heinanen
Juha Heinanen writes: > the param is there in order to save shared memory and speed up those > functions that operate on lcr instances. ^ all -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing lis

Re: [SR-Users] LCR Question

2013-07-05 Thread Juha Heinanen
Geoffrey Mina writes: > OK. I updated that to 10 and now it loads both. Is there any harm in > making it 100 even though I will never use that many? Just so I don't need > to restart Kamailio to add new routes? the param is there in order to save shared memory and speed up those functions that

Re: [SR-Users] LCR Question

2013-07-05 Thread Geoffrey Mina
OK. I updated that to 10 and now it loads both. Is there any harm in making it 100 even though I will never use that many? Just so I don't need to restart Kamailio to add new routes? On Fri, Jul 5, 2013 at 10:17 AM, Juha Heinanen wrote: > Geoffrey Mina writes: > > > I am still a little baffl

Re: [SR-Users] LCR in Kamailio 4.0

2013-06-29 Thread Juha Heinanen
Gary Chen writes: > In this case if you have several sets of lcr_id, you will end up with > several duplicate gateway and rulls. it is possible to define gateways that are common to all lcr instances. lcr_id of such gws is 0. -- juha ___ SIP Express R

Re: [SR-Users] LCR in Kamailio 4.0

2013-06-28 Thread Geoffrey Mina
Thanks. I included ctl.so module and now I can properly use kamcmd to reload LCR. On Fri, Jun 28, 2013 at 4:57 PM, Gary Chen wrote: > lcr_rule_target is like a glue to link lcr_gw and lcr_rule tables together > through rule_id and gw_id as well as lcr_id. > In this case if you have several

Re: [SR-Users] LCR in Kamailio 4.0

2013-06-28 Thread Gary Chen
lcr_rule_target is like a glue to link lcr_gw and lcr_rule tables together through rule_id and gw_id as well as lcr_id. In this case if you have several sets of lcr_id, you will end up with several duplicate gateway and rulls. It is not the best design and is hard to use. To reload lcr you do this

Re: [SR-Users] LCR in Kamailio 4.0

2013-06-28 Thread Geoffrey Mina
What is the value of the "target" table? Previously the lcr rule table was directly tied to the gateway. Is this simply to enable N:1 relationships between lcr rules and gateways. Also - any idea how to reload the LCR configuration without restarting kamailio? I previously issued "kamctl fifo l

Re: [SR-Users] LCR in Kamailio 4.0

2013-06-28 Thread Gary Chen
First thing to remember that lcr_id field is the one to link all three tables together. Let's say that you want to create a lcr to route international call starting with 011: 1) Create a row in lcr_gw table with id = 4, lcr_id = 3 and gateway IP etc. 2) Then create a row in lcr_rule table with id =

Re: [SR-Users] LCR Module - Rule_id

2013-05-24 Thread Eloy Coto Pereiro
Hi Juha, Many thanks, finally with lcr_id is ok. I make a few changes in my config and work ok. Cheers On Fri, May 17, 2013 at 3:02 PM, Juha Heinanen wrote: > Eloy Coto Pereiro writes: > > > Any solution to check the rule extra info. I want route billing info to > put > > in the acc. Any sta

Re: [SR-Users] LCR Module - Rule_id

2013-05-17 Thread Juha Heinanen
Eloy Coto Pereiro writes: > Any solution to check the rule extra info. I want route billing info to put > in the acc. Any standar solution? i quickly looked the code and seems like rule_id would need to be added to matched_gw_info struct when load_gws() is called and copied from there as a new fi

Re: [SR-Users] LCR Module - Rule_id

2013-05-17 Thread Eloy Coto Pereiro
Hi Thanks Juha for your response. Any solution to check the rule extra info. I want route billing info to put in the acc. Any standar solution? Cheers On Fri, May 17, 2013 at 11:27 AM, Juha Heinanen wrote: > Eloy Coto Pereiro writes: > > > It Is possible get the rule_id after execute next_gw

Re: [SR-Users] LCR

2013-01-11 Thread Andrew Pogrebennyk
Hello, try printing the $ru with xlog statement when the request comes into the server and in the beginning of route[LCR]. On 11/01/2013 01:50, Douglas Ugalde wrote: > Hi, > > Im trying to configure LCR in Kamailio 3.3.3 but I dont Know how can I > do to fix this error: > > ERROR: lcr [lcr_mod.

Re: [SR-Users] LCR Failover

2012-12-03 Thread Daniel W. Graham
(SER) - Users Mailing List Subject: RE: [SR-Users] LCR Failover Kamailio sends the following when the first gateway times out. Failure route is never executed and next_gw specified in route block still results in the following. Asterisk placed call to kamailio: U kamailio:5060 -> asterisk:

Re: [SR-Users] LCR Failover

2012-11-30 Thread Daniel W. Graham
ip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel W. Graham Sent: Friday, November 30, 2012 12:42 PM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Subject: Re: [SR-Users] LCR Failover Gave that a try still without success. -Ori

Re: [SR-Users] LCR Failover

2012-11-30 Thread Daniel W. Graham
Mailing List Subject: Re: [SR-Users] LCR Failover Daniel W. Graham writes: > Makes sense, would LCR module permit this scenario to work in a > different configuration? Or should I be looking at another module? I > could use dispatcher but I'd like the ability to add additional r

Re: [SR-Users] LCR Failover

2012-11-29 Thread Juha Heinanen
Daniel W. Graham writes: > Makes sense, would LCR module permit this scenario to work in a > different configuration? Or should I be looking at another module? I > could use dispatcher but I'd like the ability to add additional routes > based on prefix in the future. if t_relay fails and failure

Re: [SR-Users] LCR Failover

2012-11-29 Thread Daniel W. Graham
Makes sense, would LCR module permit this scenario to work in a different configuration? Or should I be looking at another module? I could use dispatcher but I'd like the ability to add additional routes based on prefix in the future. -Original Message- From: sr-users-boun...@lists.sip-r

Re: [SR-Users] LCR Failover

2012-11-29 Thread Daniel W. Graham
Sorry all, my message got cut off. I have the following in database tables: Lcr_gw - Lcr_id 1, gw_name gw1, ip_addr x.x.x.x Lcr_id 1, gw_name gw1, ip_addr x.x.x.x Rule_target- Lcr_id 1, rule_id 1, gw_id 1, priority 1, weight 1 Lcr_id-1, rule_id 1, gw_id 2, priority 2, weight 1 Lcr_rule - Lcr_id

Re: [SR-Users] LCR weight

2012-11-20 Thread Juha Heinanen
Camila Troncoso writes: >scripts are provided in lcr/utils directory that can be used to check >the probabilities resulting from a given set of weight values. Same can >be done with command 'kamctl eval_weights'. > > I really don't understand what is the probability finally assign to

Re: [SR-Users] LCR weight

2012-11-20 Thread Camila Troncoso
Hi, Here is a copy of part of README: " When the function load_gws() is called, matching gateways (that are not currently designated as defunct) are ordered for forwarding purposes as follows: * (1) according to longest user part match * (2) according to tuple's priority *

Re: [SR-Users] LCR - inconsistent return results for gateway selection.

2012-08-06 Thread Juha Heinanen
Graham Wooden (personal) writes: > Thanks for the reply Juha. I have a 3.3.0 system that I have been trying > to get my routing logic converted over. I will keep working on that. ok, let the list know if you experience any lcr problems with 3.3 and we'll try to fix them. -- juha __

Re: [SR-Users] LCR - inconsistent return results for gateway selection.

2012-08-06 Thread Graham Wooden (personal)
Thanks for the reply Juha. I have a 3.3.0 system that I have been trying to get my routing logic converted over. I will keep working on that. Thanks again, -graham On 8/6/12 12:12 PM, "Juha Heinanen" wrote: >Graham Wooden (personal) writes: > >> What kind of debugging can I do on this gateway

Re: [SR-Users] lcr from_uri not matching

2012-06-07 Thread Antanas Masevicius
Hello, I experience the same issue in 3.1.5 best regards, Antanas Masevicius On 2012.03.01 08:07, Juha Heinanen wrote: > Ben WIlliams writes: > >> here is the dump, prefix 8 should use gateway number 2. Its not a big >> issue, I've managed to do it without LCR now. >> >> INSERT INTO `lcr_gw`

Re: [SR-Users] LCR routing and From Uri

2012-04-12 Thread Alexey Mechanoshin
Thanks, it works as expected. >2012/4/12 Juha Heinanen : > if (!load_gws(1, $rU, $fu)) { -- "В связи с отсутствием интереса общественности, конец света отменяется" (с) ? С Уважением, Механошин Алексей ___ SIP Express Router (SER) and Kamailio (OpenSER)

Re: [SR-Users] LCR routing and From Uri

2012-04-12 Thread Juha Heinanen
Alexey Mechanoshin writes: > > If uri_user is given, it is used, instead of Request-URI user part, > > to look for matching gateways. yes, but since you need also caller's uri, you must call load_gw() like this: if (!load_gws(1, $rU, $fu)) { > My test change simple load_gws(1) to load_gws(1,$f

Re: [SR-Users] LCR routing and From Uri

2012-04-12 Thread Alexey Mechanoshin
> If uri_user is given, it is used, instead of Request-URI user part, to look > for matching gateways In my config only lcr_id: ... mhomed=1 ... if (!load_gws(1)) { ... and not local registered user and not allow local users subscribe. A'm this calls: 192.xxx.xxx.59

Re: [SR-Users] LCR routing and From Uri

2012-04-11 Thread Juha Heinanen
Alexey Mechanoshin writes: > Apr 11 17:55:41 r59vredfs /usr/sbin/kamailio[14873]: INFO:

Re: [SR-Users] LCR routing and From Uri

2012-04-11 Thread Alexey Mechanoshin
Ok, change to LM_INFO and retry invite from master branch, by kamailio: #make FLAVOUR=kamailio cfg ... #make deb (Debian squeze) Apr 11 17:55:41 r59vredfs /usr/sbin/kamailio[14873]: INFO:

Re: [SR-Users] LCR routing and From Uri

2012-04-11 Thread Juha Heinanen
i added a dbg statement in lcr_mod.c that prints log message if from uri matching fails. you can try with latest master and see what you get into syslog at debug level 3 or convert load_gws() LM_DBG statement to LM_INFO statements and try at debug level 2. -- juha ___

Re: [SR-Users] LCR routing and From Uri

2012-04-11 Thread Alexey Mechanoshin
Thanks for reply. Ok, my change in DB to : | 5 | 1 | 5499 | sip:5...@192.xxx.xxx.59 | 0 | 1 | and restart kamailio. Then, in cfg: request_route { xlog("L_INFO", "New request - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); Log: New request - M=INVITE RURI=sip:5...@192.x

Re: [SR-Users] LCR

2012-04-05 Thread Juha Heinanen
Jeff Russell writes: > I wish that were the case, I am already logging this and there is > nothing wrong with the URI , it there seems to be no issues if I use > another non-lcr route :( > xlog("L_NOTICE","route[IVR]: Original URI <$tu>\n"); you are logging $tu, which has nothing to do with lc

Re: [SR-Users] LCR

2012-04-05 Thread Jeff Russell
Grrr.. My apologies, your right! (whoda thunk it), the error was because this was for a register, not a route, that has now been taken care of and I'll work a little more on getting the right info into the LCR db tables. May thanks, sorry about my ineptitude. Jeff On 2012-04-04, at 2:05 AM

Re: [SR-Users] LCR

2012-04-05 Thread Jeff Russell
I wish that were the case, I am already logging this and there is nothing wrong with the URI , it there seems to be no issues if I use another non-lcr route :( also, I would really like and example of what the contents of the db should be. Again, many thanks, Jeff xlog( "L_NOTICE", "here");

Re: [SR-Users] LCR

2012-04-04 Thread Juha Heinanen
Jeff Russell writes: > I am still struggling a little with this, I have everything working, > postgres & lcr modules loading what I am looking for for is a > difinative working example of the information in the db tables. your problem: > at present I get the following errors 'error while parsing

Re: [SR-Users] LCR

2012-04-04 Thread Jeff Russell
I am still struggling a little with this, I have everything working, postgres & lcr modules loading what I am looking for for is a difinative working example of the information in the db tables. my db tables: lcr_rule (lcr_id, prefix, from_uri, stopper, enabled, id) lcr_rule_target (rule_id, gw

Re: [SR-Users] LCR

2012-03-20 Thread Juha Heinanen
Jeff Russell writes: > We have a table with about 145,000 NPA/NXX's with differing rates and > carriers, I would like to use the LCR module to load this table and > rewrite the URI based on the best rate for dialled number and or a > default route. lcr module selects the gateways first based on l

Re: [SR-Users] LCR

2012-03-20 Thread Jeff Russell
Details... We have a table with about 145,000 NPA/NXX's with differing rates and carriers, I would like to use the LCR module to load this table and rewrite the URI based on the best rate for dialled number and or a default route. The new 'in memory" LCR module should be efficient enough (we a

Re: [SR-Users] LCR

2012-03-20 Thread Alex Balashov
The quality of responses to your request would be increased by a brief statement of your objective. Despite its tantalising name, the 'lcr' module may not be the most appropriate solution to your problem, depending on what exactly your problem is. -- This message was painstakingly thumbed out

Re: [SR-Users] lcr from_uri not matching

2012-02-29 Thread Juha Heinanen
Ben WIlliams writes: > here is the dump, prefix 8 should use gateway number 2. Its not a big > issue, I've managed to do it without LCR now. > > INSERT INTO `lcr_gw` VALUES > (1,1,'chc','1.1.1.1',NULL,NULL,NULL,1,1,NULL,NULL,NULL,1,NULL),(2,1,'ak','2.2.2.2',NULL,NULL,NULL,1,1,NULL,NULL,NULL,1,NUL

  1   2   3   >