You set both hangup_after_bridge and continue_on_fail after you already called bridge.<br>Try setting it *before*<br><br>Seems to be a running theme here that things will be parsed in a linear fashion that you may want to take note of.<br>
<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 6:18 PM, Dave Stevenson <span dir="ltr"><<a href="mailto:stevendt@primrosebank.net">stevendt@primrosebank.net</a>></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><font color="#888888">
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
</font><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div class="im">
<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><div><div></div><div class="h5"><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'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"> <condition
field="destination_number" expression="^(100)$"></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"><action application="voicemail" data="default
${domain_name} ${dialed_extension}"/><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"><<a href="mailto:stevendt@primrosebank.net" target="_blank">stevendt@primrosebank.net</a>></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's the easy bit (I think - it's a
copy of extension 2000 code)</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> <extension
name="group_dial_primrose"><br>
<condition field="destination_number"
expression="^100$"><br>
<action application="bridge" data="${group_call(<a href="mailto:primrose@$%7Bdomain_name%7D%29%7D%22/" target="_blank">primrose@${domain_name})}"/</a>></font></div>
<div><font face="Arial" size="2">
</condition><br>
</extension><br></font></div>
<div><font face="Arial" size="2">That'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'm struggling to get it to do what I want
when some doesn'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't answer the call. That's fine, as you would not want every
extension'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'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"><action application="set"
data="dialed_extension=$1"/><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"> <action application="set"
data="call_timeout=20"/><br></font></div>
<div><font face="Arial" size="2">Added these lines - but don'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"> <action application="set"
data="hangup_after_bridge=true"/><br> <action application="set"
data="continue_on_fail=true"/><br></font><font face="Arial" size="2"> <action application="answer"/><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"> <action application="sleep"
data="1000"/><br> <action application="voicemail" data="default
${domain_name}{dialed_extension}"/><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"> <extension
name="group_dial_primrose"><br></font></div></div></blockquote>
<div><font face="Arial" size="2"></font><br>The following line needs to have 100
in parens like this: "^(100)$" because that'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"> <condition
field="destination_number" expression="^100$"><br> <action
application="set" data="dialed_extension=$1"/><br> <action
application="set" data="call_timeout=20"/><br> <action
application="bridge" data="${group_call(<a href="mailto:primrose@$%7Bdomain_name%7D%29%7D%22/" target="_blank">primrose@${domain_name})}"/</a>><br> <action
application="set" data="hangup_after_bridge=true"/><br> <action
application="set" data="continue_on_fail=true"/><br> <action
application="answer"/><br> <action application="sleep"
data="1000"/><br></font></div></div></blockquote>
<div><font face="Arial" size="2"></font><br>I think this might be a typo?
Shouldn't this next line be ... data="default ${domain_name}
${dialed_extension}" <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"> <action application="voicemail"
data="default ${domain_name}{dialed_extension}"/></font></div>
<div> </div>
<div><font face="Arial" size="2">
</condition><br>
</extension><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'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>
<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>
</blockquote>
<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></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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>