[Freeswitch-users] <macro> levels of <input pattern>?
    Jakob 
    freeswitch at orresta.no-ip.com
       
    Sat Jan 19 01:00:11 MSK 2013
    
    
  
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
    
    
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list