edgeport - v1.0.3
    Preparing search index...

    Function sendMessage

    • Sends a single pager-mode MESSAGE in one call: connect, (auth on challenge), send, close.

      This needs no registration - the server challenges the MESSAGE, the client authenticates, and the proxy routes it - so it fits a normal request-scoped Worker.

      Parameters

      • opts: SipConnectOptions & { contentType?: string; text: string; to: string }

        Connection/identity options plus the recipient and text.

      Returns Promise<SipResponse>

      The final response.

      If the credentials are rejected.

      On a non-2xx result.

      1.0.3

      import { sendMessage } from 'edgeport/sip';

      await sendMessage({
      hostname: 'sip.example.com',
      username: 'alice',
      password: env.SIP_PW,
      to: 'bob',
      text: 'one-shot SIP message from the edge'
      });