Salaheddine Elharit
2013-Jan-14 15:33 UTC
[asterisk-users] block one number in incoming calls
Hello list could you please help me about one question. i have asterisk 1.4 installed, i configure the inbound call in my asterisk like below. exten => 520xxxxxx,1,Dial(SIP/224, 30). when the customer call my number (520xxxxxx) the sip phone 224 works without issue my problem i have a lot of calls coming from this number (0666xxxxxx) and i want to block it. if you can give me an example please . thanks and regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130114/00c6c349/attachment.htm>
I would suggest this Exten => _0666XXXXXX,1,answer() Exten => _0666XXXXXX,n,playback(tt-monkeys) Exten => _0666XXXXXX,n,hangup() You could just hangup on them, but playing the screeching monkeys will get the message to them to leave you alone. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Salaheddine Elharit Sent: Monday, January 14, 2013 9:34 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] block one number in incoming calls Hello list could you please help me about one question. i have asterisk 1.4 installed, i configure the inbound call in my asterisk like below. exten => 520xxxxxx,1,Dial(SIP/224, 30). when the customer call my number (520xxxxxx) the sip phone 224 works without issue my problem i have a lot of calls coming from this number (0666xxxxxx) and i want to block it. if you can give me an example please . thanks and regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130114/b5270b16/attachment.htm>
Check out smartCID on www.generationd.com<http://www.generationd.com> This script allows lookup of incomming calls based on number and either Block (no ring), endless ring (ignore), or pass through to asterisk. It allows allows rewriting of CID name based on number. All numbers stored in a mysql table. A free script. It also does reverse look of CID based on number using a variety of free web sites (but that's intended for experimentation only) ________________________________ From: asterisk-users-bounces at lists.digium.com [asterisk-users-bounces at lists.digium.com] On Behalf Of Salaheddine Elharit [salah.elharit200 at gmail.com] Sent: Monday, January 14, 2013 10:33 AM To: Asterisk Users List Subject: [asterisk-users] block one number in incoming calls Hello list could you please help me about one question. i have asterisk 1.4 installed, i configure the inbound call in my asterisk like below. exten => 520xxxxxx,1,Dial(SIP/224, 30). when the customer call my number (520xxxxxx) the sip phone 224 works without issue my problem i have a lot of calls coming from this number (0666xxxxxx) and i want to block it. if you can give me an example please . thanks and regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130114/b0b51701/attachment.htm>
On Monday, January 14, 2013, Salaheddine Elharit wrote:> my problem i have a lot of calls coming from this number > (0666xxxxxx) and i want to block it.You can either create an extension to handle it, or you can use 1.4's blacklist feature to block calls from all unwanted numbers. Danny's dealt with the specific extension. Here's some bits from my extensions.conf to help you use the blacklist: ; main exten => main,1,GotoIf($[${BLACKLIST()}]?banned,1) exten => main,n,Dial(${rgMain},${RINGTIME},t) ; Blacklisted numbers exten => banned,1,Playback(silence/2&im-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() Any number stored in the in the blacklist section of astdb with a value of 1 gets dumped to the 'banned' extension and the caller hears, "I'm sorry, your call cannot be completed as dialled. Your number is blacklisted on this system" (or similar). All that remains is to blacklist any number that you don't like. For example, if your nemesis has CLI 06661234567, you'd enter: database put blacklist 06661234567 1 at the Asterisk CLI prompt. HTH, -- Geoff
Salaheddine Elharit
2013-Jan-14 15:57 UTC
[asterisk-users] block one number in incoming calls
thanks danny i think i didn?t explain correctly may question i revive a lot of calls from this number _0666XXXXXX and i wants to block it to call my number 520xxxxxx . 2013/1/14 Danny Nicholas <danny at debsinc.com>> Exten => _0666XXXXXX,1,answer()**** > > Exten => _0666XXXXXX,n,playback(tt-monkeys)**** > > Exten => _0666XXXXXX,n,hangup() >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130114/b5a37109/attachment.htm>
Salaheddine Elharit
2013-Jan-14 16:51 UTC
[asterisk-users] block one number in incoming calls
hi Zohair Raza thanks for your replay but this script will allow just this 0666XXxxxx to call my number 520xxxxxx what i want is block this number to call 520xxxxxx not allow it thank you exten => 520xxxxxx,1,NoOp(Caller-ID: ${CALLERID(all)}) exten => 520xxxxxx,2,GotoIf($["${CALLERID(num)}" = "0666XXxxxx" ]?3:4) exten => 520xxxxxx,3,Dial(SIP/224, 30) exten => 520xxxxxx,4,hangup 2013/1/14 Salaheddine Elharit <salah.elharit200 at gmail.com>> thanks danny > > > > i think i didn?t explain correctly may question > > > > i revive a lot of calls from this number _0666XXXXXX and i wants to block > it to call my number 520xxxxxx . > > > > 2013/1/14 Danny Nicholas <danny at debsinc.com> > >> Exten => _0666XXXXXX,1,answer()**** >> >> Exten => _0666XXXXXX,n,playback(tt-monkeys)**** >> >> Exten => _0666XXXXXX,n,hangup() >> > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130114/470a3758/attachment-0001.htm>
I think he does have one mistake in the below section. exten => 520xxxxxx,2,GotoIf($["${CALLERID(num)}" = "0666XXxxxx" ]?3:4) should be exten => 520xxxxxx,2,GotoIf($["${CALLERID(num)}" = "0666XXxxxx" ]?4:3) If the callerid is a match, then we go straight to hangup, otherwise we allow it. Using Asterisk, this is the most complete block you are going to get. If you want anything further, then you need to block it up at your telephone provider level. Your pbx must accept the call in to read the caller ID number, but by hanging up immediately, it is not tying up a line. It accepts, reads the caller id, and dumps in the span of milliseconds in the case of a SIP or PRI trunk. Analog line would take just a bit more time. Kevin Larsen - Systems Analyst - Pioneer Balloon - Ph: 316-688-8208 From: Salaheddine Elharit <salah.elharit200 at gmail.com> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>, Date: 01/14/2013 10:51 AM Subject: Re: [asterisk-users] block one number in incoming calls Sent by: asterisk-users-bounces at lists.digium.com hi Zohair Raza thanks for your replay but this script will allow just this 0666XXxxxx to call my number 520xxxxxx what i want is block this number to call 520xxxxxx not allow it thank you exten => 520xxxxxx,1,NoOp(Caller-ID: ${CALLERID(all)}) exten => 520xxxxxx,2,GotoIf($["${CALLERID(num)}" = "0666XXxxxx" ]?3:4) exten => 520xxxxxx,3,Dial(SIP/224, 30) exten => 520xxxxxx,4,hangup 2013/1/14 Salaheddine Elharit <salah.elharit200 at gmail.com> thanks danny i think i didn?t explain correctly may question i revive a lot of calls from this number _0666XXXXXX and i wants to block it to call my number 520xxxxxx . 2013/1/14 Danny Nicholas <danny at debsinc.com> Exten => _0666XXXXXX,1,answer() Exten => _0666XXXXXX,n,playback(tt-monkeys) Exten => _0666XXXXXX,n,hangup() -- _____________________________________________________________________ -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130114/e4296a51/attachment.htm>
On Monday 14 January 2013, Salaheddine Elharit wrote:> i think i didn?t explain correctly may question > > i revive a lot of calls from this number _0666XXXXXX and i wants to block > it to call my number 520xxxxxx .Use something like Exten => _520X./0666XXXXXX,1,Answer() Exten => _520X./0666XXXXXX,n,PlayBack(tt-monkeys) Exten => _520X./0666XXXXXX,n,HangUp() Now when a call comes in from 0666XXXXXX to _520X. they will get monkey noises. -- AJS Answers come *after* questions.
isrlgb at gmail.com
2013-Jan-14 17:05 UTC
[asterisk-users] block one number in incoming calls
------Original Message------ From: Eric Wieling To: ????? ?????? To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] block one number in incoming calls Sent: Jan 14, 2013 6:58 PM No. ?However you can do this: exten => ?_520xxxxxx/_0666XXxxxx,1,hangup -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of isrlgb at gmail.com Sent: Monday, January 14, 2013 11:57 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] block one number in incoming calls Can't we. Do this? exten => ?520xxxxxx/0666XXxxxx,1,hangup -----Original Message----- From: Salaheddine Elharit <salah.elharit200 at gmail.com> Sender: asterisk-users-bounces at lists.digium.com Date: Mon, 14 Jan 2013 16:51:11 To: Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users at lists.digium.com> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] block one number in incoming calls -- _____________________________________________________________________ -- 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 </div> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130114/20b7c603/attachment.htm>