<div dir="ltr"><div style>That is not your extension.  What I mean is that you gave us a dialplan extension <b>named </b>12345, but the <b>name</b> of the extension is only meaningful when you&#39;re looking at a log file.  Just because an extension is named 12345 does not mean its actions will get executed when 12345 is dialed.</div>
<div style><br></div><div style>The important part of an extension is the condition.  In this case the condition of that extension is:</div><div style><div><font face="courier new, monospace">      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[01][0-9])$&quot;&gt;</font></div>
<div style>This means that condition will only be used if the number dialed (the number to which you transfer the call) is between 1000 and 1019.  Since you transferred to 12345, the condition does not match, so that extension will be skipped, and processing will continue to other extensions.</div>
<div style><br></div><div style>You have to find the extension that is actually getting processed. The easiest way is to look in the log file (or the CLI). You should see lines that start with &quot;Dialplan:&quot; and say PASS or FAIL. The last one that PASSed is probably the extension that ended up getting used. Once you find that, we can look at it to check the caller_id variables.</div>
<div style><br></div><div style>-- </div><div style>Steve</div></div><br><div class="gmail_extra"><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"><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></p>
</div></blockquote></div></div></div>