[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sems
Subject:    Re: [Sems] hash table kind of storage for dsm
From:       Stefan Sayer <stefan.sayer () frafos ! com>
Date:       2013-06-13 16:43:54
Message-ID: 51B9F6CA.1090309 () frafos ! com
[Download RAW message or body]

o Juha Heinanen on 06/13/2013 06:02 PM:
> Stefan Sayer writes:
> 
>> have you looked at mod_monitoring, e.g. monitoring.setGlobal? it lacks
>> some of the newer 'monitoring' (which should possibly be mor aptly
>> named inmemdb or similar) functionality, but functions should be easy
>> to add.
> 
> i just took a look and didn't find any function to query <id, prop>
> values.  i didn't find them in MonitoringAPI.h either.
see Readme.monitoring.txt - though not much exposed to dsm yet  :

http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sems;a=blob;f=doc/Readme.monitoring.txt

functions to get values, e.g. from the outside:
  52  list()            - list IDs of calls
  53  listByFilter(exp, exp, exp, ...) - list IDs of calls that match
the filter expressions:
  54                       exp of the form array of attr_name-value,
  55                       e.g. listByFilter(['dir', 'in'],
['codec_name', 'GSM'])
  56  listByRegex(attr_name, regexp) - list IDs of calls that match
the regular expression
  57                      on the attribute (string attributes only), e.g.
  58                      listByRegex('r_uri', '.*mydomain.net.*')
  59  listActive()      - list IDs of active (unfinished) calls
  60  listFinished()    - list IDs of finished calls
  61  get(ID)           - get info for a specific call, parameter is
the call ID
  62  getAttribute(attr_name)
  63                    - get a specific attribute from all calls,
parameter is the attribute name
  64  getAttributeActive(attr_name)
  65                    - get a specific attribute from all active
calls, parameter is the attribute name
  66  getAttributeFinished(attr_name)
  67                    - get a specific attribute from all finished
calls, parameter is the attribute name
  68  erase(ID)         - erase info of a specific call, parameter is
the call ID (+free used memory)
  69  eraseByFilter(exp, exp, exp, ...) - list IDs of calls that match
the filter expressions and erase them; filter expressions like
listByFilter
  70  clear()           - erase info of all calls (+free used memory)
  71  clearFinished()   - erase info of all finished calls (+free used
memory)
  72
  73 (of course, log()/logAdd() functions can also be accessed via
e.g. XMLRPC.)
  74


Stefan

_______________________________________________
Sems mailing list
Sems@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/sems
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic