PIAF-Purple: ipcountry [app-blacklist-check] blocking calls

rmlworld

Member
Joined
Dec 31, 2007
Messages
59
Reaction score
0
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

[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]
all incoming calls get blocked on Gtalk/Google Voice and Vitelity. Any suggestions?

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>
 
(app-blacklist-check, s, 1) exited non-zero is the Big Hint. My guess is there's been [yet another] syntax change in Asterisk 1.8 that we haven't accounted for. Will have a look when time permits. You might want to check the Asterisk log for hints.
 

Members online

No members online now.

Forum statistics

Threads
26,688
Messages
174,412
Members
20,259
Latest member
Fadeek86
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top