Re: [Kamailio-Users] Carrierroute issue

2010-02-10 Thread Henning Westerholt
On Tuesday 09 February 2010, Omar wrote: > Hello > > I did the same Changes long time ago, but i have the same issue even > when always goes more to one IP, and we really know when will go to > the Next IP also is there a way if the endpoint is down will the calls > go to the next IP automatically

Re: [Kamailio-Users] Carrierroute issue

2010-02-09 Thread Omar
Hello I did the same Changes long time ago, but i have the same issue even when always goes more to one IP, and we really know when will go to the Next IP also is there a way if the endpoint is down will the calls go to the next IP automatically? i have the same table scenario with .5 and

Re: [Kamailio-Users] Carrierroute issue

2009-07-30 Thread michel freiha
Dear Uriel, I found it...The problem was in the makefile of carrierroute module...I did Chged the following: DEFS+=$(CONFUSEDEFS) LIBS=$(CONFUSELIBS) TO: DEFS+=-I$(LOCALBASE)/include LIBS=-L$(LOCALBASE)/lib -lconfuse It seems that carrierroute needs that in order to be compiled on Solaris Th

Re: [Kamailio-Users] Carrierroute issue

2009-07-30 Thread michel freiha
Dear Uriel, It worked fine as you mentionned below and Y.Y.Y.Y is used when I changed the domain to 1 on X.X.X.X Regards On Thu, Jul 30, 2009 at 9:16 PM, Uriel Rozenbaum wrote: > It's really weird. Try changing the domain on the X.X.X.X host to 1, so you > only have Y.Y.Y.Y host available as fi

Re: [Kamailio-Users] Carrierroute issue

2009-07-30 Thread Uriel Rozenbaum
It's really weird. Try changing the domain on the X.X.X.X host to 1, so you only have Y.Y.Y.Y host available as first option. On Thu, Jul 30, 2009 at 3:07 PM, michel freiha wrote: > Dear Sir, > > I did 2 calls from the same endpoint to the same number and get 2 different > IDs but still forwardi

Re: [Kamailio-Users] Carrierroute issue

2009-07-30 Thread michel freiha
Dear Sir, I did 2 calls from the same endpoint to the same number and get 2 different IDs but still forwarding the calls to X.X.X.X as follow: Call1: call-id for this call 56549e09d94c1430Jul 30 17:00:32 [10607] DBG:carrierroute:get_route_tree_by_id: searching in carrier default, id 5 Jul 30 17:

Re: [Kamailio-Users] Carrierroute issue

2009-07-30 Thread Uriel Rozenbaum
The random value is based on the Call-ID, use debug=4 and add an XLOG as follows before every call to cr_route: xlog("L_ERR", "call-id for this call $ci"); Check the call-id is different every time and the CRC32 algorithm to calculate the hash values gives a different answer. On Thu, Jul 30, 200

Re: [Kamailio-Users] Carrierroute issue

2009-07-30 Thread michel freiha
When restarting kamailio I found out that it reads both routes Jul 30 11:46:40 [9165] INFO:carrierroute:rule_fixup_recursor: hashless rule with host Y.Y.Y.Y hash hash_index 1 Jul 30 11:46:40 [9165] INFO:carrierroute:rule_fixup_recursor: hashless rule with host X.X.X.X hash hash_index 2 I jjst do

Re: [Kamailio-Users] Carrierroute issue

2009-07-30 Thread michel freiha
Dear Sir, Please find below carrierroute table... ++-++-+---+--+--+---+--+++-+ | id | carrier | domain | scan_prefix | flags | mask | prob | strip | rewrite_host | rewrite_prefix | rewrite_suffi

Re: [Kamailio-Users] Carrierroute issue

2009-07-30 Thread Uriel Rozenbaum
I'm really not sure how it works when you use a 0 prob. Try something like 50/50 and check if the requests go to both servers. Also, some extract from /var/log/messages will help. On Thu, Jul 30, 2009 at 4:38 AM, michel freiha wrote: > Dear Sir, > > My tables are defined as below: > > *carrier

Re: [Kamailio-Users] Carrierroute issue

2009-07-30 Thread michel freiha
Dear Sir, My tables are defined as below: *carrierroute table:* id carrier domain scan_prefix flags maskprob striprewrite_host 19 5 1 00 0 0 0 0 IP_address1 19 5 1

