I got a few bits working.
pacman -U
http://myplugbox.com/asterisk/asterisk- ... pkg.tar.gzpacman -U
http://myplugbox.com/asterisk-addons/as ... pkg.tar.gzMy /etc/asterisk/extensions.conf file
$this->bbcode_second_pass_code('', '[default]
exten => 5010,1,Dial(SIP/5010)
exten => 5010,2,Hangup()
exten => 5020,1,Dial(SIP/5020)
exten => 5020,2,Hangup()
exten => 600,1,Playback(demo-echotest) ; Let them know what's going on
exten => 600,2,Echo ; Do the echo test
exten => 600,3,Playback(demo-echodone) ; Let them know it's over
include => stdexten
[stdexten]
exten => _X.,4000(stdexten),NoOp(Start stdexten)
exten => _X.,n,Set(LOCAL(ext)=${EXTEN})
exten => _X.,n,Set(LOCAL(dev)=${ARG1})
exten => _X.,n,Set(LOCAL(cntx)=${ARG2})
exten => _X.,n,Set(LOCAL(mbx)="${ext}"$["${cntx}" ? "@${cntx}" :: ""])
exten => _X.,n,Dial(${dev},20) ; Ring the interface, 20 seconds maximum
exten => _X.,n,Goto(stdexten-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
exten => stdexten-NOANSWER,1,Voicemail(${mbx},u) ; If unavailable, send to voicemail w/ unavail announce
exten => stdexten-NOANSWER,n,NoOp(Finish stdexten NOANSWER)
exten => stdexten-NOANSWER,n,Return() ; If they press #, return to start
exten => stdexten-BUSY,1,Voicemail(${mbx},b)
; If busy, send to voicemail w/ busy announce
exten => stdexten-BUSY,n,NoOp(Finish stdexten BUSY)
exten => stdexten-BUSY,n,Return() ; If they press #, return to start
exten => _stde[x]te[n]-.,1,Goto(stdexten-NOANSWER,1) ; Treat anything else as no answer
exten => a,1,VoicemailMain(${mbx}) ; If they press *, send the user into VoicemailMain
exten => a,n,Return()
exten => 600,1,Playback(demo-echotest) ; Let them know what's going on
exten => 600,2,Echo ; Do the echo test
exten => 600,3,Playback(demo-echodone) ; Let them know it's over
include => default
exten => 8500,1,VoicemailMain
exten => 8500,n,Hangup')
My /etc/asterisk/sip.conf file
$this->bbcode_second_pass_code('', '[5010]
type=friend
username=5010
secret=123456
host=dynamic
allow=all
context=default
[5020]
type=friend
username=5020
secret=123456
host=dynamic
allow=all
context=default
[4001]
type=friend
username=4001
secret=123456
host=dynamic
allow=all
context=stdexten
[4002]
type=friend
username=4002
secret=123456
host=dynamic
allow=all
context=stdexten')
Extension numbers and password in sip.conf
Then
/etc/rc.d/asterisk start
to get it going
Dave