duf - extenstions - Sample help

extensions.conf

[inside]
exten => 6001,1,Dial(SIP/df_polycom,10)
exten => 6001,n,VoiceMail(6010@inside)
exten => 6002,1,Dial(SIP/df_yealink,20)
exten => 6002,1,VoiceMail(6012@inside)

include => training
include => outside
include => features
include => menu
[training]
exten = 6005,1,Dial(DAHDI/g1/6008)
include => inside

[outside]
exten => _0NXXXXXXXXX,1,Dial(IAX2/192.168.101.1/${EXTEN})
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@to_sipprovider)

[features]

exten => 100,1,VoiceMailMain(@inside)

exten => 105,1,Answer()
exten => 105,n,Wait(1)
exten => 105,n,Background(press-1&for&sales)
exten => 105,n,Background(or)
exten => 105,n,Background(press-2&for&support)
exten => 105,n,Background(or)
exten => 105,n,Background(press-9&for&directory)
exten => 105,n,WaitExten(1)

exten => 9,1,Directory(inside,inside)
exten => 9,n,Hangup()

exten => 1,1,Playback(thank-you-for-calling)
exten => 1,n,Dial(SIP/df_yealink)
exten => 1,n,Goto,Menu|s|1

exten => 2,1,Playback(thank-you-for-calling)
exten => 2,n,Dial(SIP/df_polycom,20)
exten => 2,n,Goto,Menu|s|1
exten => 2,n,Goto,(sales,s,1)
exten => 2,n,Goto,(directory,s,1)

exten => 498,1,MeetMe(6050,p)


sip.conf  ##########################################################################

[df_polycom]
type=friend
callerid="Darran Furlong" <6001>
username=df_polycom
host=dynamic
secret=polycom
regcontext=tammari-internal
regexten=6001
canreinvite=yes
context=inside
mailbox=6001@default

[df_yealink]
type=friend
callerid="Mike Smith" <6002>
username=df_yealink
host=dynamic
secret=yealink
regcontext=inside
regexten=6002
canreinvite=yes
context=inside
mailbox=6002@default

iax,conf '#################################################################################

[general]
register => training2:training@192.168.101.1

[outside]
username=training2
secret=training
type=peer
auth=md5
transfer=no
host=192.168.101.1
disallow=all
allow=gsm
allow=ulaw
allow=alaw
qualify=yes
trunk=yes

[training2]
type=user
auth=md5
transfer=no
disallow=all
allow=gsm
allow=ulaw
trunk=yes
secret=training
context=training

chan_dahdi.conf ##################################################################################

[channels]
group=1
context=training
signalling=fxo_ks
callerid="DarranAnalog" <6008>
mailbox="6007"
callwaiting=yes
threewaycalling=yes
transfer=yes
channel=32

group=2
context=training
signalling=fxs_ks
callerid=asrecived
callwaiting=no
channel=35

group=3
echocancel=yes
echocancelwhenbridged=no
echotraining=yes
switchtype=5ess
context=training
signalling=pri_cpe
channel => 1-15,17-31

voicemail.conf ##########################################################################################

[general]

[inside]
6010 => 6001,Darran Furlong
6012 => 6002,Mike Smith



extensions.conf

[inside]
exten => 6001,1,Dial(SIP/df_polycom,10)
exten => 6001,n,VoiceMail(6010@inside)
exten => 6002,1,Dial(SIP/df_yealink,20)
exten => 6002,1,VoiceMail(6012@inside)

include => training
include => outside
include => features
include => menu
[training]
exten = 6005,1,Dial(DAHDI/g1/6008)
include => inside

[outside]
exten => _0NXXXXXXXXX,1,Dial(IAX2/192.168.101.1/${EXTEN})
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@to_sipprovider)

[features]

exten => 100,1,VoiceMailMain(@inside)

exten => 105,1,Answer()
exten => 105,n,Wait(1)
exten => 105,n,Background(press-1&for&sales)
exten => 105,n,Background(or)
exten => 105,n,Background(press-2&for&support)
exten => 105,n,Background(or)
exten => 105,n,Background(press-9&for&directory)
exten => 105,n,WaitExten(1)

exten => 9,1,Directory(inside,inside)
exten => 9,n,Hangup()

exten => 1,1,Playback(thank-you-for-calling)
exten => 1,n,Dial(SIP/df_yealink)
exten => 1,n,Goto,Menu|s|1

exten => 2,1,Playback(thank-you-for-calling)
exten => 2,n,Dial(SIP/df_polycom,20)
exten => 2,n,Goto,Menu|s|1
exten => 2,n,Goto,(sales,s,1)
exten => 2,n,Goto,(directory,s,1)

exten => 498,1,MeetMe(6050,p)


sip.conf  ##########################################################################

[df_polycom]
type=friend
callerid="Darran Furlong" <6001>
username=df_polycom
host=dynamic
secret=polycom
regcontext=tammari-internal
regexten=6001
canreinvite=yes
context=inside
mailbox=6001@default

[df_yealink]
type=friend
callerid="Mike Smith" <6002>
username=df_yealink
host=dynamic
secret=yealink
regcontext=inside
regexten=6002
canreinvite=yes
context=inside
mailbox=6002@default

iax,conf '#################################################################################

[general]
register => training2:training@192.168.101.1

[outside]
username=training2
secret=training
type=peer
auth=md5
transfer=no
host=192.168.101.1
disallow=all
allow=gsm
allow=ulaw
allow=alaw
qualify=yes
trunk=yes

[training2]
type=user
auth=md5
transfer=no
disallow=all
allow=gsm
allow=ulaw
trunk=yes
secret=training
context=training

chan_dahdi.conf ##################################################################################

[channels]
group=1
context=training
signalling=fxo_ks
callerid="DarranAnalog" <6008>
mailbox="6007"
callwaiting=yes
threewaycalling=yes
transfer=yes
channel=32

group=2
context=training
signalling=fxs_ks
callerid=asrecived
callwaiting=no
channel=35

group=3
echocancel=yes
echocancelwhenbridged=no
echotraining=yes
switchtype=5ess
context=training
signalling=pri_cpe
channel => 1-15,17-31

voicemail.conf ##########################################################################################

[general]

[inside]
6010 => 6001,Darran Furlong
6012 => 6002,Mike Smith



Created by: furlonda, Last modification: Wed 09 of May, 2012 (04:09 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+