Re: [SR-Users] drouting

2015-04-24 Thread Daniel-Constantin Mierla
Hello, On 24/04/15 11:59, Keith wrote: > Hi, > > I am using drouting but having issues when trying to route numbers in > E164 in the prefix. Any ideas how to allow for a + in the prefix field > in the DB? > checking quickly, looks like drouting was designed to accept only digits for prefix. You c

Re: [SR-Users] drouting

2015-04-24 Thread Keith
Hi, I am using drouting but having issues when trying to route numbers in E164 in the prefix. Any ideas how to allow for a + in the prefix field in the DB? Thanks Keith ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users

[SR-Users] Drouting Question

2015-02-24 Thread Andrew Okri
Hi All, Does dropping set the $du or $ru uri when it finds a match in the database? I am getting destination not set error in my debug trace and he call request times out as a result. Regards Andrew Okri ___ SIP Express Router (SER) and

Re: [SR-Users] drouting failure loop

2014-06-01 Thread Daniel-Constantin Mierla
Hello, On 30/05/14 20:54, Pete Ashdown wrote: I'm trying to get my head around how to do a failure loop in droute through all possible destinations, and if all destinations are exhausted, go to failureroute. Does anyone have an example of this? Without the ability to do a while on (!t_relay())

[SR-Users] drouting failure loop

2014-05-30 Thread Pete Ashdown
I'm trying to get my head around how to do a failure loop in droute through all possible destinations, and if all destinations are exhausted, go to failureroute. Does anyone have an example of this? Without the ability to do a while on (!t_relay()) to determine whether to go to use_next_gw(), I'm

Re: [SR-Users] drouting/LCR/dispatcher

2014-04-29 Thread Gary Wallis
On 4/29/2014 06:36, Keith wrote: Hi all, I am having trouble deciding which one of these is best. I was going to start to use drouting but that doesn't seem to give me the probe efficiency of dispatcher. However I need to control calls based on destinations to different voice carriers. I'm look

[SR-Users] drouting/LCR/dispatcher

2014-04-29 Thread Keith
Hi all, I am having trouble deciding which one of these is best. I was going to start to use drouting but that doesn't seem to give me the probe efficiency of dispatcher. However I need to control calls based on destinations to different voice carriers. I'm looking for a combination of them to en

Re: [SR-Users] Drouting

2014-04-28 Thread aawaise
Hello, I want to decide route for incoming "INVITE" packet on basis of "Domain" entry in Location Table, i.e domain part of the user, used for identifing the user (along with the username part). Useful in multi domain scenarios, which is defined by modparam("usrloc", "use_domain", 1) As far as I

Re: [SR-Users] DRouting, routeid is not triggered

2014-04-28 Thread Daniel-Constantin Mierla
Hello, ok, I will backport. Cheers, Daniel On 27/04/14 16:44, Maciej Bylica wrote: Hi Daniel, It works... thanks alot for your help. Mac. 2014-04-25 0:48 GMT+02:00 Maciej Bylica >: Hi Daniel, I am about to do this on Fri and will give you feedback soon.

Re: [SR-Users] DRouting, routeid is not triggered

2014-04-27 Thread Maciej Bylica
Hi Daniel, It works... thanks alot for your help. Mac. 2014-04-25 0:48 GMT+02:00 Maciej Bylica : > Hi Daniel, > > I am about to do this on Fri and will give you feedback soon. > > Thanks > Mac. > > > > Can you try the patch from commit: >> >> - >> http://git.sip-router.org/cgi-bin/gitweb.cgi/

Re: [SR-Users] DRouting, routeid is not triggered

2014-04-24 Thread Maciej Bylica
Hi Daniel, I am about to do this on Fri and will give you feedback soon. Thanks Mac. Can you try the patch from commit: > > - > http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c3386295d7607a58d37a65b6822bf5f98b3fefa0 > > If you are using git, do a git pull, then you can pic

Re: [SR-Users] DRouting, routeid is not triggered

