Ramblin
Guru
- Joined
- Oct 28, 2010
- Messages
- 138
- Reaction score
- 9
@wardmundy
In post
https://pbxinaflash.com/community/threads/viva-wazo-a-new-beginning.19238/page-9#post-121666
you added, immediately after that announcement, that the blacklist implementation for Xivo only required 3 lines of code
same = n,GotoIf($[${LEN(${DB(blacklist/${XIVO_SRCNUM})}))} > 1]?byebye)
same = n(byebye),Answer
same = n,Congestion
Where does this code go?
I want to add the blacklist feature but do not want to add the superfecta feature from the INcrediblePBX install script, but the only place I find that code is in the cid-superfect.conf file and I am not installing that.
I was trying to see if I could add just that functionality for blacklist and was thinking that if I added a file to /etc/asterisk/extensions_extra.d/ called xivo-blacklist.conf and put into that the contents (morphed from your xivo-subrgbl-did function) :
[xivo-blacklist-did]
exten = s,1,NoOp(### DID Incoming Call Subroutine ###)
same = n,NoOp(Calling FROM: ${XIVO_SRCNUM})
same = n,NoOp(Blacklist: ${DB(blacklist/${XIVO_SRCNUM})})
same = n,NoOp(Whitelist: ${DB(whitelist/${XIVO_SRCNUM})})
same = n,GotoIf($[${LEN(${DB(whitelist/${XIVO_SRCNUM})}))} > 1]?keepon)
same = n,GotoIf($[${LEN(${DB(blacklist/${XIVO_SRCNUM})}))} > 1]?byebye)
same = n(keepon),NoOp(### DID Allow the call to continue ###)
same = n(return),Return()
same = n(byebye),Answer
same = n,Congestion
same = n(return),Return()
that would do the trick
but I cannot see where the [xivo-blacklist-did] function would be called
(for that matter, I cannot see where the [xivo-subrgbl-did] function would get called either)
So I am obviously missing something.
I did add to /etc/asterisk/extensions_extra.d/xivo-extrafeatures.conf
;# // BEGIN app-blacklist
exten=*30,1,Goto(app-blacklist-add,s,1)
exten=*31,1,Goto(app-blacklist-remove,s,1)
and I did create a file called app-blacklist.conf in /etc/asterisk/extensions_extra.d with the content of your app-blacklist file
but I do not know how the underlying blacklist feature is being activated.
Is it built into Xivo?
Do I need to add the 3 lines of code (++) like shown in xivo-blacklist-did above somewhere?
I (and a lot of others) really appreciate what you are doing to make Xivo an easier to learn system.
In post
https://pbxinaflash.com/community/threads/viva-wazo-a-new-beginning.19238/page-9#post-121666
you added, immediately after that announcement, that the blacklist implementation for Xivo only required 3 lines of code
same = n,GotoIf($[${LEN(${DB(blacklist/${XIVO_SRCNUM})}))} > 1]?byebye)
same = n(byebye),Answer
same = n,Congestion
Where does this code go?
I want to add the blacklist feature but do not want to add the superfecta feature from the INcrediblePBX install script, but the only place I find that code is in the cid-superfect.conf file and I am not installing that.
I was trying to see if I could add just that functionality for blacklist and was thinking that if I added a file to /etc/asterisk/extensions_extra.d/ called xivo-blacklist.conf and put into that the contents (morphed from your xivo-subrgbl-did function) :
[xivo-blacklist-did]
exten = s,1,NoOp(### DID Incoming Call Subroutine ###)
same = n,NoOp(Calling FROM: ${XIVO_SRCNUM})
same = n,NoOp(Blacklist: ${DB(blacklist/${XIVO_SRCNUM})})
same = n,NoOp(Whitelist: ${DB(whitelist/${XIVO_SRCNUM})})
same = n,GotoIf($[${LEN(${DB(whitelist/${XIVO_SRCNUM})}))} > 1]?keepon)
same = n,GotoIf($[${LEN(${DB(blacklist/${XIVO_SRCNUM})}))} > 1]?byebye)
same = n(keepon),NoOp(### DID Allow the call to continue ###)
same = n(return),Return()
same = n(byebye),Answer
same = n,Congestion
same = n(return),Return()
that would do the trick
but I cannot see where the [xivo-blacklist-did] function would be called
(for that matter, I cannot see where the [xivo-subrgbl-did] function would get called either)
So I am obviously missing something.
I did add to /etc/asterisk/extensions_extra.d/xivo-extrafeatures.conf
;# // BEGIN app-blacklist
exten=*30,1,Goto(app-blacklist-add,s,1)
exten=*31,1,Goto(app-blacklist-remove,s,1)
and I did create a file called app-blacklist.conf in /etc/asterisk/extensions_extra.d with the content of your app-blacklist file
but I do not know how the underlying blacklist feature is being activated.
Is it built into Xivo?
Do I need to add the 3 lines of code (++) like shown in xivo-blacklist-did above somewhere?
I (and a lot of others) really appreciate what you are doing to make Xivo an easier to learn system.