I think inbound or outbound event socket both are fine choices. Either way you can keep your logic all in java and not bother with lua if you dont want it.<br><br><div class="gmail_quote">On Fri, Dec 24, 2010 at 4:09 PM, Rafqat . <span dir="ltr"><<a href="mailto:rafonline@hotmail.com" target="_blank">rafonline@hotmail.com</a>></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;"><br>
<br>
Hi Chris,<br>
<br>
Thanks for your advice.<br>
<br>
In terms of tighter integration and control, do you think using inbound event socket for billing and<br>
sendmsg to control call flow would be a good approach for a calling card application. I have no problem using lua but feel that once i get passed the trivial stuff of checking account funds etc. I may have logic scattered around in more than one place.<br>
<br>
Sorry for being a pita but your advice (and the freeswitch community's advice) is invaluable to a newbie like me.<br>
<br>
Thanks<br>
<br>
Raf<br>
<br>
<br>
Date: Fri, 24 Dec 2010 15:20:00 -0500<br>
<div>From: <a href="mailto:chris@cloudtel.com" target="_blank">chris@cloudtel.com</a><br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] ESL outbound /inbound<br>
<br>
</div><div>I use inbound to monitor switches as a socket client and mod_xml_curl to direct call flow from a seperate web app. This allows me to receive events across multiple channels across multiple switches without worrying about call flow, which is a good design for what I am doing in this example ... monitoring call flow and conferencing events for realtime display in a UI. Our call flow systems are critical and monitoring is non-critical so it works well to seperate them. As a calling card app your system will probably require tighter integration of call flow and billing, so combining them could make sense.<br>
<br>
<br>
The main benefit of outbound is you can use a socket server and each of your clients represents a distinct channel on one of your switches. It can make directing call flow easy and it is simple to require your socket server or play an "oops we are busy" message when it is down ... and it helped everyone quickly port their FAGI apps to this project :)<br>
<br>
<br>
You are correct that you can just use event socket and sendmsg to control call flow and not use lua at all. Yes there is overlap of functionality between inbound/outbound because both allow you to do basically the same thing, but as different roles in the socket connection.<br>
<br>
<br>
<br>
<br>
</div><div><div></div><div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>