I just noticed short before you answered :).<div><br></div><div>I have been reading it and I found it very interesting, but I have found a problem in Java.</div><div><br></div><div>The constructor for an Outbound connection requires the File Descriptor (an Int parameter) of the listening socket to create the ESL object, but as far as I know, Java doesn't allow to get the int value of a File Descriptor from a Socket. This would be veary easy to achieve in C, but I have no found any means to get this to work with Java in Linux (Windows is out of the question).</div>
<div><br></div><div>I tried to see the source code of the ESL client to see how it uses the int value, but as I suspected is C code wrapped with SWIG. I have thought about other ways to work with it, like using the FileDescriptor class in java and Reflection, but I have not found any way to get the desired int value, so i'm stuck about what to do right now.</div>
<div><br></div><div>Any ideas? if the constructor requires the int value of the File Descriptor means that there is a way to get it, doesn't it?</div><div><br></div><div>Regards,</div><div><br></div><div>Jose<br><br><div class="gmail_quote">
2011/7/7 Kristian Kielhofner <span dir="ltr"><<a href="mailto:kris@kriskinc.com" target="_blank">kris@kriskinc.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="http://wiki.freeswitch.org/wiki/Event_Socket_Library" target="_blank">http://wiki.freeswitch.org/wiki/Event_Socket_Library</a><br>
<div><div></div><div><br>
On Thu, Jul 7, 2011 at 7:35 AM, Nacho <<a href="mailto:leucaruth@gmail.com" target="_blank">leucaruth@gmail.com</a>> wrote:<br>
> Hi again<br>
> Im doing as Kristian suggested, at first is an easier solution that making a<br>
> module.<br>
> I created a plan that redirects calls to a local port where I will do the<br>
> testings with the server that will work with that call.<br>
> The call is parked and the connection is stablished as I can see with<br>
> netcat, so I was thinking about making a program with C or Java that will<br>
> become the custom server. The problem is that I don't find info about the<br>
> structure of the packages I'll receive from Freeswitch, how to deal with<br>
> them or even how can I send orders to freeswitch.<br>
> Any suggestions about where I could find some info about it would be kindly<br>
> appreciated.<br>
> Regards,<br>
> Jose.<br>
> 2011/7/6 Robert-iPhone <<a href="mailto:rhuddleston@gmail.com" target="_blank">rhuddleston@gmail.com</a>><br>
>><br>
>> I have interest too! Considering mwi / voicemail push for apple<br>
>><br>
>> Sent from my iPhone<br>
>><br>
>> On Jul 5, 2011, at 5:49 PM, Anthony Minessale<br>
>> <<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>> wrote:<br>
>><br>
>> > it can be left out of FS code but still part of contrib if an external<br>
>> > solution is developed.<br>
>> ><br>
>> ><br>
>> > On Tue, Jul 5, 2011 at 1:20 PM, Kristian Kielhofner <<a href="mailto:kris@kriskinc.com" target="_blank">kris@kriskinc.com</a>><br>
>> > wrote:<br>
>> >> Jose,<br>
>> >><br>
>> >> Whether it's C2DM or APNS (Apple) this functionality is best left<br>
>> >> out of FreeSWITCH. FreeSWITCH has plenty of other existing means<br>
>> >> (XML_CURL, socket, etc) to drive dynamic call functionality and<br>
>> >> interact with other technologies.<br>
>> >><br>
>> >> How do you ask? An imcoming call to FreeSWITCH could hit static<br>
>> >> dialplan and execute a socket connection to some other custom server.<br>
>> >> This server could tell FreeSWITCH to do something (play media,<br>
>> >> ringback, messages, whatever) while it sends a PUSH (via C2DM or APNS,<br>
>> >> for example).<br>
>> >><br>
>> >> One could implement such a socket program easily. It can be<br>
>> >> extended and maintained separately as new push technologies become<br>
>> >> available.<br>
>> >><br>
>> >> On Mon, Jul 4, 2011 at 7:48 AM, Nacho <<a href="mailto:leucaruth@gmail.com" target="_blank">leucaruth@gmail.com</a>> wrote:<br>
>> >>> Hello all.<br>
>> >>> My name is Jose. This is my first post here. I joined the list because<br>
>> >>> I was<br>
>> >>> wondering about developing a feature for Freeswitch and I would like<br>
>> >>> to know<br>
>> >>> your opinion.<br>
>> >>> The idea is about making a non-persistent client for cell phones that<br>
>> >>> works<br>
>> >>> with PUSH technology (C2DM and Android for example). These clients<br>
>> >>> wouldn't<br>
>> >>> be connected to the Freeswitch server at first, but if there is an<br>
>> >>> incoming<br>
>> >>> call, the Freeswitch server would send a PUSH message to these<br>
>> >>> clients, the<br>
>> >>> client would process it and, if accepted by the user, the client would<br>
>> >>> awake, connect to Freeswitch and then receive the the call invite<br>
>> >>> message<br>
>> >>> and accept it automatically.<br>
>> >>> I don't know if this idea is plausible due to the real time<br>
>> >>> restrictions we<br>
>> >>> have to face in phone calls. If the delay introduced by C2DM delivery<br>
>> >>> is<br>
>> >>> high, the waiting time for the caller is probably something that he<br>
>> >>> isn't<br>
>> >>> willing to accept in order to get his call answered.<br>
>> >>> Another question is about the battery life time it would save because<br>
>> >>> the<br>
>> >>> application woulnd't need to be answering the "still alive" ACKS from<br>
>> >>> Freeswitch.<br>
>> >>> I'm new in freeswitch developing and still learning about it, but I'm<br>
>> >>> really<br>
>> >>> interested in this, so any help would be kindly appreciated.<br>
>> >>> --<br>
>> >>> Aquellos que hablan son esclavos de sus palabras y los que callan<br>
>> >>> dueños de<br>
>> >>> su silencio.<br>
>> >>><br>
>> >>> _______________________________________________<br>
>> >>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>> >>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
>> >>><br>
>> >>> FreeSWITCH-dev mailing list<br>
>> >>> <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
>> >>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
>> >>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
>> >>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> >>><br>
>> >>><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Kristian Kielhofner<br>
>> >><br>
>> >> _______________________________________________<br>
>> >> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>> >> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
>> >><br>
>> >> FreeSWITCH-dev mailing list<br>
>> >> <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
>> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
>> >> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
>> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> >><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Anthony Minessale II<br>
>> ><br>
>> > FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
>> > ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
>> > Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
>> ><br>
>> > AIM: anthm<br>
>> > <a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
>> > GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
>> > IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
>> ><br>
>> > FreeSWITCH Developer Conference<br>
>> > <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
>> > <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
>> > pstn:+19193869900<br>
>> ><br>
>> > _______________________________________________<br>
>> > Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>> > <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
>> ><br>
>> > FreeSWITCH-dev mailing list<br>
>> > <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>> _______________________________________________<br>
>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
>><br>
>> FreeSWITCH-dev mailing list<br>
>> <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
><br>
> --<br>
> Aquellos que hablan son esclavos de sus palabras y los que callan dueños de<br>
> su silencio.<br>
><br>
> _______________________________________________<br>
> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
><br>
> FreeSWITCH-dev mailing list<br>
> <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Kristian Kielhofner<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Aquellos que hablan son esclavos de sus palabras y los que callan dueños de su silencio.<br>
</div>