134 lines
4 KiB
Text
134 lines
4 KiB
Text
[general]
|
|
static=yes
|
|
writeprotect=no
|
|
clearglobalvars=no
|
|
|
|
[extdn42whois]
|
|
exten => _X!,200,Set(CALLNUM=${EXTEN})
|
|
same => n,Goto(s,1)
|
|
|
|
exten => s,1,Playback(silence/1)
|
|
same => n,Set(USERINPUT=)
|
|
same => n,Read(USERINPUT,jerry-whois,10,,1,6)
|
|
same => n,GotoIf($["${READSTATUS}" = "TIMEOUT" & "${USERINPUT}" = ""]?s,1:)
|
|
same => n,GotoIf($["${USERINPUT}" = ""]?extmymenu,${CALLNUM},200:whois,1)
|
|
|
|
exten => whois,1,NoOp()
|
|
same => n,TrySystem(/var/lib/asterisk/scripts/jerry/whois.py "${USERINPUT}" "${UNIQUEID}")
|
|
same => n,Playback(/var/tmp/ast-dynamic/${UNIQUEID})
|
|
same => n,GotoIf($["${PLAYBACKSTATUS}" = "SUCCESS"]?whois,whoisend:)
|
|
same => n,Playback(im-sorry&something-terribly-wrong)
|
|
same => n(whoisend),Goto(s,1)
|
|
|
|
[extmymenu]
|
|
exten => _X!,200,Set(CALLNUM=${EXTEN})
|
|
same => n,Goto(s,1)
|
|
|
|
exten => _X!,210,Set(CALLNUM=${EXTEN})
|
|
same => n,Goto(3,1)
|
|
|
|
exten => s,1,Wait(1)
|
|
same => n(loop),Background(jerry-intro)
|
|
same => n,WaitExten(15)
|
|
|
|
exten => i,1,Playback(silence/1&goodbye)
|
|
same => n,Hangup()
|
|
|
|
exten => t,1,Goto(s,loop)
|
|
|
|
exten => _X,1,NoOp()
|
|
same => n,Wait(1)
|
|
same => n,GoSub(${EXTEN},100)
|
|
same => n,Wait(1)
|
|
same => n,Goto(s,loop)
|
|
|
|
exten => 1,100,NoOp()
|
|
same => n,Goto(extdn42whois,${CALLNUM},200)
|
|
same => n,Return()
|
|
|
|
exten => 2,100,NoOp()
|
|
same => n,ConfBridge(1,bridge1,user1,sample_user_menu)
|
|
same => n,Return()
|
|
|
|
exten => 3,100,NoOp()
|
|
same => n,Playback(your&number&is)
|
|
same => n,SayAlpha(${CALLERID(num)})
|
|
same => n,Playback(silence/1&calling)
|
|
same => n,SayAlpha(42403618${CALLNUM})
|
|
same => n,Return()
|
|
|
|
exten => 4,100,NoOp()
|
|
same => n,Read(TMPNOM,0005-unreeeal_superhero_3,1,,1,0.1)
|
|
same => n,Return()
|
|
|
|
exten => 5,100,NoOp()
|
|
same => n,Read(TMPNOM,0006-external,1,,1,0.1)
|
|
same => n,Return()
|
|
|
|
exten => 6,100,NoOp()
|
|
same => n,Read(TMPNOM,0009-macroform-cold_day,1,,1,0.1)
|
|
same => n,Return()
|
|
|
|
exten => _X,100,NoOp()
|
|
same => n,Playback(silence/1&you-entered)
|
|
same => n,SayNumber(${EXTEN})
|
|
same => n,Return()
|
|
|
|
[extmyself]
|
|
exten => i,1,NoOp()
|
|
|
|
exten => chanunavail,1,Playback(im-sorry&number-not-answering&please-try-call-later)
|
|
same => n,Hangup()
|
|
|
|
exten => invalidinput,1,Playback(im-sorry&cannot-complete-as-dialed)
|
|
same => n,Hangup()
|
|
|
|
exten => 0001,5,Dial(PJSIP/REDACTED,300,m)
|
|
exten => 0002,5,Dial(PJSIP/REDACTED,300,m)
|
|
exten => 0003,5,Dial(PJSIP/REDACTED,300,m)
|
|
exten => 0004,5,Dial(PJSIP/REDACTED,300,m)
|
|
exten => 0005/_42403618X!,5,Dial(PJSIP/REDACTED,300,m)
|
|
exten => 0000,5,Goto(extmymenu,${EXTEN},200)
|
|
exten => 0 ,5,Goto(extmymenu,${EXTEN},200)
|
|
exten => 3618,5,Goto(extmymenu,${EXTEN},210)
|
|
exten => 4242,5,Goto(extdn42whois,${EXTEN},200)
|
|
exten => _X! ,5,Playback(im-sorry&check-number-dial-again)
|
|
same => n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?chanunavail,1:)
|
|
|
|
[extpeers]
|
|
exten => _42403618.,5,Answer()
|
|
same => n,GotoIf($["${EXTEN:8}" : ".*[^0-9]+.*"]?extmyself,invalidinput,1:)
|
|
same => n,Goto(extmyself,${EXTEN:8},5)
|
|
|
|
exten => _42401332.,5,NoOp()
|
|
same => n,Dial(PJSIP/${EXTEN}@nia)
|
|
|
|
exten => _42403315.,5,NoOp()
|
|
same => n,Dial(PJSIP/${EXTEN}@zane)
|
|
|
|
exten => _42403088.,5,NoOp()
|
|
same => n,Dial(PJSIP/${EXTEN}@sunnet)
|
|
|
|
exten => _42401353.,5,NoOp()
|
|
same => n,Dial(PJSIP/${EXTEN}@hertz)
|
|
|
|
exten => _42400119.,5,NoOp()
|
|
same => n,Dial(PJSIP/${EXTEN}@jrb0001)
|
|
|
|
exten => _42403914.,5,NoOp()
|
|
same => n,Dial(PJSIP/${EXTEN}@kioubit)
|
|
|
|
[jerry]
|
|
exten => _4240XXXX.,1,Goto(extpeers,${EXTEN},5)
|
|
exten => _0XXXX. ,1,Goto(extpeers,424${EXTEN},5)
|
|
exten => _X! ,1,Goto(extpeers,42403618${EXTEN},5)
|
|
|
|
[jerry-peers]
|
|
exten => invalidcaller,100,Playback(silence/1&sorry-youre-having-problems)
|
|
same => n,Hangup()
|
|
|
|
exten => _X!/_42403618X!,1,Goto(invalidcaller,100)
|
|
exten => _X! ,1,NoOp()
|
|
exten => _4240XXXX.,2,Goto(extpeers,${EXTEN},5)
|
|
exten => _0XXXX. ,2,Goto(extpeers,424${EXTEN},5)
|
|
exten => _X! ,2,Goto(extpeers,42403618${EXTEN},5)
|