Author |
Message |
ioan Brekeke Member
Joined: 16 Mar 2007 Posts: 11
|
Posted: Fri Mar 16, 2007 10:07 am Post subject: rule for sufix |
|
|
SIP Server , Version 2.0.7.0 Evaluation
Windows 2000
CASFax
Pattern 4
I need to make a rule for the DIDs that end in 52 to go to one IP and everything else to another IP.
Can you please help me with this one?
TIA
-ioan |
|
Back to top |
|
job Brekeke Addict
Joined: 28 Feb 2007 Posts: 34
|
Posted: Tue Mar 20, 2007 9:22 pm Post subject: |
|
|
First dialplan
Matching Patterns | From = sip:(.+)52@ To = sip:(.+)@
| Deploy Patterns | To = sip:%2@<ip address1>
|
Second dialplan
Matching Patterns | To = sip:(.+)@
| Deploy Patterns | To = sip:%1@<ip address2>
|
Or otherwise you can use $target in deploy patterns insted of replacing To header. |
|
Back to top |
|
|