1 post / 0 new
Jasril's picture
Joined: 2010/08/09
Points: 0

hey i just got finished creating an auto provision for the mediatrix 4104 and 4102 ATA's and was wondering in what format i should post what i have on here for everyone to use? or should i just link to it?

the provisioning is a little hinky but it is currently working and only 4 entries need to be made manually in the mediatrix units, which i find are of great quality for the cost

i'll hopefully have the setup posted by the end of the day...

while im here, this is a script i modified to simulate how calls come in from telco to hunting lines and timeout to voicemail (this is the script i'm using with above ATAs to simulate pstn hunting lines)

friendlyname=Ring Group - Priority Hunt
Specify extensions to ring (EG SIP/100) or external numbers (EG 18005936000).
Separate multiple phones/numbers by spaces (no commas).
use with "hunt lists" for multiple location ringing.With one mailbox intercept
Example:good for imitating PSTN hunt groups

args=1,Group Name,text:2,Time out,text:3,Options,text:4,Extensions to ring,text:5,Mailbox,mailbox

exten => s,1,Set(i=1)
exten => s,n,Goto(tryone,1)

exten => tryone,1,Set(NUMBER_TO_DIAL=${CUT(ARG4, ,${i})})
exten => tryone,n,GotoIf($[${LEN(${NUMBER_TO_DIAL})} = 0]?failed,1)
exten => tryone,n,GotoIf($[${REGEX("^[1-9]" ${NUMBER_TO_DIAL})} = 0]?6)
exten => tryone,n,Dial(Local/${NUMBER_TO_DIAL}@outgoing${TL_DASH}${tenant},${ARG2},${ARG3})
exten => tryone,n,Goto(dial-${DIALSTATUS},1)
exten => tryone,n,Dial(${NUMBER_TO_DIAL}${TL_DASH}${tenant},${ARG2},${ARG3})
exten => tryone,n,Goto(dial-${DIALSTATUS},1)

exten => dial-CHANUNAVAIL,1,Goto(next,1)
exten => dial-CONGESTION,1,Goto(next,1)
exten => dial-BUSY,1,Goto(next,1)
exten => dial-CANCEL,1,Goto(done,1)
exten => dial-NOANSWER,1,Goto(v,1)
exten => dial-ANSWER,1,Goto(done,1)

exten => next,1,Set(i=$[${i} + 1])
exten => next,n,Goto(tryone,1)

exten => v,1,VoiceMail(${ARG5},u)
exten => v,n,Goto(done,1)

exten => done,1,NoOp(done)
exten => done,n,Hangup

exten => failed,1,Goto(${ARG5},s,1)

i'm just now starting in the world of asterisk, but i'm hoping i can give back just a little bit of what has already been given to me