Brekeke SIP Server Wiki

1.2. Routing Setting by the Destination User Name

 

Ex 1. Routing a call to the user “user” if the user is registered
Matching Patterns Deploy Patterns
$request = ^INVITE
$registered( "user" ) = true
To = sip:user@

 

 

Ex 2. Routing a call to the user “user” if the callee isn’t registered
Matching Patterns Deploy Patterns
$request = ^INVITE
$registered = false
$registered( "user" ) = true
To = sip:user@


 

 

Ex 3. Routing a call to the user who was registered as the callee’s name with the prefix “9”
Matching Patterns Deploy Patterns
$request = ^INVITE
To = sip:(.+)@
To = sip:9%1@

 

 

Ex 4. Routing a call to the user “user” from 10:00AM to 5:59PM
Matching Patterns Deploy Patterns
$request = ^INVITE
$time =^1[0-7]:
To = sip:user@

 

Ex 5. Routing a call to the user “user” from December 12 to December 19
Matching Patterns Deploy Patterns
$request = ^INVITE
$date = 12/1[2-9]$
To = sip:user@

 

 

Yes No
Suggest Edit