mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
19 years ago | |
|---|---|---|
| .. | ||
| server | 19 years ago | |
| CCAcc.cpp | 19 years ago | |
| CCAcc.h | 19 years ago | |
| Makefile | 19 years ago | |
| Readme.cc_acc_xmlrpc | 19 years ago | |
Readme.cc_acc_xmlrpc
cc_acc_xmlrpc contributed by Todd Lewis This module implements the accounting functions for the calling card example, specifically the cc_acc interface. It can be loaded as an alternative to the cc_acc module. Instead of maintaining a local in memory map of credits, as the cc_acc module does, it executes the getCredit and subtractCredit functions via XMLRPC to an accounting server: acc system components using cc_acc_xmlrpc +------------------------+ | SEMS | | | | +-------------+ | | | mycc | | | +-------------+ | | | | | | | | | | +-------------+ | | | | | |DI getCredit | | | subtractCredit | v | | +-------------+ | +--------------------+ | |cc_acc_xmlrpc| | |XMLRPC | | +-------------+ | XMLRPC | accounting server | | | credits | ----------------> | | | | (map) | ----------------> | | | +-------------+ | getCredit +--------------------+ | | subtractCredit | | | | +------------------------+ acc system components using cc_acc +------------------------+ | SEMS | | | | +-------------+ | | | mycc | | | +-------------+ | | | | | | | | | | +-------------+ | | | | | |DI getCredit | | | subtractCredit | v | | +-------------+ | | | cc_acc | | | +-------------+ | | | credits | | | | (map) | | | +-------------+ | | ^ | | |DI addCredit | | | setCredit | | | | | +-------------+ | | | xmlrpc2di | | | +-------------+ | | | |<---------- XMLRPC addCredit | | |<---------- XMLRPC setCredit | +-------------+ | | | | | +------------------------+ a python example XMLRPC server can be found in server/xmlrpcserver.py. This module needs the xmlrpcpp library (see apps/examples/xmlrpc2di module for details).