[net.micro.att] Unix PC Telephone Manager - help?

ggl@mhuxi.UUCP (LASKARIS) (04/10/86)

Hi-ho!

More questions on the Unix PC, alias 7300, alias 3B1 (safari, anyone?)

I am trying to get a data file from some ASCII format into the Telephone
Manager format.  We have "Saved" several telephone files (*:F) and
dumped them out with od, trying to make some sense of what is going on
in them.  (Of course, first we tried "Export"ing them, but it turned out
that we couldn't "Import" them).

One of two things would help me greatly:
1) a utility to take some defined format and place telephone numbers
   directly into the Telephone Manager Call Screen.  As far as I can
   tell, this is not provided within the Telephone Manager.
2) a description of the "Save" format, including the header information.
   The tail end of the file is easy enough to decipher, since it contains
   a length count, followed by all the fields, separated by newlines, for
   each entry in the telephone window.  There is a whole lot of header 
   information, though.

Also, is there any limit to the number of entries allowed in the window?

Thanks in advance,

David Laurance
...ihnp4!mhuxi!attibr!iramis!dcl
...allegra!mhuxi!attibr!iramis!dcl
(201) 953-7633

install@kosman.UUCP (Kevin O'Gorman) (04/19/86)

In article <426@mhuxi.UUCP>, ggl@mhuxi.UUCP (LASKARIS) writes:
> [Request for information or help with Phone Manager file formats]

Me too!  Thanks in advance.
				Kevin O'Gorman
				...{ihnp4,hjuxa}!wcom!kosman!kevin

dbw@mtuxo (04/27/86)

The 7300 Unix User's manual (version 3.0 stuff) says in
Phone(4): (paraphrased for brevity)
the .phdir file header is the first 250 bytes:
Magic Number (short)
Version (short)
Revision (short)
No of Recs (short)
Max Rec No (short)
N1 (short) Pointers to up to 15 Records to be included
	.  in the Call Screen
	.
N15 (short)
SLK1 (short) Pointers to up to 7 Records associated
	.    with the function keys F1-F8. (no F2)
	.
SLK7 (short)
O1 (short)   Pointers to up to 14 records associated
	.    with other keyboard keys.
	.
O14 (short)
*N1 (long) Character pointers to the field names for
	.  the directory entry form
	.
*N11 (long)
F0 (short) Pointers to the fields to be displayed in
F1 (short) the directory entry form
F2 (short)
SEC (short) delay before logging call
FLAG1 (short) # entries in history list before warning
FLAG2 (short) logging of incoming calls en/dis-abled
FLAG3 (short) logging of outgoing calls en/dis-abled
FLAG4 (short) invoke ph mgr on off-hook en/dis-abled
FLAG5 (short) display beginning of notes en/dis-abled
FLAG6 (short) display beginning of history list en/dis-abled
FLAG7 (short) reserved
FLAG8 (short) reserved
Data: bytes 256 to 1023 contain the names assigned to
the fields in the directory entry form.
Bytes 1024 to 1535 are the master list of the records.
The max record number is 65536.
Bytes 1536 through 15359 contain the index list for the
records.
Data records follow: each record is a string for each
field, delimited by \n.  Empty fields have no
characters between \n's.

Dave Wood