Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

cfg.def

Go to the documentation of this file.
00001 /* ==================================================================== 
00002  * The Kannel Software License, Version 1.0 
00003  * 
00004  * Copyright (c) 2001-2008 Kannel Group  
00005  * Copyright (c) 1998-2001 WapIT Ltd.   
00006  * All rights reserved. 
00007  * 
00008  * Redistribution and use in source and binary forms, with or without 
00009  * modification, are permitted provided that the following conditions 
00010  * are met: 
00011  * 
00012  * 1. Redistributions of source code must retain the above copyright 
00013  *    notice, this list of conditions and the following disclaimer. 
00014  * 
00015  * 2. Redistributions in binary form must reproduce the above copyright 
00016  *    notice, this list of conditions and the following disclaimer in 
00017  *    the documentation and/or other materials provided with the 
00018  *    distribution. 
00019  * 
00020  * 3. The end-user documentation included with the redistribution, 
00021  *    if any, must include the following acknowledgment: 
00022  *       "This product includes software developed by the 
00023  *        Kannel Group (http://www.kannel.org/)." 
00024  *    Alternately, this acknowledgment may appear in the software itself, 
00025  *    if and wherever such third-party acknowledgments normally appear. 
00026  * 
00027  * 4. The names "Kannel" and "Kannel Group" must not be used to 
00028  *    endorse or promote products derived from this software without 
00029  *    prior written permission. For written permission, please  
00030  *    contact org@kannel.org. 
00031  * 
00032  * 5. Products derived from this software may not be called "Kannel", 
00033  *    nor may "Kannel" appear in their name, without prior written 
00034  *    permission of the Kannel Group. 
00035  * 
00036  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 
00037  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
00038  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
00039  * DISCLAIMED.  IN NO EVENT SHALL THE KANNEL GROUP OR ITS CONTRIBUTORS 
00040  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,  
00041  * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT  
00042  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR  
00043  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,  
00044  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE  
00045  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,  
00046  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
00047  * ==================================================================== 
00048  * 
00049  * This software consists of voluntary contributions made by many 
00050  * individuals on behalf of the Kannel Group.  For more information on  
00051  * the Kannel Group, please see <http://www.kannel.org/>. 
00052  * 
00053  * Portions of this software are based upon software originally written at  
00054  * WapIT Ltd., Helsinki, Finland for the Kannel project.  
00055  */ 
00056 
00057 /*
00058  * cfg.def - definition of configuration groups and variables
00059  *
00060  * Lars Wirzenius
00061  */
00062 
00063 
00064 #ifndef OCTSTR
00065 #error OCTSTR not defined.
00066 #endif
00067 
00068 #ifndef SINGLE_GROUP
00069 #error SINGLE_GROUP not defined.
00070 #endif
00071 
00072 #ifndef MULTI_GROUP
00073 #error MULTI_GROUP not defined.
00074 #endif
00075 
00076 
00077 SINGLE_GROUP(core,
00078     OCTSTR(admin-port)
00079     OCTSTR(admin-port-ssl)
00080     OCTSTR(admin-interface)    
00081     OCTSTR(admin-password)
00082     OCTSTR(status-password)
00083     OCTSTR(admin-deny-ip)
00084     OCTSTR(admin-allow-ip)
00085     OCTSTR(smsbox-port)
00086     OCTSTR(smsbox-port-ssl)
00087     OCTSTR(smsbox-max-pending)
00088     OCTSTR(wapbox-port)
00089     OCTSTR(wapbox-port-ssl)
00090     OCTSTR(box-deny-ip)
00091     OCTSTR(box-allow-ip)
00092     OCTSTR(udp-deny-ip)
00093     OCTSTR(udp-allow-ip)
00094     OCTSTR(wdp-interface-name)
00095     OCTSTR(log-file)
00096     OCTSTR(log-level)
00097     OCTSTR(access-log)
00098     OCTSTR(access-log-time)
00099     OCTSTR(access-log-format)
00100     OCTSTR(access-log-clean)
00101     OCTSTR(store-file)
00102     OCTSTR(store-dump-freq)
00103     OCTSTR(store-type)
00104     OCTSTR(store-location)
00105     OCTSTR(unified-prefix)
00106     OCTSTR(white-list)
00107     OCTSTR(white-list-regex)
00108     OCTSTR(black-list)
00109     OCTSTR(black-list-regex)
00110     OCTSTR(http-proxy-host)
00111     OCTSTR(http-proxy-port)
00112     OCTSTR(http-proxy-ssl)
00113     OCTSTR(http-proxy-exceptions)
00114     OCTSTR(http-proxy-exceptions-regex)
00115     OCTSTR(http-proxy-username)
00116     OCTSTR(http-proxy-password)
00117     OCTSTR(ssl-client-certkey-file)
00118     OCTSTR(ssl-server-cert-file)
00119     OCTSTR(ssl-server-key-file)
00120     OCTSTR(ssl-trusted-ca-file)
00121     OCTSTR(dlr-storage)
00122     OCTSTR(maximum-queue-length)
00123     OCTSTR(sms-incoming-queue-limit)
00124     OCTSTR(sms-outgoing-queue-limit)
00125     OCTSTR(sms-resend-freq)
00126     OCTSTR(sms-resend-retry)
00127     OCTSTR(sms-combine-concatenated-mo)
00128     OCTSTR(sms-combine-concatenated-mo-timeout)
00129 )
00130 
00131 
00132 SINGLE_GROUP(wapbox,
00133     OCTSTR(bearerbox-host)
00134     OCTSTR(timer-freq)
00135     OCTSTR(url-map)
00136     /* to be deprecated (begin) */
00137     OCTSTR(map-url)
00138     OCTSTR(map-url-max)
00139     OCTSTR(map-url-0)
00140     OCTSTR(map-url-1)
00141     OCTSTR(map-url-2)
00142     OCTSTR(map-url-3)
00143     OCTSTR(map-url-4)
00144     OCTSTR(map-url-5)
00145     OCTSTR(map-url-6)
00146     OCTSTR(map-url-7)
00147     OCTSTR(map-url-8)
00148     OCTSTR(map-url-9)
00149     /* to be deprecated (end) */
00150     OCTSTR(device-home)
00151     OCTSTR(log-file)
00152     OCTSTR(log-level)
00153     OCTSTR(syslog-level)
00154     OCTSTR(smart-errors)
00155     OCTSTR(access-log)
00156     OCTSTR(access-log-time)
00157     OCTSTR(access-log-clean)
00158     OCTSTR(http-interface-name)
00159     OCTSTR(concatenation)
00160     OCTSTR(max-messages)
00161     OCTSTR(wml-strict)
00162 )
00163 
00164 
00165 MULTI_GROUP(wap-url-map,
00166     OCTSTR(name)
00167     OCTSTR(url)
00168     OCTSTR(map-url)
00169     OCTSTR(send-msisdn-query)
00170     OCTSTR(send-msisdn-header)
00171     OCTSTR(send-msisdn-format)
00172     OCTSTR(accept-cookies)
00173 )
00174 
00175 
00176 MULTI_GROUP(wap-user-map,
00177     OCTSTR(name)
00178     OCTSTR(user)
00179     OCTSTR(pass)
00180     OCTSTR(msisdn)
00181 )
00182 
00183 
00184 SINGLE_GROUP(wtls,
00185     OCTSTR(certificate-file)
00186     OCTSTR(privatekey-file)
00187     OCTSTR(privatekey-password)
00188 )
00189 
00190 
00191 SINGLE_GROUP(ppg,
00192     OCTSTR(ppg-url)
00193     OCTSTR(ppg-port)
00194     OCTSTR(ppg-ssl-port)
00195     OCTSTR(trusted-pi)
00196     OCTSTR(concurrent-pushes)
00197     OCTSTR(users)
00198     OCTSTR(ppg-allow-ip)
00199     OCTSTR(ppg-deny-ip)
00200     OCTSTR(ssl-server-cert-file)
00201     OCTSTR(ssl-server-key-file)
00202     OCTSTR(global-sender)
00203     OCTSTR(default-smsc)
00204     OCTSTR(default-dlr-url)
00205     OCTSTR(ppg-smsbox-id)
00206     OCTSTR(service-name)
00207 )
00208 
00209 
00210 MULTI_GROUP(wap-push-user,
00211     OCTSTR(wap-push-user)
00212     OCTSTR(ppg-username)
00213     OCTSTR(ppg-password)
00214     OCTSTR(country-prefix)
00215     OCTSTR(allowed-prefix)
00216     OCTSTR(allowed-prefix-regex)
00217     OCTSTR(denied-prefix)
00218     OCTSTR(denied-prefix-regex)
00219     OCTSTR(white-list)
00220     OCTSTR(white-list-regex)
00221     OCTSTR(black-list-regex)
00222     OCTSTR(black-list)
00223     OCTSTR(deny-ip)
00224     OCTSTR(allow-ip)
00225     OCTSTR(forced-smsc)
00226     OCTSTR(default-smsc)
00227     OCTSTR(dlr-url)
00228     OCTSTR(smsbox-id)
00229 )
00230 
00231 
00232 SINGLE_GROUP(test-ppg,
00233     OCTSTR(retries)
00234     OCTSTR(pi-ssl)
00235     OCTSTR(ssl-client-certkey-file)
00236     OCTSTR(ssl-trusted-ca-file)
00237 )
00238 
00239 
00240 SINGLE_GROUP(configuration,
00241     OCTSTR(push-url)
00242     OCTSTR(content-file)
00243     OCTSTR(pap-file)
00244     OCTSTR(username)
00245     OCTSTR(password)
00246 )
00247 
00248 
00249 SINGLE_GROUP(smsbox,
00250     OCTSTR(smsbox-id)
00251     OCTSTR(bearerbox-host)
00252     OCTSTR(bearerbox-port)
00253     OCTSTR(bearerbox-port-ssl)
00254     OCTSTR(sendsms-port)
00255     OCTSTR(sendsms-port-ssl)
00256     OCTSTR(sendsms-interface)    
00257     OCTSTR(sendsms-url)
00258     OCTSTR(sendota-url)
00259     OCTSTR(xmlrpc-url)
00260     OCTSTR(sendsms-chars)
00261     OCTSTR(global-sender)
00262     OCTSTR(log-file)
00263     OCTSTR(log-level)
00264     OCTSTR(access-log)
00265     OCTSTR(access-log-time)
00266     OCTSTR(access-log-clean)
00267     OCTSTR(sms-length)
00268     OCTSTR(reply-couldnotfetch)
00269     OCTSTR(reply-couldnotrepresent)
00270     OCTSTR(reply-requestfailed)
00271     OCTSTR(reply-emptymessage)
00272     OCTSTR(allowed-prefix)
00273     OCTSTR(denied-prefix)
00274     OCTSTR(white-list)
00275     OCTSTR(black-list)
00276     OCTSTR(mo-recode)
00277     OCTSTR(http-request-retry)
00278     OCTSTR(http-queue-delay)
00279     OCTSTR(white-list-regex)
00280     OCTSTR(black-list-regex)
00281     OCTSTR(immediate-sendsms-reply)
00282     OCTSTR(max-pending-requests)
00283 )
00284 
00285 
00286 MULTI_GROUP(smsbox-route,
00287     OCTSTR(smsbox-id)
00288     OCTSTR(smsc-id)
00289     OCTSTR(shortcode)
00290 )
00291 
00292 
00293 MULTI_GROUP(smsc,
00294     OCTSTR(smsc)
00295     OCTSTR(smsc-id)
00296     OCTSTR(denied-smsc-id)
00297     OCTSTR(allowed-smsc-id)
00298     OCTSTR(preferred-smsc-id)
00299     OCTSTR(allowed-prefix)
00300     OCTSTR(denied-prefix)
00301     OCTSTR(preferred-prefix)
00302     OCTSTR(unified-prefix)
00303     OCTSTR(reroute)
00304     OCTSTR(reroute-smsc-id)
00305     OCTSTR(reroute-receiver)
00306     OCTSTR(reroute-dlr)
00307     OCTSTR(log-file)
00308     OCTSTR(log-level)
00309     OCTSTR(our-host)
00310     OCTSTR(alt-dcs)
00311     OCTSTR(throughput)
00312     OCTSTR(alt-charset)
00313     OCTSTR(host)
00314     OCTSTR(alt-host)
00315     OCTSTR(port)
00316     OCTSTR(use-ssl)
00317     OCTSTR(alt-port)
00318     OCTSTR(smsc-username)
00319     OCTSTR(smsc-password)
00320     OCTSTR(keepalive)
00321     OCTSTR(sim-buffering)
00322     OCTSTR(modemtype)
00323     OCTSTR(device)
00324     OCTSTR(speed)
00325     OCTSTR(validityperiod)
00326     OCTSTR(our-port)
00327     OCTSTR(receive-port)
00328     OCTSTR(connect-allow-ip)
00329     OCTSTR(system-id)
00330     OCTSTR(system-type)
00331     OCTSTR(address-range)
00332     OCTSTR(smsc_nua)
00333     OCTSTR(home_nua)
00334     OCTSTR(wait_report)
00335     OCTSTR(ois-debug-level)
00336     OCTSTR(modem-type)
00337     OCTSTR(pin)
00338     OCTSTR(phone)
00339     OCTSTR(send-url)
00340     OCTSTR(dlr-url)    
00341     OCTSTR(sender-prefix)
00342     OCTSTR(flow-control)
00343     OCTSTR(wait-ack)
00344     OCTSTR(wait-ack-expire)
00345     OCTSTR(no-sender)
00346     OCTSTR(no-coding)
00347     OCTSTR(window)
00348     OCTSTR(idle-timeout)
00349     OCTSTR(no-sep)
00350     OCTSTR(appname)
00351     OCTSTR(ussdc)
00352     OCTSTR(session-length)
00353     OCTSTR(my-number)
00354     OCTSTR(sms-center)
00355     OCTSTR(source-addr-ton)
00356     OCTSTR(source-addr-npi)
00357     OCTSTR(dest-addr-ton)
00358     OCTSTR(dest-addr-npi)
00359     OCTSTR(bind-addr-ton)
00360     OCTSTR(bind-addr-npi)
00361     OCTSTR(service-type)
00362     OCTSTR(source-addr-autodetect)
00363     OCTSTR(enquire-link-interval)
00364     OCTSTR(max-pending-submits)
00365     OCTSTR(reconnect-delay)
00366     OCTSTR(transceiver-mode)
00367     OCTSTR(interface-version)
00368     OCTSTR(priority)
00369     OCTSTR(notification-pid)
00370     OCTSTR(notification-addr)
00371     OCTSTR(msg-id-type)
00372     OCTSTR(no-dlr)
00373     OCTSTR(connection-timeout)
00374     OCTSTR(allowed-smsc-id-regex)
00375     OCTSTR(denied-smsc-id-regex)
00376     OCTSTR(preferred-smsc-id-regex)
00377     OCTSTR(allowed-prefix-regex)
00378     OCTSTR(denied-prefix-regex)
00379     OCTSTR(preferred-prefix-regex)
00380     OCTSTR(max-error-count)
00381     OCTSTR(alt-addr-charset)
00382     OCTSTR(status-success-regex)
00383     OCTSTR(status-permfail-regex)
00384     OCTSTR(status-tempfail-regex)
00385     OCTSTR(max-sms-octets)
00386     OCTSTR(login-prompt)
00387     OCTSTR(password-prompt)
00388 )
00389 
00390 
00391 MULTI_GROUP(sms-service,
00392     OCTSTR(name)
00393     OCTSTR(keyword)
00394     OCTSTR(aliases)    
00395     OCTSTR(url)
00396     OCTSTR(get-url)
00397     OCTSTR(post-url)
00398     OCTSTR(post-xml)
00399     OCTSTR(file)
00400     OCTSTR(text)
00401     OCTSTR(exec)
00402     OCTSTR(accepted-smsc)
00403     OCTSTR(accepted-smsc-regex)
00404     OCTSTR(accepted-account)
00405     OCTSTR(accepted-account-regex)
00406     OCTSTR(forced-smsc)
00407     OCTSTR(default-smsc)
00408     OCTSTR(faked-sender)
00409     OCTSTR(max-messages)
00410     OCTSTR(concatenation)
00411     OCTSTR(split-chars)
00412     OCTSTR(split-suffix)
00413     OCTSTR(omit-empty)
00414     OCTSTR(header)
00415     OCTSTR(footer)
00416     OCTSTR(prefix)
00417     OCTSTR(suffix)
00418     OCTSTR(assume-plain-text)
00419     OCTSTR(accept-x-kannel-headers)
00420     OCTSTR(strip-keyword)
00421     OCTSTR(send-sender)
00422     OCTSTR(catch-all)
00423     OCTSTR(allowed-prefix)
00424     OCTSTR(allowed-prefix-regex)
00425     OCTSTR(denied-prefix)
00426     OCTSTR(denied-prefix-regex)
00427     OCTSTR(allowed-receiver-prefix)
00428     OCTSTR(allowed-receiver-prefix-regex)
00429     OCTSTR(denied-receiver-prefix)
00430     OCTSTR(denied-receiver-prefix-regex)
00431     OCTSTR(white-list)
00432     OCTSTR(white-list-regex)
00433     OCTSTR(black-list)
00434     OCTSTR(black-list-regex)
00435     OCTSTR(dlr-url)
00436     OCTSTR(keyword-regex)
00437 )
00438 
00439 
00440 MULTI_GROUP(sendsms-user,
00441     OCTSTR(name)
00442     OCTSTR(username)
00443     OCTSTR(password)
00444     OCTSTR(user-deny-ip)
00445     OCTSTR(user-allow-ip)
00446     OCTSTR(forced-smsc)
00447     OCTSTR(default-smsc)
00448     OCTSTR(faked-sender)
00449     OCTSTR(default-sender)
00450     OCTSTR(max-messages)
00451     OCTSTR(concatenation)
00452     OCTSTR(split-chars)
00453     OCTSTR(split-suffix)
00454     OCTSTR(omit-empty)
00455     OCTSTR(header)
00456     OCTSTR(footer)
00457     OCTSTR(allowed-prefix)
00458     OCTSTR(denied-prefix)
00459     OCTSTR(white-list)
00460     OCTSTR(black-list)
00461     OCTSTR(dlr-url)
00462     OCTSTR(allowed-prefix-regex)
00463     OCTSTR(denied-prefix-regex)
00464     OCTSTR(white-list-regex)
00465     OCTSTR(black-list-regex)
00466 )
00467 
00468 
00469 MULTI_GROUP(ota-setting,
00470     OCTSTR(ota-id)
00471     OCTSTR(location)
00472     OCTSTR(service)
00473     OCTSTR(ipaddress)
00474     OCTSTR(phonenumber)
00475     OCTSTR(bearer)
00476     OCTSTR(connection)
00477     OCTSTR(calltype)
00478     OCTSTR(speed)
00479     OCTSTR(pppsecurity)
00480     OCTSTR(authentication)
00481     OCTSTR(login)
00482     OCTSTR(secret)
00483 )
00484 
00485 
00486 MULTI_GROUP(ota-bookmark,
00487     OCTSTR(ota-id)
00488     OCTSTR(name)
00489     OCTSTR(url)
00490 )
00491 
00492 
00493 MULTI_GROUP(modems,
00494     OCTSTR(id)
00495     OCTSTR(name)
00496     OCTSTR(detect-string)
00497     OCTSTR(detect-string2)
00498     OCTSTR(init-string)
00499     OCTSTR(speed)
00500     OCTSTR(enable-hwhs)
00501     OCTSTR(need-sleep)
00502     OCTSTR(no-pin)
00503     OCTSTR(no-smsc)
00504     OCTSTR(sendline-sleep)
00505     OCTSTR(keepalive-cmd)
00506     OCTSTR(broken)
00507     OCTSTR(message-storage)
00508     OCTSTR(enable-mms)
00509     OCTSTR(reset-string)
00510 )
00511 
00512 
00513 MULTI_GROUP(mysql-connection,
00514     OCTSTR(id)
00515     OCTSTR(host)
00516     OCTSTR(port)
00517     OCTSTR(username)
00518     OCTSTR(password)
00519     OCTSTR(database)
00520     OCTSTR(max-connections)
00521 )
00522 
00523 
00524 MULTI_GROUP(oracle-connection,
00525     OCTSTR(id)
00526     OCTSTR(username)
00527     OCTSTR(password)
00528     OCTSTR(tnsname)
00529     OCTSTR(max-connections)
00530 )
00531 
00532 
00533 MULTI_GROUP(sdb-connection,
00534     OCTSTR(id)
00535     OCTSTR(url)
00536     OCTSTR(max-connections)
00537 )
00538 
00539 
00540 MULTI_GROUP(pgsql-connection,
00541     OCTSTR(id)
00542     OCTSTR(host)
00543     OCTSTR(port)
00544     OCTSTR(username)
00545     OCTSTR(password)
00546     OCTSTR(database)
00547     OCTSTR(max-connections)
00548 )
00549 
00550 
00551 MULTI_GROUP(sqlite3-connection,
00552     OCTSTR(id)
00553     OCTSTR(database)
00554     OCTSTR(max-connections)
00555 )
00556 
00557  
00558 SINGLE_GROUP(dlr-db,
00559     OCTSTR(id)
00560     OCTSTR(table)
00561     OCTSTR(field-smsc)
00562     OCTSTR(field-timestamp)
00563     OCTSTR(field-source)
00564     OCTSTR(field-destination)
00565     OCTSTR(field-service)
00566     OCTSTR(field-url)
00567     OCTSTR(field-mask)
00568     OCTSTR(field-status)
00569     OCTSTR(field-boxc-id)
00570 )
00571 
00572 
00573 SINGLE_GROUP(radius-acct,
00574     OCTSTR(our-host)
00575     OCTSTR(our-port)
00576     OCTSTR(remote-host)
00577     OCTSTR(remote-port)
00578     OCTSTR(remote-timeout)
00579     OCTSTR(nas-ports)
00580     OCTSTR(secret-nas)
00581     OCTSTR(secret-radius)
00582     OCTSTR(unified-prefix)
00583 )
00584 
00585 #undef OCTSTR
00586 #undef SINGLE_GROUP
00587 #undef MULTI_GROUP
00588 
00589 
00590 
00591 
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.