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
Hi Dan, What does the CLI> says when the users get "call cannot be completed as dialed..." message? []'s MM -----Original Message----- From: Dan Batrams <dbq240@yahoo.com> To: asterisk-users@lists.digium.com Cc: Sent: Fri, 24 Mar 2006 18:03:46 -0800 (PST) Delivered: Fri, 24 Mar 2006 20:05:43 Subject:[Asterisk-Users] iax limit question 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 E-mail classificado pelo Identificador de Spam Inteligente Terra. Para alterar a categoria classificada, visite http://mail.terra.com.br/protected_email/imail/imail.cgi?+_u=levelz&_l=1,1143252343.916388.12149.cagera.terra.com.br,4640,Des15,Des15 --Original Message Ends-- -- Melcon Moraes <melcon.moraes@terra.com.br>
I found a solution... I just has to enter an Answer line and now it behaves as I wanted. Here is the working code: [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,Answer exten => 1234567,104,Playtones(busy) exten => 1234567,105,Wait(5) exten => 1234567,106,Hangup DB __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
> I found a solution... I just has to enter an Answer > line and now it behaves as I wanted. Here is the > working code: > > [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,Answer > exten => 1234567,104,Playtones(busy) > exten => 1234567,105,Wait(5) > exten => 1234567,106,HangupCheck for OUTBOUND_GROUP variable in http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+SetGroup It provides interesting capability "to set the amount of calls on the called channel but also on the calling channel". In this case you should not need Answer. Benchev