Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.165.660 Times

POE::Filter::FSSocket 0.07

  Date Added: August 12, 2010  |  Visits: 743

POE::Filter::FSSocket

Report Broken Link
Printer Friendly Version


Product Homepage
Download (102 downloads)



POE::Filter::FSSocket is a POE filter that parses FreeSWITCH events into hashes. SYNOPSIS #!/usr/bin/perl use warnings; use strict; use POE qw(Component::Client::TCP Filter::FSSocket); use Data::Dumper; POE::Component::Client::TCP->new( RemoteAddress => 127.0.0.1, RemotePort => 8021, ServerInput => &handle_server_input, Filter => POE::Filter::FSSocket, ); POE::Kernel->run(); exit; my $auth_sent = 0; my $password = "ClueCon"; sub handle_server_input { my ($heap,$input) = @_[HEAP,ARG0]; print Dumper $input; if($input->{Content-Type} eq "auth/request") { $auth_sent = 1; $heap->{server}->put("auth $password"); } elsif ($input->{Content-Type} eq "command/reply") { if($auth_sent == 1) { $auth_sent = -1; #do post auth stuff $heap->{server}->put("events plain all"); } } } POE::Filter::FSSocket parses output from FreeSWITCH into hashes. FreeSWITCH events have a very wide range of keys, the only consistant one being Content-Type. The keys are dependant on the type of events. You must use the plain event type as that is what the filter knows how to parse. You can ask for as many event types as you like or all for everything. You specify a list of event types by putting spaces between them ex: "events plain api log talk" Currently known event types (Event-Name): CUSTOM CHANNEL_CREATE CHANNEL_DESTROY CHANNEL_STATE CHANNEL_ANSWER CHANNEL_HANGUP CHANNEL_EXECUTE CHANNEL_BRIDGE CHANNEL_UNBRIDGE CHANNEL_PROGRESS CHANNEL_OUTGOING CHANNEL_PARK CHANNEL_UNPARK API LOG INBOUND_CHAN OUTBOUND_CHAN STARTUP SHUTDOWN PUBLISH UNPUBLISH TALK NOTALK SESSION_CRASH MODULE_LOAD DTMF MESSAGE CODEC BACKGROUND_JOB ALL Currently handled FreeSWITCH messages (Content-Type): auth/request command/response text/event-plain api/response (data in __DATA__ variable) log/data (data in __DATA__ variable)POE::Filter::FSSocket is a POE filter that parses FreeSWITCH events into hashes..

Requirements: No special requirements
Platforms: Linux
Keyword: Auth Channel Events Filter Freeswitch Fssocket Libraries Parses Poe Poefilterfssocket Programming Server
Users rating: 0/10

License: Freeware Size: 7.17 KB
USER REVIEWS
More Reviews or Write Review


POE::FILTER::FSSOCKET RELATED
Libraries  -  CGI::Builder::Auth::GroupAdmin 0.06
CGI::Builder::Auth::GroupAdmin is a Perl module for the management of HTTP server group databases. SYNOPSIS use CGI::Builder::Auth::GroupAdmin (); Pay no attention to that man behind the curtain! Move along, nothing to see here! This...
51.2 KB  
Libraries  -  CGI::Builder::Auth::UserAdmin 0.06
CGI::Builder::Auth::UserAdmin is a Perl module for the management of HTTP server user databases. SYNOPSIS use CGI::Builder::Auth::UserAdmin (); Pay no attention to that man behind the curtain! Move along, nothing to see here! This module...
51.2 KB  
Libraries  -  POE::Filter::LZW::Progressive 0.1
POE::Filter::LZW::Progressive is a POE filter wrapped around Compress::LZW::Progressive..
10.24 KB  
Audio Tools  -  BasicPlay 1.0
Parses the BASIC programming languages PLAY statement, converting the sounds to a sequence of frequencies. These frequencies can then be saved in numerous formats including Interactive C and the BASIC SOUND statement. The sounds can also be...
16.38 KB  
Libraries  -  Channel 0.3 Beta
Channel is a generic/simple facility with the purpose of making event dispatching and message passing as straightforward to use as data structures: Channel is a template library, with its major components configurable as template parameters:...
5.5 MB  
Libraries  -  HTTPD::Log::Filter 1.08
HTTPD::Log::Filter is a Perl module to filter entries out of an httpd log. SYNOPSIS my $hlf = HTTPD::Log::Filter->new( exclusions_file => $exclusions_file, agent_re => .*Mozilla.*, format => ELF, ); while( ) { my $ret =...
10.24 KB  
Libraries  -  App::Modular::Module::Events 0.1.2
App::Modular::Module::Events is a Perl module with event handling for App::Modular compatible applications. SYNOPSIS #################################################################### package App::Modular::Module::Me; use base...
16.38 KB  
Libraries  -  SyslogScan::Daemon::SpamDetector::Filter 0.55
SyslogScan::Daemon::SpamDetector::Filter contains filter reports. SYNOPSIS plugin SyslogScan::Daemon::SpamDetector as sd_ sd_plugin SyslogScan::Daemon::SpamDetector::Filter status spam match SpamAssassin field relayname acceptfirst 1 accept...
18.43 KB  
Libraries  -  Hook::Filter 0.02
Hook::Filter is a runtime filtering layer on top of subroutine calls. SYNOPSIS Imagine you have a big program using a logging library that exports 3 functions called mydebug, myinfo and mywarn. Those functions generate far too much log, so you...
15.36 KB  
Libraries  -  Chess::PGN::Filter 0.13
Chess::PGN::Filter is a Perl extension for converting PGN files to other formats. SYNOPSIS use Chess::PGN::Filter; filter(source => $pgn,filtertype => XML); OR my %substitutions = ( hsmyers => Myers, Hugh S (ID), ); my @exclude = qw(...
18.43 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB