<div dir="ltr"><div>Hi,</div><div><br></div><div>In the default dial plan, with two extensions defined, 1000 and 1001, when I call from 1000 to 1001, I always get Voicemail, using the default config files: conf/dialplan/default.xml</div>
<div><br></div><div>I changed the following from :</div><div><br></div><div><b> &lt;action application=&quot;bridge&quot; data=&quot;user/${dialed_extension}@${domain_name}&quot;/&gt;</b></div><div>TO</div><div> <b>&lt;action application=&quot;bridge&quot; data=&quot;sofia/internal/${dialed_extension}%${domain_name}&quot;/&gt;</b></div>
<div> </div><div>and it did work! Not sure if the first / default one, <b> &lt;action application=&quot;bridge&quot; data=&quot;user/${dialed_extension}@${domain_name}&quot;/&gt; </b>should work, but something is missing ?</div>
<div><br></div><div><br></div><div>New: </div><div> &lt;extension name=&quot;Local_Extension&quot;&gt;</div><div>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[01][0-9])$&quot;&gt;</div><div>
        &lt;action application=&quot;set&quot; data=&quot;dialed_extension=$1&quot;/&gt;</div><div>        &lt;action application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/&gt;</div><div>        &lt;!-- bind_meta_app can have these args &lt;key&gt; [a|b|ab] [a|b|o|s] &lt;app&gt; --&gt;</div>
<div>        &lt;action application=&quot;bind_meta_app&quot; data=&quot;1 b s execute_extension::dx XML features&quot;/&gt;</div><div>        &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;</div>
<div>        &lt;action application=&quot;bind_meta_app&quot; data=&quot;3 b s execute_extension::cf XML features&quot;/&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;ringback=${us-ring}&quot;/&gt;</div>
<div>        &lt;action application=&quot;set&quot; data=&quot;transfer_ringback=$${hold_music}&quot;/&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;</div><div>        &lt;!-- &lt;action application=&quot;set&quot; data=&quot;sip_exclude_contact=${network_addr}&quot;/&gt; --&gt;</div>
<div>        &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</div><div>        &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;</div>
<div>        &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;</div><div>        &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}&quot;/&gt;</div>
<div>        &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}&quot;/&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}&quot;/&gt;</div>
<div>        &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;</div><div>        &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}&quot;/&gt;</div>
<div>        &lt;action application=&quot;bridge&quot; data=&quot;sofia/internal/${dialed_extension}%${domain_name}&quot;/&gt;</div><div>        &lt;action application=&quot;answer&quot;/&gt;</div><div>        &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;</div>
<div>        &lt;action application=&quot;bridge&quot; data=&quot;loopback/app=voicemail:default ${domain_name} ${dialed_extension}&quot;/&gt;</div><div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div><div>
<br></div><div><br></div><div>Old: </div><div><br></div><div><div> &lt;extension name=&quot;Local_Extension&quot;&gt;</div><div>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[01][0-9])$&quot;&gt;</div>
<div>        &lt;action application=&quot;set&quot; data=&quot;dialed_extension=$1&quot;/&gt;</div><div>        &lt;action application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/&gt;</div><div>        &lt;!-- bind_meta_app can have these args &lt;key&gt; [a|b|ab] [a|b|o|s] &lt;app&gt; --&gt;</div>
<div>        &lt;action application=&quot;bind_meta_app&quot; data=&quot;1 b s execute_extension::dx XML features&quot;/&gt;</div><div>        &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;</div>
<div>        &lt;action application=&quot;bind_meta_app&quot; data=&quot;3 b s execute_extension::cf XML features&quot;/&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;ringback=${us-ring}&quot;/&gt;</div>
<div>        &lt;action application=&quot;set&quot; data=&quot;transfer_ringback=$${hold_music}&quot;/&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;</div><div>        &lt;!-- &lt;action application=&quot;set&quot; data=&quot;sip_exclude_contact=${network_addr}&quot;/&gt; --&gt;</div>
<div>        &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</div><div>        &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;</div>
<div>        &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;</div><div>        &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}&quot;/&gt;</div>
<div>        &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}&quot;/&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}&quot;/&gt;</div>
<div>        &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;</div><div>        &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}&quot;/&gt;</div>
<div>        &lt;action application=&quot;bridge&quot; data=&quot;user/${dialed_extension}@${domain_name}&quot;/&gt;</div><div>        &lt;action application=&quot;answer&quot;/&gt;</div><div>        &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;</div>
<div>        &lt;action application=&quot;bridge&quot; data=&quot;loopback/app=voicemail:default ${domain_name} ${dialed_extension}&quot;/&gt;</div><div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div></div>
<div><br></div><div>:-D</div><div><br></div></div>