[Freeswitch-users] Group calls & voicemail

Marty Lee marty at maui-systems.co.uk
Tue Dec 21 13:50:41 MSK 2010


Trying to get my head around the dialplan in FreeSwitch and can't
find a good example of how to do call a group of extensions, but
if there is no answer, leave it in a common voicemail.

Think of an incoming line to a small business; it rings all the
extensions and if nobody answers, the message is left in an 'office'
voicemail, rather than an individual.

I've got an entry in the public dialplan that maps the incoming
number to the extension 'office'; what I currently have for the
'office' extension is below and is a blatant frankenstein job on
the Local-extensions entry, but doesn't work.

I'll keep looking, but if anyone has any ideas, then feel free to
point me in the right direction.

m



<extension name="office">
    <condition field="destination_number" expression="^office$">
      <action application="set" data="dialed_extension=$1"/>
      <action application="export" data="dialed_extension=$1"/>
      <action application="set" data="ringback=${uk-ring}"/>
      <action application="set" data="call_timeout=10"/>
      <action application="set" data="hangup_after_bridge=true"/>
      <action application="set" data="ignore_early_media=true"/>
      <action application="set" data="continue_on_fail=true"/>
      <action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/>

      <action application="bridge" data="${group_call(maui_group@${domain_name}+F)}"/>
      <action application="answer"/>
      <action application="sleep" data="10000"/>
      <action application="bridge" data="loopback/app=voicemail:default ${domain_name} 1000"/>
    </condition>
  </extension>

Notes:

'maui_group' is defined as two test extensions; '1000' is the destination
voicemail account I want it to go to if there is no answer or the
handsets are offline.




-----
Marty Lee                         e: marty at maui-systems.co.uk
Technical Director                v: +44 845 869 2661
Maui Systems Ltd                  f: +44 871 433 8922
Scotland, UK                      w: http://www.maui-systems.co.uk




More information about the FreeSWITCH-users mailing list