gdc release 0.9 commands to m3 init free_pool printers="001110911111000" language="00 " init buffer 0,1,2,3 init dbs_free_pool init tln_dbs lindfeeds=00 init ext_dbs dbs init from the stored data in in the modul3 init buffers init the buffer 0,1,2,3 set printers=abcdefghijklmno define the destination of the printouts all destinations in on string. set printerx=n Define the destination of printout for single parameter. x ... is one of the printer a-o below. n ... is one of the printernumber see below. Printerparameter: a ... check-in ticket 1 = printer1 0 = no printing (only if there are some SMDR-Records or the extesion is already checked in.) b ... check-out ticket 1 = printer1 0 = no printing on empty c ... phone-booth ticket same as parameter b d ... room-state records 1 = printer1 2 = printer2 0 = no printing 9 = save as SMDR e ... wakeup records same as parameter d f ... all other messages comming from the PABX and not listed print out to 1 = printer1 2 = printer2 0 = no printing g ... incomming SMDR records same as parameter d h ... manuell printing lists same as parameter f i ... automatic print out ( daily and monthly reports) same as parameter f j ... single ticket destination (generated with the code 80-89 from ext-999) same as parameter f k ... error print out l ... printer destination for imediate prints m ... not used n ... Print Zusatzkosten if "1" if "0" no print (save) Zusatzkosten o ... suppress formfeed to printers 1 ... suppress formfeed to printer 1 2 ... suppress formfeed to printer 2 3 ... suppress formfeed to both printers set hotel_name=tttttttttttttt define the hotel name up to 20 chars set linefeeds=nn number of linefeeds (00 to 99) after a ticket,smdr or mess if the number of linefeeds is 0 the AFS generate a FF (formfeed). set ext nnnntpdnsxxxx define the extensionnumber nnnn as type t, printout p, duration d and x as dummy (must input). nnnn = Extension number up to 4 digit extension number left justifyed ( digits are not used filled with spacees). t= A for administration B for barphone P for phonebooth R for room p= S for standardptint I for immediate T for ticket d= D for daily M for monthly N for no automatic printing x for undef n= 0-9 logic number for print a ticket with the status-code x08n ex. 0081 will print the last smdr_record as ticket s= x for save record for that extension N for do not save SMDR data detail only save the summ for that extension set euro=n n= 0: PABX send ATS > GDC print ATS 1: PABX send ATS > GDC print ATS and EURO 2: PABX send EURO > GDC print EURO and ATS 3: PABX send EURO > GDC print EURO cha ext nnnntpdnsxxxx change the extension nnn to the parameter (see the set tln command) del ext nnnn delete the extension nnn from the ext_dbs If the extension has records stored, make a printout of all SMDR-records and after the printing the extension is deleted. disp ext_dbs display the whole ext_dbs disp ext nnnn display the ext_dbs configuration for extension nnn. disp config display the pointers into the free_cell_dbs disp reco dbs rrr display dbs reco from dbs (dbs) the reco rrr. ***************************************************************************** ***************************************************************************** ***************************************************************************** Funktions via the dummy extension-999 Ausdruck der Gebuehrenliste eines Teilnehmers ohne loeschen. Zi-Status 1nnn ... nnn Teilnehmernummer Ausdruck der Gebuehrenliste eines Teilnehmers mit loeschen. Zi-Status 0nnn ... nnn Teilnehmernummer ***************************************************************************** Teilnehmer, welche nicht gefunden werden koennen, werden automatisch in die TLN_DBS aufgenommen. Die Eintragung in die TLN_DBS erfolgt nach folgender Rule: Wird ein Gebuehrendatensatz empfangen, wird der Teilnehmer als ADMINISTRARTIONS-EXTENSION aufgenommen. Die Konfiguration default ist "ASMxxxxxx". Wird ein Check_in Ticket empfangen, wird der Teilnehmer als ROOM-EXTENSION aufgenommen. Die Konfiguration default ist "RSxxxxxxx" Nach der Aufnahme in die TLN_DBS wird der aktuelle Datensatz gespeichert. ***************************************************************************** debug variable #define debug_input All the inputstring from modul 1 are forwarded to channel 4 for test. #define debug_output All the strings which are transfered to any of the output buffers will also forwarded the channel 4 for testing. #define werbung On each ticket send to the printer, the bottom line contents the string "---------------------------------- Alcatel Austria AG ------". ***************************************************************************** COMMANDS via Zimmerstatus ------------------------- TLN# ... 999 code ... x010 print all smdr for rooms x011 print open sum of room x012 print closed sum of room x013 print roomstate x019 clear closed sum of room code ... x020 print smdr of bar immediate x021 print open sum of bar x022 print closed sum of bar x029 clear closed sum of bar code ... x030 print smdr of phonebooth immediate x031 print open sum of phonebooth x032 print closed sum of phonebooth x039 clear closed sum of phonebooth code ... x040 print smdr of administration immediate x041 print open sum of administration x042 print closed sum of administration x048 print smdr of administration with billing x049 clear closed sum of administration code ... x080 print a ticket for extension 0 x081 print a ticket for extension 1 . . . x089 print ba ticket for extension 9 extension 0-9 are defined with the flag "n" code ... x091 print buffer of printer 1 x092 print buffer of printer 2 x099 print a formfeed on printer 1 code ... 1nnn print all smdr data for extension "nnn" without clearing (Status schmutzig) code ... 0nnn print all smdr data for extension "nnn" with clearing (Status sauber) for extension numbers 01-99 use 09nn or 19nn Einstellung des Seitenanfanges: 1. GDC ausschalten 2. Drucker auf Seitenanfang einstellen 3. GDC einschalten oder via Zimmerstatus von Zimmer 999 code 099. ***************************************************************************** AFS Channel using: channel 0 : printer 1 (V.24 H,1200,8,n,1) channel 1 : input from DHS2 (V.24 1200,8,n,1) channel 2 : printer 2 (V.24 not used) channel 3 : not used (RS 422) Verbindungskabel AFS zu DHS2 ----------- RX 2x-------------------x3 TX | 10<| TX 3x-------------------x2 RX | 9<| CTS 4x-------------------x7 RTS | D 8<| RTS 5x-------------------x8 CTS | H 7<| GND 7x-------------------x5 GND | S 6<| | 2 5<| | 4<| | X 3<| | 7 2<| | 1<| ----------- **************************************************************************** ----------- ----------- ----------- | 10<| | | | | | 9<| | | | | | D 8<|-CTS<-x4 4x--\ /----x4 |C| |C| 4x--\ /----x4 | | | H 7<|-RTS>-x5 5x--/ \----x5 |H| |H| 20x--/ \----x20| | | S 6<| |1| |0| | | | 2 5<|------x7 7x---------x7 | | | | 7x---------x7 | | | 4<| | | | | | | | X 3<|-TX>--x3 3x--\ /----x3 | | | | 3x---------x3 | | | 7 2<|-RX<--x2 2x--/ \----x2 | | | | 2x---------x2 | | | 1<| | | | | ----------- ----------- ----------- |<----- 15m ---->| |<-30 cm->| |<- AFS ->| |<- 15m ->| |<-Drucker