<br><br><div class="gmail_quote">On Thu, Jul 16, 2009 at 11:58 AM, rentmycoder rentmycoder <span dir="ltr">&lt;<a href="mailto:rentmycoder@gmail.com" target="_blank">rentmycoder@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Ok, let&#39;s explain some situations when cdr is not usable.<br>
Let&#39;s take a simple IVR, callers dial in, navigate in the menu system,<br>
at some point they hangup.<br>
<br>
My customer needs a realtime monitor which shows the active calls in<br>
the system each with realtime data (calldate,callerid,actual menuitem,<br>
actual action (playing a wav file or waiting for dtmf), total call<br>
time, calltime since actual menu entered, etc...).<br>
With asterisk i just use AGI to communicate with an external mysql<br>
database to store this information and an external website, which<br>
connects to this database and show;s it&#39;s realtime content in the<br>
administrator&#39;s browser.<br>
How can I do this with freeswitch most effectively?<br>
I could use event socket, but for this simple task I think lua would<br>
be more cost effective... But I cannot execute any script telling the<br>
database that the actual call is hanged up...<br>
any idea?<br>
</blockquote><div><br>Whenever I hear the words &quot;real time&quot; I immediately think &quot;event socket.&quot; I can&#39;t think of any valid reason not to use the event socket - its design is tailor made for this kind of application. OTOH, I suppose you *could* use Lua and have it attempt to connect to some external entity and deliver some information on a hangup or other point. However that seems kludgy/Asterisky to me.<br>

<br>I think an elegant solution would be to build the IVR in whatever language you prefer and use the event socket to control the calls. Then you can have your IVR program also handle the updating of the database. Every time the IVR told a call to do something, or rec&#39;d a DTMF, or got a hangup, etc. it could update the database and then you could build the pretty GUI/dashboard that customers just love.<br>

<br>-MC <br></div>
</div>