Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to make a dial plan for asterisk to do this:
for incoming-call check the caller-id and if caller id is equal with specific number (for example 666) then hangup that call.(this dial-plan also known as anti ex-girlfriend )

also I wrote this dial-plan for doing this but it doesn't work well.(don't hangup then incoming call from 666 and go to queue macro)

[macro-queue]
exten => s, 2, Queue(${ARG1})

[default]
exten => s, 1, Answer
exten => s/666, 2 ,Hangup
exten => s, 2, BackGround(welcome)
exten => s, 3, Macro(queue,operator)
share|improve this question

migrated from superuser.com Jan 6 '11 at 12:12

This question came from our site for computer enthusiasts and power users.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.