[Freeswitch-users] problem exporting variables from shellsctipt not working

Thomas Hoellriegel admin at blindi.net
Sat May 14 05:49:29 MSD 2011


Am 13.05.11 um 17:15 schrieb Gabriel Gunderson:

This is a bashscript. I call this script from dialplan i compate with 
play_and_get_digits::

   <extension name="datechecking">
     <condition field="destination_number" expression="^4411$"/>
     <condition field="${dateerror}" expression="^$" break="never">
       <action application="set" data="domain_name=$${domain}"/>
       <action application="play_and_get_digits"
       data="0 8 1 1000 #
       $${base_dir}/sounds/date/enter_correct_date.wav
        $${base_dir}/sounds/ivr/invalid.wav  nr \d+"/>
<action application="system" data="$${base_dir}/scripts/datechk.sh ${nr}
" />

       <action application="transfer" data="${destination_number}"/>
     </condition>
<condition field="${dateerror}" expression="^(.*)\d" break="on-true" >
break="never">
   <action application="playback" data="/ivr/date.ok.wav"/>
   <anti-action application="playback" data="/ivr/invalid-date.wav"/>

     </condition>
   </extension>

I can.t to export the variable from the shellscript to fs.

---------------
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