Forums Read-only archive

rule for sufix

2 posts · Brekeke SIP Server Forum

ioan Original post
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
job
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.