Re: [SR-Users] prefix with kamailio

2010-05-27 Thread alexis heron
Thank you very much. It works with strip(1); best regards Henning Westerholt wrote: On Wednesday 26 May 2010, dotnetdub wrote: I want to absorb a number with kamailio just to make out only three but I can not. In fact I send 1941 kamailio and i spring 941 with kamailio so I absorb a number.

Re: [SR-Users] prefix with kamailio

2010-05-27 Thread alexis heron
In fact I want to send 1941 from Mitel IPBX to kamailio and kamailio return only 941 in the cisco call manager, that's why I say that kamailio absorbs the number one. Cisco Call Manager<->kamailio<--->IPBX Mitel kamailio send 941<--receives 1941 and absorbs the 1<---send 1941

[SR-Users] prefix with kamailio

2010-05-26 Thread alexis heron
hello I want to absorb a number with kamailio just to make out only three but I can not. In fact I send 1941 kamailio and i spring 941 with kamailio so I absorb a number. Here is how I : if ($rU=~"^1+941$") { log(1, "kamailio vers CCM 9xx"); route(10);

Re: [SR-Users] syntax error with kamailio

2010-04-14 Thread alexis heron
alexis heron wrote: Hi, I have a problem to routing with kamailio. When I restart kamailio I have this error message : 0(710) : [cfg.y:3328]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 640, column 2-3: syntax error 0(710) : [cfg.y:3328]: parse error in config file

Re: [SR-Users] hox to a SIPtrunk with kamailio 3.0.0

2010-04-14 Thread alexis heron
marius zbihlei wrote: alexis heron wrote: Iñaki Baz Castillo wrote: 2010/4/13 alexis heron : Hi, I would like to make a SIPTrunk with kamailio to redirect to a 9xx numbers in Cisco Call manager, can you help me please. Here's what I did but it does not work. Please specif

Re: [SR-Users] hox to a SIPtrunk with kamailio 3.0.0

2010-04-13 Thread alexis heron
Iñaki Baz Castillo wrote: 2010/4/13 alexis heron : Hi, I would like to make a SIPTrunk with kamailio to redirect to a 9xx numbers in Cisco Call manager, can you help me please. Here's what I did but it does not work. Please specify the exact error you have. "It does not wo

[SR-Users] hox to a SIPtrunk with kamailio 3.0.0

2010-04-13 Thread alexis heron
Hi, I would like to make a SIPTrunk with kamailio to redirect to a 9xx numbers in Cisco Call manager, can you help me please. Here's what I did but it does not work. if (uri=~"sip:9[0-9][0...@ccm-ipv6.crihan.fr") { log(1, "Matched Cisco Call Manager"); route(4);

Re: [SR-Users] syntax error with kamailio

2010-04-13 Thread alexis heron
Iñaki Baz Castillo wrote: 2010/4/13 alexis heron : help me please, how to make a SIPtrunk?? Please, open a new thread for a new topic. Anyhow, I recommend you reading the full documentation. There is not a "magic" concept of a SIPtrunk. yes but with if(uri=~...) it&

Re: [SR-Users] syntax error with kamailio

2010-04-13 Thread alexis heron
Laszlo wrote: failure_route[FAIL_ONE] { is closed before your "if ( $rU =~ "^9[0- ." 2010/4/13 alexis heron <mailto:alexis.he...@crihan.fr>> Daniel-Constantin Mierla wrote: On 4/13/10 11:59 AM, alexis heron wrote: Daniel

Re: [SR-Users] syntax error with kamailio

2010-04-13 Thread alexis heron
marius zbihlei wrote: alexis heron wrote: # Sample failure route failure_route[FAIL_ONE] { #!ifdef WITH_NAT if (is_method("INVITE") && (isbflagset("6") || isflagset(5))) { unforce_rtp_proxy(); } #!endif if (t_is_canceled()) { ex

Re: [SR-Users] syntax error with kamailio

2010-04-13 Thread alexis heron
Daniel-Constantin Mierla wrote: On 4/13/10 11:59 AM, alexis heron wrote: Daniel-Constantin Mierla wrote: On 4/13/10 11:49 AM, alexis heron wrote: Iñaki Baz Castillo wrote: 2010/4/13 alexis heron : As a suggestion, if you are interested in matching just the RURI username part then I

Re: [SR-Users] syntax error with kamailio

2010-04-13 Thread alexis heron
Daniel-Constantin Mierla wrote: On 4/13/10 11:59 AM, alexis heron wrote: Daniel-Constantin Mierla wrote: On 4/13/10 11:49 AM, alexis heron wrote: Iñaki Baz Castillo wrote: 2010/4/13 alexis heron : As a suggestion, if you are interested in matching just the RURI username part then I

Re: [SR-Users] syntax error with kamailio

2010-04-13 Thread alexis heron
Daniel-Constantin Mierla wrote: On 4/13/10 11:49 AM, alexis heron wrote: Iñaki Baz Castillo wrote: 2010/4/13 alexis heron : As a suggestion, if you are interested in matching just the RURI username part then I strongly recommend you doing so as follows: if ( $rU =~ "^9[0-9

Re: [SR-Users] syntax error with kamailio

2010-04-13 Thread alexis heron
Iñaki Baz Castillo wrote: 2010/4/13 alexis heron : As a suggestion, if you are interested in matching just the RURI username part then I strongly recommend you doing so as follows: if ( $rU =~ "^9[0-9][0-9]$" ) { log(1, "Matched Cisco Call Manager");

Re: [SR-Users] syntax error with kamailio

2010-04-13 Thread alexis heron
Iñaki Baz Castillo wrote: 2010/4/13 alexis heron : Hi, I have a problem to routing with kamailio. When I restart kamailio I have this error message : 0(710) : [cfg.y:3328]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 640, column 2-3: syntax error 0(710) : [cfg.y

Re: [SR-Users] syntax error with kamailio

2010-04-13 Thread alexis heron
marius zbihlei wrote: alexis heron wrote: Hi, I have a problem to routing with kamailio. When I restart kamailio I have this error message : 0(710) : [cfg.y:3328]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 640, column 2-3: syntax error 0(710) : [cfg.y:3328

[SR-Users] syntax error with kamailio

2010-04-13 Thread alexis heron
Hi, I have a problem to routing with kamailio. When I restart kamailio I have this error message : 0(710) : [cfg.y:3328]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 640, column 2-3: syntax error 0(710) : [cfg.y:3328]: parse error in config file /usr/local/etc/kamai