I want to limit the number of simultaneous incoming
calls that my IAX DID can accept to, say, 2. The IAX
DID provider sets no limit.

The code below does work, but when the limit is in
effect, new callers hear a "call cannot be completed
as dialed.." message instead of a busy signal. Maybe
this is an issue with the provider, but I do not like
this and want callers to hear a busy signal.

[inbound]
exten => 1234567,1,Set(GROUP()=limit)
exten => 1234567,2,GotoIf($[${GROUP_COUNT()}>2]?103)
exten => 1234567,3,Dial(Zap/5&Zap/6,25,tT)
exten => 1234567,4,Voicemail,u110
exten => 1234567,5,hangup
exten => 1234567,103,Busy
exten => 1234576,104,hangup

I also tried

[inbound]
exten => 1234567,1,Set(GROUP()=limit)
exten => 1234567,2,GotoIf($[${GROUP_COUNT()}>2]?103)
exten => 1234567,3,Dial(Zap/5&Zap/6,25,tT)
exten => 1234567,4,Voicemail,u110
exten => 1234567,5,hangup
exten => 1234567,103,Playtones(busy)
exten => 1234567,104,Wait(5)
exten => 1234567,105,Hangup

but when the limit is in effect, the busy tone is
played for 5 sec and then the call starts to ring!

Can anyone offer a solution?

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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

Reply via email to