@wppconnect/wa-js - v4.7.2
    Preparing search index...

    Function getActiveCall

    • Get the active call (ringing, connecting or connected), if any

      Returns CallModel | undefined

      const call = WPP.call.getActiveCall();
      if (call) {
      console.log(call.id, call.peerJid, call.getState());
      }