beautypg.com

Teletronics Enterprise SIP Server User Manual

Page 3

background image

TELETRONICS INTERNATIONAL, INC.

2

Enterprise SIP Server Tutorial – Dial Plan

s-tut-dp1.51-041228

1.

INTRODUCTION

...................................................................................... 6

2.

RULE DEFINITIONS FOR DIAL PLAN

.................................................... 7

2.1.

Matching Patterns

..................................................................................................................7

2.2.

Deploy Patterns

.....................................................................................................................8

2.3.

Main SIP Header Fields

.........................................................................................................9

2.4.

Main Methods of SIP Request

..............................................................................................9

2.5.

Regular Expressions

.............................................................................................................9

3.

FILTERING

............................................................................................. 11

3.1.

Filtering based on the Caller’s IP Address

......................................................................11

3.1.1.

Call from IP Address 192.168.0.1 is rejected

...................................................................11

3.1.2.

Routing a call from an IP Address with the prefix 192.168. to sip:ivr@domain

..............11

3.1.3.

Refusing a call from IP Address 192.168.0.1 - 192.168.0.5

............................................11

3.1.4.

Accepting calls from only the IP Address 192.168.0.1

.....................................................11

3.2.

Filtering based on the Caller’s Port Number

...................................................................11

3.2.1.

To refuse calls from Port Number 5061

............................................................................11

3.2.2.

To treat calls from Port Number 5060 – 5069 as error 404 (not found)

...........................11

3.2.3.

To refuse calls if the caller’s Port Number is 6060 and the corresponding IP Address is

192.168.0.100

.................................................................................................................................. 12

3.3.

Filtering based on whether the Callee is Registered in the register database or not.

....................................................................................................................................................

13

3.3.1.

Registered callee’s calls will be routed through sip:ivr@domain

.................................... 13

3.3.2.

To refuse calls to unregistered

......................................................................................... 13

3.3.3.

If the callee is registered and correspondingly the SIP-URI prefix is “1”, the caller will

hear a busy signal

............................................................................................................................ 13

3.4.

Filtering based on whether the Caller is Calling from a localhost.

............................. 14

3.4.1.

A call originating from localhost is routed through sip:ivr@domain

................................ 14

3.4.2.

Refusing a call that originated from a non- localhost

...................................................... 14

3.4.3.

Routing a call to sip:ivr@domain, when the call is from a localhost and it came from

Port Number 15060

.......................................................................................................................... 14

3.5.

Filtering based on whether the Call is an Outbound Connection

............................... 15

3.5.1.

If the call is outbound connection, route the call to sip:ivr@domain

.............................. 15

3.5.2.

If a call is not outbound, it will be treated as error 404 (not found)

................................. 15

3.5.3.

If the call is not outbound and callee SIP-URI’s prefix is “0”, the prefix will be removed

from the user name and the call will be routed through the “domain” using the extracted user
name

........................................................................................................................................... 15

3.5.4.

If the call is outbound, the SIP-URI inside the packet won’t be changed and the call

will be routed to 192.168.0.5

........................................................................................................... 16