<div dir="ltr">Extension 12345 doesn't match a "transfer 12345 XML default". It will transfer and look through the conditions. Make one of the following changes. <div><br></div><div>Option 1: </div><div><span style="font-family:'Courier New';font-size:12px"><condition field="destination_number" expression="^(10[01][0-9])$|^(12345)$"></span><br>
<div class="gmail_extra"><br></div><div class="gmail_extra"><div>Option 2: (put 1000 to 1019). </div><div><span style="font-family:'Courier New';font-size:12px"><action application="transfer" data="1000 XML default" /></span><br>
</div><div><span style="font-family:'Courier New';font-size:12px"><br></span></div><br><div class="gmail_quote">On Tue, Mar 26, 2013 at 1:47 PM, Erwan Hermouet <span dir="ltr"><<a href="mailto:ehermouet@bluetel.fr" target="_blank">ehermouet@bluetel.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="FR" link="blue" vlink="purple"><div><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Tks for your reply<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Here my default<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <extension name="12345"><u></u><u></u></span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <condition field="destination_number" expression="^(10[01][0-9])$"><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="set" data="dialed_extension=$1"/><u></u><u></u></span></p><p class="" style="text-autospace:none">
<span style="font-size:9pt;font-family:'Courier New'"> <action application="export" data="dialed_extension=$1"/><u></u><u></u></span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="bind_meta_app" data="4 b s execute_extension::att_xfer XML features"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="set" data="ringback=${us-ring}"/><u></u><u></u></span></p><p class="" style="text-autospace:none">
<span style="font-size:9pt;font-family:'Courier New'"> <action application="set" data="transfer_ringback=$${hold_music}"/><u></u><u></u></span></p><p class="" style="text-autospace:none">
<span style="font-size:9pt;font-family:'Courier New'"> <action application="set" data="call_timeout=30"/><u></u><u></u></span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <!-- <action application="set" data="sip_exclude_contact=${network_addr}"/> --><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="set" data="hangup_after_bridge=true"/><u></u><u></u></span></p><p class="" style="text-autospace:none">
<span style="font-size:9pt;font-family:'Courier New'"> <!--<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="set" data="continue_on_fail=true"/><u></u><u></u></span></p><p class="" style="text-autospace:none">
<span style="font-size:9pt;font-family:'Courier New'"> <action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <!--<action application="export" data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}"/>--><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="bridge" data="{sip_invite_domain=$${domain}}user/${dialed_extension}@${domain_name}"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="answer"/><u></u><u></u></span></p><p class="" style="text-autospace:none">
<span style="font-size:9pt;font-family:'Courier New'"> <action application="sleep" data="1000"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/><u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> </condition><u></u><u></u></span></p><p class=""><span style="font-size:9pt;font-family:'Courier New'"> </extension></span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class=""><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">De :</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>De la part de</b> Steven Schoch<br>
<b>Envoyé :</b> mardi 26 mars 2013 20:59<br><b>À :</b> FreeSWITCH Users Help<br><b>Objet :</b> Re: [Freeswitch-users] callee id inbound<u></u><u></u></span></p><p class=""><u></u> <u></u></p><div><div><p class="">First, there is no need to call both "set" and "export" on the same variable, because "export" will set the local variable as well as exporting it to the other leg, unless you do something fancy in the "export".<u></u><u></u></p>
</div><div><p class=""><u></u> <u></u></p></div><div><p class="">Second, we need to see the extension that is used for 12345 in default, because that may be also setting some variables.<u></u><u></u></p></div><div><p class="">
<u></u> <u></u></p></div><div><p class="">Third, I'm new to FreeSwitch, so listen to somebody more experienced first, should they also reply. :-)<u></u><u></u></p></div><div><p class=""><u></u> <u></u></p></div><div>
<p class="">
-- <u></u><u></u></p></div><div><p class="">Steve<u></u><u></u></p></div><div><p class=""><u></u> <u></u></p></div><p class="">On Tue, Mar 26, 2013 at 10:49 AM, Erwan Hermouet <<a href="mailto:ehermouet@bluetel.fr" target="_blank">ehermouet@bluetel.fr</a>> wrote:<u></u><u></u></p>
<div><div><blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><div><p class=""><u></u> <u></u></p><p class="">
I use freeswitch as voip server for other ipbx system. My freeswitch server is connected to gateway. Incoming calls works. I have extension, use as voip trunk for other server. Inbound rule redirect to this extension and it’s works, but we don’t received called number on extension (sip trunk).<u></u><u></u></p>
<p class=""> <u></u><u></u></p><p class="">Caller ---- freeswitch ---- extension (other ipbx)<u></u><u></u></p><p class="">On extension we never receive original caller number, and like that on this ipbx we can’t forward inbound rules.<u></u><u></u></p>
<p class=""> <u></u><u></u></p><p class="">Here my public.xml<u></u><u></u></p><p class=""> <u></u><u></u></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"><extension name="xx3278" continue="true"></span><u></u><u></u></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <condition field="context" expression="public" /></span><u></u><u></u></p><p class="" style="text-autospace:none">
<span style="font-size:9pt;font-family:'Courier New'"> <condition field="destination_number" expression="^xxx278$" ></span><u></u><u></u></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="set" data="dialed_ext=xxx3278"/></span><u></u><u></u></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="set" data="effective_callee_id_name=xxx3278" /></span><u></u><u></u></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="export" data="effective_callee_id_number=xxx3278" /></span><u></u><u></u></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:'Courier New'"> <action application="transfer" data="12345 XML default" /></span><u></u><u></u></p><p class="" style="text-autospace:none">
<span style="font-size:9pt;font-family:'Courier New'"> </condition></span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:'Courier New'"></extension></span><u></u><u></u></p>
<p class=""><span style="font-size:9pt;font-family:'Courier New'"> </span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:'Courier New'">On extension we only receive incomming call from extension 12345, which is my extension on freeswitch.</span><u></u><u></u></p>
<p class=""><span style="font-size:9pt;font-family:'Courier New'"> </span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:'Courier New'">Tks advance for your help</span><u></u><u></u></p>
<p class=""><u></u> <u></u></p></div></blockquote></div></div></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div>