Home AMX User Forum NetLinx Studio

Saving Caller ID Info to a test file.

I currently us the AXB+ DTMF to capture caller ID info and send it to my Modero Panels. As a former Landmark user used to the file I it saved on the connected PC. Is the way to save the file using Netlinx studio to create/open/append/save the caller ID info to a text file. In other words to create an incoming call log.


Thanks

Comments

  • Spire_JeffSpire_Jeff Posts: 1,917
    Depending on how important the log is to you and how big you want it to be, you could save it to a file, but personally I would just create a character array something like:

    VOLATILE CHAR sCALL_LOG[NUMBER_CALLS_TO_SAVE][13]
    VOLATILE INTEGER nCALL_LOG_PTR = 1

    this variable could hold phone numbers in the format (123)456-7890
    You also create an integer that points to the current insertion point for the next incoming phone number. You will have to put a little thought into how you want to display the info so you know how to traverse the array to populate your list in the correct order, but this should be faster and more desirable than writing an ever growing file to the disk.

    If you want the call log to be saved even if the processor looses power, you can change the word VOLATILE to PERSISTENT in both cases.

    Hope this helps,
    Jeff
Sign In or Register to comment.