Hi All
I hope someone can point me in the right direction or just give me a hint.
I have the following route in ser.cfg and it works great. All I would like to do is change it so it matches on any number that starts with 002 regardless of length not just 12 more digits or a fixed length.
if(uri=~"sip:(002............)@")
I tried
if(uri=~"sip:(002*)@")
but it didn't work
TIA
Rick
Try:
if(uri=~"sip:002.*@") (put a . before the *. In this case You allow variable length).
or
if(uri=~"sip:002.{<n>}@") (where n indicate the number of digits/characters to be allowed/waited.)
or
if(uri=~"sip:002[0-9]{<n>}@") (to allow only n numbers).
Edson
_____
From: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Richard C. Thompson Sent: terça-feira, 26 de setembro de 2006 17:31 To: serusers@iptel.org Subject: [Serusers] digit matching
Hi All
I hope someone can point me in the right direction or just give me a hint.
I have the following route in ser.cfg and it works great. All I would like to do is change it so it matches on any number that starts with 002 regardless of length not just 12 more digits or a fixed length.
if(uri=~"sip:(002............)@")
I tried
if(uri=~"sip:(002*)@")
but it didnt work
TIA
Rick
Hi all
Please help out
________________________________
From: Mann, Kamal Sent: Tuesday, September 26, 2006 5:46 PM To: 'serusers@lists.iptel.org' Subject: RE: [Serusers] Implementing call fwd
Hi all
I am implementing Blind call forwarding with 0.9.6 SER version. But with current configuration it's not working. Please help on same.
I am enclosing small part of usr_prefrences table & my ser.cfg.
I haven't seen your first post with configs. Is it based on the callfwd example from the getting started document? g-)
Kamal.Mann@t-systems.com wrote:
Hi all
Please help out
*From:* Mann, Kamal *Sent:* Tuesday, September 26, 2006 5:46 PM *To:* 'serusers@lists.iptel.org' *Subject:* RE: [Serusers] Implementing call fwd
Hi all
I am implementing Blind call forwarding with 0.9.6 SER version. But with current configuration it's not working. Please help on same.
I am enclosing small part of usr_prefrences table & my ser.cfg.
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers