<div dir="ltr">If you check that info list, <meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">${outbound_caller_id_number} doesn&#39;t exist. It&#39;s not a variable programmed into FS by default, although I think the default dial plan does use it.</span><div>

<font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Try again with <meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-size: 13px; ">${effective_caller_id_number}</span></span></font></div>

<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-size: 13px; "><br></span></span></font></div><div>
<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; ">-Avi</span></div>
<div><br><div class="gmail_quote">On Thu, Jun 2, 2011 at 9:48 AM, Sam <span dir="ltr">&lt;<a href="mailto:u2nsam@gmail.com">u2nsam@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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><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></div></div>