Re: [Kamailio-Users] Carrierroute issue

2009-07-29 Thread Kenny Lee
Does both entries belong to the same carrier? You can try to set both entries with the same carrier id in the carrier column and the same domain. Date: Wed, 29 Jul 2009 16:39:02 +0300 From: mich...@gmail.com To: users@lists.kamailio.org Subject: [Kamailio-Users] Carrierroute issue Hi all

Re: [Kamailio-Users] Carrierroute issue

2009-07-29 Thread Uriel Rozenbaum
Michel, The prob field is to set the proportion of a certain entry to be taken when you are load balancing between carriers. To perform an overflow operation you have to use the domain field. Check the samples on the module documentation; it's preety clear there; if you have further questions ju

[Kamailio-Users] Carrierroute issue

2009-07-29 Thread michel freiha
Hi all, I'm using carrierroute module and ie seems that it's not working well...Suppose I have 2 entries in carrierroute table...Entry 1 with scan prefix 00 and prob 0 and a second entry with scan prefix 00 and prob=1...As soon as i make a call, this call will be forwarded to the entry with prob 0

Re: [Kamailio-Users] Carrierroute-Kamailio-1.4.3-Strip does not strip in the to: header

2009-07-15 Thread Henning Westerholt
On Mittwoch, 15. Juli 2009, Omar Mendoza wrote: > Everything works fine except the strip Nor the rewrite_prefix removes > anything from the record route(not sure if it should do it) nor from > the To: Header and the to header IP address remain keeps the Kamailio > ip address. Hi Omar, this is the

Re: [Kamailio-Users] Carrierroute-Kamailio-1.4.3-Strip does not strip in the to: header

2009-07-15 Thread Omar Mendoza
Everything works fine except the strip Nor the rewrite_prefix removes anything from the record route(not sure if it should do it) nor from the To: Header and the to header IP address remain keeps the Kamailio ip address. then many providers request the To: need to math the RURI invite. ple

[Kamailio-Users] Carrierroute-Kamailio-1.4.3-Strip does not strip in the to: header

2009-07-15 Thread Omar Mendoza
I have a prefix, and i remove using the Strip in the DB INVITE sip:8135553...@192.168.2.77 SIP/2.0 Record-Route: Via: SIP/2.0/UDP 198.168.1.170;branch=z9hG4bKa5b6.ce53.0 Via: SIP/2.0/UDP 198.168.1.180:5060;branch=z9hG4bK292133e9;rport=5060 From: "Omar" ;tag=as1074edd2 To: Contact:

[Kamailio-Users] Carrierroute and or LCR

2009-04-14 Thread Juha Heinanen
Stagg Shelton writes: > Can carrierroute and LCR be used together? If so can you give me a > few pointers so that I can get a lab system working. If not can you > suggest whether or not carrierroute could or should be used to route > based on rate center. The rate center list from my

Re: [Kamailio-Users] Carrierroute and or LCR

2009-04-14 Thread Henning Westerholt
On Tuesday 14 April 2009, Stagg Shelton wrote: > I am preparing to add a new upstream SIP provider to my network, and > now have a requirement to route based on the number that the user is > calling. From what I have read it appears that LCR is the better > method for doing this. Hi Stagg, lcr i

[Kamailio-Users] Carrierroute and or LCR

2009-04-14 Thread Stagg Shelton
I am preparing to add a new upstream SIP provider to my network, and now have a requirement to route based on the number that the user is calling. From what I have read it appears that LCR is the better method for doing this. I have one small issue in that I have a few customers who switc

Re: [Kamailio-Users] CARRIERROUTE MODULE scan_prefix starting with *

2009-03-26 Thread Ovidiu Sas
Yes, that is correct. And it is mentioned in the docs. Regards, Ovidiu Sas On Thu, Mar 26, 2009 at 11:22 AM, Asim Riaz wrote: > > > On Thu, Mar 26, 2009 at 3:04 PM, Ovidiu Sas wrote: >> >> Have you set: >> modparam("carrierroute", "match_mode", 128) > > Hi Ovidiu, > match_mode is supported in

Re: [Kamailio-Users] CARRIERROUTE MODULE scan_prefix starting with *

