<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Callcenter Events<br>
      <a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org/wiki/Mod_callcenter#Events">http://wiki.freeswitch.org/wiki/Mod_callcenter#Events</a><br>
      <br>
      ESL Inbound<br>
      <a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org/wiki/Mod_event_socket#Inbound">http://wiki.freeswitch.org/wiki/Mod_event_socket#Inbound</a><br>
      <br>
      The trick<br>
      Make a program in *whatever* ( extra points for doing it in asm)<br>
      Connect to FS send send "gimme all the events" or you can narrow
      it down a bit ...<br>
      And handle the events on your code<br>
      <br>
      " Taken from a old script of mine "<br>
      <br>
      con = ESLconnection("192.168.0XXXXXX","8021","ClueCon")<br>
      <br>
      if con.connected:<br>
      <br>
      &nbsp;&nbsp;&nbsp; // Gimme all the events OR you can narrow this ...<br>
      &nbsp;&nbsp;&nbsp; con.events("plain", "all");<br>
      <br>
      &nbsp;&nbsp;&nbsp; while con.connected():<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e = con.recvEventTimed(1000)<br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if e and e.getHeader("Event-Name") == 'CUSTOM' and
      e.getHeader("Event-Subclass") == 'callcenter::info':<br>
      <br>
      <br>
      <br>
      On 6/21/13 9:56 AM, Ashish gautam wrote:<br>
    </div>
    <blockquote
cite="mid:CADBDwyHPSX2=7Kng9PjKD3zN40Xjot=JN4C-CcuzJBMV8aXWYA@mail.gmail.com"
      type="cite">Hi,
      <div><br>
      </div>
      <div>I am working with mod_callcenter. I want FS to send event
        data to an external script on two events when they happen. first
        when a caller is just answered and is in waiting state. Second,
        when he is connected to any agent.</div>
      <div><br>
      </div>
      <div>I have written this line in the dialplan:</div>
      <div><br>
      </div>
      <div>&lt;action application="socket" data="<a
          moz-do-not-send="true" href="http://127.0.0.1:8022">127.0.0.1:8022</a>
        async full"/&gt;</div>
      <div>
        <br>
      </div>
      <div>is it going to do something?&nbsp;</div>
      <div><br>
      </div>
      <div>Please throw some light on it.</div>
      <div>
        <div><br>
        </div>
        -- <br>
        <span style="color:rgb(0,0,102);font-family:georgia,serif">Ashish
          Gautam</span><br>
        <font color="#000066" face="georgia, serif"><br>
          <br>
        </font></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>