[Freeswitch-users] Route call after speaking to call center agent

Nathan Stratton nathan at robotics.net
Wed Jul 22 18:05:46 UTC 2020


The dialplan below takes calls from foobar and sends them to call
center queue foobar, if that queue is busy it sends them to busy. If they
speak to an agent and end a call the call ends because of
hangup_after_bridge. I would like calls after they speak to agent be routed
to survey, but still have busy work if the queue hits max time.

  <extension name="foobar">
    <condition field="destination_number" expression="^foobar$">
      <action application="export" data="dialed_extension=$1"/>
      <action application="set" data="hangup_after_bridge=true"/>
      <action application="set" data="bypass_media=false"/>
      <action application="set" data="record_concat_video=true"/>
      <action application="set" data="enable_file_write_buffering=false"/>
      <action application="record_session" data="/recordings/${uuid}.mp4"/>
      <action application="callcenter" data="foobar at foo.vocinity.com"/>
      <action application="bridge"
data="sofia/gateway/vocinity-gateway/busy"/>
    </condition>
  </extension>

><>
nathan stratton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200722/09d2901f/attachment.html>


More information about the FreeSWITCH-users mailing list