Thanks it works<br><br><div class="gmail_quote">On Fri, Jun 3, 2011 at 1:44 PM, Boris Kovalenko <span dir="ltr">&lt;<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  
    
  
  <div text="#000000" bgcolor="#ffffff">
    Hello!<br>
    <br>
        There is no variable ${Caller-Caller-ID-Number}, but
    ${caller_id_number}. Please look at
    <a href="http://wiki.freeswitch.org/wiki/Channel_Variables" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables</a><br>
    <br>
    <blockquote type="cite"><div><div></div><div class="h5">I still cannot get desired caller id through
      prefixing,<br>
      <br>
      i get from header as :-  From: &quot;&quot; <a>&lt;sip:91@xxx.xxx.xxx.xxx&gt;</a><br>
      <br>
      <br>
      &lt;extension name=&quot;novanet_7001&quot;&gt;<br>
                  &lt;condition field=&quot;destination_number&quot;
      expression=&quot;^(7001)&quot; continue=&quot;false&quot;&gt;<br>
                  &lt;action application=&quot;set&quot;
      data=&quot;call_timeout=20&quot;/&gt;<br>
                  &lt;action application=&quot;info&quot; /&gt;<br>
                  &lt;action application=&quot;set&quot;
      data=&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION,USER_NOT_REGISTERED&quot;/&gt;
      <br>
                  &lt;action application=&quot;set&quot;
      data=&quot;effective_caller_id_number=91${Caller-Caller-ID-Number}&quot;/&gt;<br>
                  &lt;action application=&quot;ring_ready&quot; /&gt;<br>
                  &lt;action application=&quot;bridge&quot;
      data=&quot;{sip_cid_type=rpid}sofia/gateway/novanet/1646xxxxxxxx&quot;/&gt;<br>
      <br>
      &lt;/condition&gt;<br>
              &lt;/extension&gt;<br>
      <br>
      Logs:<br>
      -----------------------<br>
      <br>
      Dialplan: FreeTDM/1:13/7001 Action
