[Freeswitch-users] accessing channel variables of outbound call leg

akhil garg akhilgarg7 at gmail.com
Thu Oct 30 12:34:51 MSK 2014

In dialplan, how can I access the channel variables of an outbound call leg?


  <extension name="Local_Extension">
    <condition field="destination_number" expression="^(10[0-9][0-9])$">

      <action application="set" data="hangup_after_bridge=true"/>

      <action application="set" data="continue_on_fail=false"/>
      <action application="log" data="INFO: read_codec=${read_codec}"/>

      <action application="bridge" data="user/$1@${domain}"/>



In the example above, read_codec of call leg A will be logged
Now I want to print the read_codec/write_codec of outbound call leg in this
dialplan. How can I achieve it?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141030/25c1e468/attachment.html 

Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list