/*
 * Mbuni - Open  Source MMS Gateway 
 * 
 * MMS Config structure definitions
 * 
 * Copyright (C) 2003 - 2005, Digital Solutions Ltd. - http://www.dsmagic.com
 *
 * Paul Bagyenda <bagyenda@dsmagic.com>
 * 
 * This program is free software, distributed under the terms of
 * the GNU General Public License, with a few exceptions granted (see LICENSE)
 */

#ifndef OCTSTR
#error OCTSTR not defined.
#endif

#ifndef SINGLE_GROUP
#error SINGLE_GROUP not defined.
#endif

#ifndef MULTI_GROUP
#error MULTI_GROUP not defined.
#endif

SINGLE_GROUP(core,
	OCTSTR(log-file)
	OCTSTR(log-level)
	OCTSTR(access-log)
	OCTSTR(http-proxy-host)
	OCTSTR(http-proxy-port)
	OCTSTR(http-proxy-exceptions)
	OCTSTR(http-proxy-username)
	OCTSTR(http-proxy-password)
	OCTSTR(ssl-client-certkey-file)
	OCTSTR(ssl-server-cert-file)
	OCTSTR(ssl-server-key-file)
	OCTSTR(ssl-trusted-ca-file)

)

SINGLE_GROUP(mbuni,
	OCTSTR(name)
	OCTSTR(hostname)
	OCTSTR(host-alias)
	OCTSTR(local-prefixes)
	OCTSTR(storage-directory)
	OCTSTR(max-send-threads)
	OCTSTR(send-mail-prog)
	OCTSTR(unified-prefix)
	OCTSTR(maximum-send-attempts)
	OCTSTR(default-message-expiry)
	OCTSTR(queue-run-interval)
	OCTSTR(send-attempt-back-off)
	OCTSTR(sendsms-url)
	OCTSTR(sendsms-username)
	OCTSTR(sendsms-password)
	OCTSTR(sendsms-global-sender)
	OCTSTR(mms-port)
	OCTSTR(mm7-port)
	OCTSTR(allow-ip)
	OCTSTR(deny-ip)
	OCTSTR(email2mms-relay-hosts)
	OCTSTR(billing-module-parameters)
	OCTSTR(billing-library)
	OCTSTR(resolver-module-parameters)
 	OCTSTR(resolver-library)
        OCTSTR(detokenizer-module-parameters)
        OCTSTR(detokenizer-library)
	OCTSTR(prov-server-notify-script)
	OCTSTR(prov-server-sub-status-script)
	OCTSTR(notify-unprovisioned)
	OCTSTR(mms-notify-text)
	OCTSTR(mms-notify-unprovisioned-text)
	OCTSTR(mms-to-email-txt)
	OCTSTR(mms-to-email-html)
	OCTSTR(mms-to-email-default-subject)
	OCTSTR(mms-message-too-large-txt)
	OCTSTR(mms-client-msisdn-header)
	OCTSTR(mms-client-ip-header)
        OCTSTR(allow-ip-type)
        OCTSTR(optimize-notification-size)
	OCTSTR(content-adaptation)

	OCTSTR(sendmms-port)
	OCTSTR(sendmms-port-ssl)
)

MULTI_GROUP(mmsproxy,
	OCTSTR(name)
	OCTSTR(host)
	OCTSTR(allowed-prefix)
	OCTSTR(denied-prefix)
)

MULTI_GROUP(mms-vasp,
	OCTSTR(vasp-id)
	OCTSTR(type)
	OCTSTR(short-code)
	OCTSTR(vasp-username)
	OCTSTR(vasp-password)
	OCTSTR(vasp-url)
 	OCTSTR(mms-to-email-handler)
	OCTSTR(mms-to-local-copy-handler)
)

MULTI_GROUP(send-mms-user,
	OCTSTR(username)
	OCTSTR(password)
	OCTSTR(faked-sender)
	OCTSTR(delivery-report-url)
	OCTSTR(read-report-url)
)

MULTI_GROUP(mmsc,
	OCTSTR(id)
	OCTSTR(mmsc-url)
	OCTSTR(incoming-username)
	OCTSTR(incoming-password)
	OCTSTR(incoming-port)
        OCTSTR(allow-ip) 
        OCTSTR(deny-ip)
	OCTSTR(allowed-prefix)
	OCTSTR(denied-prefix)
	OCTSTR(incoming-port-ssl)
	OCTSTR(max-throughput)
	OCTSTR(type)
)

MULTI_GROUP(mms-service,
	OCTSTR(name)
	OCTSTR(get-url)
        OCTSTR(post-url)
        OCTSTR(exec)
        OCTSTR(file)
        OCTSTR(text)
        OCTSTR(faked-sender)
        OCTSTR(catch-all)
        OCTSTR(omit-empty)
        OCTSTR(suppress-reply)
        OCTSTR(accept-x-mbuni-headers)
        OCTSTR(pass-thro-headers)
        OCTSTR(assume-plain-text)
        OCTSTR(accepted-mmscs)
	OCTSTR(denied-mmscs)
        OCTSTR(keyword)
        OCTSTR(aliases)
        OCTSTR(http-post-parameters)
)
#undef OCTSTR
#undef SINGLE_GROUP
#undef MULTI_GROUP

