Hi, 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. Thanks, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110324/1a67e735/attachment.htm>
_____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Peter den Hartog Sent: Thursday, March 24, 2011 10:59 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Filtering on from caller id Hi, 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. Thanks, Peter Of course it is possible, but you should phrase the question more clearly. Are you trying to filter out "caller pass-through" or limit external calling? "caller pass-through" Caller A calls in using ID 101 and wants to dial out to 5551212 Caller B calls in using ID 102 and wants to dial out to 5551212 Caller A goes through and Caller B gets hung up on. Limit external calling In-house extensions are 101, 102 and 111 101 and 111 should be able to place outgoing call, 102 should only be able to receive a call or call 101 or 111. Which is it? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110324/fb7a99e7/attachment.htm>
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.
In sip.conf you point to a context. For 101 en 102 you should point to a context that allows using the trunk while for the other numbers you doesn't grand this privilege . Erik Verstuurd vanaf mijn iPad Op 24 mrt. 2011 om 16:58 heeft Peter den Hartog <peterdenhartog at gmail.com> het volgende geschreven:> Hi, > > 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. > > Thanks, > Peter > -- > _____________________________________________________________________ > -- 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