Hi All,<div><br></div><div>I would like to setup follow me dialplan for individual extensions. Some extensions need a follow-me and some not. If the the follow-me not reach any live person the call should go to the FreeSWTICH voicemail.I have the extensions range from 201 -209. Also I am using the following Default dial plan to call between extensions.</div>
<div><br></div><div><div><extension name="Local_Extension"></div><div> <condition field="destination_number" expression="^(20[0-9])$"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="set" data="dialed_extension=$1"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="export" data="dialed_extension=$1"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="set" data="ringback=${us-ring}"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="set" data="transfer_ringback=$${hold_music}"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="set" data="call_timeout=30"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><!-- <action application="set" data="sip_exclude_contact=${network_addr}"/> --></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="set" data="hangup_after_bridge=true"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><!--<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="set" data="continue_on_fail=true"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><!--<action application="export" data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}"/>--></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="bridge" data="user/${dialed_extension}@${domain_name},${followme}"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="answer"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="sleep" data="1000"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="voicemail" data="default ${domain_name} ${dialed_extension}"/></div><div> </condition></div><div>
</extension></div></div><div><br></div><div>I use the wiki samples to make a follow me dial plan for extension 201. Here is the dial plan.</div><div><br></div><div><div><extension name="201_followme"></div>
<div> <condition field="destination_number" expression="201"></div><div> <action application="set" data="hangup_after_bridge=true"/></div><div> <action application="set" data="continue_on_fail=true"/></div>
<div> <action application="set" data="ignore_early_media=true"/></div><div> <action application="set" data="call_timeout=10"/></div><div> <action application="bridge" data="sofia/$${domain}/201"/></div>
<div> <action application="set" data="call_timeout=13"/></div><div> <action application="bridge" data="sofia/gateway/voicepulse/14161235555" /></div><div> <action application="answer"/></div>
<div> <action application="sleep" data="1000"/></div><div> <action application="voicemail" data="default $${domain} 201"/></div><div> </condition></div><div></extension></div>
<div><br></div></div><div><br></div><div>Call to extension 201 , there are two dialplan matching the request. Either Local_Extension or follwme_201. Which order freeswtich select?</div><div><br></div><div>Thank you for your help.</div>
<div><br clear="all">Thanks,<br>Lloyd
</div>