You are here... Help & Advice Open Source - Asterisk

Set Asterisk with Blueface
Asterisk

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

IAX

A typical IAX configuration to utilise Blue Face services from your Asterisk Server:

; To recieve incoming calls you need to register with our server.

register => yourusername:yourpassword@iax.blueface.ie

; To receive incoming calls specify this block and replace "yourcontext" for your dial plan.
[yourusername]
type=user
host=iax.blueface.ie
context=yourcontext

; To make outgoing calls specify this block;
[blueface-out]
type=peer
host=iax.blueface.ie
username=yourusername
secret=yourpassword

extensions.conf

; Specify the context to receive incoming calls.
[yourcontext]
; Note this is just an example there are inifinite 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(IAX2/blueface-out/303)
exten => 303,2,Hangup

; Send PSTN calls to Blueface.
exten => _X.,1,Dial(IAX2/blueface-out/${EXTEN})
exten => _X.,2,Hangup

Back to Top