<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hello!<br>
    <br>
    &nbsp;&nbsp;&nbsp; There is no variable ${Caller-Caller-ID-Number}, but
    ${caller_id_number}. Please look at
    <a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org/wiki/Channel_Variables">http://wiki.freeswitch.org/wiki/Channel_Variables</a><br>
    <br>
    <blockquote
      cite="mid:BANLkTi=mDgriNWGn=7cfXXAKzwOR6EZpqA@mail.gmail.com"
      type="cite">I still cannot get desired caller id through
      prefixing,<br>
      <br>
      i get from header as :-&nbsp; From: "" <a class="moz-txt-link-rfc2396E" href="sip:91@xxx.xxx.xxx.xxx">&lt;sip:91@xxx.xxx.xxx.xxx&gt;</a><br>
      <br>
      <br>
      &lt;extension name="novanet_7001"&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
      expression="^(7001)" continue="false"&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="set"
      data="call_timeout=20"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="info" /&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="set"
      data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION,USER_NOT_REGISTERED"/&gt;
      <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="set"
      data="effective_caller_id_number=91${Caller-Caller-ID-Number}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="ring_ready" /&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="bridge"
      data="{sip_cid_type=rpid}sofia/gateway/novanet/1646xxxxxxxx"/&gt;<br>
      <br>
      &lt;/condition&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &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 moz-do-not-send="true"
            href="mailto:u2nsam@gmail.com">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="set"
          data="effective_caller_id_number=66${outbound_caller_id_number}"/&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="7001"&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
          expression="^(7001)" continue="false"&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="set"
          data="call_timeout=20"/&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="info" /&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="set"
          data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION,USER_NOT_REGISTERED"/&gt;
          <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="set"
          data="effective_caller_id_number=66${outbound_caller_id_number}"/&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="ring_ready" /&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="bridge"
          data="{sip_cid_type=rpid}sofia/gateway/outbound/1646xxxxxxx"/&gt;<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>
          <br>
          <br>
          <br>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
          <br>
          This is from header i get .<br>
          <br>
          From: "" &lt;<a moz-do-not-send="true"
            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>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Regards,
Boris

</pre>
  </body>
</html>