[Freeswitch-users] Possible problem in adding channel variables to the bridge

Jon Bruel jbr at consiglia.dk
Thu Sep 25 11:57:49 PDT 2008


Anthony, this is a simplified version dialplan, just for an illustration
of the previous posts: 


file default.xml:
<?xml version="1.0" encoding="utf-8"?>
<include>
  <context name="default">
    <extension name="Local_Extension">
      <condition field="destination_number"
expression="^(10[01][0-9])$">
         <action application="set" data="leg=a"/>
         <action application="set"
data="destination=user/$1 at 10.3.1.11"/>
         <action application="export"
data="execute_on_answer=execute_extension ONANSWER XML default"/>
         <action application="bridge" data="
="[NEWVARIABLE=AAABBBCCC]${destination}"/>
      </condition>
   </extension>

   <extension name="Call_Answered">
      <condition field="destination_number" expression="^ONANSWER$">
          <action application="execute_extension" data="INFO XML info"/>
      </condition>
   </extension>
  </context>
</include>

file info.xml:
<xml version="1.0" encoding="utf-8"?>
<include>
  <context name="info">
      <extension name="Call_Info">
            <condition field="destination_number" expression="^INFO$" />
            </condition>
            <condition field="${leg}" expression="^a$">
                  <!-- We are in the b-leg-->
                  <anti-action application="set"
data="On_Answer_Is_It_Then_Passed=${NEWVARIABLE}"/>
                  <anti-action application="info"/>
            </condition>
      </extension>
  </context>
</include>

Sorry about my inconsistent use of the terms, the XML about should
explain. /Jon

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080925/f0309b0d/attachment-0002.html 


More information about the FreeSWITCH-users mailing list