Brekeke SIP Server Wiki

1.3. Routing Setting by the Destination IP Address or FQDN

 

Ex 1. Routing a call to “server” if the callee’s host name is “host”
Matching Patterns Deploy Patterns
$request = ^INVITE
$geturi( To ) = @host
$target = server

 

 

Ex 2. Routing a call to “host.domain” if the call is from 192.168.0.1
Matching Patterns Deploy Patterns
$request = ^INVITE
$addr = 192\.168\.0\.1$
$target = host.domain

 

 

Ex 3. Routing a call to “host.domain” if the call is from the localhost
Matching Patterns Deploy Patterns
$request = ^INVITE
$localhost = true
$target = host.domain

 

Ex 4. Routing a call to 192.168.0.100 if the call is from the port number 15060
Matching Patterns Deploy Patterns
$request = ^INVITE
$port = ^15060$
$target = 192.168.0.100

 

 

Ex 5. Routing a call to 192.168.0.100 if the request method is SUBSCRIBE
Matching Patterns Deploy Patterns
$request = ^SUBSCRIBE
$target = 192.168.0.100

 

 

Yes No
Suggest Edit