<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>In Italy the proverb says: four eyes are better than two :-)</div><div><br></div><div>Yes, you're right!</div><div><br></div><div>Thank you very much for the .. eyes... ehm help! :-)</div><div><br></div><div>Denis<br></div><div><br>Il giorno 01/mar/2013, alle ore 02:07, Michael Collins &lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt; ha scritto:<br><br></div><blockquote type="cite"><div>Sometimes the new eye is the one that sees the obvious. You are quite correct. An action MUST be inside a condition, no exceptions. I suspect your edited version of the condition block will function as the OP hopes it would.<br>
<br>-MC<br><br><div class="gmail_quote">On Thu, Feb 28, 2013 at 10:05 AM, Steven Schoch <span dir="ltr">&lt;<a href="mailto:schoch+freeswitch.org@xwin32.com" target="_blank">schoch+freeswitch.org@xwin32.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On Thu, Feb 28, 2013 at 12:20 AM, Denis Gasparin <span dir="ltr">&lt;<a href="mailto:denis.gasparin@edistar.com" target="_blank">denis.gasparin@edistar.com</a>&gt;</span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="font-size:12pt;font-family:Arial"><div><br></div>

<div><span>The extension MYSETUP is:</span></div><div><span><div>&lt;extension name="MYSETUP_EXTENSION"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^MYSETUP$"/&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO MYSETUP exec"/&gt;</div><div><span style="font-size:12pt">&lt;/extension&gt;</span></div></span></div></div></blockquote><div><br></div></div><div>
I'm rather new at this, so I could be wrong, but I believe an action must be contained inside a condition. &nbsp;So extension from above should be:</div>
<div><br></div><div><div class="im"><div style="font-family:Arial;font-size:16px">&lt;extension name="MYSETUP_EXTENSION"&gt;</div><div style="font-family:Arial;font-size:16px">&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^MYSETUP$"&gt;</div>

</div><div class="im"><div style="font-family:Arial;font-size:16px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO MYSETUP exec"/&gt;</div></div><div style="font-family:Arial;font-size:16px">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;</div>
<div style="font-family:Arial;font-size:16px">
<span style="font-size:12pt">&lt;/extension&gt;</span></div><span class="HOEnZb"><font color="#888888"><div style="font-family:Arial;font-size:16px"><span style="font-size:12pt"><br></span></div><div style="font-family:Arial;font-size:16px">
<span style="font-size:12pt">--&nbsp;</span></div>
<div style="font-family:Arial;font-size:16px"><span style="font-size:12pt">Steve</span></div></font></span></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com">http://www.cudatel.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>