<!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.2.5">
</HEAD>
<BODY>
Thnx, that did the trick.<BR>
<BR>
Francisco.<BR>
<BR>
Le mercredi 30 mars 2005 &#224; 14:28 +0100, Jason Williams a &#233;crit :
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Mon, 21 Mar 2005 15:03:14 -0400, Francisco Moreno</FONT>
<FONT COLOR="#000000">&lt;<A HREF="mailto:fmoreno@netcomvoice.com">fmoreno@netcomvoice.com</A>&gt; wrote:</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Now, when I dial from any of the ext. to '0' It actually matches the</FONT>
<FONT COLOR="#000000">&gt; '0', plays the goodbye message, but doesn't hangup but gets directly to</FONT>
<FONT COLOR="#000000">&gt; the 'pasvalide' context. Same thing happens when I dial to the ext. 1002</FONT>
<FONT COLOR="#000000">&gt; (the one that doesn't have voicemail), either it rings further than</FONT>
<FONT COLOR="#000000">&gt; 10secs or it's busy, it does not hangup but gets straight to the</FONT>
<FONT COLOR="#000000">&gt; 'pasvalide' context. As far as I understood, it should not happen, it</FONT>
<FONT COLOR="#000000">&gt; should go through the dialplan leaving those context included at the end</FONT>
<FONT COLOR="#000000">&gt; and in the orther they are included.</FONT>


<FONT COLOR="#000000">your pavalide context is the problem</FONT>

<FONT COLOR="#000000">[pasvalide]</FONT>
<FONT COLOR="#000000">exten =&gt; _.,1,Answer()</FONT>
<FONT COLOR="#000000">exten =&gt; _.,2,Playback(invalid)</FONT>
<FONT COLOR="#000000">exten =&gt; _.,3,Playback(goodbye)</FONT>
<FONT COLOR="#000000">exten =&gt; _.,4,Hangup()</FONT>

<FONT COLOR="#000000">_. matches all numbers including h which means hangup, change pasvalide to this</FONT>


<FONT COLOR="#000000">[pasvalide]</FONT>
<FONT COLOR="#000000">exten =&gt; _X.,1,Answer()</FONT>
<FONT COLOR="#000000">exten =&gt; _X.,2,Playback(invalid)</FONT>
<FONT COLOR="#000000">exten =&gt; _X.,3,Playback(goodbye)</FONT>
<FONT COLOR="#000000">exten =&gt; _X.,4,Hangup()</FONT>

<FONT COLOR="#000000">And all should be good</FONT>


<FONT COLOR="#000000">Jason</FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Asterisk-Users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</A></FONT>
<FONT COLOR="#000000"><A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A></FONT>
<FONT COLOR="#000000">To UNSUBSCRIBE or update options visit:</FONT>
<FONT COLOR="#000000">   <A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>