Member Junction
    Preparing search index...

    The live native call client the module hands back. The surface mirrors ITelephonyCallSdk but in the native client's own (lower-cased) vocabulary; this adapter maps between the two. VERIFY against the native Vonage Voice client.

    interface NativeCallClient {
        acceptInbound(callUuid: string): Promise<void>;
        endCall(callUuid: string): Promise<void>;
        onCallStatus(callUuid: string, cb: () => void): void;
        onDigits(callUuid: string, cb: (digits: string) => void): void;
        onMedia(callUuid: string, cb: (media: NativeMediaFrame) => void): void;
        placeCall(args: NativePlaceCallArgs): Promise<string>;
        sendDigits(callUuid: string, digits: string): Promise<void>;
        transferCall(callUuid: string, toNumber: string): Promise<void>;
        writeMedia(callUuid: string, pcm: ArrayBuffer): void;
    }
    Index

    Methods

    • Accepts the WebSocket media leg for an inbound call already delivered by the answer webhook.

      Parameters

      • callUuid: string

      Returns Promise<void>

    • Registers the call-ended callback (event-webhook terminal status OR the WebSocket close event).

      Parameters

      • callUuid: string
      • cb: () => void

      Returns void

    • Registers the inbound DTMF callback (NCCO input/dtmf results from the event webhook).

      Parameters

      • callUuid: string
      • cb: (digits: string) => void

      Returns void

    • Sends DTMF digits on the call (Voice API PUT /v1/calls/:uuid/dtmf).

      Parameters

      • callUuid: string
      • digits: string

      Returns Promise<void>

    • Transfers the live call (Voice API PUT /v1/calls/:uuid{ action: 'transfer', … }).

      Parameters

      • callUuid: string
      • toNumber: string

      Returns Promise<void>

    • Writes one outbound PCM payload onto the call's WebSocket media leg (the agent's voice).

      Parameters

      • callUuid: string
      • pcm: ArrayBuffer

      Returns void