Member Junction
    Preparing search index...

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

    interface NativeCallClient {
        answer(callId: string): Promise<void>;
        dial(args: NativeDialArgs): Promise<string>;
        hangup(callId: string): Promise<void>;
        onAudioFrame(cb: (frame: NativeCallAudioFrame) => void): void;
        onCallEnded(cb: () => void): void;
        onDtmf(cb: (digits: string) => void): void;
        sendAudioFrame(pcm: ArrayBuffer): void;
        sendDtmf(digits: string): Promise<void>;
        transfer(callId: string, toNumber: string): Promise<void>;
    }
    Index

    Methods

    • Transfers the live call (REST calls(sid).update({ twiml: '<Dial>...' })).

      Parameters

      • callId: string
      • toNumber: string

      Returns Promise<void>