[Freeswitch-users] Problems multiple condition fields in databaseselection

Thomas Hoellriegel admin at blindi.net
Mon May 16 21:46:36 MSD 2011


Hi all,
Is this normal: i can make only a single selection from a database in 
single 
context?
Example:
  <extension name="cforward_only_db" >
<condition field="destination_number" expression="^cforward_only_db$"
break="never">
</condition>
  <condition field="${dummy}" expression="^$" break="never">
</condition>

<condition field="${db(select/thomasfwdstatus/thomas)}"
expression="^1$" break="on-true" >
   <action application="playback"
   data="$${play_prefix}/cforward/alle-callfw-ist-an.wav"/>
<anti-action application="playback"
data="$${play_prefix}/cforward/all-fw-is-off.wav"/>

</condition>
</extension>

When i make a new extension:
<condition field="${db(select/thomasfwdstatus1/thomas)}"
expression="^1$" break="on-true" >
fs fails with an error message: regexp fails.
When i create a new context, and the syntax is the same, fs accept this.
  there is a opportunity in an existing contexty with multipe database 
selections? thank you




---------------
Du kannst mich jederzeit kostenlos per Festnetz erreichen unter:
http://www.blindi.net/callback
homepage: http://www.blindi.net
blinde-misc mailingliste für blinde. anmeldung unter:
http://www.blindi.net/mailman/listinfo/blinde-misc


More information about the FreeSWITCH-users mailing list