Glueing everything together with extensions.conf spa-3000 with asterisk

Its worth reading the wiki pages on extensions.conf as well as the pages on contexts and extensions as well as extension names and patterns.

The local_phone section handles the interpretation of the digits dialled from the SPA-3000 or softphone. It was specified as the context in the configuration sections for the SPA-3000 outgoing connection ([spa3000]) and softphone ([chris]).

; internode
; national/international
exten => _0XX.,1,Dial(SIP/${EXTEN},200,r)
; local
exten => _6XXXXXXX,1,Dial(SIP/${EXTEN},200,r)
; The local section is pretty much Canberra specific

; sipphone
exten => _91747XXXXXXX,1,Dial(SIP/${EXTEN:1},200,r)

; Dialling 9#0 on the handset connects to the voicemail box
exten => 9#0,1,VoiceMailMain(s3000)

For incoming calls and voicemail:

exten => s,1,Dial(SIP/spa3000, 20)
exten => s,2,VoiceMail(u3000@default)

Asterisk will ring the handset connected to the SPA-3000 for 20 seconds before sending the call to voicemail box 3000. If you want you can do fancier things here. For example, you can have different greeting messages depending on whether the extension is engaged or if no one answers the phone in time.
read more:

Related post

Newer Post Older Post


Post a Comment


Wiki Voip And Fax Tutorials Copyright © 2010 Labloub