[Freeswitch-users] An easy way to test a list of numbers in condition?

Mario G mario_fs at mgtech.com
Tue Jul 12 23:31:53 MSD 2011


I am trying to find an easy way to test multiple numbers in a condition without putting all the numbers on one line. There can be 25 numbers or more. Preferably have comments. I looked at many web sites on XML, etc. but could not find a way to continue lines. Freeswitch treats everything in the expression including all spaces as part of the expression. Anyone know of a good way to do this? Thanks,
Mario G

  <extension name="out.group1">
    <condition field="${destination_number_w}" expression="^1111111111|             <!-- joe -->
                                                            2222222222|3333333333|  <!-- jon -->
                                                            4444444444|5555555555   <!-- pam -->
                                                                        $">
      <action application="set" data="destination_number_w=1$1"/>
      <action application="bridge" data="sofia/gateway/group1/1$1"/>
    </condition>
  </extension>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110712/727b1b6b/attachment.html 


More information about the FreeSWITCH-users mailing list