[general] static=yes writeprotect=no clearglobalvars=no [extdn42whois] ;exten => i,1,NoOp() ;exten => t,1,Goto(s,1) exten => _X.,5,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"]?s,1:) same => n,GotoIf($["${USERINPUT}" = ""]?extmymenu,${CALLNUM},5:whois,1) exten => whois,1,Set(SESSIONUNID=${RAND(0,100000)}) same => n,TrySystem(/var/lib/asterisk/scripts/jerry/whois.py ${USERINPUT} ${SESSIONUNID}) same => n,Playback(/var/tmp/ast-dynamic/${SESSIONUNID}) same => n,GotoIf($["${PLAYBACKSTATUS}" = "SUCCESS"]?whois,whoisend:) same => n,Playback(im-sorry&something-terribly-wrong) same => n(whoisend),Goto(s,1) [extmymenu] exten => i,1,Playback(silence/1&goodbye) same => n,Hangup() exten => _X.,5,Set(CALLNUM=${EXTEN}) same => n,Goto(s,1) exten => s,1,Wait(1) ;same => n(loop),Background(vm-press&letters/a&number) same => n(loop),Background(jerry-intro) same => n,WaitExten(15) exten => t,1,Goto(s,loop) exten => _X,1,NoOp() ;same => n,Playback(silence/1&you-entered) ;same => n,SayNumber(${EXTEN}) same => n,Wait(1) same => n,Goto(${EXTEN},100) exten => 1,100,NoOp() same => n,Goto(extdn42whois,${CALLNUM},5) same => n,Goto(menuend,1) exten => 2,100,NoOp() same => n,ConfBridge(1,bridge1,user1,sample_user_menu) same => n,Goto(menuend,1) exten => 3,100,NoOp() same => n,Playback(your&number&is) same => n,SayAlpha(${CALLERID(num)}) same => n,Playback(silence/1&calling) same => n,SayAlpha(${CALLNUM}) same => n,Goto(menuend,1) exten => 4,100,NoOp() same => n,Read(TMPNOM,z-external,1,,1,0.1) ;same => n,Playback(z-external) same => n,Goto(menuend,1) exten => 5,100,NoOp() same => n,Read(TMPNOM,z-macroform-cold_day,1,,1,0.1) ;same => n,Playback(z-macroform-cold_day) same => n,Goto(menuend,1) exten => _X,100,NoOp() same => n,Goto(menuend,1) exten => menuend,1,NoOp() same => n,Wait(1) same => n,Goto(s,loop) [extmyself] exten => i,1,NoOp() exten => chanunavail,1,Playback(im-sorry&number-not-answering&please-try-call-later) exten => chanunavail,2,Hangup() exten => 424036180001,5,Dial(PJSIP/REDACTED,300,m) exten => 424036180002,5,Dial(PJSIP/REDACTED,300,m) exten => 424036180003,5,Dial(PJSIP/REDACTED,300,m) exten => 424036180004,5,Dial(PJSIP/REDACTED,300,m) exten => 424036180005,5,Dial(PJSIP/REDACTED,300,m) exten => _X.,6,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?chanunavail,1:) exten => 424036180000,5,Goto(extmymenu,${EXTEN},5) exten => 424036183618,5,Playback(silence/1&your&number&is) same => 6,SayAlpha(${CALLERID(num)}) same => 7,Playback(silence/1) ;same => 8,SayAlpha(${CALLERID(name)}) ;same => 9,Playback(silence/1) exten => 424036184242,5,Goto(extdn42whois,${EXTEN},5) exten => _42403618XXXX,5,Playback(im-sorry&check-number-dial-again) [extpeers] exten => _42403618XXXX,5,Answer() same => n,Goto(extmyself,${EXTEN},5) exten => _42401332XXXX,5,NoOp() same => n,Dial(PJSIP/${EXTEN}@nia) ;same => n,Dial(PJSIP/${EXTEN:-4}@nia) exten => _42403315XXXX,5,NoOp() same => n,Dial(PJSIP/${EXTEN}@zane) exten => _42403088XXXX,5,NoOp() same => n,Dial(PJSIP/${EXTEN}@sunnet) exten => _42401353XXXX,5,NoOp() same => n,Dial(PJSIP/${EXTEN}@hertz) exten => _42400119XXXX,5,NoOp() same => n,Dial(PJSIP/${EXTEN}@jrb0001) [jerry] ;exten => _X.,1,Set(CHANNEL(musicclass)=custom) exten => _X.,1,NoOp() exten => _XXXX,2,Goto(42403618${EXTEN},1) exten => _XXXXXXXX,2,Goto(4240${EXTEN},1) exten => _X.,2,NoOp() exten => _X.,3,Goto(extpeers,${EXTEN},5)