Help With Enabling Blacklist in PBXinaF

GamblinMan

New Member
Joined
Oct 24, 2007
Messages
17
Reaction score
0
[Solved] Help With Enabling Blacklist in PBXinaF

I have installed PBXinF and have created a "Stealth AutoAttendant" to handle inbound calls. My sip.conf file directs all inward calls to extension 99.

Below is an extract of my extensions_custom.conf file where in line 4 (commented out for now, replaced by a NoOP) I am attempting to invoke the blacklist lookup, which isn't working. The Blacklist lookup function is being called, but no match against the incoming callerID is found (when the inbound callerID is in the Blacklist Database).

I must be invoking the Blacklist call incorrectly. Anyone know what the "proper" syntax is to invoke the Blacklist call?

Secondly, if I allow a call to go through (any call with CallerID) and then exeucte a *32 (blacklist last caller), the caller ID that the blacklist function reads back to me is incorrect. The caller ID read back is the extension that answered the call (with a trailing 1, that I don't understand).

Any ideas on:
1). How to invoke Blacklist call from extensions_custom.conf
2). Why caller ID for *32 is incorrect?

exten => 99,1,NoOp(${CALLERID(num)})
exten => 99,2,GotoIf($["${CALLERID(num):0:2}" = "00"]?3:4)
exten => 99,3,Set(CALLERID(num)=${CALLERID(num):2:10})
exten => 99,4,NoOp(${CALLERID(num)})
;exten => 99,4,LookupBlacklist(j)
exten => 99,5,Zapateller(answer|nocallerid)
exten => 99,6,Wait(1)
exten => 99,7,SetMusicOnHold(default)

Thanks for your time and help!

Tim
 

GamblinMan

New Member
Joined
Oct 24, 2007
Messages
17
Reaction score
0
Found Problem, deprecated command used wrong ...

Found the problem, the LookupBlacklist(j) command function is being deprecated (not to mention I was using it without the "j" argument to tell Asterisk to make the "jump" to n+101).

Modified my extensions_custom.conf code to use ${BLACKLIST()} and point to my custom-blacklist context instead and all works well now.

Here is a sample of the code that works:

[from-internal-custom]
;
;Next extension (99) is to handle incoming PSTN calls
;Calls from SPA are forwarded to extension 99
;
;Check Blacklist
;
exten => 99,1,GotoIf(${Blacklist()}?custom-blacklisted,s,1)
;
; other processing commands in here for various tasks....
;
[custom-blacklisted]
exten=s,1,Answer
exten=s,2,Wait(1)
exten=s,3,Playback(nbdy-avail-to-take-call)
exten=s,4,Playback(carried-away-by-monkeys)
exten=s,5,Playback(lots-o-monkeys)
exten=s,6,Hangup

Hope this saves someone else some effort or research!

Tim
 

Members online

No members online now.

Forum statistics

Threads
25,812
Messages
167,763
Members
19,241
Latest member
bellabos
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.
Top