[Asterisk-Users] Reject a call if no callerID

John Hill jhill at noach.com
Wed Nov 3 07:04:18 MST 2004



>-----Original Message-----
>From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
>bounces at lists.digium.com] On Behalf Of Walt Reed
>Sent: Wednesday, November 03, 2004 8:54 AM
>To: Asterisk Users Mailing List - Non-Commercial Discussion
>Subject: Re: [Asterisk-Users] Reject a call if no callerID
>
>On Wed, Nov 03, 2004 at 04:45:03PM +0900, Hermann Wecke said:
>> I couldn't think any recipe to reject a call if no callerID is presented.
>>
>> PrivacyManager and Zapateller are not an option, as the call will be
>> answered before I can drop it. I just want to "silent drop" the call: no
>> callerID, no answer.
>
>
>See example 3 in:
>
>http://www.voip-info.org/wiki-Asterisk+cmd+GotoIf
>

Here is what I do:

exten => s,1,GotoIf($["${CALLERIDNUM}" = ""]?s|5)
exten => s,2,yadayada
exten => s,3,yadayada
exten => s,4,yadayada
exten => s,5,Hangup
;




More information about the asterisk-users mailing list