Sherwood McGowan wrote:
>> <snip> 
> I'll be more than glad to help :)
>
> Here's the code:
> context default {
>    _X. => {
>        Set(DID=${EXTEN:6});
> continue:
>        Noop(${DID});
>        Set(GROUP(IAX)=incoming);
>        
> if("${MATH(${GROUP_COUNT([EMAIL PROTECTED])}+${GROUP_COUNT([EMAIL 
> PROTECTED])},i)}" 
> > "10") {
>            Set(DIALSTATUS=CHANUNAVAIL);
>        }
>        jump [EMAIL PROTECTED];
>    }
> }
>
> You didn't really need the continue or fail label, as the code that 
> you had at "fail" is taken care of within the if statement's execution.
>
> Let me know if there's any issue, if there is it's probably in the 
> implementation of the conditional
>
Ooops, remove the "continue:" line, it's not needed

-- 
Sherwood McGowan
VoIP / Telecom Solutions
[EMAIL PROTECTED]


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Reply via email to