#------------------------------------------------------------------------------ # /etc/check.d/asterisk.exp - Configuration check regex file # # Creation: 19.11.2004 fw # Last Update: $Id$ # # Copyright (c) 2004-2005 Fabian Wolter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #------------------------------------------------------------------------------ ASTERISK_LANGUAGE = 'de|en' : 'Must be en for English or de for German' ASTERISK_STRINGS = '[-0-9A-Za-z. ]+' : 'May contain characters, digits, points, dashes and spaces' ASTERISK_ESTRINGS = '(RE:ASTERISK_STRINGS)|()' : 'May contain characters, digits and spaces or nothing' ASTERISK_STRING = '[-0-9A-Za-z.]+' : 'May contain characters and digits' ASTERISK_ESTRING = '(RE:ASTERISK_STRING)|()' : 'May contain characters and digits or nothing' ASTERISK_PHONENUMBER = '[0-9*#]+' : 'May contain digits, "*" and "#"' ASTERISK_EPHONENUMBER = '(RE:ASTERISK_PHONENUMBER)|()' : 'May contain digits, "*" and "#" or nothing' ASTERISK_PHONENUMBERS = '[0-9*# ]+' : 'May contain digits, "*", "#" and spaces' ASTERISK_EPHONENUMBERS = '(RE:ASTERISK_PHONENUMBERS)|()' : 'May contain digits, "*", "#" and spaces or nothing' ASTERISK_EIP_OR_EFQDN = '(RE:IPADDR)|(RE:FQDN)|()' : 'IP address or hostname + domain name (FQDN)' ASTERISK_GROUP = '(capi)|(fx)[1-9]*' : 'Variable must be capi1, capi2 or fx1, ...' ASTERISK_TYPE = 'sip|disa|sccp|unistim|iax|vbox|internal|capi|fx|isdn' : 'TYPE must be sip, capi, isdn, hfcs, sccp, unistim, fx or disa' ASTERISK_FX_TYPE = 'fxo|fxs|none' : 'TYPE must be fxs, fxo or none' ASTERISK_HFCS_TYPE = 'zaphfc|multi' : 'TYPE must be zaphfc or multi' ASTERISK_SIP_OR_PHONE = '(RE:ASTERISK_PHONENUMBER)|(RE:EMAILADDR)|()' : 'May contain a MSN or a SIP address (user@domain.tld)' ASTERISK_EFALLBACK = '(capi:(RE:ASTERISK_PHONENUMBER)|(RE:ASTERISK_GROUP):(RE:ASTERISK_PHONENUMBER)|(sip|iax):(RE:ASTERISK_STRING)|( ))*' : 'Must be given in the format sip:[SIP account name] capi:[outgoing MSN] hfcs[ASTERISK_GROUP_n_*]:[outgoing MSN] e.g. "sip:sipgate capi:123456 sip:gmx" fx1:123456' ASTERISK_MULTIPLE_MAILADDR = '((RE:MAILADDR)[,]{0,1})*(RE:EMAILADDR)' : 'Must be one email address or multiple addresses seperated by commas'