<!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 bgColor=#efefef>
<DIV><FONT face=Arial size=2>Oh, on the off chance that it's interesting to
anybody what I'm actually doing here.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have two SIP devices, "dave" and
"dave-laptop". I want to have one voicemail box but be able to check
it from either one. In sip.conf, both devices have "mailbox=dave".
It's this setting that I'm retrieving with the code below and passing into
VoiceMailMain.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"David L. West" <<A
href="mailto:nntp@deskoptional.com">nntp@deskoptional.com</A>> wrote in
message <A
href="news:e3gep4$os9$1@sea.gmane.org">news:e3gep4$os9$1@sea.gmane.org</A>...</DIV>
<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>
<P></P><FONT face="Courier New" size=2></FONT><FONT face="Courier New"
size=2></FONT>
<HR>
<P></P>_______________________________________________<BR>--Bandwidth and
Colocation provided by Easynews.com --<BR><BR>Asterisk-Users mailing
list<BR>To UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE></BODY></HTML>