Just upgraded to latest PIAF Purple Build.
Having trouble with ipcountry now. Setup everything following the ipcountry tutorial. Running /root/ipcountry/ip-checker.sh everything comes back ok. However, when I edit extensions_override_freepbx.conf by putting in
My CLI:
Having trouble with ipcountry now. Setup everything following the ipcountry tutorial. Running /root/ipcountry/ip-checker.sh everything comes back ok. However, when I edit extensions_override_freepbx.conf by putting in
all incoming calls get blocked on Gtalk/Google Voice and Vitelity. Any suggestions?[SIZE=-2][app-blacklist-check]
include => app-blacklist-check-custom
exten => s,1,LookupBlacklist()
exten => s,n,GotoIf($["${LOOKUPBLSTATUS}"="FOUND"]?blacklisted)
exten => s,n,Set(TESTAT=${CUT(SIP_HEADER(From),@,2)})
exten => s,n,GotoIf($["${TESTAT}" != ""]?hasat)
exten => s,n,Set(FROM_IP=${CUT(CUT(SIP_HEADER(From),>,1),:,2)})
exten => s,n,Goto(gotip)
exten => s,n(hasat),Set(FROM_IP=${CUT(CUT(CUT(SIP_HEADER(From),@,2),>,1),:,1)})
exten => s,n(gotip),NoOp(Gateway IP is ${FROM_IP})
exten => s,n,NoOp(IP Country Lookup in Progress...)
; put authorized special calls like sipgate's Google Voice ringbacks below
exten => s,n,GotoIf($["${FROM_IP}"="sipgate.com"]?keepon)
exten => s,n,AGI(nv-ipcountry.php|${FROM_IP})
exten => s,n,GotoIf($["${STRANGER}"="true"]?blacklisted)
exten => s,n(keepon),NoOp(** AUTHORIZED CALLER **)
exten => s,n,Return()
exten => s,n(blacklisted),Answer
exten => s,n,Wait(1)
exten => s,n,Zapateller()
exten => s,n,Playback(ss-noservice)
exten => s,n,Hangup [/SIZE]
My CLI:
Verbosity is at least 3
-- Executing [[email protected]@googlein:1] Wait("Gtalk/+1703XXXXXXX-15d6", "1") in new stack
-- Executing [[email protected]@googlein:2] Set("Gtalk/+1703XXXXXXX-15d6", "[email protected]") in new stack
-- Executing [[email protected]@googlein:3] JabberSend("Gtalk/+1703XXXXXXX-15d6", "asterisk,[email protected],Incoming Google Voice Call: 703XXXXXXX") in new stack
-- Executing [[email protected]@googlein:4] Set("Gtalk/+1703XXXXXXX-15d6", "CALLERID(number)=703XXXXXXX") in new stack
-- Executing [[email protected]@googlein:5] Set("Gtalk/+1703XXXXXXX-15d6", "CALLERID(name)=703XXXXXXX") in new stack
-- Executing [[email protected]@googlein:6] GotoIf("Gtalk/+1703XXXXXXX-15d6", "0?bridged") in new stack
-- Executing [[email protected]@googlein:7] Goto("Gtalk/+1703XXXXXXX-15d6", "s,regcall") in new stack
-- Goto (googlein,s,6)
-- Executing [s@googlein:6] Answer("Gtalk/+1703XXXXXXX-15d6", "") in new stack
-- Executing [s@googlein:7] SendDTMF("Gtalk/+1703XXXXXXX-15d6", "1") in new stack
-- Executing [s@googlein:8] Goto("Gtalk/+1703XXXXXXX-15d6", "from-trunk,gv-incoming,1") in new stack
-- Goto (from-trunk,gv-incoming,1)
-- Executing [gv-incoming@from-trunk:1] Set("Gtalk/+1703XXXXXXX-15d6", "__FROM_DID=gv-incoming") in new stack
-- Executing [gv-incoming@from-trunk:2] Gosub("Gtalk/+1703XXXXXXX-15d6", "app-blacklist-check,s,1") in new stack
== Spawn extension (app-blacklist-check, s, 1) exited non-zero on 'Gtalk/+1703XXXXXXX-15d6'
pbx*CLI>