[Asterisk-Users] iax limit question

Melcon Moraes levelz at terra.com.br
Sat Mar 25 22:20:11 MST 2006


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 at yahoo.com>
To:     asterisk-users at 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 at terra.com.br>




More information about the asterisk-users mailing list