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

Madovsky infos at madovsky.org
Sat May 14 09:37:57 MSD 2011


I think you have to escape the $ 3 times
\\\${nir}
\
----- Original Message ----- 
From: "Thomas Hoellriegel" <admin at blindi.net>
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Sent: Friday, May 13, 2011 9:49 PM
Subject: Re: [Freeswitch-users] problem exporting variables from shellsctipt 
not working


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



--------------------------------------------------------------------------------


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




More information about the FreeSWITCH-users mailing list