Rogelio,
Are you trying to make a single web page that shows the status of multiple calls? If so then you probably want what we call "inbound" event socket versus the "outbound" event socket that you described below. (Inbound and outbound are from the perspective of FreeSWITCH, so when you have a dialplan with the socket app it makes an "outbound" socket connection to your program that is listening on the IP/port...)
If you want to sit and watch the event socket and see all the channel state change events then I recommend a few things:
#1 - read up on the event socket on the wiki, especially the event socket commands like "filter"
#2 - get a feel for what events come down the pipe by using fs_cli:
open fs_cli
type "/log 0" to turn off logging
type "/events plain all" to turn on events
Just sit and watch the console. You'll be amazed (and overwhelmed) at all of the events and information that come to you.
#3 - See if you can set a filter to get only the events you want. While still at the fs_cli and while watching all the events come to you, try typing this: "/filter Event-Name CHANNEL_STATE_CHANGE"
That will filter out everything *except* channel state changes. Then make a call and watch the screen. Do stuff like transfers and hangups, etc. and see what the events look like.
If that all seems like too much then you can cheat and just send a "show channels" every 2 seconds and parse the results. ;)
Have fun!
-MC
_______________________________________________
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