[Asterisk-Users] Code parsing error?
John covici
covici at ccs.covici.com
Fri May 5 14:38:32 MST 2006
Did you mean to have the dash inside the braces -- this may be your
problem.
on Friday 05/05/2006 David L. West(nntp at deskoptional.com) wrote
> This code executes just fine, and leaves the SIP peer's mailbox setting from sip.conf in variable target.
>
> exten => 1,1,Set(target=${CHANNEL:4}-)
> exten => 1,n,Set(target=${SIPPEER(${CUT(target,,1)}:mailbox})
> exten => 1,n,VoiceMailMain(${target})
>
> However, every time it runs I get an error in the CLI as follows
>
> WARNING[5629]: pbx.c:1366 ast_func_read: Can't find trailing parenthesis?
>
> This happens right after it executes the first line of code, then execution continues normally. I've looked at this until my eyes crossed at don't see any unbalanced parens or brackets. Perhaps I shouldn't worry since it seems to work, but what's going on here?
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> <META content="MSHTML 6.00.5346.5" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY>
> <DIV><FONT face="Courier New" size=2>This code executes just fine, and leaves
> the SIP peer's mailbox setting from sip.conf in variable target.</FONT></DIV>
> <DIV><FONT face="Courier New" size=2></FONT> </DIV>
> <DIV><FONT face="Courier New" size=2> exten =>
> 1,1,Set(target=${CHANNEL:4}-)<BR> exten =>
> 1,n,Set(target=${SIPPEER(${CUT(target,,1)}:mailbox})<BR> exten
> => 1,n,VoiceMailMain(${target}) </FONT></DIV>
> <DIV><FONT face="Courier New" size=2></FONT> </DIV>
> <DIV><FONT face="Courier New" size=2>However, every time it runs I get an error
> in the CLI as follows </FONT></DIV>
> <DIV><FONT face="Courier New" size=2></FONT> </DIV>
> <DIV><FONT face="Courier New" size=2> WARNING[5629]:
> pbx.c:1366 ast_func_read: Can't find trailing parenthesis?</FONT></DIV>
> <DIV><FONT face="Courier New" size=2></FONT> </DIV>
> <DIV><FONT face="Courier New" size=2>This happens right after it executes
> the first line of code, then execution continues normally. </FONT><FONT
> face=Arial size=2><FONT face="Courier New">I've looked at this until my</FONT>
> <FONT face="Courier New">eyes crossed at don't see any unbalanced parens or
> brackets. Perhaps I shouldn't worry since it seems to work, but what's going on
> here?</FONT><BR></FONT></DIV></BODY></HTML>
> _______________________________________________
> --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
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici at ccs.covici.com
More information about the asterisk-users
mailing list