[Devel] Mbuni CVS Kannel CVS
Hi there, I'm pretty new subscriber to this ML, and i would like to know if mbuni CVS is compatible with kannel CVS sources tree. Someone can confirm me this ? (list_item_destructor_t function does no longer exist in kannel for example) regards Vincent -- Telemaque - NICE - (FR) Service Technique - Developpement http://www.telemaque.fr/ [EMAIL PROTECTED] Tel : +33 4 93 97 71 64 (fax 68) ___ Devel mailing list Devel@mbuni.org http://mbuni.org/mailman/listinfo/devel_mbuni.org
[Devel] [PATCH] Fixes Compiler warnings on 64bits systems
Hi, same as kannel, it fixes compiler warnings on 64bits system (refs: Message-ID: [EMAIL PROTECTED] on kannel devel ML) mms_mmbox.c: In function 'mms_mmbox_search': mms_mmbox.c:658: warning: cast from pointer to integer of different size mms_mmbox.c: In function 'mms_mmbox_count': mms_mmbox.c:784: warning: cast from pointer to integer of different size --- mbuni-cvs/mmlib/mms_mmbox.c 2005-09-07 12:10:40.0 +0200 +++ mbuni/mmlib/mms_mmbox.c2006-04-18 15:57:55.0 +0200 @@ -655,49 +655,49 @@ (fp = fdopen(tmpfd, r)) == NULL) { error(0, mmbox.search_index: %s Failed to dup descriptor for index file, fp = %d: error = %s\n, octstr_get_cstr(home), - (int)fp, strerror(errno)); + (int) *((long *)fp), strerror(errno)); goto done; } flags = make_mm_flags(NULL, flag_cmds); @@ -781,7 +781,7 @@ (fp = fdopen(tmpfd, r)) == NULL) { error(0, mmbox.count: %s Failed to dup descriptor for index file, fp = %d: error = %s\n, octstr_get_cstr(home), - (int)fp, strerror(errno)); + (int) *((long *)fp), strerror(errno)); goto done; } -- Telemaque - NICE - (FR) Service Technique - Developpement http://www.telemaque.fr/ [EMAIL PROTECTED] Tel : +33 4 93 97 71 64 (fax 68) --- mbuni-cvs/mmlib/mms_mmbox.c 2005-09-07 12:10:40.0 +0200 +++ mbuni/mmlib/mms_mmbox.c2006-04-18 15:57:55.0 +0200 @@ -655,49 +655,49 @@ (fp = fdopen(tmpfd, r)) == NULL) { error(0, mmbox.search_index: %s Failed to dup descriptor for index file, fp = %d: error = %s\n, octstr_get_cstr(home), - (int)fp, strerror(errno)); + (int) (long)fp, strerror(errno)); goto done; } flags = make_mm_flags(NULL, flag_cmds); @@ -781,7 +781,7 @@ (fp = fdopen(tmpfd, r)) == NULL) { error(0, mmbox.count: %s Failed to dup descriptor for index file, fp = %d: error = %s\n, octstr_get_cstr(home), - (int)fp, strerror(errno)); + (int) (long)fp, strerror(errno)); goto done; } ___ Devel mailing list Devel@mbuni.org http://mbuni.org/mailman/listinfo/devel_mbuni.org
Re: [Devel] [Users] CVS updated to use Kannel 1.4.1
good news !!! But seems to have some incompatibilities with X86_64 gcc -shared .libs/mms_billing_shell.o -L/usr/lib64/mysql -L/usr/lib64 -L/usr/local/lib/kannel -lgw -lrt -lresolv -lxml2 -L/usr/lib64/openssl/lib -lmysqlclient_r -lz -lcrypt -lnsl -lm -lssl -lcrypto -lwap -lgwlib -lpthread -ldl -Wl,-soname -Wl,libmmsc_billing_shell.so.0 -o .libs/libmmsc_billing_shell.so.0.0.0 /usr/bin/ld: /usr/local/lib/kannel/libgwlib.a(gwmem-native.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/kannel/libgwlib.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [libmmsc_billing_shell.la] Erreur 1 Vincent. - Original Message - From: Paul Bagyenda [EMAIL PROTECTED] To: Mbuni MMS Gateway Developers devel@mbuni.org Cc: Mbuni MMS Gateway Users List users@mbuni.org Sent: Thursday, October 12, 2006 5:32 PM Subject: [Users] CVS updated to use Kannel 1.4.1 Hi All, CVS has been updated to compile with Kannel 1.4.1. The most significant change is that the need to patch Kannel is gone (hopefully for good!) This is the first step towards realising the next release of Mbuni. Testing and bug reports would be most welcome. Thanks Paul ___ Users mailing list Users@mbuni.org http://mbuni.org/mailman/listinfo/users_mbuni.org ___ Devel mailing list Devel@mbuni.org http://mbuni.org/mailman/listinfo/devel_mbuni.org
[Devel] [PATCH] MM7_SOAP_COMMAND_REJECTED error 3005
Hi all, Thi patch fixes the command rejected 3005 from the MMSC A rejected command should not be requeued to be send later. Vincent. diff -rbau /mbuni-cvs/mmlib/mms_mm7soap.h /mbuni/mmlib/mms_mm7soap.h --- /mbuni-cvs/mmlib/mms_mm7soap.h 2006-11-28 13:00:20.0 +0100 +++ /mbuni/mmlib/mms_mm7soap.h 2007-03-12 17:52:54.0 +0100 @@ -16,6 +16,7 @@ #define MM7_SOAP_OK 1000 #define MM7_SOAP_FORMAT_CORRUPT 2007 +#define MM7_SOAP_COMMAND_REJECTED 3005 #define MM7_SOAP_UNSUPPORTED_OPERATION 4003 #define MM7_SOAP_STATUS_OK(e) ((e) / 1000 == 1) #define MM7_DEFAULT_VERSION 5.3.0 diff -rbau /mbuni-cvs/mmlib/mms_util.h /mbuni/mmlib/mms_util.h --- /mbuni-cvs/mmlib/mms_util.h 2006-11-25 12:53:40.0 +0100 +++ /mbuni/mmlib/mms_util.h 2007-01-23 11:21:41.0 +0100 @@ -597,12 +609,12 @@ } else tstatus = MM7_SOAP_FORMAT_CORRUPT; - if (!MM7_SOAP_STATUS_OK(tstatus)) { + if (!MM7_SOAP_STATUS_OK(tstatus) tstatus != MM7_SOAP_COMMAND_REJECTED) { Octstr *detail = mm7_soap_header_value(mresp, octstr_imm(Details)); if (detail == NULL) mm7_soap_header_value(mresp, octstr_imm(faultcode)); ret = NULL; -- Telemaque - 06560 SOPHIA-ANTIPOLIS - (FR) Service Technique/Reseau - NOC Developpement SMS/MMS/Kiosques 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
Re: [Devel] Re: [PATCH] MM7_SOAP_COMMAND_REJECTED error 3005
Sorry, This was not the good file. I see that you have made the changes Thansk ! Vincent. - Original Message - From: Paul Bagyenda [EMAIL PROTECTED] To: Mbuni MMS Gateway Developers devel@mbuni.org Sent: Monday, March 19, 2007 11:26 AM Subject: [Devel] Re: [PATCH] MM7_SOAP_COMMAND_REJECTED error 3005 Hi Vincent, Please clarify this patch: 1) The changes to mms_util.h are nowhere in mbuni CVS 2) The error you mention would not cause a re-queueing of the message anyway. P. On Mar 14, 2007, at 02:20, Vincent CHAVANIS wrote: Hi all, Thi patch fixes the command rejected 3005 from the MMSC A rejected command should not be requeued to be send later. Vincent. diff -rbau /mbuni-cvs/mmlib/mms_mm7soap.h /mbuni/mmlib/mms_mm7soap.h --- /mbuni-cvs/mmlib/mms_mm7soap.h 2006-11-28 13:00:20.0 +0100 +++ /mbuni/mmlib/mms_mm7soap.h 2007-03-12 17:52:54.0 +0100 @@ -16,6 +16,7 @@ #define MM7_SOAP_OK 1000 #define MM7_SOAP_FORMAT_CORRUPT 2007 +#define MM7_SOAP_COMMAND_REJECTED 3005 #define MM7_SOAP_UNSUPPORTED_OPERATION 4003 #define MM7_SOAP_STATUS_OK(e) ((e) / 1000 == 1) #define MM7_DEFAULT_VERSION 5.3.0 diff -rbau /mbuni-cvs/mmlib/mms_util.h /mbuni/mmlib/mms_util.h --- /mbuni-cvs/mmlib/mms_util.h 2006-11-25 12:53:40.0 +0100 +++ /mbuni/mmlib/mms_util.h 2007-01-23 11:21:41.0 +0100 @@ -597,12 +609,12 @@ } else tstatus = MM7_SOAP_FORMAT_CORRUPT; - if (!MM7_SOAP_STATUS_OK(tstatus)) { + if (!MM7_SOAP_STATUS_OK(tstatus) tstatus != MM7_SOAP_COMMAND_REJECTED) { Octstr *detail = mm7_soap_header_value(mresp, octstr_imm (Details)); if (detail == NULL) mm7_soap_header_value(mresp, octstr_imm(faultcode)); ret = NULL; -- Telemaque - 06560 SOPHIA-ANTIPOLIS - (FR) Service Technique/Reseau - NOC Developpement SMS/MMS/Kiosques 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 ___ Devel mailing list Devel@mbuni.org http://lists.mbuni.org/mailman/listinfo/devel
Re: [Devel] Re: [PATCH] MM7_SOAP_COMMAND_REJECTED error 3005
ok forget my previous message, Here is the patch with the good filename --- /mbuni-cvs/mmsbox/bearerbox.c 2007-01-31 10:08:20.0 +0100 +++ /mbuni/mmsbox/bearerbox.c 2007-03-13 23:55:10.0 +0100 @@ -597,12 +609,12 @@ } else tstatus = MM7_SOAP_FORMAT_CORRUPT; - if (!MM7_SOAP_STATUS_OK(tstatus)) { + if (!MM7_SOAP_STATUS_OK(tstatus) tstatus != MM7_SOAP_COMMAND_REJECTED) { Octstr *detail = mm7_soap_header_value(mresp, octstr_imm(Details)); if (detail == NULL) mm7_soap_header_value(mresp, octstr_imm(faultcode)); ret = NULL; - Original Message - From: Vincent CHAVANIS [EMAIL PROTECTED] To: Paul Bagyenda [EMAIL PROTECTED]; Mbuni MMS Gateway Developers devel@mbuni.org Sent: Wednesday, March 21, 2007 4:20 PM Subject: Re: [Devel] Re: [PATCH] MM7_SOAP_COMMAND_REJECTED error 3005 Sorry, This was not the good file. I see that you have made the changes Thansk ! Vincent. - Original Message - From: Paul Bagyenda [EMAIL PROTECTED] To: Mbuni MMS Gateway Developers devel@mbuni.org Sent: Monday, March 19, 2007 11:26 AM Subject: [Devel] Re: [PATCH] MM7_SOAP_COMMAND_REJECTED error 3005 Hi Vincent, Please clarify this patch: 1) The changes to mms_util.h are nowhere in mbuni CVS 2) The error you mention would not cause a re-queueing of the message anyway. P. On Mar 14, 2007, at 02:20, Vincent CHAVANIS wrote: Hi all, Thi patch fixes the command rejected 3005 from the MMSC A rejected command should not be requeued to be send later. Vincent. diff -rbau /mbuni-cvs/mmlib/mms_mm7soap.h /mbuni/mmlib/mms_mm7soap.h --- /mbuni-cvs/mmlib/mms_mm7soap.h 2006-11-28 13:00:20.0 +0100 +++ /mbuni/mmlib/mms_mm7soap.h 2007-03-12 17:52:54.0 +0100 @@ -16,6 +16,7 @@ #define MM7_SOAP_OK 1000 #define MM7_SOAP_FORMAT_CORRUPT 2007 +#define MM7_SOAP_COMMAND_REJECTED 3005 #define MM7_SOAP_UNSUPPORTED_OPERATION 4003 #define MM7_SOAP_STATUS_OK(e) ((e) / 1000 == 1) #define MM7_DEFAULT_VERSION 5.3.0 diff -rbau /mbuni-cvs/mmlib/mms_util.h /mbuni/mmlib/mms_util.h --- /mbuni-cvs/mmlib/mms_util.h 2006-11-25 12:53:40.0 +0100 +++ /mbuni/mmlib/mms_util.h 2007-01-23 11:21:41.0 +0100 @@ -597,12 +609,12 @@ } else tstatus = MM7_SOAP_FORMAT_CORRUPT; - if (!MM7_SOAP_STATUS_OK(tstatus)) { + if (!MM7_SOAP_STATUS_OK(tstatus) tstatus != MM7_SOAP_COMMAND_REJECTED) { Octstr *detail = mm7_soap_header_value(mresp, octstr_imm (Details)); if (detail == NULL) mm7_soap_header_value(mresp, octstr_imm(faultcode)); ret = NULL; -- Telemaque - 06560 SOPHIA-ANTIPOLIS - (FR) Service Technique/Reseau - NOC Developpement SMS/MMS/Kiosques 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 ___ Devel mailing list Devel@mbuni.org http://lists.mbuni.org/mailman/listinfo/devel ___ Devel mailing list Devel@mbuni.org http://lists.mbuni.org/mailman/listinfo/devel
Re: [Devel] [PATCH] more precise troughput on each MMSC
i also forgot this (i know i really need a cofee...) 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.0 +0100 +++ /mbuni/mmsbox/mmsbox_cfg.h 2008-02-14 14:14:54.0 +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. */ - Original Message - From: Vincent CHAVANIS [EMAIL PROTECTED] To: Mbuni MMS Gateway Developers devel@mbuni.org Sent: Thursday, February 14, 2008 2:45 PM Subject: Re: [Devel] [PATCH] more precise troughput on each MMSC 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 ___ Devel mailing list Devel@mbuni.org http://lists.mbuni.org/mailman/listinfo/devel ___ Devel mailing list Devel@mbuni.org http://lists.mbuni.org/mailman/listinfo/devel
[Devel] [PATCH] fix content-id when a script is giving content
Hi all, This patch fixes the Content-ID header when a 'listed' web programming language is used to get the content (to get an image/sound/video into a DB from a php script for example). This also fixes the content_type2file_ext() function when Content-type is populated with more than one values. (We take the first one expecting the content type) (eg: Content-Type: text/plain; charset=utf-8; name=txt1.txt) 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) diff -rbau /mbuni-cvs/mmlib/mms_util.c /mbuni/mmlib/mms_util.c --- /mbuni-cvs/mmlib/mms_util.c 2008-08-07 16:09:25.0 +0200 +++ /mbuni/mmlib/mms_util.c 2008-08-18 15:53:58.0 +0200 @@ -1364,6 +1364,23 @@ {NULL, NULL} }; +/* Some of Web languages used for generating content, but can't be a content itself. */ +static struct { + char *language, *file_ext; } +l_exts[] = { + {Perl, pl}, + {Php, php}, + {Python, py}, + {Common Gateway Interface, cgi}, + {Active Server Page, asp}, + {Java Server Page, jsp}, + {Ruby on Rails, rb}, + {Tool Command Language, tcl}, + {Shell Command Language, sh}, + {Executables, exe}, + {NULL, NULL} +}; + Octstr *filename2content_type(char *fname) { char *p = strrchr(fname, '.'); @@ -1379,7 +1396,12 @@ static char *content_type2file_ext(Octstr *ctype) { - int i; + int i,j; + + /* Take the first value, expecting content-type! */ + if ((j = octstr_search_char(ctype, ';', 0)) != -1) + octstr_delete(ctype, j, octstr_len(ctype)); + for (i = 0; exts[i].file_ext; i++) if (octstr_str_case_compare(ctype, exts[i].ctype) == 0) return exts[i].file_ext; @@ -1389,6 +1411,7 @@ char *make_file_ext(Octstr *url, Octstr *ctype, char fext[5]) { + int i; fext[0] = 0; if (url) { HTTPURLParse *h = parse_url(url); @@ -1402,6 +1425,11 @@ strncpy(fext, p+1, 4); /* max length of 4. */ http_urlparse_destroy(h); + + for (i = 0; l_exts[i].file_ext; i++) + if (strcasecmp(fext, l_exts[i].file_ext) == 0) +return content_type2file_ext(ctype); + if (fext[0]) return fext; } done: ___ Devel mailing list Devel@mbuni.org http://lists.mbuni.org/mailman/listinfo/devel
[Devel] [PATCH] Mime extension recognition problem for 3gpp
A very small fix, 3gpp should be recognize as 3gp and not 3gp2 Without this patch a 3gpp Content-type will be recognize with .3gp2 extention. And will result as an Non-playable MMS item on somes phones. Vincent. diff -rbau /mbuni-cvs/mmlib/mms_util.c /mbuni/mmlib/mms_util.c --- /mbuni-cvs/mmlib/mms_util.c 2008-08-19 10:44:42.0 +0200 +++ /mbuni/mmlib/mms_util.c 2008-08-19 17:13:27.0 +0200 @@ -1355,8 +1355,8 @@ {application/smil, smi}, {application/vnd.wap.mms-message, mms}, {application/java-archive, jar}, - {video/3gpp, 3gp2}, {video/3gpp, 3gp}, + {video/3gpp, 3gp2}, {video/3gpp2, 3g2}, {audio/vnd.qcelp, qcp}, -- 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
[Devel] [PATCH] Allow mmssend to pass Billing infos
This allows passing Billing information to mmssend program Vincent. -- Telemaque - 06560 SOPHIA-ANTIPOLIS - (FR) Service Technique/Reseau - NOC Direction du Developpement xMS+ http://www.telemaque.fr/ v.chava...@telemaque.fr Tel : +33 4 92 90 99 84 (fax 9142) diff -rbau /mbuni-cvs/mmsc/mmssend.c /mbuni/mmsc/mmssend.c --- /mbuni-cvs/mmsc/mmssend.c 2009-01-17 05:31:21.0 +0100 +++ /mbuni/mmsc/mmssend.c 2009-10-13 15:06:57.280500020 +0200 @@ -20,6 +20,7 @@ static Octstr *from; +static Octstr *binfo; static List *to; static Octstr *data; static int savetommbox; @@ -53,8 +54,14 @@ else if (argv[i][1] == 'r') { dlr = 1; return 0; + } else if (argv[i][1] == 'B') + if (i + 1 argc) { + binfo = octstr_create(argv[i+1]); + return 1; } else return -1; + else + return -1; } static MmscSettings *settings; @@ -148,6 +155,10 @@ http_header_add(h, X-Mbuni-Tool, mmssend); http_header_add(h, X-Mbuni-CalledFrom, Terminal); + if (binfo) { + mms_info(0, add.info, NULL, Adding extra headers billing info `X-Mms-Binfo' :); + http_header_add(h, X-Mms-Binfo, octstr_get_cstr(binfo)); + } s = settings-qfs-mms_queue_add(from, to, NULL, NULL, NULL, time(NULL), time(NULL) + settings-default_msgexpiry, m, NULL, ___ Devel mailing list Devel@mbuni.org http://lists.mbuni.org/mailman/listinfo/devel
Re: [Devel] [PATCH] variables for signal handling must be volatile sig_atomic_t
Hi, We have now a compiler warning, Could you please fixes this ? gwthread_create_real expects void * long gwthread_create_real(gwthread_func_t *func, const char *funcname, void *arg); refs: mmsrelay.c: In function 'mmsrelay': mmsrelay.c:32: attention : passing argument 3 of 'gwthread_create_real' discards qualifiers from pointer target type /usr/local/include/kannel/gwlib/gwthread.h:86: note: expected 'void *' but argument is of type 'volatile sig_atomic_t *' mmsbox.c: In function 'main': mmsbox.c:784: attention : passing argument 3 of 'gwthread_create_real' discards qualifiers from pointer target type /usr/local/include/kannel/gwlib/gwthread.h:86: note: expected 'void *' but argument is of type 'volatile sig_atomic_t *' thanks Le 24/05/2010 18:31, SATOH Fumiyasu a écrit : Hi, Please apply the attached patch for Mbuni 1.4.0 + CVS 2010-01-25 to be asyn-signal-safe code. Regards, ___ Devel mailing list Devel@mbuni.org http://lists.mbuni.org/mailman/listinfo/devel ___ Devel mailing list Devel@mbuni.org http://lists.mbuni.org/mailman/listinfo/devel