Menu

How does NCID get it's time stamps?

nospam
2024-06-06
2024-06-08
  • nospam

    nospam - 2024-06-06

    I've been getting some single ring No Caller ID nuisance calls lately. I am using VOIP with a Grandstream VOIP to POTS device.

    ciddata.log just shows

    RING 
    RING
    

    in the log, and NCID records my 4:00am caller as 0104 as the time?

    cidcall.log shows

    CID: *DATE*06062024*TIME*0104*LINE*POTS*NMBR*RING*MESG*NONE*FNMBR*RING*NTYPE*-*CTRY*ZZ*LOCA*-*CARI*-*NAME*No Caller ID*
    

    Where does NCIDD get the time stamp from?

    The other interesting tidbit is my VOIP provider and my Grandstream VOIP to POTS device log show no callers what-so-ever.

    Does anyone have any suggestions or explainations as to what's going on?

     
  • nospam

    nospam - 2024-06-06

    In case someone is experiencing a similar issue here's a possible reference to "sip scanner ghost calls"

    https://wiki.voip.ms/article/Sip_Scanner_Ghost_Calls

     
  • Ed Attfield

    Ed Attfield - 2024-06-06

    When the option gencid=1, which it appears to be here, a CID record will be produced on the second RING, since caller ID is expected to come before the second RING on a POTS call.

    The timestamp in the record comes from the system clock when ncidd calls gettimeofday(). The same code is used for the timestamps that appear in the ncidd.log file.

     
    • nospam

      nospam - 2024-06-06

      I checked and my NCIDD system clock is correct, that's why I am confused as to the different call log time reported. I am UTC -4 but the time is off by some unexpected value. Is there a bash command line way to see gettimeofday() for me to check?

       
      • Ed Attfield

        Ed Attfield - 2024-06-07

        Are the times in ncidd.log also incorrect, or would it just be wrong for that one call record?
        (The code that formats the CID line for the missing caller ID is a bit different fro the other time formatting.)

         
        • nospam

          nospam - 2024-06-07

          The NCIDD times are normally correct. When I get these ghost calls the time stamps are incorrect

           
      • Ed Attfield

        Ed Attfield - 2024-06-07

        I've pulled out the code and tested it by itself. While different from the other places where this is done, it is formatting the time correctly. The time that comes out is timezone shifted from UTC, and will be the same as if ncidd used the 'date' command.

        Try comparing the results from 'date' and 'date -u'.

        You can throw your own empty test calls into ncidd to check the time by connecting with netcat. e.g. I typed this
        ~~~
        netcat localhost 3333
        CALL: ###NMBR6137778888...NAMEtime test+++
        GOODBYE
        ~~~

        and got

        CID: *DATE*06072024*TIME*1431*LINE*0968*NMBR*6137778888*MESG*NONE*FNMBR*613-777-8888*NTYPE*FIX/CELL*CTRY*CA*LOCA*Ontario*CARI*ON*NAME*time test*

         
        • nospam

          nospam - 2024-06-07
          ncidserver:~ $ date -u
          Fri  7 Jun 19:30:23 UTC 2024
          ncidserver:~ $ date
          Fri  7 Jun 15:30:30 EDT 2024
          
           
  • John L. Chmielewski

    I sometimes get what I think you call ghost calls. What they are, in my case, are hangup calls where ncidd hungup but the caller side did not hangup, and rings again (actually continuing ringing) with no CID information.

     

Log in to post a comment.