cfg.def
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:8k
源码类别:

手机WAP编程

开发平台:

WINDOWS

  1. /*
  2.  * cfg.def - definition of configuration groups and variables
  3.  *
  4.  * Lars Wirzenius
  5.  */
  6. #ifndef OCTSTR
  7. #error OCTSTR not defined.
  8. #endif
  9. #ifndef SINGLE_GROUP
  10. #error SINGLE_GROUP not defined.
  11. #endif
  12. #ifndef MULTI_GROUP
  13. #error MULTI_GROUP not defined.
  14. #endif
  15. SINGLE_GROUP(core,
  16.     OCTSTR(admin-port)
  17.     OCTSTR(admin-port-ssl)
  18.     OCTSTR(admin-password)
  19.     OCTSTR(status-password)
  20.     OCTSTR(admin-deny-ip)
  21.     OCTSTR(admin-allow-ip)
  22.     OCTSTR(smsbox-port)
  23.     OCTSTR(smsbox-port-ssl)
  24.     OCTSTR(wapbox-port)
  25.     OCTSTR(wapbox-port-ssl)
  26.     OCTSTR(box-deny-ip)
  27.     OCTSTR(box-allow-ip)
  28.     OCTSTR(udp-deny-ip)
  29.     OCTSTR(udp-allow-ip)
  30.     OCTSTR(wdp-interface-name)
  31.     OCTSTR(log-file)
  32.     OCTSTR(log-level)
  33.     OCTSTR(access-log)
  34.     OCTSTR(store-file)
  35.     OCTSTR(unified-prefix)
  36.     OCTSTR(white-list)
  37.     OCTSTR(black-list)
  38.     OCTSTR(http-proxy-host)
  39.     OCTSTR(http-proxy-port)
  40.     OCTSTR(http-proxy-exceptions)
  41.     OCTSTR(http-proxy-username)
  42.     OCTSTR(http-proxy-password)
  43.     OCTSTR(ssl-client-certkey-file)
  44.     OCTSTR(ssl-server-cert-file)
  45.     OCTSTR(ssl-server-key-file)
  46.     OCTSTR(ssl-trusted-ca-file)
  47.     OCTSTR(dlr-storage)
  48.     OCTSTR(maximum-queue-length)
  49. )
  50. SINGLE_GROUP(wapbox,
  51.     OCTSTR(bearerbox-host)
  52.     OCTSTR(timer-freq)
  53.     OCTSTR(map-url)
  54.     OCTSTR(map-url-max)
  55.     OCTSTR(map-url-0)
  56.     OCTSTR(map-url-1)
  57.     OCTSTR(map-url-2)
  58.     OCTSTR(map-url-3)
  59.     OCTSTR(map-url-4)
  60.     OCTSTR(map-url-5)
  61.     OCTSTR(map-url-6)
  62.     OCTSTR(map-url-7)
  63.     OCTSTR(map-url-8)
  64.     OCTSTR(map-url-9)
  65.     OCTSTR(device-home)
  66.     OCTSTR(log-file)
  67.     OCTSTR(log-level)
  68.     OCTSTR(syslog-level)
  69.     OCTSTR(force-sar)
  70.     OCTSTR(smart-errors)
  71.     OCTSTR(access-log)
  72. )
  73. SINGLE_GROUP(wtls,
  74.     OCTSTR(certificate-file)
  75.     OCTSTR(privatekey-file)
  76.     OCTSTR(privatekey-password)
  77. )
  78. SINGLE_GROUP(ppg,
  79.     OCTSTR(ppg-url)
  80.     OCTSTR(ppg-port)
  81.     OCTSTR(ppg-ssl-port)
  82.     OCTSTR(trusted-pi)
  83.     OCTSTR(concurrent-pushes)
  84.     OCTSTR(users)
  85.     OCTSTR(ppg-allow-ip)
  86.     OCTSTR(ppg-deny-ip)
  87.     OCTSTR(ssl-server-cert-file)
  88.     OCTSTR(ssl-server-key-file)
  89.     OCTSTR(global-sender)
  90. )
  91. MULTI_GROUP(wap-push-user,
  92.     OCTSTR(wap-push-user)
  93.     OCTSTR(ppg-username)
  94.     OCTSTR(ppg-password)
  95.     OCTSTR(country-prefix)
  96.     OCTSTR(allowed-prefix)
  97.     OCTSTR(denied-prefix)
  98.     OCTSTR(white-list)
  99.     OCTSTR(black-list)
  100.     OCTSTR(deny-ip)
  101.     OCTSTR(allow-ip)
  102. )
  103. SINGLE_GROUP(test-ppg,
  104.     OCTSTR(retries)
  105.     OCTSTR(pi-ssl)
  106.     OCTSTR(ssl-client-certkey-file)
  107.     OCTSTR(ssl-trusted-ca-file)
  108. )
  109. SINGLE_GROUP(configuration,
  110.     OCTSTR(push-url)
  111.     OCTSTR(content-file)
  112.     OCTSTR(pap-file)
  113.     OCTSTR(username)
  114.     OCTSTR(password)
  115. )
  116. SINGLE_GROUP(smsbox,
  117.     OCTSTR(bearerbox-host)
  118.     OCTSTR(sendsms-port)
  119.     OCTSTR(sendsms-port-ssl)
  120.     OCTSTR(sendsms-url)
  121.     OCTSTR(sendota-url)
  122.     OCTSTR(xmlrpc-url)
  123.     OCTSTR(sendsms-chars)
  124.     OCTSTR(global-sender)
  125.     OCTSTR(log-file)
  126.     OCTSTR(log-level)
  127.     OCTSTR(access-log)
  128.     OCTSTR(sms-length)
  129.     OCTSTR(reply-couldnotfetch)
  130.     OCTSTR(reply-couldnotrepresent)
  131.     OCTSTR(reply-requestfailed)
  132.     OCTSTR(reply-emptymessage)
  133.     OCTSTR(allowed-prefix)
  134.     OCTSTR(denied-prefix)
  135.     OCTSTR(white-list)
  136.     OCTSTR(black-list)
  137.     OCTSTR(mo-recode)
  138.     OCTSTR(xmlrpc-url)
  139.     OCTSTR(http-request-retry)
  140.     OCTSTR(http-queue-delay)
  141. )
  142. MULTI_GROUP(smsc,
  143.     OCTSTR(smsc)
  144.     OCTSTR(smsc-id)
  145.     OCTSTR(denied-smsc-id)
  146.     OCTSTR(allowed-smsc-id)
  147.     OCTSTR(preferred-smsc-id)
  148.     OCTSTR(allowed-prefix)
  149.     OCTSTR(denied-prefix)
  150.     OCTSTR(preferred-prefix)
  151.     OCTSTR(unified-prefix)
  152.     OCTSTR(alt-charset)
  153.     OCTSTR(host)
  154.     OCTSTR(alt-host)
  155.     OCTSTR(port)
  156.     OCTSTR(alt-port)
  157.     OCTSTR(smsc-username)
  158.     OCTSTR(smsc-password)
  159.     OCTSTR(keepalive)
  160.     OCTSTR(sim-buffering)
  161.     OCTSTR(modemtype)
  162.     OCTSTR(device)
  163.     OCTSTR(speed)
  164.     OCTSTR(validityperiod)
  165.     OCTSTR(our-host)
  166.     OCTSTR(our-port)
  167.     OCTSTR(receive-port)
  168.     OCTSTR(connect-allow-ip)
  169.     OCTSTR(system-id)
  170.     OCTSTR(system-type)
  171.     OCTSTR(address-range)
  172.     OCTSTR(smsc_nua)
  173.     OCTSTR(home_nua)
  174.     OCTSTR(wait_report)
  175.     OCTSTR(ois-debug-level)
  176.     OCTSTR(modem-type)
  177.     OCTSTR(pin)
  178.     OCTSTR(phone)
  179.     OCTSTR(send-url)
  180.     OCTSTR(sender-prefix)
  181.     OCTSTR(flow-control)
  182.     OCTSTR(wait-ack)
  183.     OCTSTR(no-sender)
  184.     OCTSTR(no-coding)
  185.     OCTSTR(alt-dcs)
  186.     OCTSTR(throughput)
  187.     OCTSTR(window)
  188.     OCTSTR(idle-timeout)
  189.     OCTSTR(no-sep)
  190.     OCTSTR(appname)
  191.     OCTSTR(ussdc)
  192.     OCTSTR(session-length)
  193.     OCTSTR(retry)
  194.     OCTSTR(my-number)
  195.     OCTSTR(sms-center)
  196.     OCTSTR(source-addr-ton)
  197.     OCTSTR(source-addr-npi)
  198.     OCTSTR(dest-addr-ton)
  199.     OCTSTR(dest-addr-npi)
  200.     OCTSTR(source-addr-autodetect)
  201.     OCTSTR(enquire-link-interval)
  202.     OCTSTR(max-pending-submits)
  203.     OCTSTR(reconnect-delay)
  204.     OCTSTR(transceiver-mode)
  205.     OCTSTR(interface-version)
  206.     OCTSTR(priority)
  207.     OCTSTR(notification-pid)
  208.     OCTSTR(notification-addr)
  209.     OCTSTR(msg-id-type)
  210. )
  211. MULTI_GROUP(sms-service,
  212.     OCTSTR(name)
  213.     OCTSTR(keyword)
  214.     OCTSTR(aliases)    
  215.     OCTSTR(url)
  216.     OCTSTR(get-url)
  217.     OCTSTR(post-url)
  218.     OCTSTR(post-xml)
  219.     OCTSTR(file)
  220.     OCTSTR(text)
  221.     OCTSTR(exec)
  222.     OCTSTR(accepted-smsc)
  223.     OCTSTR(forced-smsc)
  224.     OCTSTR(default-smsc)
  225.     OCTSTR(faked-sender)
  226.     OCTSTR(max-messages)
  227.     OCTSTR(concatenation)
  228.     OCTSTR(split-chars)
  229.     OCTSTR(split-suffix)
  230.     OCTSTR(omit-empty)
  231.     OCTSTR(header)
  232.     OCTSTR(footer)
  233.     OCTSTR(prefix)
  234.     OCTSTR(suffix)
  235.     OCTSTR(assume-plain-text)
  236.     OCTSTR(accept-x-kannel-headers)
  237.     OCTSTR(strip-keyword)
  238.     OCTSTR(send-sender)
  239.     OCTSTR(catch-all)
  240.     OCTSTR(allowed-prefix)
  241.     OCTSTR(denied-prefix)
  242.     OCTSTR(allowed-receiver-prefix)
  243.     OCTSTR(denied-receiver-prefix)
  244.     OCTSTR(white-list)
  245.     OCTSTR(black-list)
  246.     OCTSTR(dlr-url)
  247. )
  248. MULTI_GROUP(sendsms-user,
  249.     OCTSTR(name)
  250.     OCTSTR(username)
  251.     OCTSTR(password)
  252.     OCTSTR(user-deny-ip)
  253.     OCTSTR(user-allow-ip)
  254.     OCTSTR(forced-smsc)
  255.     OCTSTR(default-smsc)
  256.     OCTSTR(faked-sender)
  257.     OCTSTR(default-sender)
  258.     OCTSTR(max-messages)
  259.     OCTSTR(concatenation)
  260.     OCTSTR(split-chars)
  261.     OCTSTR(split-suffix)
  262.     OCTSTR(omit-empty)
  263.     OCTSTR(header)
  264.     OCTSTR(footer)
  265.     OCTSTR(allowed-prefix)
  266.     OCTSTR(denied-prefix)
  267.     OCTSTR(white-list)
  268.     OCTSTR(black-list)
  269.     OCTSTR(dlr-url)
  270. )
  271. MULTI_GROUP(ota-setting,
  272.     OCTSTR(ota-id)
  273.     OCTSTR(location)
  274.     OCTSTR(service)
  275.     OCTSTR(ipaddress)
  276.     OCTSTR(phonenumber)
  277.     OCTSTR(bearer)
  278.     OCTSTR(connection)
  279.     OCTSTR(calltype)
  280.     OCTSTR(speed)
  281.     OCTSTR(pppsecurity)
  282.     OCTSTR(authentication)
  283.     OCTSTR(login)
  284.     OCTSTR(secret)
  285. )
  286. MULTI_GROUP(ota-bookmark,
  287.     OCTSTR(ota-id)
  288.     OCTSTR(name)
  289.     OCTSTR(url)
  290. )
  291. SINGLE_GROUP(emibox,
  292.        OCTSTR(port)
  293.        OCTSTR(sessions)
  294.        OCTSTR(log-file)
  295.        OCTSTR(log-level)
  296. )
  297. SINGLE_GROUP(webbox,
  298.        OCTSTR(forward-host)
  299.        OCTSTR(forward-username)
  300.        OCTSTR(forward-password)
  301.        OCTSTR(forward-port)
  302.        OCTSTR(port)
  303.        OCTSTR(sessions)
  304.        OCTSTR(log-file)
  305.        OCTSTR(log-level)
  306. )
  307. SINGLE_GROUP(milbox,
  308.     OCTSTR(admin-port)
  309.     OCTSTR(log-file)
  310.     OCTSTR(log-level)
  311.     OCTSTR(server-host)
  312.     OCTSTR(server-port)
  313.     OCTSTR(client-port)
  314.     OCTSTR(sms-service-host)
  315.     OCTSTR(sms-service-port)
  316.     OCTSTR(ussd-service-host)
  317.     OCTSTR(ussd-service-port)
  318.     OCTSTR(db-server-host)
  319.     OCTSTR(db-server-port)
  320.     OCTSTR(db-server-dbname)
  321.     OCTSTR(db-server-user)
  322.     OCTSTR(db-server-pass)
  323.     OCTSTR(enable-shortcodes)
  324.     OCTSTR(emi-interface)
  325.     OCTSTR(emi-port)
  326.     OCTSTR(smpp-interface)
  327.     OCTSTR(smpp-port)
  328. )
  329. MULTI_GROUP(modems,
  330.     OCTSTR(id)
  331.     OCTSTR(name)
  332.     OCTSTR(detect-string)
  333.     OCTSTR(detect-string2)
  334.     OCTSTR(init-string)
  335.     OCTSTR(speed)
  336.     OCTSTR(enable-hwhs)
  337.     OCTSTR(need-sleep)
  338.     OCTSTR(no-pin)
  339.     OCTSTR(no-smsc)
  340.     OCTSTR(sendline-sleep)
  341.     OCTSTR(keepalive-cmd)
  342.     OCTSTR(broken)
  343.     OCTSTR(message-storage)
  344.     OCTSTR(enable-mms)
  345. )
  346. MULTI_GROUP(mysql-connection,
  347.     OCTSTR(id)
  348.     OCTSTR(host)
  349.     OCTSTR(mysql-username)
  350.     OCTSTR(mysql-password)
  351.     OCTSTR(database)
  352. )
  353. MULTI_GROUP(sdb-connection,
  354.     OCTSTR(id)
  355.     OCTSTR(url)
  356. )
  357.  
  358. SINGLE_GROUP(dlr-db,
  359.     OCTSTR(id)
  360.     OCTSTR(table)
  361.     OCTSTR(field-smsc)
  362.     OCTSTR(field-timestamp)
  363.     OCTSTR(field-source)
  364.     OCTSTR(field-destination)
  365.     OCTSTR(field-service)
  366.     OCTSTR(field-url)
  367.     OCTSTR(field-mask)
  368.     OCTSTR(field-status)
  369. )
  370. #undef OCTSTR
  371. #undef SINGLE_GROUP
  372. #undef MULTI_GROUP