sorry,
i forgot to attach the file.
Vincent.
----- Original Message -----
From: "Vincent CHAVANIS" <[EMAIL PROTECTED]>
To: "Mbuni MMS Gateway Developers" <devel@mbuni.org>
Sent: Thursday, February 14, 2008 2:35 PM
Subject: [Devel] [PATCH] more precise troughput on each MMSC
This patch is similar to the one posted/commited on the kannel ML
we are now using double in order to have a more precise troughput on each
MMSC
The troughput will be notified at start (in the logfile).
regards
Vincent
--
Telemaque - 06560 SOPHIA-ANTIPOLIS - (FR)
Service Technique/Reseau - NOC
Direction du Developpement xMS+
http://www.telemaque.fr/
[EMAIL PROTECTED]
Tel : +33 4 92 90 99 84 (fax 9142)
_______________________________________________
Devel mailing list
Devel@mbuni.org
http://lists.mbuni.org/mailman/listinfo/devel
diff -rbau /mbuni-cvs/mmsbox/mmsbox_cfg.c /mbuni/mmsbox/mmsbox_cfg.c
--- /mbuni-cvs/mmsbox/mmsbox_cfg.c 2008-01-01 07:45:16.000000000 +0100
+++ /mbuni/mmsbox/mmsbox_cfg.c 2008-02-14 14:15:51.000000000 +0100
@@ -46,7 +46,7 @@
{
mCfgGrp *grp = mms_cfg_get_single(cfg, octstr_imm("mbuni"));
mCfgGrp *cgrp = mms_cfg_get_single(cfg, octstr_imm("core"));
- Octstr *gdir, *s;
+ Octstr *gdir, *s, *tmp;
int send_port_ssl = 0;
List *l;
int i, n, xx;
@@ -211,7 +211,12 @@
#ifdef HAVE_LIBSSL
mms_cfg_get_bool(x, octstr_imm("incoming-port-ssl"), &ssl);
#endif
- mms_cfg_get_int(x, octstr_imm("max-throughput"), &m->throughput);
+ if ((tmp = _mms_cfg_getx(x, octstr_imm("max-throughput"))) != NULL) {
+ if (octstr_parse_double(&m->throughput, tmp, 0) == -1)
+ m->throughput = 0;
+ octstr_destroy(tmp);
+ info(0, "Set throughput to %.3f for mmsc id <%s>", m->throughput,
octstr_get_cstr(m->id));
+ }
type = _mms_cfg_getx(x, octstr_imm("type"));
if (octstr_case_compare(type, octstr_imm("eaif")) == 0)
diff -rbau /mbuni-cvs/mmsbox/mmsbox_cfg.h /mbuni/mmsbox/mmsbox_cfg.h
--- /mbuni-cvs/mmsbox/mmsbox_cfg.h 2007-12-15 09:40:22.000000000 +0100
+++ /mbuni/mmsbox/mmsbox_cfg.h 2008-02-14 14:14:54.000000000 +0100
@@ -32,7 +32,7 @@
Octstr *allowed_prefix, *denied_prefix;
Octstr *allowed_sender_prefix, *denied_sender_prefix;
enum {UNKNOWN_MMSC = -1, CUSTOM_MMSC, SOAP_MMSC, EAIF_MMSC} type; /* type
of connection. */
- long throughput; /* Max send rate. */
+ double throughput; /* Max send rate. */
long threadid; /* handler thread. */
int reroute; /* whether messages from this mmsc are re-routed outwards. */
_______________________________________________
Devel mailing list
Devel@mbuni.org
http://lists.mbuni.org/mailman/listinfo/devel