Home Contact Download

asyd.net

Welcome to Bruno Bonfils's (aka asyd homepage).

Asterisk

Definitions

context Kind of virtual pbx

Commands

sip peers sip show peers
help sip help about sip commands

sip.conf

[general]
realm=asyd.net
context=asyd
srvlookup=no
localnet=172.16.1.0/30
localnet=192.168.123.0/24
allow=ulaw
allow=ilbc

[asyd]
type=friend
secret=welcome
qualify=yes ; Qualify peer is no more than 2000 ms away
nat=no ; This phone is not natted
host=dynamic ; This device registers with us
canreinvite=no ; Asterisk by default tries to redirect
dtmfmode=rfc2833
disallow=all
allow=ulaw
context=asyd
voicemail=100@default

[rsilvestre]
type=friend
secret=welcome
qualify=yes ; Qualify peer is no more than 2000 ms away
nat=no ; This phone is not natted
host=dynamic ; This device registers with us
canreinvite=no ; Asterisk by default tries to redirect
dtmfmode=rfc2833
disallow=all
allow=ulaw
context=asyd

extensions.conf

[asyd]

exten => 100,1,Dial(SIP/asyd,,r)

exten => 101,1,Dial(SIP/rsilvestre|30,,r)
exten => 101,2,VoiceMail(b100@default)

exten => 300,1,Wait(1)
exten => 300,2,setvar(FutureTime=$[${EPOCH} + 10])
exten => 300,3,playback(at-tone-time-exactly)
exten => 300,4,SayUnixTime(${FutureTime},,R)
exten => 300,5,playback(vm-and)
exten => 300,6,SayUnixTime(${FutureTime},,S)
exten => 300,7,playback(seconds)
exten => 300,8,playback(beep)
exten => 300,9,wait(2)
exten => 300,10,goto(1)

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
;exten => 600,4,Goto(s,6)                ; Start over
exten => 600,4,Hangup

exten => 500,1,Playback(demo-abouttotry); Let them know what's going on
exten => 500,2,Dial(IAX2/guest@misery.digium.com/s@default)     ; Call the Asterisk demo
exten => 500,3,Playback(demo-nogo)      ; Couldn't connect to the demo site
exten => 500,4,Goto(s,6)                ; Return to the start over message.

exten => 501,1,Playback(demo-congrats)
exten => 501,2,Goto(s,6)

voicemail.conf

[general]
format=wav49|gsm|wav
serveremail=asterisk
attach=yes
skipms=3000
maxsilence=10
silencethreshold=128
maxlogins=3
                        ;     or set to no, it will be in the envelope
                        ;     if not listed, dialing out will not be permitted
sendvoicemail=yes       ; Context to Send voicemail from [option 5 from the advanced menu]
                        ; if not listed, sending messages from inside voicemail will not be
                        ; permitted
                        ;     if not listed, calling the sender back will not be permitted
                        ;     reach an operator  [OFF by default]
                        ;     This does NOT affect option 3,3 from the advanced options menu
                        ;     This is intended for use with users who wish to receive their voicemail ONLY by email.
                        ;     [global option only at this time]

[zonemessages]
eastern=America/New_York|'vm-received' Q 'digits/at' IMp
central=America/Chicago|'vm-received' Q 'digits/at' IMp
central24=America/Chicago|'vm-received' q 'digits/at' H 'digits/hundred' M 'hours'
[default]
100  => 4242,Bruno Bonfils,asyd@asyd.net