<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    &nbsp; <br>
    I have a very simple call plan to allow internal extension to call
    external PSTN numbers. See below.<br>
    <br>
    &nbsp;&lt;extension name="domestic.example.com"&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;condition field="${toll_allow}" expression="domestic"/&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
    expression="^(\d{11})$"&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set"
    data="origination_caller_id_number=11111111"/&gt; <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set"
    data="effective_caller_id_number=${outbound_caller_id_number}"/&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set"
    data="effective_caller_id_number=${outbound_caller_id_number}"/&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set"
    data="effective_caller_id_name=${outbound_caller_id_name}"/&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--action application="bridge"
    data="sofia/gateway/idt/$1"/--&gt; &nbsp; <font color="#990000">&lt;===
      NOT WORK</font><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--action application="bridge"
    data="[origination_caller_id_number=111111]sofia/gateway/idt/$1"/--&gt;&nbsp;&nbsp;
    <font color="#990000">&lt;=== NOT WORK</font><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="bridge"
    data="[origination_caller_id_number=111111]sofia/gateway/idt/$1"/&gt;
    <font color="#990000">&lt;=== WORKS!!</font><br>
    &nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>
    &nbsp; &lt;/extension&gt;<br>
    <br>
    There a couple of things strange here:<br>
    <br>
    1. I have to put origination_caller_id_number inside data field of
    "bridge" application in order for the dialing out to happen.&nbsp; Why
    putting it outside as channel variable does not work?<br>
    <br>
    2. Actually because bridge command is for leg-B, really it should be
    "effective_caller_id_number" not "origination_caller_id_number".&nbsp; Is
    that right?<br>
    <br>
    I'm using IDT express as SIP carrier. I don't know if they changed
    something or I changed configuration in freeswitch. Now it seems I
    have to set origination_caller_id_number if I want to use IDT for
    outbound calls.<br>
    <br>
    I'd really appreciate your help.<br>
    <br>
    Cheers.<br>
    <br>
    Jun<br>
  </body>
</html>