you should use ESL lib and the supplied perl mod

from FS build root

cd libs/esl
make
make perlmod
cd perl

copy ESL.pm and ESL.so into your INC path
see the examples in that same folder.


On Fri, Sep 4, 2009 at 5:40 PM, Tina Martinez <tina@a2unlimited.com> wrote:
Hello,

I have a question, but I’m not certain whether this is a FreeSWITCH issue, or
something specific to Perl.

I have setup a Perl application (“listenerâ€Â ) that monitors the events of my
FreeSWITCH server via a Telnet socket.  So far, the application seems to work
very nicely, except that the listener does not consistently capture all of the
events that are streaming through the socket.  I have been able to work around
most of the issues, but one of the more significant pain-points is when a new
member is getting added to a conference (Event-Name: CUSTOM, Action: add-member).

The log file that I generate from the Telnet socket shows the event details, so I
know that the data is coming across the pipe, but I don’t consistently see the
details in my event listener code.  Also, the fact that I sometimes do see all of
the details confuses me (I don't see a pattern to give any clues towards the cause).

BTW - I do have the <action application="verbose_events" data="true"/> in the
dialplan.

So, I wonder, is there something else that I can do in FreeSWITCH to increase the
reliability of capturing the event details? or is there something I should be
doing in Perl to somehow buffer the data (i.e., why would I see the details in
the socket log file, but not in the data stream within the code?).  I'm not a
socket wizard by any stretch, so I'm hoping that it might be a simple issue
related to the Net::Telnet implementation.

Any suggestions would be greatly appreciated.

Thank you in advance,


- Tina


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400