2014-04-24 Thread Maciej Bylica
Hello Do you need any other data to verify? Thanks. 2014-04-23 12:11 GMT+02:00 Maciej Bylica : > Hi Daniel, > > Here is debug you requested. > > DEBUG: [parser/msg_parser.c:623]: parse_msg(): SIP Request: > DEBUG: [parser/msg_parser.c:625]: parse_msg(): method: > DEBUG: [parser/msg_parse

Re: [SR-Users] Drouting

2014-04-24 Thread Keith
Hi all, So I moved away from LCR and dispatcher to use drouting but I can't see how to use probing. In OpenSIPS I can see this is built into the module but it's not in Kamailio. Any ideas how I can get round this? I want to use drouting for all my routing needs. Cheers Keith

Re: [SR-Users] Drouting

2014-04-23 Thread Keith
Hi, Or is it possible to use a regular expression for the user? I basically want certain users to use a certain route without having to add them all in. Keith ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.si

Re: [SR-Users] DRouting, routeid is not triggered

2014-04-23 Thread Maciej Bylica
Hi Daniel, Here is debug you requested. DEBUG: [parser/msg_parser.c:623]: parse_msg(): SIP Request: DEBUG: [parser/msg_parser.c:625]: parse_msg(): method: DEBUG: [parser/msg_parser.c:627]: parse_msg(): uri: < sip:43111223344@10.10.10.5> DEBUG: [parser/msg_parser.c:629]: parse_msg():

Re: [SR-Users] DRouting, routeid is not triggered

2014-04-22 Thread Daniel-Constantin Mierla
Hello, can you set debug=3 in kamailio.cfg and then send the syslog messages for routing a call matching the drouting rule? Cheers, Daniel On 22/04/14 19:12, Maciej Bylica wrote: Hello, I am working on version: kamailio 4.1.2 (x86_64/linux) and heaving troubles with drouting module. The pr

Re: [SR-Users] Drouting

2014-04-22 Thread Daniel-Constantin Mierla
Hello, On 22/04/14 18:26, Keith wrote: Hi, I am trying to use the drouting module and was wondering if there is a wildcard character for the dr_groups table for the user? My situation is that I want to look at any user from a certain IP range (i.e. the carrier). Any ideas? Do you want t

[SR-Users] DRouting, routeid is not triggered

2014-04-22 Thread Maciej Bylica
Hello, I am working on version: kamailio 4.1.2 (x86_64/linux) and heaving troubles with drouting module. The problem i am facing is that kamailio cannot enter routeid that is provided inside dr_rule table. My last try was to use standard script file with placing following data before t_relay

[SR-Users] Drouting

2014-04-22 Thread Keith
Hi, I am trying to use the drouting module and was wondering if there is a wildcard character for the dr_groups table for the user? My situation is that I want to look at any user from a certain IP range (i.e. the carrier). Any ideas? Thanks Keith ___

Re: [SR-Users] DROUTING nub question

2012-08-27 Thread Daniel-Constantin Mierla
Hello, this could be also an workaround for adding some prefix based on length. But also the length can be used, it should work like: $rU = "" + $(rU{s.len}) + $rU; (note the empty string) or pv_printf("$rU", "$(rU{s.len})$rU"); Cheers, Daniel On 8/28/12 7:25 AM, Javi Gallart wrote: Hi m

Re: [SR-Users] DROUTING nub question

2012-08-27 Thread Javi Gallart
Hi maybe this would work. You have a mask like "" (you choose the max length and the content). From the mask you extract as many digits as the length of your number with {s.substr,offset,length}, being length $(rU{s.len}}. Then you prepend the result to you $rU. Hope it helps J

Re: [SR-Users] DROUTING nub question

2012-08-27 Thread Luis Fernando Urrea
I see there is a transformation to return the string value of an integer but I can't seem to find the opposite one. {s.int} Return integer value of a string-represented number On Mon, Aug 27, 2012 at 6:22 PM, Luis Fernando Urrea wrote: > Thanks Daniel, > > That got me started, however, it seems

Re: [SR-Users] DROUTING nub question

2012-08-27 Thread Luis Fernando Urrea
Thanks Daniel, That got me started, however, it seems that the return value from $(rU{s.len}) is actually an integer and therefore could not be concatenated to $rU string ? 4(18194) ERROR: pv [pv_core.c:1798]: str value required to set R-URI user 14(18194) ERROR: [lvalue.c:354]: setting pvar fa

Re: [SR-Users] DROUTING nub question

2012-08-27 Thread Daniel-Constantin Mierla
Hello, one solution is doing following trick: - get the length of the dialed number via transformation and prefix it to the number $rU = $(rU{s.len}) + $rU; - in drouting keep rules only for prefixes 2, 4, 6, 7 and 8 - for drouting gateways set strip to 1, so the first digit (the length) i

Re: [SR-Users] DROUTING nub question

2012-08-27 Thread Luis Fernando Urrea
Yes thank you Daniel, On my setup I terminate local calls using colocated TDM equipment, these calls are 8 digit numbers that start with 2,4,6,7 and 8 Then I use a FreeSWITCH box as a gateway for US and international calls, so I was hoping I could somehow route based on numbers of digits. I hope

Re: [SR-Users] DROUTING nub question

2012-08-27 Thread Daniel-Constantin Mierla
Hello, On 8/27/12 6:54 PM, Luis Fernando Urrea wrote: I haven't been able to find the answer in the documentation. It seems DROUTING does not take regex in the dr_rules table to match routable numbers, are there any kind of wilcards that could be used. How does one specify different rules fo

[SR-Users] DROUTING nub question

2012-08-27 Thread Luis Fernando Urrea
I haven't been able to find the answer in the documentation. It seems DROUTING does not take regex in the dr_rules table to match routable numbers, are there any kind of wilcards that could be used. How does one specify different rules for 8 digit numbers and 10 digit numbers. TIA -- O: 4000-

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-14 Thread Daniel-Constantin Mierla
Hello, On 6/14/12 11:36 AM, Yufei Tao wrote: Hi Daniel I've tried the patch on my 3.2.2 and it doesn't crash now! thanks for feedback -- I backported the patch to 3.3 and 3.2 branches. Cheers, Daniel Thanks! Yufei On 13/06/12 10:55, Daniel-Constantin Mierla wrote: Hello, can you try wit

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-14 Thread Yufei Tao
Hi Daniel I've tried the patch on my 3.2.2 and it doesn't crash now! Thanks! Yufei On 13/06/12 10:55, Daniel-Constantin Mierla wrote: > Hello, > > can you try with the patch from commit: > > http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c737ff95bb2e742981d81088169baa60d4605

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-13 Thread Daniel-Constantin Mierla
Hello, can you try with the patch from commit: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c737ff95bb2e742981d81088169baa60d4605b85 It is one line of effective code that you have to change. Let me know if goes ok now and I will backport to stable branches. Cheers, Dan

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-13 Thread Yufei Tao
Hi Daniel The version is: version: kamailio 3.2.2 (i386/linux) flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAP

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-13 Thread Daniel-Constantin Mierla
Hello, this situation seems to be caused by the fact there is no valid routing rule at all. Can you get the backtrace? First do: ulimit -c unlimited Then run again an a corefile should be generated (in / or in working directory) - use gdb to get the backtrace: gdb /path/to/kamailio /path/

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-12 Thread Yufei Tao
Hi Daniel Thanks for the reply! I tried it again and the log seems to suggest it crashed when loading the dr_rules table that contains non-digit prefix, e.g. prefix bing 'abc.': 1. First crash when doing MI command "dr_reload": " Jun 12 15:19:07 myserver2 /usr/sbin/kamailio[2293]: INFO: drouting

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-12 Thread Daniel-Constantin Mierla
Hello, On 6/1/12 4:57 PM, Yufei Tao wrote: Hi I'm using drouting module and seems that it only allows digit-only prefixes. Also all the number of digits to be stripped ('strip' defined in dr_gateways) must be all digits too. When I used non-digits in these, Kamailio crashed. Is there any way i

[SR-Users] drouting module: can I use non-digit prefix?

2012-06-01 Thread Yufei Tao
Hi I'm using drouting module and seems that it only allows digit-only prefixes. Also all the number of digits to be stripped ('strip' defined in dr_gateways) must be all digits too. When I used non-digits in these, Kamailio crashed. Is there any way in drouting module that I can use prefixes with

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-03-19 Thread Daniel-Constantin Mierla
in advance, F.Chahrour *From:*Daniel-Constantin Mierla [mailto:mico...@gmail.com] *Sent:* Friday, March 16, 2012 7:12 PM *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List *Cc:* Fatima Chahrour~Vanrise Support *Subject:* Re: [SR-Users] DRouting cause Kamailio

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-03-19 Thread Fatima Chahrour~Vanrise Support
~Vanrise Support Subject: Re: [SR-Users] DRouting cause Kamailio 3.2 to stop Hello, finally I had the time to look at the documents you sent. The problem is that you have recursive execution of do_routing("0") from do_routing("0"). This happens because you have route[4] li

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-03-16 Thread Daniel-Constantin Mierla
e. F.Chahrour *From:*Daniel-Constantin Mierla [mailto:mico...@gmail.com] *Sent:* Thursday, March 01, 2012 3:44 PM *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List *Cc:* Fatima Chahrour~Vanrise Support *Subject:* Re: [SR-Users] DRouting cause Kamailio 3.2 to sto

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-03-02 Thread Daniel-Constantin Mierla
IP Express Router (SER) - Users Mailing List *Cc:* Fatima Chahrour~Vanrise Support *Subject:* Re: [SR-Users] DRouting cause Kamailio 3.2 to stop Hello, can you send also the full version - -the output of '/usr/local/sbin/kamailio -V' Based on the backtrace, I could not match a valid line

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-03-02 Thread Daniel-Constantin Mierla
March 01, 2012 3:44 PM *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List *Cc:* Fatima Chahrour~Vanrise Support *Subject:* Re: [SR-Users] DRouting cause Kamailio 3.2 to stop Hello, can you send also the full version - -the output of '/usr/local/sbin/kam

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-03-01 Thread Fatima Chahrour~Vanrise Support
: Fatima Chahrour~Vanrise Support Subject: Re: [SR-Users] DRouting cause Kamailio 3.2 to stop Hello, can you send also the full version - -the output of '/usr/local/sbin/kamailio -V' Based on the backtrace, I could not match a valid line in the source code that could cause a crash.

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-03-01 Thread Daniel-Constantin Mierla
antin Mierla [mailto:mico...@gmail.com] *Sent:* Thursday, March 01, 2012 11:34 AM *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List *Cc:* Fatima Chahrour~Vanrise Support *Subject:* Re: [SR-Users] DRouting cause Kamailio 3.2 to stop Hello, that's the core

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-03-01 Thread Fatima Chahrour~Vanrise Support
~Vanrise Support Subject: Re: [SR-Users] DRouting cause Kamailio 3.2 to stop Hello, that's the core file, do: gdb /usr/local/sbin/kamailio /core The send out the output from the gdb commands: bt bt full Cheers, Daniel On 3/1/12 10:03 AM, Fatima Chahrour~Vanrise Support wrote: Dear D

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-03-01 Thread Daniel-Constantin Mierla
Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List *Cc:* Fatima Chahrour~Vanrise Support; sr-users-boun...@lists.sip-router.org <mailto:sr-users-boun...@lists.sip-router.org> *Subject:* Re: [SR-Users] DRouting cause Kamailio 3.2 to stop Hello, have you foun

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-03-01 Thread Fatima Chahrour~Vanrise Support
...@gmail.com] Sent: Thursday, March 01, 2012 10:15 AM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Cc: Fatima Chahrour~Vanrise Support; sr-users-boun...@lists.sip-router.org Subject: Re: [SR-Users] DRouting cause Kamailio 3.2 to stop Hello, have you found t

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-02-26 Thread Stoyan Mihaylov
ists.sip-router.org [mailto: > sr-users-boun...@lists.sip-router.org] *On Behalf Of *Stoyan Mihaylov > *Sent:* Friday, February 24, 2012 5:05 PM > > *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - > Users Mailing List > *Subject:* Re: [SR-Users] DRouting caus

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-02-26 Thread Fatima Chahrour~ Vanrise Technical Support
(SER) - Users Mailing List Subject: Re: [SR-Users] DRouting cause Kamailio 3.2 to stop I am working with kamailio from 3 months or so. And we use it only as registrar and load balance. All routing is done from Asterisks which are behind kamailio. I only "route" using ds_select_dst -

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-02-24 Thread Stoyan Mihaylov
al/sbin/kamailio[19301]: INFO: > [main.c:817]: INFO: signal 15 received > > ** ** > > There is no error raised; So, shall I consider this as Kamailio crash and > focus my search on this as you mentioned previously? Or I need help in > achieving correct route script

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-02-24 Thread Fatima Chahrour~Vanrise Support
r-users-boun...@lists.sip-router.org] On Behalf Of Stoyan Mihaylov Sent: Friday, February 24, 2012 2:48 PM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Subject: Re: [SR-Users] DRouting cause Kamailio 3.2 to stop I suppose - kamailio crashes. You can run in cons

