# This the configuration file of the Amatix InstantPBX # Only the basic configuration parameters are stored here. # If you want a higher customisation level, you have to edit # the scripts in the Amatix directory. # The parameters marked with (+) may appear more than 1 time ########################################################### # (+) # The setting for the ISDN controllers managed by the CAPI # You can set here the MSNs associated to the controller # and the context of the incoming calls on this controller # # Syntax: DEVICETYPE OUTMSN INMSN CONTEXT PREFIX # DEVICETYPE = The type of the controller (CAPI) # OUTMSN = The MSNs used for the outgoing calls # INMSN = Which MSNs are managd by this device # FAXMSN = Which MSNs are sent to the fax # CONTEXT = What happens with the incoming call # PREFIX = The prefix used to place an outgoing call through this controller ########################################################### CAPI 0 * - incoming - CAPI 1 * - auto-attendant - CAPI 2 * - incoming - CAPI 3 * - incoming - ########################################################### # (+) # The setting for the ISDN controllers managed by the mISDN # You can set here the MSNs associated to the controller # and the context of the incoming calls on this controller # # Syntax: DEVICETYPE OUTMSN INMSN CONTEXT PREFIX # DEVICETYPE = The type of the controller (mISDN) # OPERATIONMODE = The operation mode (TE or NT) # PROTOCOL = The used protocol (P2MP or PTP) # OUTMSN = The MSNs used for the outgoing calls (ignored for the NT operationmode) # INMSN = Which MSNs are managed by this device (extensions for the NT operationmode) # FAXMSN = Which MSNs are sent to the fax # CONTEXT = What happens with the incoming call # PREFIX = The prefix used to place an outgoing call through this controller (ignored for the NT operationmode) ########################################################### mISDN TE P2MP 0 * - incoming - mISDN TE P2MP 1 * - auto-attendant - mISDN TE P2MP 2 * - incoming - mISDN TE P2MP 3 * - incoming - ########################################################### # (+) # The setting for the analog controllers managed by the zaptel # Syntax: DEVICETYPE CONTEXT PREFIX # DEVICETYPE = The type of the controller (ZAP) # CONTEXT = What happens with the incoming call # PREFIX = The prefix used to place an outgoing call through this controller ########################################################### ZAP incoming - ZAP auto-attendant - ZAP incoming - ZAP incoming - ########################################################### # (+) # The setting for the SIP trunks. # # Syntax: DEVICETYPE DOMAIN HOST USERNAME PASSORD CODECS DTMF CONTEXT PREFIX # DEVICETYPE = The type of the controller (SIP trunk) # DOMAIN = The domain name of the VoIP provider # HOST = The host name of the SIP server of the VoIP provider # USERNAME = The account name on the VoIP provider # PASSWORD= The password of your account on the VoIP provider # CODECS = An ordered list of codecs you want to use. # DTMF = The type of the DTMF signaling (inband, rfc2833, info) # CONTEXT = What happens with the incoming call # PREFIX = The prefix used to place an outgoing call through this controller # # Here is the configuration needed to use the trial account on "sipdiscount.com" #SIPTRUNK sipdiscount.com sip1.sipdiscount.com test test alaw,ulaw inband incoming - ########################################################### ########################################################### # (+) # The setting for the SIP extensions. # # Syntax: DEVICETYPE NUMBER NAME EMAIL PASSWORD CODECS DTMF CONTEXT # DEVICETYPE = The type of the controller (SIP extension) # NUMBER = The extension number # NAME = The extension name (blanks are not allowed) # EMAIL = The email address where the mailbox notifications will be sent. # PASSWORD = The extension password # CODECS = An ordered list of codecs the extension may use. # DTMF = The type of the DTMF signaling (inband, rfc2833, info) # NAT = This variable changes the behaviour of Asterisk for clients behind a firewall (yes/no). # CONTEXT = The context assigned to the extension ########################################################### SIPEXTEN 700 Intern-700 - 1234 alaw,ulaw,g726,ilbc,gsm,h261,h263 rfc2833 no std-extension SIPEXTEN 701 Intern-701 - 1234 alaw,ulaw,g726,ilbc,gsm,h261,h263 rfc2833 no std-extension SIPEXTEN 702 Intern-702 - 1234 alaw,ulaw,g726,ilbc,gsm,h261,h263 rfc2833 no std-extension SIPEXTEN 703 Intern-703 - 1234 alaw,ulaw,g726,ilbc,gsm,h261,h263 rfc2833 no std-extension ########################################################### # (+) # The setting for the IAX2 trunks. # # Syntax: DEVICETYPE HOST USERNAME PASSORD CODECS CONTEXT PREFIX # DEVICETYPE = The type of the controller (IAX2 trunk) # HOST = The host name of the IAX2 server of the VoIP provider # USERNAME = The account name on the VoIP provider # PASSWORD= The password of your account on the VoIP provider # CODECS = An ordered list of codecs you want to use. # CONTEXT = What happens with the incoming call # PREFIX = The prefix used to place an outgoing call through this controller # # Here is an example for an IAX2 trunk #IAX2TRUNK iaxtel.com test test gsm,alaw,ulaw incoming - ########################################################### ########################################################### # (+) # The setting for the IAX2 extensions. # # Syntax: DEVICETYPE NUMBER NAME EMAIL PASSWORD CODECS CONTEXT # DEVICETYPE = The type of the controller (IAX2 extension) # NUMBER = The extension number # NAME = The extension name (blanks are not allowed) # EMAIL = The email address where the mailbox notifications will be sent. # PASSWORD = The extension password # CODECS = An ordered list of codecs the extension may use. # CONTEXT = The context assigned to the extension ########################################################### IAX2EXTEN 750 Intern-750 - 1234 alaw,ulaw,g726,ilbc,gsm std-extension IAX2EXTEN 751 Intern-751 - 1234 alaw,ulaw,g726,ilbc,gsm std-extension IAX2EXTEN 752 Intern-752 - 1234 alaw,ulaw,g726,ilbc,gsm std-extension IAX2EXTEN 753 Intern-753 - 1234 alaw,ulaw,g726,ilbc,gsm std-extension ########################################################### # The timezone settings ########################################################### TIMEZONE Europe/Bucharest ########################################################### # The hostname of this machine ########################################################### HOSTNAME Amatix ########################################################### # The network settings # # Syntax: DEVICETYPE DHCP IPADDRESS NETMASK GATEWAY DNS1 DNS2 DNS3 DNSSUFFIX # DEVICETYPE = The type of the controller (Ethernet) # DHCP = Try first the DHCP to get the network settings (YES/NO) # IPADDRESS = The IP Address # NETMASK = The subnet mask # GATEWAY = The gateway address # DNS1 = The first DNS server # DNS2 = The second DNS server # DNS3 = The third DNS server # DNSSUFFIX = Search list for short hostname lookups. ########################################################### ETHERNET YES 192.168.0.250 255.255.255.0 - - - - - ########################################################### # The NAT router settings # Set the EXTERNIP and LOCALNET if we are behind a NAT router (needed for SIP) # # Syntax : DEVICETYPE EXTERNIP LOCALNET # DEVICETYPE = The type of the router (NAT) # EXTERNIP = The external IP address of the NAT router # LOCALNET = The local network address # # Here is an example for a NAT router having the external IP address 80.90.100.110 #NAT 80.90.100.110 192.168.1.0/255.255.255.0 ########################################################### ########################################################### # The encrypted root password # You can generate the encrypted password using the following command: # mkpasswd YOURNEWPASSWORD ########################################################### ROOTPASS F7zWAtoXBuCwY ########################################################### # The services to be started # You can set here which services will be started on boot. # The order is important for the LiveCD version. ########################################################### SERVICES sysklogd,refreshsip,ipcop,postgresql,postfix,dovecot,ssh,apache,asterisk ########################################################### # The next-hop destination of non-local mail # The hostname set here will be ALWAYS used to deliver the email for non-local destinations. # # Syntax: RELAYTYPE HOST USER PASS # RELAYTYPE = The relay type (EMAILRELAY) # HOST = The host used to deliver the email for non-local destinations. # USER = The user name for authentication (if required by the relay host) # PASS = The password for authentication (if required by the relay host) ########################################################### EMAILRELAY - - - ########################################################### # The Call Detail Records (CDR) database location # Syntax: DATABASETYPE DBHOST DBNAME DBUSER DBPASS ########################################################### CDRDATA localhost asteriskcdr asterisk asterisk ########################################################### # The eGroupWare database location # Syntax: DATABASETYPE DBHOST DBNAME DBUSER DBPASS ########################################################### EGWDATA localhost egroupware egroupware egroupware ########################################################### # The A2Billing database location # Syntax: DATABASETYPE DBHOST DBNAME DBUSER DBPASS ########################################################### A2BDATA localhost mya2billing a2billinguser a2billing ########################################################### # The A2Billing's Asterisk Manager Interface account # Syntax: AMITYPE AMIHOST AMIUSER AMIPASS ########################################################### A2BAMI localhost a2billinguser a2billing ########################################################### # (+) # SMTP clients which are allowed to relay mail through # our SMTP server (Postfix) # Syntax: ACTYPE ACADDR # ACTYPE = The access type (SMTPACCESS) # ACADDR = The network addresses or network/netmask. # The netmask specifies the number of bits # in the network part of a host address. # # Example: Allow connections from the local network to relay emails # SMTPACCESS 192.168.1.0/24 ########################################################### SMTPACCESS 127.0.0.0/8 ########################################################### # (+) # The host-based connection rules to the local PostgreSQL server. # See also the pg_hba.conf in the PostgreSQL documentation. # Syntax: ACTYPE ACDB ACUSER ACADDR ACMASK ACMETHOD # ACTYPE = The access type (DBACCESS) # ACDB = The database name # ACUSER = The user name # ACADDR = The IP Address # ACMASK = The network mask # ACMETHOD = The authentication method # # Example: Allow connections from the local network to all databases # DBACCESS all all 192.168.1.0 255.255.255.0 password ########################################################### DBACCESS all all 127.0.0.1 255.255.255.255 password ########################################################### # (+) # The connection rules to the Asterisk Manager Interface. # Syntax: ACTYPE ACUSER ACPASS ACPERMIT ACDENY ACREAD ACWRITE # ACTYPE = The access type (AMIACCESS) # ACUSER = The user name # ACPASS = The password # ACPERMIT = The IPs that user can connect from # ACDENY = The IPs that user can not connect from # ACREAD = The permissions for reading # ACWRITE = The permissions for writing # # Example: Allow connections from the local host and another remote office for user Mark # AMIACCESS Mark markssecret 127.0.0.1/255.255.255.0,80.90.100.110/255.255.255.255 0.0.0.0/0.0.0.0 system,call,log,verbose,command,agent,user all ########################################################### AMIACCESS a2billinguser a2billing 127.0.0.1/255.255.255.0 0.0.0.0/0.0.0.0 system,call,log,verbose,command,agent,user system,call,log,verbose,command,agent,user