[Freeswitch-users] how to bridge call to call center module

Do Nguyen Ha donguyenha at gmail.com
Mon Aug 20 14:24:26 UTC 2018


Hi

i am testing a lua script to bridge calls

my dialplan call center setup

    <extension name="callcenter">
        <condition field="destination_number" expression="^(6789)$">
            <action application="callcenter" data="support at default"/>
        </condition>
    </extension>

my call center module setup
<configuration name="callcenter.conf" description="CallCenter">
  <settings>
    <!--<param name="odbc-dsn" value="dsn:user:pass"/>-->
    <!--<param name="dbname" value="/dev/shm/callcenter.db"/>-->
  </settings>

  <queues>

    <queue name="support at default">
      <param name="strategy" value="longest-idle-agent"/>
     .....
      <param name="abandoned-resume-allowed" value="false"/>
    </queue>

  </queues>

  <agents>
    <agent name="1000 at default" type="callback"
contact="[leg_timeout=10]user/1000 at default" status="Available"
max-no-answer="3" wrap-up-time="10" reject-delay-time="10"
busy-delay-time="60" />
  </agents>
  <tiers>
    <tier agent="1000 at default" queue="support at default" level="1"
position="1"/>
  </tiers>

</configuration>


1. init a call to first person (legA=freeswitch.Session(
"sofia/gateway/fs1/9903"))
2. when a first call ready
3. i made another call to callcenter module(legB=freeswitch.Session("sofia/
192.168.56.101/support at default"))


how to make successfully call  in step 3 using lua script

thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180820/955af1a7/attachment.html>


More information about the FreeSWITCH-users mailing list