
Asterisk Configuration
SIP
A typical SIP configuration to utilise Blue Face services from your Asterisk Server:
sip.conf
[general]
; To recieve incoming calls to a dynamic IP address you need to register with our server. ; If you have a static address do not use this line and instead specify SIP/${EXTEN}@ipaddress:port in the ToolBox for the numbers you want forwarded.
register => username:password@sip.blueface.ie/1234
; Use the equivalent of the config below to make and receive calls.
[blueface]
type=peer
host=sip.blueface.ie
username=yourusername
fromuser=yourusername
secret=yourpassword
insecure=invite ; Specifies that authentication is not required for incoming INVITEs from sip.blueface.ie.
context=yourcontext
extensions.conf
; Specify the context to receive incoming calls.
[yourcontext]
; Note this is just an example there are infinite different ways to handle the incoming call.
exten => yourusername,1,Wait(1)
exten => yourusername,2,Playback(beep)
exten => yourusername,3,Hangup
[outgoing]
; Dial the Blue Face Speaking Clock.
exten => 303,1,Dial(SIP/303@blueface)
exten => 303,2,Hangup
; Send PSTN calls to Blueface.
exten => _X.,1,Dial(SIP/${EXTEN}@blueface)
exten => _X.,2,Hangup

