<div dir="ltr">In dialplan, how can I access the channel variables of an outbound call leg?<div><br></div><div>e.g. </div><div><br></div><div><div>  &lt;extension name=&quot;Local_Extension&quot;&gt;</div><div>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[0-9][0-9])$&quot;&gt;                           </div><div>      &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;                                           </div><div>      &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=false&quot;/&gt;</div><div>      &lt;action application=&quot;log&quot; data=&quot;INFO: read_codec=${read_codec}&quot;/&gt;                  </div><div>      &lt;action application=&quot;bridge&quot; data=&quot;user/$1@${domain}&quot;/&gt;                   </div><div>    &lt;/condition&gt;                                                                                        </div><div>  &lt;/extension&gt; </div><div><br></div><div><br></div><div>In the example above, read_codec of call leg A will be logged</div><div>Now I want to print the read_codec/write_codec of outbound call leg in this dialplan. How can I achieve it?</div><div><br></div><div><br></div>-- <br><div class="gmail_signature">regards,<br>akhil</div>
</div></div>