<div dir="ltr">In the exact same part of the dialplan? If so, weird.<div>Can you pastebin a trace on /log 7 from the fs_cli with the xml this way, and then prefix 66 to the xml, and do a second trace?<br><br></div><div>-Avi</div>
<div><br></div><div><br><div class="gmail_quote">On Thu, Jun 2, 2011 at 12:26 PM, Sam <span dir="ltr"><<a href="mailto:u2nsam@gmail.com">u2nsam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I forgot to mention,<br><br>If i use just<br><action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/><br><br>then the cli is passed but when i use prefix 66 before ${outbound_caller_id_number} the cli is not passed.<br>
<br>my aim is to get the prefix in cli .<br><br>Regards<br><font color="#888888">Sam</font><div><div></div><div class="h5"><br><br><br><br><br><br><div class="gmail_quote">On Thu, Jun 2, 2011 at 1:00 PM, Avi Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If you check that info list, <span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">${outbound_caller_id_number} doesn't exist. It's not a variable programmed into FS by default, although I think the default dial plan does use it.</span><div>
<font face="arial, sans-serif"><span style="border-collapse:collapse">Try again with <span style="font-size:13px">${effective_caller_id_number}</span></span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><span style="font-size:13px"><br></span></span></font></div><div>
<span style="border-collapse:collapse;font-family:arial, sans-serif">-Avi</span></div>
<div><br><div class="gmail_quote"><div><div></div><div>On Thu, Jun 2, 2011 at 9:48 AM, Sam <span dir="ltr"><<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
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" target="_blank">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><font color="#888888">Sam<br>
</font><br></div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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><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>