Re: [SR-Users] DRouting cause Kamailio 3.2 to stop

2012-02-24 Thread Stoyan Mihaylov
I suppose - kamailio crashes. You can run in console on same server: tail -f /var/log/syslog or you can tail file where sys logs are stored. There - you can see some debugs, and you can check discussion about kamailio crashes and how to get dump file. This way you will identify problem and then eit

[SR-Users] DRouting cause Kamailio 3.2 to stop

2012-02-23 Thread Fatima Chahrour~Vanrise Support
Hi, I am newly experiencing kamailio 3.2. I have installed kamailio and MySQL and tried the test call from 1 PC(x-lite) to another PC(x-lite) and ended successfully. Now moving further, I have configured dynamic routing module and applied needed parameters and scripts to finally be able to

Re: [SR-Users] drouting - do_routing with $avp does not work

2012-01-16 Thread Daniel-Constantin Mierla
Hello, might be that the drouting module expects the group id avp to hold an integer, looking at your config snippet, it is string. Try with: $avp(tdr)=$(avp(dr_attrs){s.int}); Cheers, Daniel On 1/15/12 5:11 PM, Uri Shacked wrote: Hi, this is my cfg: if(do_routing("0")){ $avp(tdr)=$avp(dr

[SR-Users] drouting - do_routing with $avp does not work

2012-01-15 Thread Uri Shacked
Hi, this is my cfg: if(do_routing("0")){ $avp(tdr)=$avp(dr_attrs); } else { $avp(tdr)="1"; } subst_user('/(.*)/$avp(Ssrvindx)/'); xlog("L_CRIT","$C(rg) group is $avp(tdr)$C(xx)\n"); if(!do_routing("$avp(tdr)")){ xlog("L_CRIT","$C(rg)No TDR is found for $avp(DID) with Index $avp(Ss

Re: [SR-Users] Drouting usage

2010-10-26 Thread Javier Gallart
(Daniel-Constantin Mierla) > 8. Re: bflag under failure_route (kamailio 1.5) (I?aki Baz Castillo) > > > ---------- > > Message: 1 > Date: Mon, 25 Oct 2010 15:16:56 +0200 > From: Javier Gallart > Subject: [SR-Users] Drouting usage > To: sr-users

Re: [SR-Users] Drouting usage

2010-10-25 Thread marius zbihlei
On 10/25/2010 04:16 PM, Javier Gallart wrote: Hello sorry if this sounds too "newbie". I'm interested in the drouting module. The first INVITE is correctly forwarded to the gw foudn in the drouting table: if (is_method("INVITE") && !has_totag()) { do_routing("0");

[SR-Users] Drouting usage

2010-10-25 Thread Javier Gallart
Hello sorry if this sounds too "newbie". I'm interested in the drouting module. The first INVITE is correctly forwarded to the gw foudn in the drouting table: if (is_method("INVITE") && !has_totag()) { do_routing("0"); record_route(); } However for subsequen