[Freeswitch-users] Default Dial Plan: action application bridge

Anthony Minessale anthony.minessale at gmail.com
Wed Jun 30 20:37:15 PDT 2010


you must have changed more than you think.

you might want to diff you configs against the in-tree ones.


On Wed, Jun 30, 2010 at 10:19 PM, Deya M <deya787 at gmail.com> wrote:

> Hi,
>
> 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
>
> I changed the following from :
>
> * <action application="bridge" data="user/${dialed_extension}@
> ${domain_name}"/>*
> TO
>  *<action application="bridge"
> data="sofia/internal/${dialed_extension}%${domain_name}"/>*
>
> and it did work! Not sure if the first / default one, * <action
> application="bridge" data="user/${dialed_extension}@${domain_name}"/> *should
> work, but something is missing ?
>
>
> New:
>  <extension name="Local_Extension">
>       <condition field="destination_number" expression="^(10[01][0-9])$">
>         <action application="set" data="dialed_extension=$1"/>
>         <action application="export" data="dialed_extension=$1"/>
>         <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s]
> <app> -->
>         <action application="bind_meta_app" data="1 b s
> execute_extension::dx XML features"/>
>         <action application="bind_meta_app" data="2 b s
> record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
>         <action application="bind_meta_app" data="3 b s
> execute_extension::cf XML features"/>
>         <action application="set" data="ringback=${us-ring}"/>
>         <action application="set" data="transfer_ringback=$${hold_music}"/>
>         <action application="set" data="call_timeout=30"/>
>         <!-- <action application="set"
> data="sip_exclude_contact=${network_addr}"/> -->
>         <action application="set" data="hangup_after_bridge=true"/>
>         <!--<action application="set"
> data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
> -->
>         <action application="set" data="continue_on_fail=true"/>
>         <action application="hash"
> data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/>
>         <action application="hash"
> data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>
>         <action application="set"
> data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
> var callgroup)}"/>
>         <!--<action application="export"
> data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name}
> var sip_secure_media)}"/>-->
>         <action application="hash"
> data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>
>         <action application="bridge"
> data="sofia/internal/${dialed_extension}%${domain_name}"/>
>         <action application="answer"/>
>         <action application="sleep" data="1000"/>
>         <action application="bridge" data="loopback/app=voicemail:default
> ${domain_name} ${dialed_extension}"/>
>       </condition>
>     </extension>
>
>
> Old:
>
>  <extension name="Local_Extension">
>       <condition field="destination_number" expression="^(10[01][0-9])$">
>         <action application="set" data="dialed_extension=$1"/>
>         <action application="export" data="dialed_extension=$1"/>
>         <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s]
> <app> -->
>         <action application="bind_meta_app" data="1 b s
> execute_extension::dx XML features"/>
>         <action application="bind_meta_app" data="2 b s
> record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
>         <action application="bind_meta_app" data="3 b s
> execute_extension::cf XML features"/>
>         <action application="set" data="ringback=${us-ring}"/>
>         <action application="set" data="transfer_ringback=$${hold_music}"/>
>         <action application="set" data="call_timeout=30"/>
>         <!-- <action application="set"
> data="sip_exclude_contact=${network_addr}"/> -->
>         <action application="set" data="hangup_after_bridge=true"/>
>         <!--<action application="set"
> data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
> -->
>         <action application="set" data="continue_on_fail=true"/>
>         <action application="hash"
> data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/>
>         <action application="hash"
> data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>
>         <action application="set"
> data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
> var callgroup)}"/>
>         <!--<action application="export"
> data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name}
> var sip_secure_media)}"/>-->
>         <action application="hash"
> data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>
>         <action application="bridge" data="user/${dialed_extension}@
> ${domain_name}"/>
>         <action application="answer"/>
>         <action application="sleep" data="1000"/>
>         <action application="bridge" data="loopback/app=voicemail:default
> ${domain_name} ${dialed_extension}"/>
>       </condition>
>     </extension>
>
> :-D
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100630/9b862b52/attachment-0001.html 


More information about the FreeSWITCH-users mailing list