Module: sems Branch: kubartv/cc_rest Commit: bd2f7dca89e4bc20008685a3aa809cd4f3e20a6d URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=bd2f7dca89e4bc20008685a3aa809cd4f3e20a6d
Author: Václav Kubart <[email protected]> Committer: Václav Kubart <[email protected]> Date: Fri Feb 3 12:29:41 2012 +0100 slightly updated doc, few more params supported --- apps/sbc/call_control/rest/Readme.cc_rest.txt | 30 ++++++++++++++++++++++++- apps/sbc/call_control/rest/RestModule.cpp | 17 +++++++++++++- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/apps/sbc/call_control/rest/Readme.cc_rest.txt b/apps/sbc/call_control/rest/Readme.cc_rest.txt index 3427677..8efe11f 100644 --- a/apps/sbc/call_control/rest/Readme.cc_rest.txt +++ b/apps/sbc/call_control/rest/Readme.cc_rest.txt @@ -12,7 +12,23 @@ be replaced formatted like: parameter 2 name = parameter 2 value ... -Currently are supported following parameters: +Following parameters are supported now: + + ruri, from, to, contact, call-id, outbound_proxy, force_outbound_proxy, + next_hop_ip, next_hop_port, next_hop_for_replies, + + append_headers, + + sst_enabled + + rtprelay_interface, aleg_rtprelay_interface, + + outbound_interface + +These are unsupported (see todo): + + refuse_with, sst_aleg_enabled, + Module parameters ----------------- @@ -38,3 +54,15 @@ from = sip:[email protected] next_hop_ip = 192.168.1.202 next_hop_port = 5062 +TODO +---- + - configurable data format: + - json + - XML + - text + - test + - support for other call profile parameters + - changing some call profile parameters doesn't take effect because they are + evaluated before call control modules are called ... might be fixed by calling + the call control modules at the very beginning of processing + (SBCFactory::onInvite) diff --git a/apps/sbc/call_control/rest/RestModule.cpp b/apps/sbc/call_control/rest/RestModule.cpp index 33fd1ac..56d561c 100644 --- a/apps/sbc/call_control/rest/RestModule.cpp +++ b/apps/sbc/call_control/rest/RestModule.cpp @@ -35,6 +35,8 @@ #include <string.h> #include <curl/curl.h> +using namespace std; + class RestModuleFactory : public AmDynInvokeFactory { public: @@ -217,9 +219,22 @@ void RestModule::start(const string& cc_name, const string& ltag, params.getIfSet("next_hop_for_replies", call_profile->next_hop_for_replies); // TODO: headerfilter, messagefilter + // sdpfilter, anonymize_sdp + + params.getIfSet("sst_enabled", call_profile->sst_enabled); + //doesn't work:params.getIfSet("sst_aleg_enabled", call_profile->sst_aleg_enabled); + + // TODO: autho, auth_aleg, reply translations + + params.getIfSet("append_headers", call_profile->append_headers); // CRLF is handled in SBC + + //doesn't work: params.getIfSet("refuse_with", call_profile->refuse_with); - // TODO: other params + // TODO: rtprelay, symmetric_rtp, ... + params.getIfSet("rtprelay_interface", call_profile->rtprelay_interface); + params.getIfSet("aleg_rtprelay_interface", call_profile->aleg_rtprelay_interface); + params.getIfSet("outbound_interface", call_profile->outbound_interface); } catch (string &err) { ERROR(err.c_str()); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
