Open Source Software Asterisk Hello World Initial Demo

  • Slides: 12
Download presentation
Open Source Software Asterisk “Hello World” Initial Demo Mode

Open Source Software Asterisk “Hello World” Initial Demo Mode

Agenda What we will accomplish n sip. conf n extensions. conf n iax. conf

Agenda What we will accomplish n sip. conf n extensions. conf n iax. conf n Extra’s n enum. conf n enum lookup routing n n Questions

sip. conf [1234] type=friend username=1234 secret=XXXX context=incoming callerid=John Doe <1234> host=dynamic nat=yes canreinvite=no dtmfmode=rfc

sip. conf [1234] type=friend username=1234 secret=XXXX context=incoming callerid=John Doe <1234> host=dynamic nat=yes canreinvite=no dtmfmode=rfc 2833 call-limit=1 mailbox=1234@default disallow=all allow=ulaw Qualify=5000

extensions. conf [demo] ; ; We start with what to do when a call

extensions. conf [demo] ; ; We start with what to do when a call first comes in. ; exten => s, 1, Wait, 1 ; Wait a second, just for fun exten => s, n, Answer ; Answer the line exten => s, n, Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds exten => s, n, Set(TIMEOUT(response)=10) ; Set Response Timeout to 10 seconds exten => s, n(restart), Back. Ground(demo-congrats) ; Play a congratulatory message exten => s, n(instruct), Back. Ground(demo-instruct) ; Play some instructions exten => s, n, Wait. Exten ; Wait for an extension to be dialed. exten => 2, 1, Back. Ground(demo-moreinfo) exten => 2, n, Goto(s, instruct) exten => 3, 1, Set(LANGUAGE()=en) exten => 3, n, Goto(s, restart) exten => 1000, 1, Goto(default, s, 1) ; Give some more information. ; Set language to english ; Start with the congratulations

extensions. conf - 2 ; We also create an example user, 1234, who is

extensions. conf - 2 ; We also create an example user, 1234, who is on the console and has ; voicemail, etc. ; exten => 1234, 1, Playback(transfer, skip) ; "Please hold while. . . " ; (but skip if channel is not up) exten => 1234, n, Macro(stdexten, 1234, ${CONSOLE}) exten => 1235, 1, Voicemail(u 1234) ; Right to voicemail exten => 1236, 1, Dial(Console/dsp) exten => 1236, n, Voicemail(u 1234) ; Ring forever ; Unless busy ; ; # for when they're done with the demo ; exten => #, 1, Playback(demo-thanks) demo" exten => #, n, Hangup ; "Thanks for trying the ; Hang them up.

extensions. conf - 3 ; Create an extension, 500, for dialing the ; Asterisk

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

iax. conf [demo] type=peer username=asterisk secret=supersecret host=216. 207. 245. 47 ; sendani=no ; host=asterisk.

iax. conf [demo] type=peer username=asterisk secret=supersecret host=216. 207. 245. 47 ; sendani=no ; host=asterisk. linux-support. net ; port=5036 ; mask=255. 255 ; qualify=yes ; qualifysmoothing = yes ; Make sure this peer is alive ; use an average of the last two PONG ; results to reduce falsely detected LAGGED hosts ; qualifyfreqok = 60000 ; qualifyfreqnotok = 10000 milliseconds ; jitterbuffer=no ; Default: Off ; how frequently to ping the peer when ; everything seems to be ok, in milliseconds ; how frequently to ping the peer when it's ; either LAGGED or UNAVAILABLE, in ; Turn off jitter buffer for this peer

Command Line asterisk –vvvr n sip show peers n iax 2 show peers n

Command Line asterisk –vvvr n sip show peers n iax 2 show peers n

Extras enum. conf n Peering and dialing n Enum and Dundi n

Extras enum. conf n Peering and dialing n Enum and Dundi n

enum. conf [general] search => e 164. thevpf. com search => e 164. org

enum. conf [general] search => e 164. thevpf. com search => e 164. org search => sipbroker. com

enum lookup – extensions. conf [company-default] ; ----------------------------; Primary +1 Dialing with enum support

enum lookup – extensions. conf [company-default] ; ----------------------------; Primary +1 Dialing with enum support ; ----------------------------exten => _1 NXXN. , 1, Set. Caller. ID(${CALLERID}) exten => _1 NXXN. , 2, Enum. Lookup(${EXTEN}) exten => _1 NXXN. , 3, Back. Ground(enum-lookup-successful) exten => _1 NXXN. , 4, Dial(${ENUM}, 30, r) exten => _1 NXXN. , 5, Goto(204) exten => _1 NXXN. , 103, Dial(Zap/g 1/${EXTEN}, 40, r) exten => _1 NXXN. , 104, Dial(SIP/${EXTEN}@broadvoice, 45, r) exten => _1 NXXN. , 105, Dial(IAX 2/XXXX@voipjet/${EXTEN}, 60, r) exten => _1 NXXN. , 106, Congestion

Make a Demo Call n Congratulations n Questions

Make a Demo Call n Congratulations n Questions