No, you can&#39;t nest them like that. But you can stack multiple patterns inside a pattern and use break_on_match=&quot;true&quot; to prevent further matching attempts inside that macro. Look at &quot;voicemail_message_count&quot; macro in the vanilla configs for a good example of that.<br>
<br>-MC<br><br><div class="gmail_quote">On Fri, Jan 18, 2013 at 2:00 PM, Jakob <span dir="ltr">&lt;<a href="mailto:freeswitch@orresta.no-ip.com" target="_blank">freeswitch@orresta.no-ip.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Can you make a construct like below? Match the second argument within a<br>
match statement. Or are there a switch statement that can be used?<br>
<br>
         &lt;macro name=&quot;voicemail_message_count&quot;&gt;<br>
                 &lt;input pattern=&quot;^(1):(.*)$&quot;&gt;<br>
                         &lt;match&gt;<br>
                                 &lt;input pattern=&quot;(.*):(new)$&quot;&gt;<br>
                                         &lt;match&gt;<br>
                                         &lt;/match&gt;<br>
                                 &lt;/input&gt;<br>
                                 &lt;input pattern=&quot;(.*):(saved)$&quot;&gt;<br>
                                         &lt;match&gt;<br>
                                         &lt;/match&gt;<br>
                                 &lt;/input&gt;<br>
                                 &lt;input pattern=&quot;(.*):(urgent)$&quot;&gt;<br>
                                         &lt;match&gt;<br>
                                         &lt;/match&gt;<br>
                                 &lt;/input&gt;<br>
                         &lt;/match&gt;<br>
                         &lt;nomatch&gt;<br>
                         &lt;/nomatch&gt;<br>
                 &lt;/input&gt;<br>
         &lt;/macro&gt;<br>
<br>
Best Regards<br>
Jakob<br>
<br>
<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>
</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>