2009-03-26 Thread Asim Riaz
On Thu, Mar 26, 2009 at 3:04 PM, Ovidiu Sas wrote: > Have you set: > modparam("carrierroute", "match_mode", 128) Hi Ovidiu, match_mode is supported in 1.5, so its means only digits can be matched in 1.4 ? i am running kamailio 1.4 ; ERROR:core:set_mod_param_regex: parameter not found in module

Re: [Kamailio-Users] CARRIERROUTE MODULE scan_prefix starting with *

2009-03-26 Thread Ovidiu Sas
Have you set: modparam("carrierroute", "match_mode", 128) Regards, Ovidiu Sas On Thu, Mar 26, 2009 at 11:02 AM, Asim Riaz wrote: > Hi Ovidiu, > yes  i have gone through the module doc, its works fine if the scan_prefix > is not starting from *, e.g no problem if the scane_prefix is 222 but if I

Re: [Kamailio-Users] CARRIERROUTE MODULE scan_prefix starting with *

2009-03-26 Thread Asim Riaz
Hi Ovidiu, yes i have gone through the module doc, its works fine if the scan_prefix is not starting from *, e.g no problem if the scane_prefix is 222 but if I use *222* as scane_prefix, Kamailio does not run. I am running Kamailio 1.4. Thanks, Asim On Thu, Mar 26, 2009 at 1:39 PM, Ovidiu Sas

Re: [Kamailio-Users] CARRIERROUTE MODULE scan_prefix starting with *

2009-03-26 Thread Ovidiu Sas
Have you checked the documentation? http://www.kamailio.net/docs/modules/1.5.x/carrierroute.html#id2467664 Regards, Ovidiu Sas 2009/3/26 Asim Riaz : > Hi List, > is it possible to add a scan_prefix like *222* in carrierroute? if i add a > prefix like this in DB(carrierroute),  I dont get any erro

[Kamailio-Users] CARRIERROUTE MODULE scan_prefix starting with *

2009-03-26 Thread Asim Riaz
Hi List, is it possible to add a scan_prefix like *222* in carrierroute? if i add a prefix like this in DB(carrierroute), I dont get any error but Kamailio does not run. any idea why? Thanks, Asim ___ Kamailio (OpenSER) - Users mailing list Users@lis

Re: [Kamailio-Users] carrierroute

