rule for sufix

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
ioan
Posts: 11
Joined: Fri Mar 16, 2007 9:58 am

rule for sufix

Post by ioan »

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
Posts: 34
Joined: Wed Feb 28, 2007 11:50 pm

Post by 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.
Post Reply