Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Dial plan: when no registered clients, send call to an IP
Author Message
ioan
Brekeke Member


Joined: 16 Mar 2007
Posts: 11

PostPosted: Mon Dec 27, 2010 11:17 am    Post subject: Dial plan: when no registered clients, send call to an IP Reply with quote

1. Brekeke Product Name and version:
2.4.7.0/286.1

6. Your problem:

Is it possible to have a rule that will forward the call to the client "ioan" (To=sip:ioan@) if the client is registered, and if not, send the call to an IP ($target=123.123.123.123) ?
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 287
Location: Japan

PostPosted: Mon Dec 27, 2010 12:32 pm    Post subject: Reply with quote

Rule-1:
Matching Patterns
$request = ^INVITE
$registered( "ioan" ) = true
Deploy Patterns
To = sip:ioan@


Rule-2:
Matching Patterns
$request = ^INVITE
To = sip:(.+)@
Deploy Patterns
To = sip:%1@123.123.123.123
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