From 623e480bf69b9488978a33cdbed7d6d3c74cbf6a Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Mon, 29 Nov 2010 16:24:22 +0100 Subject: [PATCH] sbc: doc for profile reload --- doc/Readme.sbc.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/Readme.sbc.txt b/doc/Readme.sbc.txt index 3183743f..c212516d 100644 --- a/doc/Readme.sbc.txt +++ b/doc/Readme.sbc.txt @@ -14,6 +14,7 @@ Features -------- o B2BUA o flexible call profile based configuration + o online reload of call profiles o From, To, RURI, Call-ID update o Header and message filter o reply code translation @@ -38,6 +39,30 @@ active_profile configuration option By using the latter two options, the SBC profile for the call can be selected in the proxy. +SBC profile reload +------------------ +The SBC profiles may be reloaded while the server is running. A set of (python) scripts +is provided and installed to trigger the reload (through XMLRPC): + + sems-sbc-list-profiles list loaded profiles + sems-sbc-reload-profile reload a profile (from its .conf file) + sems-sbc-reload-profiles reload all profiles (from .conf files) + sems-sbc-load-profile load a profile from a file (e.g. new + profile or file path changed) + sems-sbc-get-activeprofile get active_profile + sems-sbc-set-activeprofile set active_profile + +The xmlrpc2di module must be loaded and XMLRPC control server bound to port 8090 for +the scripts to work. + +Alternatively, the reload functions can be accessed by json-rpc v2 if the jsonrpc module +is loaded. The expected parameters to all functions are in a dictionary with + 'name' : profile name + 'path' : profile conf file path + 'active_profile': active profile (string) +Return code is [200, "OK", ] on success, or [, ] +on failure. + RURI, From, To, etc - Replacement patterns ------------------------------------- In SBC profile the appearance of the outgoing INVITE request can be set,