Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
rule for sufix
Author Message
ioan
Brekeke Member


Joined: 16 Mar 2007
Posts: 11

PostPosted: Fri Mar 16, 2007 10:07 am    Post subject: rule for sufix Reply with quote

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
View user's profile
job
Brekeke Addict


Joined: 28 Feb 2007
Posts: 34

PostPosted: Tue Mar 20, 2007 9:22 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1