[Freeswitch-users] Sending channel variables

Evgeniy Zolotov zolotov at altron.ua
Fri Feb 13 04:10:01 PST 2009


        Hello!  
                                                                                                                                                          
I'm trying to make such scheme:

---> FS_A --> FS_B --> record

Incoming calls to FS_A are redirected to FS_B with the help of this
context:

<extension name="redirect">
  <condition field="destination_number" expression="^(2000\d)$" >
    <action application="answer" />
    <action application="set" data="continue_on_true=false" />
        <action application="bridge"
        data="sofia/outbound/$1 at 1.2.3.4:5080" />
    <action application="hangup" />
  </condition>
</extension>

FS_B records them to the file:

<extension name="30xxx-wr-wav">
  <condition field="destination_number" expression="^20001">
      <action application="answer" />
      <action application="set" data="hangup_after_bridge=true" />
      <action application="record"
data="$${base_dir}/recordings/test/testrec.wav" />
  </condition>
</extension>

This works good. But I have a question - in what manner I can send back
(from FS_B to FS_A) some channel variables?

   Thanks, Evgeniy.





More information about the FreeSWITCH-users mailing list