- More graceful crash when config groups mbuni & core missing
- Documentation fixesmaster
parent
e1a4f3d031
commit
6972fad0fe
|
@ -11,7 +11,7 @@ AC_PREREQ(2.59)
|
|||
AC_INIT([mbuni],[cvs],[devel@mbuni.org])
|
||||
AC_CONFIG_SRCDIR([mmlib/mms_util.c])
|
||||
AC_CONFIG_AUX_DIR(autotools)
|
||||
AM_INIT_AUTOMAKE([mbuni],[1.0.0-cvs])
|
||||
AM_INIT_AUTOMAKE([mbuni],[cvs])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AM_MAINTAINER_MODE
|
||||
AC_CANONICAL_HOST
|
||||
|
|
|
@ -403,34 +403,16 @@ gateway-1.4.0.tar.bz2 | tar xf -</tt></p>
|
|||
|
||||
|
||||
<p>The kannel
|
||||
sources need to be patched for Mbuni using one of the supplied patch files from
|
||||
the Mbuni downloads section given above. You can use either one of the patch
|
||||
files: </p>
|
||||
sources need to be patched for Mbuni using the supplied patch file from
|
||||
the Mbuni downloads section given above.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><tt>mbuni-kannel-patch-minimal</tt> has minimal patches to Kannel
|
||||
for:
|
||||
<ul>
|
||||
<li>Support of configuration directives
|
||||
required by the MMS Gateway in the configuration file format used by
|
||||
kannel. This is patch to gwlib
|
||||
<li>Makefile patch so that WAP library
|
||||
and header files are installed as part of Kannel installation</li>
|
||||
</ul>
|
||||
<li ><tt>mbuni-kannel-patch-full</tt> has all the patches above and
|
||||
patches to Kannel itself to enable it support sending of Over-The-Air
|
||||
settings using <a
|
||||
href="http://www.openmobilealliance.org/release_program/cp_v11.html">OMA
|
||||
Client Provisioning (v1.1) specifications</a>. The
|
||||
changes have been tested but may of course contain a bug or
|
||||
two. Since newer phones only support sending of MMS OTA settings
|
||||
using OMA format, we thought this would be a useful addition.</li>
|
||||
</ul>
|
||||
<p><tt>mbuni-kannel-patch-full</tt> contains important updates to Kannel 1.4.0 that are now part of Kannel CVS.
|
||||
(Mbuni still depends on the v1.4.0 release version.)
|
||||
</p>
|
||||
|
||||
|
||||
<p>Which patch you
|
||||
choose is a matter of taste. Apply the patch like this</p>
|
||||
|
||||
<p>Apply the patch as follows:</p>
|
||||
|
||||
<p ><tt>cd gateway-1.4.0</tt>
|
||||
<br>
|
||||
|
|
|
@ -41,6 +41,9 @@ int mms_load_core_settings(mCfgGrp *cgrp)
|
|||
Octstr *http_proxy_host;
|
||||
long loglevel;
|
||||
|
||||
if (cgrp == NULL)
|
||||
panic(0,"Missing required group `core' in config file!");
|
||||
|
||||
/* Set the log file. */
|
||||
log = mms_cfg_get(cgrp, octstr_imm("log-file"));
|
||||
if (log != NULL) {
|
||||
|
|
|
@ -44,6 +44,9 @@ int mms_load_mmsbox_settings(mCfg *cfg, gwthread_func_t *mmsc_handler_func)
|
|||
int i, n;
|
||||
void *catchall = NULL;
|
||||
|
||||
if (grp == NULL)
|
||||
panic(0,"Missing required group `mbuni' in config file!");
|
||||
|
||||
mms_load_core_settings(cgrp);
|
||||
|
||||
sendmms_users = list_create();
|
||||
|
|
|
@ -75,6 +75,9 @@ MmscSettings *mms_load_mmsc_settings(mCfg *cfg, List **proxyrelays)
|
|||
|
||||
memset(m, 0, sizeof *m);
|
||||
|
||||
if (grp == NULL)
|
||||
panic(0,"Missing required group `mbuni' in config file!");
|
||||
|
||||
mms_load_core_settings(cgrp);
|
||||
|
||||
if (proxyrelays)
|
||||
|
|
Loading…
Reference in New Issue