Hello,<br><br><br>How do i manipulate callerid number ... i have the below statement<br><br><action application="set" data="effective_caller_id_number=66${outbound_caller_id_number}"/><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><extension name="7001"><br> <condition field="destination_number" expression="^(7001)" continue="false"><br>
<action application="set" data="call_timeout=20"/><br> <action application="info" /><br> <action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION,USER_NOT_REGISTERED"/> <br>
<action application="set" data="effective_caller_id_number=66${outbound_caller_id_number}"/><br> <action application="ring_ready" /><br> <action application="bridge" data="{sip_cid_type=rpid}sofia/gateway/outbound/1646xxxxxxx"/><br>
<br> </extension><br><br><br><br>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>This is from header i get .<br><br>From: "" <<a href="mailto:sip%3A66@203.153.53.138">sip:66@203.153.53.138</a>><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 -> 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>Sam<br>