Member Junction
    Preparing search index...

    The Softphone default export — the subset the handle drives. Construction options are passed to the real constructor; we only call register / call / answer / decline / on and read codec.

    interface SoftphoneClient {
        codec: SoftphoneCodec;
        answer(
            inviteMessage: SoftphoneInviteMessage,
        ): Promise<SoftphoneCallSession>;
        call(toNumber: string): Promise<SoftphoneCallSession>;
        decline(inviteMessage: SoftphoneInviteMessage): Promise<void>;
        destroy?(): void;
        on(
            event: "invite",
            handler: (inviteMessage: SoftphoneInviteMessage) => void,
        ): void;
        register(): Promise<void>;
    }
    Index

    Properties

    The negotiated codec (set from the constructor codec option; default OPUS/16000).

    Methods