<!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>