|
From: <za...@gr...> - 2001-07-15 03:36:38
|
I have been busy here streamlining the monitor so it uses the session linked list rather than storing its own data seperately. I have also added a few commands to the monitor. Details are below. I believe it should be restructured even more to use a tagged parameter list for each command and reply (and hence a lot less commands). Also what is missing is commands for retrieving overall channel status, which I will add in once the commands have been tagged etc. But this change should go into 0.5.0 (which has been delayed I guess by the small changes AW did to the CAPI driver). I have also finished the last remaining thing for pvPlaceCall (the actual sending of extra options passed through). I have also removed the hack that got the access number from the monitor's store. Removal of the hack meant that the services have to pass the access number as an extra option to pvPlaceCall, so this has been done also. Zaheer -- The commands are as follows: Monitor commands All are preceeded by: "GET " STARTTIME returns the start time of server in human readable format CURRENTTIME returns the current time of server in human readable format MAXSESSIONS returns the maximum number of simulataneous sessions, so far encountered TOTALSESSIONS returns the total number of sessions encountered CURRENTSESSIONS returns the current number of running sessions SESSIONID <session_index> returns the session id of a given session index (in range 1..CURRENTSESSIONS) SESSIONNUMCHANNELS <session_id> returns the number of channels for given session id CHANNELSTATE <session_id> <channel_index> returns the state (PreViking state code) of the given channel index of given session CHANNELCARRIER <session_id> <channel_index> returns the carier of the given channel index of given session CHANNELCALL <session_id> <channel_index> returns 1 if there is an active call on given channel index of given session CALLDIRECTION <session_id> <channel_index> returns I (incoming) or O (outgoing) as direction of active call on given channel index of given session CALLADDRESSIN <session_id> <channel_index> returns the calling address of active call on given channel index of given session CALLADDRESSOUT <session_id> <channel_index> returns the dialled address of active call on given channel index of given session CALLSTARTTIME <session_id> <channel_index> returns the starttime in human readable format of active call on given channel index of given session CALLDURATION <session_id> <channel_index> returns the duration in seconds of active call on given channel index of given session SESSIONSTART <session_id> returns the starttime in human readable format of given session SESSIONDURATION <session_id> returns the duration of given session SESSIONSERVICE <session_id> returns the service name of given session SESSIONAGENT <session_id> returns the agent name of given session QUIT closes TCP connection |