[asterisk-users] AEL Help
Sherwood McGowan
sherwood.mcgowan at gmail.com
Fri Jun 13 15:01:06 CDT 2008
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(incoming at IAX)}+${GROUP_COUNT(outgoing at IAX)},i)}"
> > "10") {
> Set(DIALSTATUS=CHANUNAVAIL);
> }
> jump ${DID}@from-pri;
> }
> }
>
> 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
sherwood.mcgowan at gmail.com
More information about the asterisk-users
mailing list