<div dir="ltr"><pre>Hi there, does any one know how to tweak the default dialplan for the local extensions so that the SIP endpoints with call forwarding setup can work properly?<br><br>My existing Aastra 9133i phone and Polycom IP320&#39;s call forwarding was working as expected when working with Asterisk, but when working with freeswitch, <br>
the call forwarding just not working, it always goes to voicemail.<br><br>I have tested this with both 1.0.1 release, and the latest SVN trunk code.<br>Thanks for your advice.<br>Chris<br><br><br>Dialplan for the local extensions:<br>
<br>    &lt;extension name=&quot;Local_Extension&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[01][0-9])$&quot;&gt;<br>
        &lt;action application=&quot;set&quot; data=&quot;dialed_ext=$1&quot;/&gt;<br>        &lt;action application=&quot;export&quot; data=&quot;dialed_ext=$1&quot;/&gt;<br>      &lt;/condition&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^${caller_id_number}$&quot;&gt;<br>

        &lt;action application=&quot;set&quot; data=&quot;voicemail_authorized=${sip_authorized}&quot;/&gt;<br>        &lt;action application=&quot;answer&quot;/&gt;<br>        &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;<br>

        &lt;action application=&quot;voicemail&quot; data=&quot;check default $${domain} ${dialed_ext}&quot;/&gt;<br>        &lt;!-- bind_meta_app can have these args &lt;key&gt; [a|b|ab] [a|b|o|s] &lt;app&gt; --&gt;<br>        &lt;anti-action application=&quot;bind_meta_app&quot; data=&quot;1 b s execute_extension::dx XML features&quot;/&gt;<br>

        &lt;anti-action application=&quot;bind_meta_app&quot; data=&quot;2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav&quot;/&gt;<br>        &lt;anti-action application=&quot;bind_meta_app&quot; data=&quot;3 b s execute_extension::cf XML features&quot;/&gt;<br>

        &lt;anti-action application=&quot;set&quot; data=&quot;transfer_ringback=${us-ring}&quot;/&gt;<br>        &lt;anti-action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;<br>        &lt;!-- &lt;anti-action application=&quot;set&quot; data=&quot;sip_exclude_contact=${network_addr}&quot;/&gt; --&gt;<br>

        &lt;anti-action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>        &lt;!--&lt;anti-action application=&quot;set&quot; data=&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION&quot;/&gt; --&gt;<br>

        &lt;anti-action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>        &lt;anti-action application=&quot;db&quot; data=&quot;insert/call_return/${dialed_ext}/${caller_id_number}&quot;/&gt;<br>        &lt;anti-action application=&quot;db&quot; data=&quot;insert/last_dial_ext/${dialed_ext}/${uuid}&quot;/&gt;<br>

        &lt;anti-action application=&quot;bridge&quot; data=&quot;user/${dialed_ext}@$${domain}&quot;/&gt;<br>        &lt;anti-action application=&quot;answer&quot;/&gt;<br>        &lt;!--&lt;anti-action application=&quot;send_display&quot; data=&quot;Voicemail for ${dialed_ext}&quot;/&gt;--&gt;<br>

        &lt;anti-action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;<br>        &lt;anti-action application=&quot;voicemail&quot; data=&quot;default $${domain} ${dialed_ext}&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br>
<br><br><br><br></pre>
</div>