[Freeswitch-users] Problems multiple condition fields in databaseselection

Michael Collins msc at freeswitch.org
Mon May 16 23:37:45 MSD 2011


Thomas,

Could you pastebin the extension that does not work? Also, please pastebin
two call examples: one that works and one that fails. We should be able to
assist from there.

Thanks,
MC

On Mon, May 16, 2011 at 10:46 AM, Thomas Hoellriegel <admin at blindi.net>wrote:

> 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
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110516/1d025b1b/attachment.html 


More information about the FreeSWITCH-users mailing list