<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: [Asterisk-Users] Re: Code parsing error?</TITLE>
<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 size=2>
<P>>It looks like you didnąt end the parenthesis for SIPPEER(). Maybe?</P>
<P>Yup, edited to look like this and it works w/o generating an error:</P>
<P>; Send to the user's vmail box by looking up the "mailbox" setting in
sip.conf</P>
<P>exten => 1,1,Set(target=${CHANNEL:4}-)</P>
<P>exten => 1,n,Set(target=${CUT(target,,1)}:mailbox})</P>
<P>exten => 1,n,VoiceMailMain(${target}) </P>
<P>I'm doing some tricky things in the dialplan and sip.conf so that I can have
sip devices "dave" and "dave-laptop" point to the same voicemail box. Also
rigging the "local" dialplan context to force calls to "dave" or "dave-laptop"
to go to "dave", so that if dave-laptop calls somebody who then returns the call
after dave-laptop has signed off it actually gets routed back to "dave". The
idea is to abstract devices and users as separate layers rather than rely on the
assumption that one user = one device. </P></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"A.J. Paxson" <<A
href="mailto:aj@thepaxson5.org">aj@thepaxson5.org</A>> wrote in message <A
href="news:C0818A1E.584%aj@thepaxson5.org">news:C0818A1E.584%aj@thepaxson5.org</A>...</DIV><FONT
face=Verdana><SPAN style="FONT-SIZE: 12px">On 5/5/06 10:45 PM, "David L. West"
wisely said:<BR><BR></SPAN></FONT>
<BLOCKQUOTE>
<BLOCKQUOTE><SPAN style="FONT-SIZE: 12px"><FONT face="Courier New">exten
=>
1,n,Set(target=${SIPPEER(${CUT(target,,1)}:mailbox})<BR></FONT></SPAN></BLOCKQUOTE></BLOCKQUOTE><SPAN
style="FONT-SIZE: 12px"><FONT face=Verdana><BR>Well:<BR><BR>Exten =>
1,n,Set(target=${SIPPEER(${CUT(target,,1)}):mailbox})<BR><BR>It looks like you
didn’t end the parenthesis for SIPPEER().
Maybe?<BR><BR>~~Aaron</FONT></SPAN>
<P>
<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>