btw, I also found an issue when throughtput is set,

If the MMSC will reject a message, we will not respect the troughput
because id is not set, so gwthread_sleep will not be called.
The main idea is to throttle each sendings to be sure the MMSC will not drop
any messages due to a troughtput filter.

Vincent.


diff -rbau /mbuni-cvs/mmsbox/bearerbox.c /mbuni/mmsbox/bearerbox.c
--- /mbuni-cvs/mmsbox/bearerbox.c       2007-12-19 07:18:33.000000000 +0100
+++ /mbuni/mmsbox/bearerbox.c   2008-02-11 16:56:02.000000000 +0100
@@ -891,8 +890,9 @@
     *new_msgid = id;

     octstr_destroy(groupid);
-     if (id && throughput > 0)
-         gwthread_sleep(1.0/throughput);
+     if (throughput > 0)
+          gwthread_sleep(1.0 / throughput);
+



----- Original Message ----- From: "Vincent CHAVANIS" <[EMAIL PROTECTED]>
To: "Mbuni MMS Gateway Developers" <devel@mbuni.org>
Sent: Thursday, February 14, 2008 2:35 PM
Subject: [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

Reply via email to