Re: [asterisk-users] blacklist caller ID

2013-03-14 Thread Geoff Lane
On Thursday, March 14, 2013, Joseph wrote:

 Can someone refresh my memory how to backlist caller ID in
 asterisk 1.8?


 I had it working in ver. 1.4 but in 1.8 it changed.

I'm still using 1.4. In that I add a number to the blacklist with

CLI database put blacklist 0123456789 1

That is to add the number to the blacklist 'group' and give it a value
of 1.

Then is extensions.conf:

exten = main,n,GotoIf($[${BLACKLIST()}]?banned,1)
;(...)
; Blacklisted numbers
exten = banned,1,Playback(silence/2im-sorry)
exten = banned,n,Playback(cannot-complete-as-dialed)
exten = banned,n,Playback(privacy-you-are-blacklisted)
exten = banned,n,Playback(goodbye)
exten = banned,n,Hangup()

Hopefully, the same thing works in 1.8 and 10 (I'd be interested to
know because I intend to upgrade my hardware soon and will probably
take the opportunity to update * to a later version).

HTH,

-- 
Geoff


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] blacklist caller ID

2013-03-14 Thread Joseph

On 03/14/13 06:04, Geoff Lane wrote:

On Thursday, March 14, 2013, Joseph wrote:


Can someone refresh my memory how to backlist caller ID in
asterisk 1.8?




I had it working in ver. 1.4 but in 1.8 it changed.


I'm still using 1.4. In that I add a number to the blacklist with

CLI database put blacklist 0123456789 1

That is to add the number to the blacklist 'group' and give it a value
of 1.

Then is extensions.conf:

exten = main,n,GotoIf($[${BLACKLIST()}]?banned,1)
;(...)
; Blacklisted numbers
exten = banned,1,Playback(silence/2im-sorry)
exten = banned,n,Playback(cannot-complete-as-dialed)
exten = banned,n,Playback(privacy-you-are-blacklisted)
exten = banned,n,Playback(goodbye)
exten = banned,n,Hangup()

Hopefully, the same thing works in 1.8 and 10 (I'd be interested to
know because I intend to upgrade my hardware soon and will probably
take the opportunity to update * to a later version).

HTH,

--
Geoff


I got it. In asterisk 1.8 see:
http://www.voip-info.org/wiki/view/Asterisk+func+BLACKLIST

There is no need to give value of 1, it is just:
CLI database put blacklist 0123456789

--
Joseph

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] blacklist caller ID

2013-03-13 Thread Joseph

Can someone refresh my memory how to backlist caller ID in asterisk 1.8?

I had it working in ver. 1.4 but in 1.8 it changed.

--
Joseph

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] blacklist caller ID

2013-03-13 Thread Joseph

On 03/13/13 22:24, Joseph wrote:

Can someone refresh my memory how to backlist caller ID in asterisk 1.8?

I had it working in ver. 1.4 but in 1.8 it changed.


In database I put my phone number:
/blacklist/4715660: Blacklisted for testing

in extension.conf
exten = s,1,GotoIf(${BLACKLIST()}?blacklisted)
...
exten = s,n(blacklisted),Hangup()

but it is not working.

dialplan show, gives:

  '#' =1. Background(vm-goodbye) [pbx_config]
2. Hangup()   [pbx_config]
  '*' =1. Goto(s,3)  [pbx_config]
  'i' =1. Answer()   [pbx_config]
2. Playback(pbx-invalid)  [pbx_config]
3. Goto(s,4)  [pbx_config]
  's' =1. GotoIf(${BLACKLIST()}?blacklisted) [pbx_config]
2. Answer()   [pbx_config]
3. Set(CHANNEL(musicclass)=default)   [pbx_config]
4. Background(afterhours-menu,t)  [pbx_config]
5. Set(TIMEOUT(digit)=7)  [pbx_config]
6. Wait(1)[pbx_config]
7. Voicemail(11)  [pbx_config]
8. Hangup()   [pbx_config]
102. Goto(blacklisted,s,1)[pbx_config]
 [blacklisted]  103. Hangup() [pbx_config]

What am I doing wrong? 


--
Joseph

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users