[Freeswitch-users] Call Forwarding not working properly with local extensions

unknown chris.chen2004 at gmail.com
Fri Aug 1 12:00:09 PDT 2008


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?

My existing Aastra 9133i phone and Polycom IP320's call forwarding was
working as expected when working with Asterisk, but when working with
freeswitch,
the call forwarding just not working, it always goes to voicemail.

I have tested this with both 1.0.1 release, and the latest SVN trunk code.
Thanks for your advice.
Chris


Dialplan for the local extensions:

    <extension name="Local_Extension">
      <condition field="destination_number" expression="^(10[01][0-9])$">

	<action application="set" data="dialed_ext=$1"/>
	<action application="export" data="dialed_ext=$1"/>
      </condition>
      <condition field="destination_number" expression="^${caller_id_number}$">

	<action application="set" data="voicemail_authorized=${sip_authorized}"/>
	<action application="answer"/>
	<action application="sleep" data="1000"/>

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

	<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"/>
	<anti-action application="bind_meta_app" data="3 b s
execute_extension::cf XML features"/>

	<anti-action application="set" data="transfer_ringback=${us-ring}"/>
	<anti-action application="set" data="call_timeout=30"/>
	<!-- <anti-action application="set"
data="sip_exclude_contact=${network_addr}"/> -->

	<anti-action application="set" data="hangup_after_bridge=true"/>
	<!--<anti-action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
-->

	<anti-action application="set" data="continue_on_fail=true"/>
	<anti-action application="db"
data="insert/call_return/${dialed_ext}/${caller_id_number}"/>
	<anti-action application="db"
data="insert/last_dial_ext/${dialed_ext}/${uuid}"/>

	<anti-action application="bridge" data="user/${dialed_ext}@$${domain}"/>
	<anti-action application="answer"/>
	<!--<anti-action application="send_display" data="Voicemail for
${dialed_ext}"/>-->

	<anti-action application="sleep" data="1000"/>
	<anti-action application="voicemail" data="default $${domain} ${dialed_ext}"/>
      </condition>
    </extension>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080801/31d5b1cd/attachment-0002.html 


More information about the FreeSWITCH-users mailing list