Looks like there might be a typo in the tl-page macro. We are currently running TL v6.1.1.11 (problem found on both MTE and ST) and asterisk v1.6.2.14.
This is part of the error I received...
[2011-07-25 16:48:55] WARNING[30958]: pbx.c:3477 pbx_substitute_variables_helper_full: Error in extension logic (missing '}')
In the tl-page macro it looks like this on line 9 -
exten => s,n,GotoIf($[${AVAILSTATUS} = 0|${AVAILSTATUS = 1 ]?chanisavail)
I cloned the script and called it tl-page-mod and changed the line as follows...
exten => s,n,GotoIf($[${AVAILSTATUS} = 0|${AVAILSTATUS} = 1 ]?chanisavail)
I was able to select the new script in the Feature Code list and tested. Seems to work fine again.
We originally setup the system with TL v6.1.1.8 and I know it worked OK then... notes for release of v6.1.1.11 say that it has an update for the tl-page to check phone availability (which is good), but I'm guessing the typo came in at that point.
If someone could confirm all this, I'd appreciate it.
it looks like the code you pasted does support more than just a 1 now.. so yea close the bracket and it should work.