Oops, you&#39;ve got some lines that are in the wrong place:<br><font face="Arial" size="2"> &lt;action 
      application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br> &lt;action 
      application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br><br>Those lines need to come prior to the bridge call or they&#39;ll never be applied. :)<br>-MC<br><br></font><br><div class="gmail_quote">
On Mon, Nov 9, 2009 at 4:18 PM, Dave Stevenson <span dir="ltr">&lt;<a href="mailto:stevendt@primrosebank.net">stevendt@primrosebank.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Well,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I thought it was fixed - it is more or less 
working, with one more stumbling block.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I have just posted a dump to the pastebin - from 
Dave (stevendt)</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">The voice mail works - but too well.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">If the call is answered by a someone at this end - 
everything is fine until the user hangs up, then the remote party gets the 
voicemail messages.#</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Is there something else wrong with the dialplan 
logic below ?</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">regards</font></div>
<div><font face="Arial" size="2">Dave</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
  <div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b> 
  <a title="stevendt@primrosebank.net" href="mailto:stevendt@primrosebank.net" target="_blank">Dave Stevenson</a> </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a> 
  </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Monday, November 09, 2009 11:52 
  PM</div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [Freeswitch-users] DIalplan 
  logic</div>
  <div><br></div>
  <div><font face="Arial" size="2">Michael,</font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">thanks a lot - it&#39;s fixed......</font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">you spotted exactly what the problem was 
  !</font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">      &lt;condition 
  field=&quot;destination_number&quot; expression=&quot;^(100)$&quot;&gt;</font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">&lt;action application=&quot;voicemail&quot; data=&quot;default 
  ${domain_name} ${dialed_extension}&quot;/&gt;<br></font></div>
  <div><font face="Arial" size="2"> </font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">regards</font></div>
  <div><font face="Arial" size="2">Dave</font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2"></font> </div>
  <blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
    <div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b> 
    <a title="msc@freeswitch.org" href="mailto:msc@freeswitch.org" target="_blank">Michael 
    Collins</a> </div>
    <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a> 
    </div>
    <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Monday, November 09, 2009 11:26 
    PM</div>
    <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [Freeswitch-users] 
    DIalplan logic</div>
    <div><font face="Arial" size="2"></font><br></div>See comment inline<br><br>
    <div class="gmail_quote">On Mon, Nov 9, 2009 at 2:56 PM, Dave Stevenson <span dir="ltr">&lt;<a href="mailto:stevendt@primrosebank.net" target="_blank">stevendt@primrosebank.net</a>&gt;</span> 
    wrote:<br>
    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div bgcolor="#ffffff">
      <div><font face="Arial" size="2">Hi Guys,</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">OK, with the RegEx help that you gave me, I 
      have separated out the processing of extension 100 from 101 to 399 as I 
      wanted.</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">I have created a group (100) which contains a 
      number of phones - 101 to 105 at the moment.</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">When the PSTN line rings, I want all the 
      extensions in the group to ring - that&#39;s the easy bit (I think - it&#39;s a 
      copy of extension 2000 code)</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">   &lt;extension 
      name=&quot;group_dial_primrose&quot;&gt;<br>      
      &lt;condition field=&quot;destination_number&quot; 
      expression=&quot;^100$&quot;&gt;<br>           
       &lt;action application=&quot;bridge&quot; data=&quot;${group_call(<a href="mailto:primrose@$%7Bdomain_name%7D%29%7D%22/" target="_blank">primrose@${domain_name})}&quot;/</a>&gt;</font></div>
      <div><font face="Arial" size="2">     
      &lt;/condition&gt;<br>    
      &lt;/extension&gt;<br></font></div>
      <div><font face="Arial" size="2">That&#39;s fine and the nominated phones all 
      ring.</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">I&#39;m struggling to get it to do what I want 
      when some doesn&#39;t pick up though.</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">All extensions ring as required, but their 
      own dialplan entries (copies of the 1001 to 1005 code in the default 
      dialplan) don&#39;t answer the call. That&#39;s fine, as you would not want every 
      extension&#39;s voice mail to kick in.</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">What I want to happen is for extension 100&#39;s 
      voice mail to kick in after a time delay.</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">So, get the dialed exetension number so that 
      I can point at the right mailbox</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">&lt;action application=&quot;set&quot; 
      data=&quot;dialed_extension=$1&quot;/&gt;<br></font></div>
      <div><font face="Arial" size="2">set the timeout for the call</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2"> &lt;action application=&quot;set&quot; 
      data=&quot;call_timeout=20&quot;/&gt;<br></font></div>
      <div><font face="Arial" size="2">Added these lines - but don&#39;t know why - they 
      are in the default extension code ?????</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2"> &lt;action application=&quot;set&quot; 
      data=&quot;hangup_after_bridge=true&quot;/&gt;<br> &lt;action application=&quot;set&quot; 
      data=&quot;continue_on_fail=true&quot;/&gt;<br></font><font face="Arial" size="2"> &lt;action application=&quot;answer&quot;/&gt;<br></font></div>
      <div><font face="Arial" size="2">then go to voice mail on 100</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2"> &lt;action application=&quot;sleep&quot; 
      data=&quot;1000&quot;/&gt;<br> &lt;action application=&quot;voicemail&quot; data=&quot;default 
      ${domain_name}{dialed_extension}&quot;/&gt;<br></font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">giving </font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2"> &lt;extension 
      name=&quot;group_dial_primrose&quot;&gt;<br></font></div></div></blockquote>
    <div><font face="Arial" size="2"></font><br>The following line needs to have 100 
    in parens like this: &quot;^(100)$&quot; because that&#39;s how you get $1 to be 
    populated. <br></div>
    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div bgcolor="#ffffff">
      <div><font face="Arial" size="2">      &lt;condition 
      field=&quot;destination_number&quot; expression=&quot;^100$&quot;&gt;<br> &lt;action 
      application=&quot;set&quot; data=&quot;dialed_extension=$1&quot;/&gt;<br> &lt;action 
      application=&quot;set&quot; data=&quot;call_timeout=20&quot;/&gt;<br> &lt;action 
      application=&quot;bridge&quot; data=&quot;${group_call(<a href="mailto:primrose@$%7Bdomain_name%7D%29%7D%22/" target="_blank">primrose@${domain_name})}&quot;/</a>&gt;<br> &lt;action 
      application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br> &lt;action 
      application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br> &lt;action 
      application=&quot;answer&quot;/&gt;<br> &lt;action application=&quot;sleep&quot; 
      data=&quot;1000&quot;/&gt;<br></font></div></div></blockquote>
    <div><font face="Arial" size="2"></font><br>I think this might be a typo? 
    Shouldn&#39;t this next line be ... data=&quot;default ${domain_name} 
    ${dialed_extension}&quot; <br></div>
    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div bgcolor="#ffffff">
      <div><font face="Arial" size="2"> &lt;action application=&quot;voicemail&quot; 
      data=&quot;default ${domain_name}{dialed_extension}&quot;/&gt;</font></div>
      <div> </div>
      <div><font face="Arial" size="2">      
      &lt;/condition&gt;<br>    
      &lt;/extension&gt;<br></font></div>
      <div><font face="Arial" size="2">The voicemail kicks in, and prompts are 
      correct (although the extension name is not spoken) but the wav file is 
      saved in the 1001 directory not 100 and neither extension 100 or 1001 
      think that have any voice mail messages.</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">Can someone help please ?</font></div>
      <div><font face="Arial" size="2"></font> </div>
      <div><font face="Arial" size="2">Where am i going wrong ?</font></div>
      <div><font face="Arial" size="2"></font> </div></div></blockquote>
    <div><br>Make those changes, reloadxml, and then try again. Be sure to 
    capture a debug log if it doesn&#39;t work and put that log in <a href="http://pastebin.freeswitch.org" target="_blank">pastebin.freeswitch.org</a>.<br>-MC<br></div></div><br>
    <p>
    </p><hr><div class="im">

    <p></p>_______________________________________________<br>FreeSWITCH-users 
    mailing 
    list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></blockquote><div class="im">
  <p>
  </p><hr>

  <p></p>_______________________________________________<br>FreeSWITCH-users 
  mailing 
  list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></blockquote></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>