No, you can't nest them like that. But you can stack multiple patterns inside a pattern and use break_on_match="true" to prevent further matching attempts inside that macro. Look at "voicemail_message_count" macro in the vanilla configs for a good example of that.
-MC
Hi,
Can you make a construct like below? Match the second argument within a
match statement. Or are there a switch statement that can be used?
<macro name="voicemail_message_count">
<input pattern="^(1):(.*)$">
<match>
<input pattern="(.*):(new)$">
<match>
</match>
</input>
<input pattern="(.*):(saved)$">
<match>
</match>
</input>
<input pattern="(.*):(urgent)$">
<match>
</match>
</input>
</match>
<nomatch>
</nomatch>
</input>
</macro>
Best Regards
Jakob
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org