[Freeswitch-users] Monitoring FreeSWITCH Events via Telnet socket (Net::Telnet)

Anthony Minessale anthony.minessale at gmail.com
Fri Sep 4 15:52:35 PDT 2009


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 at 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 at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090904/1e253b81/attachment-0002.html 


More information about the FreeSWITCH-users mailing list