<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.5848" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks Anthony</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>that did the trick !</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Excuse my ignorance - this is all new to me . . .
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It would help if I knew what I was doing, as I
commented below, I copied the </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<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></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>from the code for the default extensions (in the
wrong order though obviously), without understanding what they were there for
!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've just stumbled across the Wiki page <A
href="http://wiki.freeswitch.org/wiki/Extension_Status_Example">http://wiki.freeswitch.org/wiki/Extension_Status_Example</A> -
hopefully, I understand now</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>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=anthony.minessale@gmail.com
href="mailto:anthony.minessale@gmail.com">Anthony Minessale</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, November 10, 2009 12:29
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] DIalplan
logic</DIV>
<DIV><BR></DIV>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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV class=im>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228); FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; moz-background-clip: border; moz-background-origin: padding; moz-background-inline-policy: continuous"><B>From:</B>
<A title=stevendt@primrosebank.net href="mailto:stevendt@primrosebank.net"
target=_blank>Dave Stevenson</A> </DIV>
<DIV
style="FONT: 10pt arial; 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: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Monday, November 09, 2009 11:52 PM</DIV>
<DIV
style="FONT: 10pt arial; 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="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228); FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; moz-background-clip: border; moz-background-origin: padding; moz-background-inline-policy: continuous"><B>From:</B>
<A title=msc@freeswitch.org href="mailto:msc@freeswitch.org"
target=_blank>Michael Collins</A> </DIV>
<DIV
style="FONT: 10pt arial; 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: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Monday, November 09, 2009 11:26 PM</DIV>
<DIV
style="FONT: 10pt arial; 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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>
<P>
<HR>
<P></P>_______________________________________________<BR>FreeSWITCH-users
mailing
list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>