<!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>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> </DIV></FONT>
<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: #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=msc@freeswitch.org href="mailto:msc@freeswitch.org">Michael
Collins</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> Monday, November 09, 2009 11:26
PM</DIV>
<DIV style="FONT: 10pt arial"><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">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">pastebin.freeswitch.org</A>.<BR>-MC<BR></DIV></DIV><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>