<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'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> <extension name="Local_Extension"><br> <condition field="destination_number" expression="^(10[01][0-9])$"><br>
        <action application="set" data="dialed_ext=$1"/><br>        <action application="export" data="dialed_ext=$1"/><br> </condition><br> <condition field="destination_number" expression="^${caller_id_number}$"><br>
        <action application="set" data="voicemail_authorized=${sip_authorized}"/><br>        <action application="answer"/><br>        <action application="sleep" data="1000"/><br>
        <action application="voicemail" data="check default $${domain} ${dialed_ext}"/><br>        <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --><br>        <anti-action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/><br>
        <anti-action application="bind_meta_app" data="2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/><br>        <anti-action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/><br>
        <anti-action application="set" data="transfer_ringback=${us-ring}"/><br>        <anti-action application="set" data="call_timeout=30"/><br>        <!-- <anti-action application="set" data="sip_exclude_contact=${network_addr}"/> --><br>
        <anti-action application="set" data="hangup_after_bridge=true"/><br>        <!--<anti-action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --><br>
        <anti-action application="set" data="continue_on_fail=true"/><br>        <anti-action application="db" data="insert/call_return/${dialed_ext}/${caller_id_number}"/><br>        <anti-action application="db" data="insert/last_dial_ext/${dialed_ext}/${uuid}"/><br>
        <anti-action application="bridge" data="user/${dialed_ext}@$${domain}"/><br>        <anti-action application="answer"/><br>        <!--<anti-action application="send_display" data="Voicemail for ${dialed_ext}"/>--><br>
        <anti-action application="sleep" data="1000"/><br>        <anti-action application="voicemail" data="default $${domain} ${dialed_ext}"/><br> </condition><br> </extension><br>
<br><br><br><br></pre>
</div>