set(continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION,USER_NOT_REGISTERED)<br>
      Dialplan: FreeTDM/1:13/7001 Action
      set(effective_caller_id_number=91${Caller-Caller-ID-Number})<br>
      Dialplan: FreeTDM/1:13/7001 Action ring_ready()<br>
      Dialplan: FreeTDM/1:13/7001 Action
      bridge({sip_cid_type=rpid}sofia/gateway/novanet/1646xxxxxxx)<br>
      2011-06-03 03:52:34.765627 [DEBUG] switch_core_state_machine.c:119
      (FreeTDM/1:13/7001) State Change CS_ROUTING -&gt; CS_EXECUTE<br>
      2011-06-03 03:52:34.765627 [DEBUG] switch_core_session.c:1116 Send
      signal FreeTDM/1:13/7001 [BREAK]<br>
      2011-06-03 03:52:34.765627 [DEBUG] switch_core_state_machine.c:359
      (FreeTDM/1:13/7001) State ROUTING going to sleep<br>
      2011-06-03 03:52:34.765627 [DEBUG] switch_core_state_machine.c:320
      (FreeTDM/1:13/7001) Running State Change CS_EXECUTE<br>
      2011-06-03 03:52:34.765627 [DEBUG] switch_core_state_machine.c:366
      (FreeTDM/1:13/7001) State EXECUTE<br>
      2011-06-03 03:52:34.765627 [DEBUG] mod_freetdm.c:451
      FreeTDM/1:13/7001 CHANNEL EXECUTE<br>
      2011-06-03 03:52:34.765627 [DEBUG] switch_core_state_machine.c:157
      FreeTDM/1:13/7001 Standard EXECUTE<br>
      EXECUTE FreeTDM/1:13/7001 set(call_timeout=20)<br>
      2011-06-03 03:52:34.765627 [DEBUG] mod_dptools.c:1059
      FreeTDM/1:13/7001 SET [call_timeout]=[20]<br>
      EXECUTE FreeTDM/1:13/7001 info()<br>
      2011-06-03 03:52:34.765627 [INFO] mod_dptools.c:1202 CHANNEL_DATA:<br>
      Channel-State: [CS_EXECUTE]<br>
      Channel-Call-State: [RINGING]<br>
      Channel-State-Number: [4]<br>
      Channel-Name: [FreeTDM/1:13/7001]<br>
      Unique-ID: [8949f10a-ad91-4705-95a7-eb42dfcfe40f]<br>
      Call-Direction: [inbound]<br>
      Presence-Call-Direction: [inbound]<br>
      Channel-Call-UUID: [8949f10a-ad91-4705-95a7-eb42dfcfe40f]<br>
      Answer-State: [ringing]<br>
      Channel-Read-Codec-Name: [PCMA]<br>
      Channel-Read-Codec-Rate: [8000]<br>
      Channel-Read-Codec-Bit-Rate: [64000]<br>
      Channel-Write-Codec-Name: [PCMA]<br>
      Channel-Write-Codec-Rate: [8000]<br>
      Channel-Write-Codec-Bit-Rate: [64000]<br>
      Caller-Direction: [inbound]<br>
      Caller-Username: [FreeTDM]<br>
      Caller-Dialplan: [XML]<br>
      Caller-Caller-ID-Number: [8097328707]<br>
      Caller-ANI: [8097328707]<br>
      Caller-Destination-Number: [7001]<br>
      Caller-Unique-ID: [8949f10a-ad91-4705-95a7-eb42dfcfe40f]<br>
      Caller-Source: [mod_freetdm]<br>
      Caller-Context: [novanet]<br>
      Caller-RDNIS: [7001]<br>
      Caller-Channel-Name: [FreeTDM/1:13/7001]<br>
      Caller-Profile-Index: [2]<br>
      Caller-Profile-Created-Time: [1307073154764686]<br>
      Caller-Channel-Created-Time: [1307073154758018]<br>
      Caller-Channel-Answered-Time: [0]<br>
      Caller-Channel-Progress-Time: [0]<br>
      Caller-Channel-Progress-Media-Time: [0]<br>
      Caller-Channel-Hangup-Time: [0]<br>
      Caller-Channel-Transfer-Time: [0]<br>
      Caller-Screen-Bit: [true]<br>
      Caller-Privacy-Hide-Name: [false]<br>
      Caller-Privacy-Hide-Number: [false]<br>
      variable_direction: [inbound]<br>
      variable_uuid: [8949f10a-ad91-4705-95a7-eb42dfcfe40f]<br>
      variable_read_codec: [PCMA]<br>
      variable_read_rate: [8000]<br>
      variable_write_codec: [PCMA]<br>
      variable_write_rate: [8000]<br>
      variable_channel_name: [FreeTDM/1:13/7001]<br>
      variable_freetdm_span_name: [wp1]<br>
      variable_freetdm_span_number: [1]<br>
      variable_freetdm_chan_number: [13]<br>
      variable_freetdm_bearer_capability: [0]<br>
      variable_freetdm_bearer_layer1: [3]<br>
      variable_freetdm_screening_ind: [network-provided]<br>
      variable_freetdm_presentation_ind: [presentation-allowed]<br>
      variable_dialed_extension: [7001]<br>
      variable_transfer_ringback: [local_stream://moh]<br>
      variable_#: [true]<br>
      variable_export_vars: [#,*,#]<br>
      variable_bind_meta_key: [#]<br>
      variable_hangup_after_bridge: [true]<br>
      variable_continue_on_fail: [true]<br>
      variable_called_party_callgroup: [1]<br>
      variable_dialed_user: [7001]<br>
      variable_dialed_domain: [192.168.2.190]<br>
      variable_call_uuid: [8949f10a-ad91-4705-95a7-eb42dfcfe40f]<br>
      variable_originate_disposition: [USER_NOT_REGISTERED]<br>
      variable_max_forwards: [70]<br>
      variable_call_timeout: [20]<br>
      variable_current_application: [info]<br>
      <br>
      <br>
      EXECUTE FreeTDM/1:13/7001
set(continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION,USER_NOT_REGISTERED)<br>
      2011-06-03 03:52:34.766572 [DEBUG] mod_dptools.c:1059
      FreeTDM/1:13/7001 SET
[continue_on_fail]=[NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION,USER_NOT_REGISTERED]<br>
      EXECUTE FreeTDM/1:13/7001 set(effective_caller_id_number=91)<br>
      2011-06-03 03:52:34.766572 [DEBUG] mod_dptools.c:1059
      FreeTDM/1:13/7001 SET [effective_caller_id_number]=[91]<br>
      EXECUTE FreeTDM/1:13/7001 ring_ready()<br>
      2011-06-03 03:52:34.766572 [DEBUG] mod_freetdm.c:861 [s1c13][1:13]
      Indicating RINGING in state PROCEED<br>
      2011-06-03 03:52:34.766572 [DEBUG] mod_freetdm.c:861 [s1c13][1:13]
      Changed state from PROCEED to RINGING<br>
      2011-06-03 03:52:34.766572 [DEBUG] ftdm_state.c:508 [s1c13][1:13]
      Executing state processor for RINGING<br>
      2011-06-03 03:52:34.766572 [DEBUG] ftmod_sangoma_isdn.c:614
      [s1c13][1:13] Completed state change from PROCEED to RINGING in
      0ms<br>
      2011-06-03 03:52:34.766572 [DEBUG] ftmod_sangoma_isdn.c:625
      [s1c13][1:13] processing state change to RINGING<br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      -----------------------------------------------------------<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On Thu, Jun 2, 2011 at 12:18 PM, Sam <span dir="ltr">&lt;<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
          Hello,<br>
          <br>
          <br>
          How do i manipulate callerid number ... i have the below
          statement<br>
          <br>
          &lt;action application=&quot;set&quot;
          data=&quot;effective_caller_id_number=66${outbound_caller_id_number}&quot;/&gt;<br>
          <br>
          here i want to prefix caller id with 66 so the effective
          caller id becomes 66 + original callerid .<br>
          <br>
          using above statement the caller id passed was just 66 to the
          far end.<br>
          <br>
          below is the dialplan i used.<br>
          <br>
          &lt;extension name=&quot;7001&quot;&gt;<br>
                      &lt;condition field=&quot;destination_number&quot;
          expression=&quot;^(7001)&quot; continue=&quot;false&quot;&gt;<br>
                      &lt;action application=&quot;set&quot;
          data=&quot;call_timeout=20&quot;/&gt;<br>
                      &lt;action application=&quot;info&quot; /&gt;<br>
                      &lt;action application=&quot;set&quot;
          data=&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION,USER_NOT_REGISTERED&quot;/&gt;
          <br>
                      &lt;action application=&quot;set&quot;
          data=&quot;effective_caller_id_number=66${outbound_caller_id_number}&quot;/&gt;<br>
                      &lt;action application=&quot;ring_ready&quot; /&gt;<br>
                      &lt;action application=&quot;bridge&quot;
          data=&quot;{sip_cid_type=rpid}sofia/gateway/outbound/1646xxxxxxx&quot;/&gt;<br>
                     <br>
                  &lt;/extension&gt;<br>
          <br>
          <br>
          <br>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
          <br>
          This is from header i get .<br>
          <br>
          From: &quot;&quot; &lt;<a href="mailto:sip%3A66@203.153.53.138" target="_blank">sip:66@203.153.53.138</a>&gt;<br>
          <br>
-------------------------------------------------------------------------------------------------------------------<br>
          <br>
          <br>
          <br>
          Dialplan: FreeTDM/1:29/7001 Action info()<br>
          Dialplan: FreeTDM/1:29/7001 Action
set(continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION,USER_NOT_REGISTERED)<br>
          Dialplan: FreeTDM/1:29/7001 Action
          set(effective_caller_id_number=66${outbound_caller_id_number})<br>
          Dialplan: FreeTDM/1:29/7001 Action ring_ready()<br>
          Dialplan: FreeTDM/1:29/7001 Action
          bridge({sip_cid_type=rpid}sofia/gateway/outbound/1646xxxxxxx)<br>
          2011-06-02 06:43:48.111347 [DEBUG]
          switch_core_state_machine.c:119 (FreeTDM/1:29/7001) State
          Change CS_ROUTING -&gt; CS_EXECUTE<br>
          2011-06-02 06:43:48.111347 [DEBUG] switch_core_session.c:1116
          Send signal FreeTDM/1:29/7001 [BREAK]<br>
          2011-06-02 06:43:48.111347 [DEBUG]
          switch_core_state_machine.c:359 (FreeTDM/1:29/7001) State
          ROUTING going to sleep<br>
          2011-06-02 06:43:48.111347 [DEBUG]
          switch_core_state_machine.c:320 (FreeTDM/1:29/7001) Running
          State Change CS_EXECUTE<br>
          2011-06-02 06:43:48.111347 [DEBUG]
          switch_core_state_machine.c:366 (FreeTDM/1:29/7001) State
          EXECUTE<br>
          2011-06-02 06:43:48.111347 [DEBUG] mod_freetdm.c:451
          FreeTDM/1:29/7001 CHANNEL EXECUTE<br>
          2011-06-02 06:43:48.111347 [DEBUG]
          switch_core_state_machine.c:157 FreeTDM/1:29/7001 Standard
          EXECUTE<br>
          EXECUTE FreeTDM/1:29/7001 set(call_timeout=20)<br>
          2011-06-02 06:43:48.111347 [DEBUG] mod_dptools.c:1059
          FreeTDM/1:29/7001 SET [call_timeout]=[20]<br>
          EXECUTE FreeTDM/1:29/7001 info()<br>
          2011-06-02 06:43:48.111347 [INFO] mod_dptools.c:1202
          CHANNEL_DATA:<br>
          Channel-State: [CS_EXECUTE]<br>
          Channel-Call-State: [RINGING]<br>
          Channel-State-Number: [4]<br>
          Channel-Name: [FreeTDM/1:29/7001]<br>
          Unique-ID: [e5b47553-3b9c-4692-beaa-513a3a3356c2]<br>
          Call-Direction: [inbound]<br>
          Presence-Call-Direction: [inbound]<br>
          Channel-Call-UUID: [e5b47553-3b9c-4692-beaa-513a3a3356c2]<br>
          Answer-State: [ringing]<br>
          Channel-Read-Codec-Name: [PCMA]<br>
          Channel-Read-Codec-Rate: [8000]<br>
          Channel-Read-Codec-Bit-Rate: [64000]<br>
          Channel-Write-Codec-Name: [PCMA]<br>
          Channel-Write-Codec-Rate: [8000]<br>
          Channel-Write-Codec-Bit-Rate: [64000]<br>
          Caller-Direction: [inbound]<br>
          Caller-Username: [FreeTDM]<br>
          Caller-Dialplan: [XML]<br>
          Caller-Caller-ID-Number: [8097328707]<br>
          Caller-ANI: [8097328707]<br>
          Caller-Destination-Number: [7001]<br>
          Caller-Unique-ID: [e5b47553-3b9c-4692-beaa-513a3a3356c2]<br>
          Caller-Source: [mod_freetdm]<br>
          Caller-RDNIS: [7001]<br>
          Caller-Channel-Name: [FreeTDM/1:29/7001]<br>
          Caller-Profile-Index: [2]<br>
          Caller-Profile-Created-Time: [1306997028110372]<br>
          Caller-Channel-Created-Time: [1306997028103773]<br>
          Caller-Channel-Answered-Time: [0]<br>
          Caller-Channel-Progress-Time: [0]<br>
          Caller-Channel-Progress-Media-Time: [0]<br>
          Caller-Channel-Hangup-Time: [0]<br>
          Caller-Channel-Transfer-Time: [0]<br>
          Caller-Screen-Bit: [true]<br>
          Caller-Privacy-Hide-Name: [false]<br>
          Caller-Privacy-Hide-Number: [false]<br>
          variable_direction: [inbound]<br>
          variable_uuid: [e5b47553-3b9c-4692-beaa-513a3a3356c2]<br>
          variable_read_codec: [PCMA]<br>
          variable_read_rate: [8000]<br>
          variable_write_codec: [PCMA]<br>
          variable_write_rate: [8000]<br>
          variable_channel_name: [FreeTDM/1:29/7001]<br>
          variable_freetdm_span_name: [wp1]<br>
          variable_freetdm_span_number: [1]<br>
          variable_freetdm_chan_number: [29]<br>
          variable_freetdm_bearer_capability: [0]<br>
          variable_freetdm_bearer_layer1: [3]<br>
          variable_freetdm_screening_ind: [network-provided]<br>
          variable_freetdm_presentation_ind: [presentation-allowed]<br>
          variable_dialed_extension: [7001]<br>
          variable_transfer_ringback: [local_stream://moh]<br>
          variable_#: [true]<br>
          variable_export_vars: [#,*,#]<br>
          variable_bind_meta_key: [#]<br>
          variable_hangup_after_bridge: [true]<br>
          variable_continue_on_fail: [true]<br>
          variable_called_party_callgroup: [1]<br>
          variable_dialed_user: [7001]<br>
          variable_dialed_domain: [192.168.2.190]<br>
          variable_call_uuid: [e5b47553-3b9c-4692-beaa-513a3a3356c2]<br>
          variable_originate_disposition: [USER_NOT_REGISTERED]<br>
          variable_max_forwards: [70]<br>
          variable_call_timeout: [20]<br>
          variable_current_application: [info]<br>
          <br>
          <br>
          <br>
          Regards<br>
          <font color="#888888">Sam<br>
          </font></blockquote>
      </div>
      <br>
      </div></div><pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<div class="im"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</div></pre>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 
Regards,
Boris

</pre>
  </div>

<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>