Module: sip-router Branch: master Commit: cd007447bdd3fc4caa2d8eec3cec8a7b16422c10 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cd007447...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Wed Jan 22 23:27:19 2014 +0100
cnxcc: formated some examples not to exceed boundaries of blocks in html output
---
modules/cnxcc/doc/cnxcc_admin.xml | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/modules/cnxcc/doc/cnxcc_admin.xml b/modules/cnxcc/doc/cnxcc_admin.xml index ec52dfc..6716e84 100644 --- a/modules/cnxcc/doc/cnxcc_admin.xml +++ b/modules/cnxcc/doc/cnxcc_admin.xml @@ -144,7 +144,8 @@ $var(cps) = "2.00"; # cost per second $var(initial_p) = "030"; # intial pulse $var(final_p) = "006"; # final pulse
-cnxcc_set_max_credit("$var(customer)", "$var(credit)", "$var(cps)", "$var(initial_p)", "$var(final_p)"); +cnxcc_set_max_credit("$var(customer)", "$var(credit)", "$var(cps)", + "$var(initial_p)", "$var(final_p)"); ... </programlisting> </example> @@ -274,17 +275,17 @@ $var(max_chan) = 2; $var(retcode) = cnxcc_set_max_channels("$var(customer)", "$var(max_chan)");
if ($var(retcode) == -1) { - xlog("Error setting up credit control"); - return; + xlog("Error setting up credit control"); + return; }
if ($var(retcode) < -1) { - xlog("Too many channels for customer"); - sl_send_reply(403, "Forbidden"); + xlog("Too many channels for customer"); + sl_send_reply(403, "Forbidden");
- if (!cnxcc_terminate_all("$var(customer)")) { - xlog("Error terminating customer's calls"); - } + if (!cnxcc_terminate_all("$var(customer)")) { + xlog("Error terminating customer's calls"); + }
exit; } @@ -324,7 +325,7 @@ if ($var(retcode) < -1) { $var(customer) = "john-doe-123-basic";
if (!cnxcc_terminate_all("$var(customer)")) { - xlog("Error terminating customer's calls"); + xlog("Error terminating customer's calls"); } ... </programlisting> @@ -399,9 +400,9 @@ if (!cnxcc_terminate_all("$var(customer)")) { ... event_route[cnxcc:call-shutdown] { - xlog("L_INFO", "[$ci]: call killed"); + xlog("L_INFO", "[$ci]: call killed");
- # perform some kind of notification, database update, email sending, etc. + # perform some kind of notification, database update, email sending, etc. } ... </programlisting> @@ -438,7 +439,7 @@ route[CNXCC] "$var(cost_per_sec)", "$var(i_pulse)", "$var(f_pulse)")) { - xlog("Error setting up credit control"); + xlog("Error setting up credit control"); } }
@@ -446,7 +447,6 @@ event_route[cnxcc:call-shutdown] { xlog("L_INFO", "[$ci]: call killed");
- } ... </programlisting>