[Asterisk-Users] Reject a call if no callerID

Brian C. Fertig brian at planet-telecom.com
Wed Nov 3 07:23:30 MST 2004


But now that logic works.  However how would you insert that into the
dialplan to get it to work or would AGI be better solution?

Brian


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Adam
Goryachev
Sent: Wednesday, November 03, 2004 3:25 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Reject a call if no callerID

On Wed, 2004-11-03 at 18:45, Hermann Wecke wrote:
> 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.
> 
> Any ideas?

I would imagine a simple gotoif followed by hangup would suffice....

in psuedo code:
if (${CALLERID} == "")
then
  hangup
else
  goto(incoming,s,1)
fi

I am not familiar with gotoif, but "show application gotoif" should
help.

Regards,
Adam


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





More information about the asterisk-users mailing list