Open Source Software - PowerPoint PPT Presentation

About This Presentation
Title:

Open Source Software

Description:

Open Source Software Asterisk Hello World Initial Demo Mode Agenda What we will accomplish sip.conf extensions.conf iax.conf Extra s enum.conf enum lookup ... – PowerPoint PPT presentation

Number of Views:56
Avg rating:3.0/5.0
Slides: 13
Provided by: MarkHe156
Category:

less

Transcript and Presenter's Notes

Title: Open Source Software


1
Open Source Software
  • AsteriskHello World
  • Initial Demo Mode

2
Agenda
  • What we will accomplish
  • sip.conf
  • extensions.conf
  • iax.conf
  • Extras
  • enum.conf
  • enum lookup routing
  • Questions

3
sip.conf
1234 typefriend username1234 secretXXXX c
ontextincoming calleridJohn Doe
lt1234gt hostdynamic natyes canreinviteno
dtmfmoderfc2833 call-limit1 mailbox123
4_at_default disallowall allowulaw Qualify
5000
4
extensions.conf
demo We start with what to do when a call
first comes in. exten gt s,1,Wait,1 Wait a
second, just for fun exten gt s,n,Answer
Answer the line exten gt s,n,Set(TIMEOUT(digit)5)
Set Digit Timeout to 5 seconds exten gt
s,n,Set(TIMEOUT(response)10) Set Response
Timeout to 10 seconds exten gt s,n(restart),BackGr
ound(demo-congrats) Play a congratulatory
message exten gt s,n(instruct),BackGround(demo-ins
truct) Play some instructions exten gt
s,n,WaitExten Wait for an extension to be
dialed. exten gt 2,1,BackGround(demo-moreinfo)
Give some more information. exten gt
2,n,Goto(s,instruct) exten gt 3,1,Set(LANGUAGE()
en) Set language to english exten gt
3,n,Goto(s,restart) Start with the
congratulations exten gt 1000,1,Goto(default,s,1)

5
extensions.conf - 2
We also create an example user, 1234, who is on
the console and has voicemail, etc. exten gt
1234,1,Playback(transfer,skip) "Please hold
while..." (but skip if channel is not
up) exten gt 1234,n,Macro(stdexten,1234,CONSOLE
) exten gt 1235,1,Voicemail(u1234) Right to
voicemail exten gt 1236,1,Dial(Console/dsp)
Ring forever exten gt 1236,n,Voicemail(u1234)
Unless busy for when they're done with the
demo exten gt ,1,Playback(demo-thanks)
"Thanks for trying the demo" exten gt
,n,Hangup Hang them up.
6
extensions.conf - 3
Create an extension, 500, for dialing the
Asterisk demo. exten gt 500,1,Playback(demo-abou
ttotry) Let them know what's going on exten gt
500,n,Dial(IAX2/guest_at_misery.digium.com/s_at_default)
Call the Asterisk demo exten gt
500,n,Playback(demo-nogo) Couldn't connect to
the demo site exten gt 500,n,Goto(s,6) Return
to the start over message.
7
iax.conf
demo typepeer usernameasterisk secretsupersec
ret host216.207.245.47 sendanino hostasterisk
.linux-support.net port5036 mask255.255.255.25
5 qualifyyes Make sure this peer is
alive qualifysmoothing yes use an average
of the last two PONG results to reduce
falsely detected LAGGED hosts Default
Off qualifyfreqok 60000 how frequently to
ping the peer when everything seems to be
ok, in milliseconds qualifyfreqnotok 10000
how frequently to ping the peer when it's
either LAGGED or UNAVAILABLE, in
milliseconds jitterbufferno Turn off jitter
buffer for this peer
8
Command Line
  • asterisk vvvr
  • sip show peers
  • iax2 show peers

9
Extras
  • enum.conf
  • Peering and dialing
  • Enum and Dundi

10
enum.conf
general search gt e164.thevpf.com search gt
e164.org search gt sipbroker.com
11
enum lookup extensions.conf
company-default -------------------------------
------------------------- Primary 1 Dialing
with enum support -------------------------------
------------------------- exten gt
_1NXXN.,1,SetCallerID(CALLERID) exten gt
_1NXXN.,2,EnumLookup(EXTEN) exten gt
_1NXXN.,3,BackGround(enum-lookup-successful) exten
gt _1NXXN.,4,Dial(ENUM,30,r) exten gt
_1NXXN.,5,Goto(204) exten gt _1NXXN.,103,Dial(Zap/
g1/EXTEN,40,r) exten gt _1NXXN.,104,Dial(SIP/
EXTEN_at_broadvoice,45,r) exten gt
_1NXXN.,105,Dial(IAX2/XXXX_at_voipjet/EXTEN,60,r)
exten gt _1NXXN.,106,Congestion
12
Make a Demo Call
  • Congratulations
  • Questions
Write a Comment
User Comments (0)
About PowerShow.com