<div dir="ltr">Extension 12345 doesn&#39;t match a &quot;transfer 12345 XML default&quot;. 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:&#39;Courier New&#39;;font-size:12px">&lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[01][0-9])$|^(12345)$&quot;&gt;</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:&#39;Courier New&#39;;font-size:12px">&lt;action application=&quot;transfer&quot; data=&quot;1000  XML default&quot; /&gt;</span><br>

</div><div><span style="font-family:&#39;Courier New&#39;;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">&lt;<a href="mailto:ehermouet@bluetel.fr" target="_blank">ehermouet@bluetel.fr</a>&gt;</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:&#39;Courier New&#39;">    &lt;extension name=&quot;12345&quot;&gt;<u></u><u></u></span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[01][0-9])$&quot;&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;set&quot; data=&quot;dialed_extension=$1&quot;/&gt;<u></u><u></u></span></p><p class="" style="text-autospace:none">

<span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/&gt;<u></u><u></u></span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;!-- bind_meta_app can have these args &lt;key&gt; [a|b|ab] [a|b|o|s] &lt;app&gt; --&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;bind_meta_app&quot; data=&quot;1 b s execute_extension::dx XML features&quot;/&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;bind_meta_app&quot; data=&quot;2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav&quot;/&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;bind_meta_app&quot; data=&quot;3 b s execute_extension::cf XML features&quot;/&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;bind_meta_app&quot; data=&quot;4 b s execute_extension::att_xfer XML features&quot;/&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;set&quot; data=&quot;ringback=${us-ring}&quot;/&gt;<u></u><u></u></span></p><p class="" style="text-autospace:none">

<span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;set&quot; data=&quot;transfer_ringback=$${hold_music}&quot;/&gt;<u></u><u></u></span></p><p class="" style="text-autospace:none">

<span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;<u></u><u></u></span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;!-- &lt;action application=&quot;set&quot; data=&quot;sip_exclude_contact=${network_addr}&quot;/&gt; --&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<u></u><u></u></span></p><p class="" style="text-autospace:none">

<span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;!--&lt;action application=&quot;set&quot; data=&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION&quot;/&gt; --&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<u></u><u></u></span></p><p class="" style="text-autospace:none">

<span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}&quot;/&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}&quot;/&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;set&quot; data=&quot;called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}&quot;/&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;!--&lt;action application=&quot;export&quot; data=&quot;nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}&quot;/&gt;--&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}&quot;/&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;bridge&quot; data=&quot;{sip_invite_domain=$${domain}}user/${dialed_extension}@${domain_name}&quot;/&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;answer&quot;/&gt;<u></u><u></u></span></p><p class="" style="text-autospace:none">
<span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;<u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;bridge&quot; data=&quot;loopback/app=voicemail:default ${domain_name} ${dialed_extension}&quot;/&gt;<u></u><u></u></span></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">      &lt;/condition&gt;<u></u><u></u></span></p><p class=""><span style="font-size:9pt;font-family:&#39;Courier New&#39;">    &lt;/extension&gt;</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 &quot;set&quot; and &quot;export&quot; on the same variable, because &quot;export&quot; will set the local variable as well as exporting it to the other leg, unless you do something fancy in the &quot;export&quot;.<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&#39;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 &lt;<a href="mailto:ehermouet@bluetel.fr" target="_blank">ehermouet@bluetel.fr</a>&gt; 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:&#39;Courier New&#39;">&lt;extension name=&quot;xx3278&quot; continue=&quot;true&quot;&gt;</span><u></u><u></u></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">   &lt;condition field=&quot;context&quot; expression=&quot;public&quot; /&gt;</span><u></u><u></u></p><p class="" style="text-autospace:none">

<span style="font-size:9pt;font-family:&#39;Courier New&#39;">   &lt;condition field=&quot;destination_number&quot; expression=&quot;^xxx278$&quot; &gt;</span><u></u><u></u></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;set&quot; data=&quot;dialed_ext=xxx3278&quot;/&gt;</span><u></u><u></u></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;set&quot; data=&quot;effective_callee_id_name=xxx3278&quot; /&gt;</span><u></u><u></u></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;export&quot; data=&quot;effective_callee_id_number=xxx3278&quot; /&gt;</span><u></u><u></u></p>

<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">       &lt;action application=&quot;transfer&quot; data=&quot;12345 XML default&quot; /&gt;</span><u></u><u></u></p><p class="" style="text-autospace:none">

<span style="font-size:9pt;font-family:&#39;Courier New&#39;">   &lt;/condition&gt;</span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:&#39;Courier New&#39;">&lt;/extension&gt;</span><u></u><u></u></p>

<p class=""><span style="font-size:9pt;font-family:&#39;Courier New&#39;"> </span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:&#39;Courier New&#39;">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:&#39;Courier New&#39;"> </span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:&#39;Courier New&#39;">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>