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

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 can

Re: [SR-Users] drouting failure loop

2014-06-02 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())

Re: [SR-Users] Drouting

2014-04-29 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 have

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

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 mb...@gazeta.pl mailto:mb...@gazeta.pl: Hi Daniel, I am about to do this on Fri and will give you

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 mb...@gazeta.pl: 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: -

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, 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 mb...@gazeta.pl: Hi Daniel, Here is debug you requested. DEBUG: core [parser/msg_parser.c:623]: parse_msg(): SIP Request: DEBUG: core [parser/msg_parser.c:625]: parse_msg(): method: INVITE

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

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

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

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

Re: [SR-Users] DROUTING nub question

2012-08-28 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 maybe

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

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

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)

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: core [lvalue.c:354]: setting

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 lfur...@simplecs.netwrote: Thanks Daniel, That got me started,

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

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=c737ff95bb2e742981d81088169baa60d4605b85

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

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

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,

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,

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

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 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] like: route[4

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-16 Thread Daniel-Constantin Mierla
, 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/kamailio -V

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

2012-03-01 Thread Daniel-Constantin Mierla
) 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 found the core file in /var/log/? It is a strange

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 Daniel

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 - to select

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

2012-02-26 Thread Stoyan Mihaylov
-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 cause Kamailio 3.2 to stop ** ** I am

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

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

2012-02-24 Thread Fatima Chahrour~Vanrise Support
...@lists.sip-router.org [mailto:sr-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

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

2012-02-24 Thread Stoyan Mihaylov
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 console on same server: tail

Re: [SR-Users] Drouting usage

2010-10-26 Thread Javier Gallart
://lists.sip-router.org/pipermail/sr-users/attachments/20101025/eeae5259/attachment-0001.htm -- Message: 3 Date: Mon, 25 Oct 2010 16:51:32 +0300 From: marius zbihlei marius.zbih...@1and1.ro Subject: Re: [SR-Users] Drouting usage To: sr-users@lists.sip-router.org

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);