[Freeswitch-users] Dialing Group like local extension

Kirk Wolf kirk at dovetail.com
Thu Jun 27 22:07:51 MSD 2013


I just installed freeswitch 1.2.10 for use in our small company.
So far, most things are working very well.   After skimming the "Freeswitch
1.2" book and the wiki, it was quite easy to get freeswitch built on a
linode vm and connect to flowroute as a provider.

I have an inbound DID that is being routed to a little IVR that I set up.
In the IVR, a button routes to a "sales" group extension (2000).

I'm using the sample dialplan/default.xml , which defines this extension as:

    <extension name="group_dial_sales">
      <condition field="destination_number" expression="^2000$">
<action application="bridge" data="${group_call(sales@${domain_name})}"/>
      </condition>
    </extension>

but I would like this to work with the same calling features as calling a
 normal user extension.
For example, I don't get ring-back, and I want a ring-no-answer to go to a
"group" voicemail box, etc.

To do this, can I just copy all of the stuff from "Local_Extension"?  This
would add bind_meta_apps, ringback, and also a ton of other stuff that I
don't understand.   Of course, I would change the first bridge to make it a
group call.

IOW, can I do it like the following?  Or are there applications here that
should not be copied to a group-dial extension?

        <!-- copied from sample "Local_Extension" with changes marked in
bold -->
    <extension name="*group_dial_sales*">
      <condition field="destination_number" expression="*^2000$*">
<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="bind_meta_app" data="4 b s execute_extension::att_xfer
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="hash"
data="insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}"/>
<action application="hash"
data="insert/${domain_name}-last_dial_ext/global/${uuid}"/>
<!--<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="*group/support@${domain_name}*"/>
<action application="answer"/>
<action application="sleep" data="1000"/>
<action application="bridge" data="loopback/app=voicemail:default
${domain_name} ${dialed_extension}"/>
      </condition>
    </extension>

Any help very much appreciated.

Kirk Wolf
Dovetailed Technologies
http://dovetail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130627/1cbddc7c/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list