2009-01-26 Thread michel freiha
Thanks a lot Henning...The issue has been solved...You were right Regards On Mon, Jan 26, 2009 at 1:15 PM, Henning Westerholt < henning.westerh...@1und1.de> wrote: > On Saturday 24 January 2009, michel freiha wrote: > > Dear Sir, > > > > i tried to use the below function: > > > > if (!cr_route("

Re: [Kamailio-Users] carrierroute

2009-01-26 Thread Henning Westerholt
On Saturday 24 January 2009, michel freiha wrote: > Dear Sir, > > i tried to use the below function: > > if (!cr_route("$avp(s:carrier)", "$avp(s:domain)", "$rU", "$rU","call_id", > "$avp(s:host)")) { > > during restart I did not get any error...When trying to make a call i got > the following erro

Re: [Kamailio-Users] carrierroute

2009-01-24 Thread michel freiha
Dear Sir, i tried to use the below function: if (!cr_route("$avp(s:carrier)", "$avp(s:domain)", "$rU", "$rU","call_id", "$avp(s:host)")) { during restart I did not get any error...When trying to make a call i got the following error: Jan 24 11:41:36 [12948] ERROR:tm:t_newtran: transaction alrea

[Kamailio-Users] carrierroute

2009-01-24 Thread michel freiha
Hi all, I have a problem with carrierroute module...I have configured it as follow in my config file: loadmodule "carrierroute.so" ##Carrier Route modparam("carrierroute", "db_url", "mysql://opensips:123...@mysql_ip /opensips") modparam("carrierroute", "config_source", "db") In the route fun

Re: [Kamailio-Users] CarrierRoute With + Prefix

2009-01-23 Thread Henning Westerholt
On Friday 23 January 2009, Ali Jawad wrote: > I did use > if($rU =~ "^[+].*") > { > > strip(1); > > } > > before the cr statement ...from asterisk I get address incomplete at > times..when this happens I find that the first two characters are

Re: [Kamailio-Users] CarrierRoute With + Prefix

2009-01-23 Thread Luciano Afranllie
ciano Afranllie [mailto:listas.luaf...@gmail.com] > Sent: 2009-01-23 17:20 > To: Ali Jawad > Cc: Henning Westerholt; users@lists.kamailio.org > Subject: Re: [Kamailio-Users] CarrierRoute With + Prefix > > On Fri, Jan 23, 2009 at 1:14 PM, Ali Jawad > wrote: >>

Re: [Kamailio-Users] CarrierRoute With + Prefix

2009-01-23 Thread Ali Jawad
Subject: Re: [Kamailio-Users] CarrierRoute With + Prefix On Fri, Jan 23, 2009 at 1:14 PM, Ali Jawad wrote: > Hi Again > > I did use >if($rU =~ "^[+].*") >{ > >strip(1); > >} > > before the

Re: [Kamailio-Users] CarrierRoute With + Prefix

2009-01-23 Thread Luciano Afranllie
On Fri, Jan 23, 2009 at 1:14 PM, Ali Jawad wrote: > Hi Again > > I did use >if($rU =~ "^[+].*") >{ > >strip(1); > >} > > before the cr statement ...from asterisk I get address incomplete at > times..when this happens I find that the first two

Re: [Kamailio-Users] CarrierRoute With + Prefix

2009-01-23 Thread Ali Jawad
one. Any clues ? Thanks -Original Message- From: Henning Westerholt [mailto:henning.westerh...@1und1.de] Sent: 2009-01-23 17:04 To: Ali Jawad Cc: users@lists.kamailio.org Subject: Re: [Kamailio-Users] CarrierRoute With + Prefix On Friday 23 January 2009, Ali Jawad wrote: > Hi >

Re: [Kamailio-Users] CarrierRoute With + Prefix

2009-01-23 Thread Henning Westerholt
On Friday 23 January 2009, Ali Jawad wrote: > Hi > THanks for that update. Is there a way to automatically set the > probality of one to the servers to 0, if it is down returning failed > calls ? > Thanks No, functionality like this is provided from the dispatcher module. If you want to implement

Re: [Kamailio-Users] CarrierRoute With + Prefix

2009-01-23 Thread Ali Jawad
: Ali Jawad Subject: Re: [Kamailio-Users] CarrierRoute With + Prefix On Friday 23 January 2009, Ali Jawad wrote: > I was able to setup carrierroute in database mode and when I make a > call with prefix 00 it works fine. For that I did setup an entry in > carrierroute, I did duplicate

Re: [Kamailio-Users] CarrierRoute With + Prefix

2009-01-23 Thread Henning Westerholt
On Friday 23 January 2009, Ali Jawad wrote: > I was able to setup carrierroute in database mode and when I make a call > with prefix 00 it works fine. For that I did setup an entry in > carrierroute, I did duplicate that same entry for prefix "+". > If I call 004353453 it works fine however if I di

[Kamailio-Users] CarrierRoute With + Prefix

2009-01-23 Thread Ali Jawad
Hi All I was able to setup carrierroute in database mode and when I make a call with prefix 00 it works fine. For that I did setup an entry in carrierroute, I did duplicate that same entry for prefix "+". If I call 004353453 it works fine however if I dial +12341234 I get a 403 forbidden error. The

Re: [Kamailio-Users] Carrierroute and AVP

2009-01-22 Thread Henning Westerholt
On Tuesday 30 December 2008, Ovidiu Sas wrote: > Hello Henning, > > I can conform that the rewrite_host can be reliable read from $rd. > Thank you for looking into this. Hi Ovidiu, i just commited the change, should be work now. Cheers, Henning ___ K

Re: [Kamailio-Users] carrierroute and scan_prefix value

2009-01-22 Thread Henning Westerholt
On Wednesday 21 January 2009, Juan Asencio wrote: > Hi Henning and list, here is a description of the configuration that I’m > trying to test with carrierroute: > > I have 4 groups of customers calling to 6 different destinations. Each > customerGroup has specific rules about the destinations that

Re: [Kamailio-Users] carrierroute and scan_prefix value

2009-01-21 Thread Juan Asencio
Hi Henning and list, here is a description of the configuration that I’m trying to test with carrierroute: I have 4 groups of customers calling to 6 different destinations. Each customerGroup has specific rules about the destinations that are allowed to call. For ex. CustomerGroup 1 can call to S-

Re: [Kamailio-Users] carrierroute and scan_prefix value

2009-01-20 Thread Henning Westerholt
On Monday 19 January 2009, Juan Asencio wrote: > Is it possible to choose different domains using the parameter > "scan_prefix" on the "carrierroute" table? > > For example: 1 have one carrier with two different domains pointing each > one of them to a different host. > > If the user makes a call t

[Kamailio-Users] carrierroute and scan_prefix value

2009-01-19 Thread Juan Asencio
Hi Henning, Is it possible to choose different domains using the parameter "scan_prefix" on the "carrierroute" table? For example: 1 have one carrier with two different domains pointing each one of them to a different host. If the user makes a call to a number starting with 234 the call goes to

Re: [Kamailio-Users] carrierroute prioritize gateways

2009-01-07 Thread Henning Westerholt
On Wednesday 07 January 2009, Juan Asencio wrote: > > you don't need to combine all carriers together. If you want to priorize > > over different carriers, then i'd suggest you also use them in cr. For > > example something like this: > > > > - carrier premium; domain 0, 1, 2; GWs a1, a2, a3, b1, b

Re: [Kamailio-Users] carrierroute prioritize gateways

2009-01-07 Thread Juan Asencio
Henning Westerholt wrote: > On Wednesday 07 January 2009, Juan Asencio wrote: > >> I found this in a post that I include at the end of this message, but >> the part that I want to ask about is this one: >> >> "You can put all the carriers under the same table and prioritize the >> gateway based

Re: [Kamailio-Users] carrierroute prioritize gateways

2009-01-07 Thread Henning Westerholt
On Wednesday 07 January 2009, Juan Asencio wrote: > I found this in a post that I include at the end of this message, but > the part that I want to ask about is this one: > > "You can put all the carriers under the same table and prioritize the > gateway based on domains. Like tis you don't need t

[Kamailio-Users] carrierroute prioritize gateways

2009-01-07 Thread Juan Asencio
Hi list, I'm reading some old post in order to implement carrierroute. I found this in a post that I include at the end of this message, but the part that I want to ask about is this one: "You can put all the carriers under the same table and prioritize the gateway based on domains. Like tis yo

Re: [Kamailio-Users] Carrierroute and AVP

2008-12-30 Thread Ovidiu Sas
Hello Henning, I can conform that the rewrite_host can be reliable read from $rd. Thank you for looking into this. Regards, Ovidiu Sas On Tue, Dec 30, 2008 at 8:08 AM, Henning Westerholt wrote: > On Mon, December 29, 2008 4:47 pm, Ovidiu Sas wrote: >> Hello Henning, >> >> Can we change the name

Re: [Kamailio-Users] Carrierroute and AVP

2008-12-30 Thread Henning Westerholt
On Mon, December 29, 2008 4:47 pm, Ovidiu Sas wrote: > Hello Henning, > > Can we change the name of the avp and retrieve the content of the > "descritpion" field in it? Hi Ovidiu, if the rewrite_host can be also reliable read from some PVs, then this should be possible. Let me do some tests first

Re: [Kamailio-Users] Carrierroute and AVP

2008-12-29 Thread Ovidiu Sas
Hello Henning, Can we change the name of the avp and retrieve the content of the "descritpion" field in it? Regards, Ovidiu Sas On Tue, Dec 23, 2008 at 9:50 AM, Henning Westerholt wrote: > On Fri, December 19, 2008 2:58 pm, rod wrote: >> I'd like to know if there is a way to retrieve the inform

Re: [Kamailio-Users] Carrierroute and AVP

2008-12-29 Thread rod
Henning, For the rewrite host I was looking for, I got it using $rd pseudovariable. Thanks for your support, Regards, rod Henning Westerholt wrote: > On Fri, December 19, 2008 2:58 pm, rod wrote: > >> I'd like to know if there is a way to retrieve the information from the >> carrierroute modu

Re: [Kamailio-Users] Carrierroute and AVP

2008-12-23 Thread Henning Westerholt
On Fri, December 19, 2008 2:58 pm, rod wrote: > I'd like to know if there is a way to retrieve the information from the > carrierroute module in AVPs. > Example: > - a prefix has matched, and I'd like to get the field "description" > associated with this route and add it in the SIP header >

[Kamailio-Users] Carrierroute and AVP

2008-12-19 Thread rod
Hi, I'd like to know if there is a way to retrieve the information from the carrierroute module in AVPs. Example: - a prefix has matched, and I'd like to get the field "description" associated with this route and add it in the SIP header - a prefix has matched, and I'd like to get t

[Kamailio-Users] carrierroute extensions in kamailio 1.5

2008-11-19 Thread Henning Westerholt
Hi all, i'm happy to announce that we finished the work on the carrierroute module for kamailio 1.5. We implemented a bunch of new features that makes the module more flexible then ever, and also fixed a few annoyances in the module usage: 1. Improved routing data loading The module supports n

Re: [Kamailio-Users] Carrierroute module: preffix qty?

2008-10-06 Thread Henning Westerholt
On Friday 03 October 2008, Daniel-Constantin Mierla wrote: > > I want to use carrierroute to terminate 50,000 preffixes to a PSTN gw > > and block 100,000. > > So I created 50,000 records with gw ip as rewrite_host. However I only > > was able to start kamailio with no more than about 2,200 records

Re: [Kamailio-Users] Carrierroute module: preffix qty?

2008-10-03 Thread Daniel-Constantin Mierla
Hello, Pablo Bertuzzi wrote: > Hi Forum, > > I want to use carrierroute to terminate 50,000 preffixes to a PSTN gw > and block 100,000. > So I created 50,000 records with gw ip as rewrite_host. However I only > was able to start kamailio with no more than about 2,200 records in > carrierroute m

[Kamailio-Users] Carrierroute module: preffix qty?

2008-09-29 Thread Pablo Bertuzzi
Hi Forum, I want to use carrierroute to terminate 50,000 preffixes to a PSTN gw and block 100,000. So I created 50,000 records with gw ip as rewrite_host. However I only was able to start kamailio with no more than about 2,200 records in carrierroute mysql table. Is it possible to use carrierr

Re: [Kamailio-Users] carrierroute compile error

2008-08-07 Thread Mouncif Benniane
That fixed it thanks On Thu, Aug 7, 2008 at 4:03 PM, TCB <[EMAIL PROTECTED]> wrote: > you need libconfuse-deve ! > > > On Thu, Aug 7, 2008 at 9:38 PM, Mouncif Benniane <[EMAIL PROTECTED]>wrote: > >> I did install libconfuse rpm for centos 5 but still same compile results >> >> [EMAIL PROTECTED] s

Re: [Kamailio-Users] carrierroute compile error

2008-08-07 Thread Daniel-Constantin Mierla
you need to install the devel version of the library. Cheers, Daniel On 08/07/08 22:38, Mouncif Benniane wrote: > I did install libconfuse rpm for centos 5 but still same compile results > > [EMAIL PROTECTED] sip-server]# rpm -qa | grep confuse > *libconfuse-2.5-4.el5* > [EMAIL PROTECTED] sip-se

Re: [Kamailio-Users] carrierroute compile error

2008-08-07 Thread Mouncif Benniane
I did install libconfuse rpm for centos 5 but still same compile results [EMAIL PROTECTED] sip-server]# rpm -qa | grep confuse *libconfuse-2.5-4.el5* [EMAIL PROTECTED] sip-server]# On Thu, Aug 7, 2008 at 3:30 PM, Daniel-Constantin Mierla <[EMAIL PROTECTED]>wrote: > You need libconfuse, don't kno

Re: [Kamailio-Users] carrierroute compile error

2008-08-07 Thread Daniel-Constantin Mierla
You need libconfuse, don't know exactly the name of the package on centos. http://www.kamailio.net/docs/modules/1.3.x/carrierroute.html#AEN53 Cheers, Daniel PS. Please note that the new mailing list address is [EMAIL PROTECTED] On 08/07/08 22:25, Mouncif Benniane wrote: > I am compiling versio

[Kamailio-Users] carrierroute compile error

2008-08-07 Thread Mouncif Benniane
I am compiling version openser 1.3.2 on centos realease 5 getting compile error stooping at carrierroute module see below: make[1]: Entering directory `/usr/local/src/openser-1.3.2/sip-server/modules/carrierroute' make[1]: Leaving directory `/usr/local/src/openser-1.3.2/sip-server/modules/carrie