Asterisk Setup Example

sip.conf

Create a domain as a SIP-Provider

[ocafs]

context =from_EPS

type=friend

secret=some secret

host= Put Oculeus Enterprise Protection Domain

nat=yes

extensions.conf

Route all PSTN calls to Oculeus Enterprise Protection Domain:

[pstn_out]

exten => _X.,1,SIPAddHeader(X-Asterisk-Num: ${CC}${LAC}${DN})

exten => _X.,2,Dial(SIP/${EXTEN}@ocafs)

exten => _X.,3,Hangup

Where ${CC}${LAC}${DN} is the Main Switch Board number of the PBX (e.g 44201345678).

Route all calls from Oculeus Enterprise Protection Domain to PSTN lines:

[from_EPS]

exten => _X.,1,Dial(DAHDI/g1/${EXTEN})

exten => _X.,2,Hangup()

The Asterisk PBX configuration may differ based on the used Hardware, Asterisk version and customized setup.