Just use "Ex-girlfriend" logic on your dial command to zap 103 when he tries
to use the trunk.  For each dial command in your dialplan that addresses the
trunk (let's call it DAHDI/1 for brevity), duplicate the line like this:

Existing:

Exten => _X.,1,Dial(DAHDI/1,w,5551212)

New:

Exten => _X,1,noop(everybody but 103 dials)

Exten => _X./103,n,hangup

Exten => _X.,n,Dial(DAHDI/1,w,5551212)

 

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Peter den
Hartog
Sent: Thursday, March 24, 2011 3:45 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Filtering on from caller id

 

Hmm are those extensions then still able to call each other?

 

I'll put it more clear,

 

I have:

100, 101, & 103.

A Trunk.

 

100 & 101 are allowed to call over the trunk. but 103, is only allowed to
call with 100 & 101, of course 100 & 101 should still be able to call 103.

 

On Thu, Mar 24, 2011 at 5:14 PM, A J Stiles <[email protected]>
wrote:

On Thursday 24 Mar 2011, Peter den Hartog wrote:

> I would like to use the from caller id, to allow calls yes or no.
> 101, and 111 should be allowed to use the Trunk, the rest of the phones
are
> not.
>
> Is this even possible?
> So if the from caller id is 101 or 111, then allow the call, otherwise
> hangup.

Would it not be simpler just to put those extensions into a separate
context,
which allows trunk calls?

--
AJS

Answers come *after* questions.

--
_____________________________________________________________________
-- 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

 

--
_____________________________________________________________________
-- 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

Reply via email to