<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.10">
</HEAD>
<BODY>
Can you post your dialplan for that extension.&nbsp; Also, NoOp works great for debugging these issues.<BR>
<BR>
On Tue, 2005-03-08 at 12:29, kurt x wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I> I am trying to test how the GotoIf and $LEN functions work but am not
succeeding is
this venture.  When I dial and access voicemail with an ani of 3000
the gotoif statement does not push the call to s|6.  Its goes through
each line( 1,2,3,4,5,6,7) .  In additon when I dial with a 10 digit
ani the s,3,Gotoif does not work.  It also goes through each line(
1,2,3,4,5,6,7)

Any help is greatly appreciated.

Thanks

Kurt 

Asterisk CVS-HEAD-07/14/04-16:28:29 built by
root@asterick.wlb2.n2p.com on a i686 running Linux


[globals]
${ext}=0
SetGlobalVar(DIGITS=10)


[vmail]
exten =&gt; s,1,Answer
exten =&gt; s,2,NoOp(${ext})
exten =&gt; s,3,GotoIf($[${LEN(${CALLERIDNUM}}) = ${DIGITS}]?s|5)
exten =&gt; s,4,GotoIf($[${CALLERIDNUM}  = &quot;3000&quot;]?s|6)
exten =&gt; s,5,Voicemail(u${ext})
exten =&gt; s,6,Background(pbx-invalid)
exten =&gt; s,7,Hangup
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com</FONT>
<A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users"><U>http://lists.digium.com/mailman/listinfo/asterisk-users</U></A>
<FONT COLOR="#737373">To UNSUBSCRIBE or update options visit:
   </FONT><A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users"><U>http://lists.digium.com/mailman/listinfo/asterisk-users</U></I></A></PRE>
</BLOCKQUOTE>
</BODY>
</HTML>