ue-softphone-sdk-beta 3.0.22 → 3.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +1 -6
- package/dist/lib/types/lib/sip.js/api/ack.d.ts +12 -0
- package/dist/lib/types/lib/sip.js/api/bye.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/api/dtmf.d.ts +15 -0
- package/dist/lib/types/lib/sip.js/api/emitter.d.ts +88 -0
- package/dist/lib/types/lib/sip.js/api/exceptions/content-type-unsupported.d.ts +8 -0
- package/dist/lib/types/lib/sip.js/api/exceptions/index.d.ts +5 -0
- package/dist/lib/types/lib/sip.js/api/exceptions/request-pending.d.ts +9 -0
- package/dist/lib/types/lib/sip.js/api/exceptions/session-description-handler.d.ts +8 -0
- package/dist/lib/types/lib/sip.js/api/exceptions/session-terminated.d.ts +8 -0
- package/dist/lib/types/lib/sip.js/api/exceptions/state-transition.d.ts +8 -0
- package/dist/lib/types/lib/sip.js/api/index.d.ts +59 -0
- package/dist/lib/types/lib/sip.js/api/info.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/api/invitation-accept-options.d.ts +19 -0
- package/dist/lib/types/lib/sip.js/api/invitation-progress-options.d.ts +38 -0
- package/dist/lib/types/lib/sip.js/api/invitation-reject-options.d.ts +25 -0
- package/dist/lib/types/lib/sip.js/api/invitation.d.ts +179 -0
- package/dist/lib/types/lib/sip.js/api/inviter-cancel-options.d.ts +9 -0
- package/dist/lib/types/lib/sip.js/api/inviter-invite-options.d.ts +28 -0
- package/dist/lib/types/lib/sip.js/api/inviter-options.d.ts +43 -0
- package/dist/lib/types/lib/sip.js/api/inviter.d.ts +236 -0
- package/dist/lib/types/lib/sip.js/api/message.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/api/messager-message-options.d.ts +11 -0
- package/dist/lib/types/lib/sip.js/api/messager-options.d.ts +17 -0
- package/dist/lib/types/lib/sip.js/api/messager.d.ts +26 -0
- package/dist/lib/types/lib/sip.js/api/notification.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/api/notifier.d.ts +8 -0
- package/dist/lib/types/lib/sip.js/api/publisher-options.d.ts +33 -0
- package/dist/lib/types/lib/sip.js/api/publisher-publish-options.d.ts +6 -0
- package/dist/lib/types/lib/sip.js/api/publisher-state.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/api/publisher-unpublish-options.d.ts +6 -0
- package/dist/lib/types/lib/sip.js/api/publisher.d.ts +65 -0
- package/dist/lib/types/lib/sip.js/api/referral.d.ts +38 -0
- package/dist/lib/types/lib/sip.js/api/registerer-options.d.ts +46 -0
- package/dist/lib/types/lib/sip.js/api/registerer-register-options.d.ts +11 -0
- package/dist/lib/types/lib/sip.js/api/registerer-state.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/api/registerer-unregister-options.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/api/registerer.d.ts +144 -0
- package/dist/lib/types/lib/sip.js/api/session-bye-options.d.ts +11 -0
- package/dist/lib/types/lib/sip.js/api/session-delegate.d.ts +79 -0
- package/dist/lib/types/lib/sip.js/api/session-description-handler-factory.d.ts +15 -0
- package/dist/lib/types/lib/sip.js/api/session-description-handler.d.ts +74 -0
- package/dist/lib/types/lib/sip.js/api/session-info-options.d.ts +11 -0
- package/dist/lib/types/lib/sip.js/api/session-invite-options.d.ts +28 -0
- package/dist/lib/types/lib/sip.js/api/session-message-options.d.ts +11 -0
- package/dist/lib/types/lib/sip.js/api/session-options.d.ts +8 -0
- package/dist/lib/types/lib/sip.js/api/session-refer-options.d.ts +14 -0
- package/dist/lib/types/lib/sip.js/api/session-state.d.ts +45 -0
- package/dist/lib/types/lib/sip.js/api/session.d.ts +359 -0
- package/dist/lib/types/lib/sip.js/api/subscriber-options.d.ts +11 -0
- package/dist/lib/types/lib/sip.js/api/subscriber-subscribe-options.d.ts +6 -0
- package/dist/lib/types/lib/sip.js/api/subscriber.d.ts +94 -0
- package/dist/lib/types/lib/sip.js/api/subscription-delegate.d.ts +12 -0
- package/dist/lib/types/lib/sip.js/api/subscription-options.d.ts +8 -0
- package/dist/lib/types/lib/sip.js/api/subscription-state.d.ts +19 -0
- package/dist/lib/types/lib/sip.js/api/subscription-subscribe-options.d.ts +6 -0
- package/dist/lib/types/lib/sip.js/api/subscription-unsubscribe-options.d.ts +6 -0
- package/dist/lib/types/lib/sip.js/api/subscription.d.ts +84 -0
- package/dist/lib/types/lib/sip.js/api/transport-state.d.ts +37 -0
- package/dist/lib/types/lib/sip.js/api/transport.d.ts +159 -0
- package/dist/lib/types/lib/sip.js/api/user-agent-delegate.d.ts +84 -0
- package/dist/lib/types/lib/sip.js/api/user-agent-options.d.ts +253 -0
- package/dist/lib/types/lib/sip.js/api/user-agent-state.d.ts +14 -0
- package/dist/lib/types/lib/sip.js/api/user-agent.d.ts +200 -0
- package/dist/lib/types/lib/sip.js/core/dialogs/dialog-state.d.ts +34 -0
- package/dist/lib/types/lib/sip.js/core/dialogs/dialog.d.ts +161 -0
- package/dist/lib/types/lib/sip.js/core/dialogs/index.d.ts +4 -0
- package/dist/lib/types/lib/sip.js/core/dialogs/session-dialog.d.ts +196 -0
- package/dist/lib/types/lib/sip.js/core/dialogs/subscription-dialog.d.ts +120 -0
- package/dist/lib/types/lib/sip.js/core/exceptions/exception.d.ts +8 -0
- package/dist/lib/types/lib/sip.js/core/exceptions/index.d.ts +3 -0
- package/dist/lib/types/lib/sip.js/core/exceptions/transaction-state-error.d.ts +8 -0
- package/dist/lib/types/lib/sip.js/core/exceptions/transport-error.d.ts +8 -0
- package/dist/lib/types/lib/sip.js/core/index.d.ts +15 -0
- package/dist/lib/types/lib/sip.js/core/log/index.d.ts +3 -0
- package/dist/lib/types/lib/sip.js/core/log/levels.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/log/logger-factory.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/core/log/logger.d.ts +19 -0
- package/dist/lib/types/lib/sip.js/core/messages/body.d.ts +64 -0
- package/dist/lib/types/lib/sip.js/core/messages/digest-authentication.d.ts +51 -0
- package/dist/lib/types/lib/sip.js/core/messages/incoming-message.d.ts +79 -0
- package/dist/lib/types/lib/sip.js/core/messages/incoming-request-message.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/messages/incoming-request.d.ts +67 -0
- package/dist/lib/types/lib/sip.js/core/messages/incoming-response-message.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/messages/incoming-response.d.ts +12 -0
- package/dist/lib/types/lib/sip.js/core/messages/index.d.ts +13 -0
- package/dist/lib/types/lib/sip.js/core/messages/md5.d.ts +32 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/ack.d.ts +18 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/bye.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/cancel.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/constants.d.ts +20 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/index.d.ts +13 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/info.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/invite.d.ts +86 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/message.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/notify.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/prack.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/publish.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/refer.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/register.d.ts +21 -0
- package/dist/lib/types/lib/sip.js/core/messages/methods/subscribe.d.ts +54 -0
- package/dist/lib/types/lib/sip.js/core/messages/outgoing-request-message.d.ts +94 -0
- package/dist/lib/types/lib/sip.js/core/messages/outgoing-request.d.ts +67 -0
- package/dist/lib/types/lib/sip.js/core/messages/outgoing-response.d.ts +42 -0
- package/dist/lib/types/lib/sip.js/core/messages/parser.d.ts +14 -0
- package/dist/lib/types/lib/sip.js/core/messages/utils.d.ts +24 -0
- package/dist/lib/types/lib/sip.js/core/session/index.d.ts +2 -0
- package/dist/lib/types/lib/sip.js/core/session/session-delegate.d.ts +70 -0
- package/dist/lib/types/lib/sip.js/core/session/session.d.ts +134 -0
- package/dist/lib/types/lib/sip.js/core/subscription/index.d.ts +2 -0
- package/dist/lib/types/lib/sip.js/core/subscription/subscription-delegate.d.ts +27 -0
- package/dist/lib/types/lib/sip.js/core/subscription/subscription.d.ts +55 -0
- package/dist/lib/types/lib/sip.js/core/timers.d.ts +20 -0
- package/dist/lib/types/lib/sip.js/core/transactions/client-transaction.d.ts +45 -0
- package/dist/lib/types/lib/sip.js/core/transactions/index.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/transactions/invite-client-transaction.d.ts +116 -0
- package/dist/lib/types/lib/sip.js/core/transactions/invite-server-transaction.d.ts +127 -0
- package/dist/lib/types/lib/sip.js/core/transactions/non-invite-client-transaction.d.ts +69 -0
- package/dist/lib/types/lib/sip.js/core/transactions/non-invite-server-transaction.d.ts +57 -0
- package/dist/lib/types/lib/sip.js/core/transactions/server-transaction.d.ts +35 -0
- package/dist/lib/types/lib/sip.js/core/transactions/transaction-state.d.ts +13 -0
- package/dist/lib/types/lib/sip.js/core/transactions/transaction-user.d.ts +72 -0
- package/dist/lib/types/lib/sip.js/core/transactions/transaction.d.ts +79 -0
- package/dist/lib/types/lib/sip.js/core/transport.d.ts +31 -0
- package/dist/lib/types/lib/sip.js/core/user-agent-core/allowed-methods.d.ts +4 -0
- package/dist/lib/types/lib/sip.js/core/user-agent-core/index.d.ts +3 -0
- package/dist/lib/types/lib/sip.js/core/user-agent-core/user-agent-core-configuration.d.ts +99 -0
- package/dist/lib/types/lib/sip.js/core/user-agent-core/user-agent-core-delegate.d.ts +37 -0
- package/dist/lib/types/lib/sip.js/core/user-agent-core/user-agent-core.d.ts +179 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/bye-user-agent-client.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/bye-user-agent-server.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/cancel-user-agent-client.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/index.d.ts +26 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/info-user-agent-client.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/info-user-agent-server.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/invite-user-agent-client.d.ts +35 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/invite-user-agent-server.d.ts +77 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/message-user-agent-client.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/message-user-agent-server.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/notify-user-agent-client.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/notify-user-agent-server.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/prack-user-agent-client.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/prack-user-agent-server.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/publish-user-agent-client.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/re-invite-user-agent-client.d.ts +18 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/re-invite-user-agent-server.d.ts +41 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/re-subscribe-user-agent-client.d.ts +17 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/re-subscribe-user-agent-server.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/refer-user-agent-client.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/refer-user-agent-server.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/register-user-agent-client.d.ts +10 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/register-user-agent-server.d.ts +11 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/subscribe-user-agent-client.d.ts +65 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/subscribe-user-agent-server.d.ts +11 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/user-agent-client.d.ts +103 -0
- package/dist/lib/types/lib/sip.js/core/user-agents/user-agent-server.d.ts +79 -0
- package/dist/lib/types/lib/sip.js/grammar/grammar.d.ts +26 -0
- package/dist/lib/types/lib/sip.js/grammar/index.d.ts +4 -0
- package/dist/lib/types/lib/sip.js/grammar/name-addr-header.d.ts +24 -0
- package/dist/lib/types/lib/sip.js/grammar/parameters.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/grammar/pegjs/dist/grammar.d.ts +50 -0
- package/dist/lib/types/lib/sip.js/grammar/uri.d.ts +62 -0
- package/dist/lib/types/lib/sip.js/index.d.ts +9 -0
- package/dist/lib/types/lib/sip.js/platform/web/index.d.ts +4 -0
- package/dist/lib/types/lib/sip.js/platform/web/modifiers/index.d.ts +5 -0
- package/dist/lib/types/lib/sip.js/platform/web/modifiers/modifiers.d.ts +41 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/index.d.ts +14 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/media-stream-factory-default.d.ts +6 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/media-stream-factory.d.ts +6 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/peer-connection-configuration-default.d.ts +5 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/peer-connection-delegate.d.ts +63 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-configuration.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-default.d.ts +11 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-options.d.ts +9 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory.d.ts +16 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-options.d.ts +47 -0
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler.d.ts +212 -0
- package/dist/lib/types/lib/sip.js/platform/web/simple-user/index.d.ts +7 -0
- package/dist/lib/types/lib/sip.js/platform/web/simple-user/simple-user-delegate.d.ts +72 -0
- package/dist/lib/types/lib/sip.js/platform/web/simple-user/simple-user-options.d.ts +90 -0
- package/dist/lib/types/lib/sip.js/platform/web/simple-user/simple-user.d.ts +226 -0
- package/dist/lib/types/lib/sip.js/platform/web/transport/index.d.ts +6 -0
- package/dist/lib/types/lib/sip.js/platform/web/transport/transport-options.d.ts +30 -0
- package/dist/lib/types/lib/sip.js/platform/web/transport/transport.d.ts +125 -0
- package/dist/lib/types/lib/sip.js/version.d.ts +1 -0
- package/dist/lib/types/webrtc/webrtc-method.d.ts +2 -0
- package/dist/lib/types/webrtc/webrtc.d.ts +38 -0
- package/dist/lib/ue-soft-phone.min.js +3 -3
- package/dist/types/index.d.ts +2 -1
- package/dist/types/lib/sip.js/api/ack.d.ts +12 -0
- package/dist/types/lib/sip.js/api/bye.d.ts +16 -0
- package/dist/types/lib/sip.js/api/dtmf.d.ts +15 -0
- package/dist/types/lib/sip.js/api/emitter.d.ts +88 -0
- package/dist/types/lib/sip.js/api/exceptions/content-type-unsupported.d.ts +8 -0
- package/dist/types/lib/sip.js/api/exceptions/index.d.ts +5 -0
- package/dist/types/lib/sip.js/api/exceptions/request-pending.d.ts +9 -0
- package/dist/types/lib/sip.js/api/exceptions/session-description-handler.d.ts +8 -0
- package/dist/types/lib/sip.js/api/exceptions/session-terminated.d.ts +8 -0
- package/dist/types/lib/sip.js/api/exceptions/state-transition.d.ts +8 -0
- package/dist/types/lib/sip.js/api/index.d.ts +59 -0
- package/dist/types/lib/sip.js/api/info.d.ts +16 -0
- package/dist/types/lib/sip.js/api/invitation-accept-options.d.ts +19 -0
- package/dist/types/lib/sip.js/api/invitation-progress-options.d.ts +38 -0
- package/dist/types/lib/sip.js/api/invitation-reject-options.d.ts +25 -0
- package/dist/types/lib/sip.js/api/invitation.d.ts +179 -0
- package/dist/types/lib/sip.js/api/inviter-cancel-options.d.ts +9 -0
- package/dist/types/lib/sip.js/api/inviter-invite-options.d.ts +28 -0
- package/dist/types/lib/sip.js/api/inviter-options.d.ts +43 -0
- package/dist/types/lib/sip.js/api/inviter.d.ts +236 -0
- package/dist/types/lib/sip.js/api/message.d.ts +16 -0
- package/dist/types/lib/sip.js/api/messager-message-options.d.ts +11 -0
- package/dist/types/lib/sip.js/api/messager-options.d.ts +17 -0
- package/dist/types/lib/sip.js/api/messager.d.ts +26 -0
- package/dist/types/lib/sip.js/api/notification.d.ts +16 -0
- package/dist/types/lib/sip.js/api/notifier.d.ts +8 -0
- package/dist/types/lib/sip.js/api/publisher-options.d.ts +33 -0
- package/dist/types/lib/sip.js/api/publisher-publish-options.d.ts +6 -0
- package/dist/types/lib/sip.js/api/publisher-state.d.ts +21 -0
- package/dist/types/lib/sip.js/api/publisher-unpublish-options.d.ts +6 -0
- package/dist/types/lib/sip.js/api/publisher.d.ts +65 -0
- package/dist/types/lib/sip.js/api/referral.d.ts +38 -0
- package/dist/types/lib/sip.js/api/registerer-options.d.ts +46 -0
- package/dist/types/lib/sip.js/api/registerer-register-options.d.ts +11 -0
- package/dist/types/lib/sip.js/api/registerer-state.d.ts +21 -0
- package/dist/types/lib/sip.js/api/registerer-unregister-options.d.ts +16 -0
- package/dist/types/lib/sip.js/api/registerer.d.ts +144 -0
- package/dist/types/lib/sip.js/api/session-bye-options.d.ts +11 -0
- package/dist/types/lib/sip.js/api/session-delegate.d.ts +79 -0
- package/dist/types/lib/sip.js/api/session-description-handler-factory.d.ts +15 -0
- package/dist/types/lib/sip.js/api/session-description-handler.d.ts +74 -0
- package/dist/types/lib/sip.js/api/session-info-options.d.ts +11 -0
- package/dist/types/lib/sip.js/api/session-invite-options.d.ts +28 -0
- package/dist/types/lib/sip.js/api/session-message-options.d.ts +11 -0
- package/dist/types/lib/sip.js/api/session-options.d.ts +8 -0
- package/dist/types/lib/sip.js/api/session-refer-options.d.ts +14 -0
- package/dist/types/lib/sip.js/api/session-state.d.ts +45 -0
- package/dist/types/lib/sip.js/api/session.d.ts +359 -0
- package/dist/types/lib/sip.js/api/subscriber-options.d.ts +11 -0
- package/dist/types/lib/sip.js/api/subscriber-subscribe-options.d.ts +6 -0
- package/dist/types/lib/sip.js/api/subscriber.d.ts +94 -0
- package/dist/types/lib/sip.js/api/subscription-delegate.d.ts +12 -0
- package/dist/types/lib/sip.js/api/subscription-options.d.ts +8 -0
- package/dist/types/lib/sip.js/api/subscription-state.d.ts +19 -0
- package/dist/types/lib/sip.js/api/subscription-subscribe-options.d.ts +6 -0
- package/dist/types/lib/sip.js/api/subscription-unsubscribe-options.d.ts +6 -0
- package/dist/types/lib/sip.js/api/subscription.d.ts +84 -0
- package/dist/types/lib/sip.js/api/transport-state.d.ts +37 -0
- package/dist/types/lib/sip.js/api/transport.d.ts +159 -0
- package/dist/types/lib/sip.js/api/user-agent-delegate.d.ts +84 -0
- package/dist/types/lib/sip.js/api/user-agent-options.d.ts +253 -0
- package/dist/types/lib/sip.js/api/user-agent-state.d.ts +14 -0
- package/dist/types/lib/sip.js/api/user-agent.d.ts +200 -0
- package/dist/types/lib/sip.js/core/dialogs/dialog-state.d.ts +34 -0
- package/dist/types/lib/sip.js/core/dialogs/dialog.d.ts +161 -0
- package/dist/types/lib/sip.js/core/dialogs/index.d.ts +4 -0
- package/dist/types/lib/sip.js/core/dialogs/session-dialog.d.ts +196 -0
- package/dist/types/lib/sip.js/core/dialogs/subscription-dialog.d.ts +120 -0
- package/dist/types/lib/sip.js/core/exceptions/exception.d.ts +8 -0
- package/dist/types/lib/sip.js/core/exceptions/index.d.ts +3 -0
- package/dist/types/lib/sip.js/core/exceptions/transaction-state-error.d.ts +8 -0
- package/dist/types/lib/sip.js/core/exceptions/transport-error.d.ts +8 -0
- package/dist/types/lib/sip.js/core/index.d.ts +15 -0
- package/dist/types/lib/sip.js/core/log/index.d.ts +3 -0
- package/dist/types/lib/sip.js/core/log/levels.d.ts +10 -0
- package/dist/types/lib/sip.js/core/log/logger-factory.d.ts +21 -0
- package/dist/types/lib/sip.js/core/log/logger.d.ts +19 -0
- package/dist/types/lib/sip.js/core/messages/body.d.ts +64 -0
- package/dist/types/lib/sip.js/core/messages/digest-authentication.d.ts +51 -0
- package/dist/types/lib/sip.js/core/messages/incoming-message.d.ts +79 -0
- package/dist/types/lib/sip.js/core/messages/incoming-request-message.d.ts +10 -0
- package/dist/types/lib/sip.js/core/messages/incoming-request.d.ts +67 -0
- package/dist/types/lib/sip.js/core/messages/incoming-response-message.d.ts +10 -0
- package/dist/types/lib/sip.js/core/messages/incoming-response.d.ts +12 -0
- package/dist/types/lib/sip.js/core/messages/index.d.ts +13 -0
- package/dist/types/lib/sip.js/core/messages/md5.d.ts +32 -0
- package/dist/types/lib/sip.js/core/messages/methods/ack.d.ts +18 -0
- package/dist/types/lib/sip.js/core/messages/methods/bye.d.ts +21 -0
- package/dist/types/lib/sip.js/core/messages/methods/cancel.d.ts +21 -0
- package/dist/types/lib/sip.js/core/messages/methods/constants.d.ts +20 -0
- package/dist/types/lib/sip.js/core/messages/methods/index.d.ts +13 -0
- package/dist/types/lib/sip.js/core/messages/methods/info.d.ts +21 -0
- package/dist/types/lib/sip.js/core/messages/methods/invite.d.ts +86 -0
- package/dist/types/lib/sip.js/core/messages/methods/message.d.ts +21 -0
- package/dist/types/lib/sip.js/core/messages/methods/notify.d.ts +21 -0
- package/dist/types/lib/sip.js/core/messages/methods/prack.d.ts +21 -0
- package/dist/types/lib/sip.js/core/messages/methods/publish.d.ts +21 -0
- package/dist/types/lib/sip.js/core/messages/methods/refer.d.ts +21 -0
- package/dist/types/lib/sip.js/core/messages/methods/register.d.ts +21 -0
- package/dist/types/lib/sip.js/core/messages/methods/subscribe.d.ts +54 -0
- package/dist/types/lib/sip.js/core/messages/outgoing-request-message.d.ts +94 -0
- package/dist/types/lib/sip.js/core/messages/outgoing-request.d.ts +67 -0
- package/dist/types/lib/sip.js/core/messages/outgoing-response.d.ts +42 -0
- package/dist/types/lib/sip.js/core/messages/parser.d.ts +14 -0
- package/dist/types/lib/sip.js/core/messages/utils.d.ts +24 -0
- package/dist/types/lib/sip.js/core/session/index.d.ts +2 -0
- package/dist/types/lib/sip.js/core/session/session-delegate.d.ts +70 -0
- package/dist/types/lib/sip.js/core/session/session.d.ts +134 -0
- package/dist/types/lib/sip.js/core/subscription/index.d.ts +2 -0
- package/dist/types/lib/sip.js/core/subscription/subscription-delegate.d.ts +27 -0
- package/dist/types/lib/sip.js/core/subscription/subscription.d.ts +55 -0
- package/dist/types/lib/sip.js/core/timers.d.ts +20 -0
- package/dist/types/lib/sip.js/core/transactions/client-transaction.d.ts +45 -0
- package/dist/types/lib/sip.js/core/transactions/index.d.ts +10 -0
- package/dist/types/lib/sip.js/core/transactions/invite-client-transaction.d.ts +116 -0
- package/dist/types/lib/sip.js/core/transactions/invite-server-transaction.d.ts +127 -0
- package/dist/types/lib/sip.js/core/transactions/non-invite-client-transaction.d.ts +69 -0
- package/dist/types/lib/sip.js/core/transactions/non-invite-server-transaction.d.ts +57 -0
- package/dist/types/lib/sip.js/core/transactions/server-transaction.d.ts +35 -0
- package/dist/types/lib/sip.js/core/transactions/transaction-state.d.ts +13 -0
- package/dist/types/lib/sip.js/core/transactions/transaction-user.d.ts +72 -0
- package/dist/types/lib/sip.js/core/transactions/transaction.d.ts +79 -0
- package/dist/types/lib/sip.js/core/transport.d.ts +31 -0
- package/dist/types/lib/sip.js/core/user-agent-core/allowed-methods.d.ts +4 -0
- package/dist/types/lib/sip.js/core/user-agent-core/index.d.ts +3 -0
- package/dist/types/lib/sip.js/core/user-agent-core/user-agent-core-configuration.d.ts +99 -0
- package/dist/types/lib/sip.js/core/user-agent-core/user-agent-core-delegate.d.ts +37 -0
- package/dist/types/lib/sip.js/core/user-agent-core/user-agent-core.d.ts +179 -0
- package/dist/types/lib/sip.js/core/user-agents/bye-user-agent-client.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/bye-user-agent-server.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/cancel-user-agent-client.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/index.d.ts +26 -0
- package/dist/types/lib/sip.js/core/user-agents/info-user-agent-client.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/info-user-agent-server.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/invite-user-agent-client.d.ts +35 -0
- package/dist/types/lib/sip.js/core/user-agents/invite-user-agent-server.d.ts +77 -0
- package/dist/types/lib/sip.js/core/user-agents/message-user-agent-client.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/message-user-agent-server.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/notify-user-agent-client.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/notify-user-agent-server.d.ts +16 -0
- package/dist/types/lib/sip.js/core/user-agents/prack-user-agent-client.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/prack-user-agent-server.d.ts +16 -0
- package/dist/types/lib/sip.js/core/user-agents/publish-user-agent-client.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/re-invite-user-agent-client.d.ts +18 -0
- package/dist/types/lib/sip.js/core/user-agents/re-invite-user-agent-server.d.ts +41 -0
- package/dist/types/lib/sip.js/core/user-agents/re-subscribe-user-agent-client.d.ts +17 -0
- package/dist/types/lib/sip.js/core/user-agents/re-subscribe-user-agent-server.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/refer-user-agent-client.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/refer-user-agent-server.d.ts +16 -0
- package/dist/types/lib/sip.js/core/user-agents/register-user-agent-client.d.ts +10 -0
- package/dist/types/lib/sip.js/core/user-agents/register-user-agent-server.d.ts +11 -0
- package/dist/types/lib/sip.js/core/user-agents/subscribe-user-agent-client.d.ts +65 -0
- package/dist/types/lib/sip.js/core/user-agents/subscribe-user-agent-server.d.ts +11 -0
- package/dist/types/lib/sip.js/core/user-agents/user-agent-client.d.ts +103 -0
- package/dist/types/lib/sip.js/core/user-agents/user-agent-server.d.ts +79 -0
- package/dist/types/lib/sip.js/grammar/grammar.d.ts +26 -0
- package/dist/types/lib/sip.js/grammar/index.d.ts +4 -0
- package/dist/types/lib/sip.js/grammar/name-addr-header.d.ts +24 -0
- package/dist/types/lib/sip.js/grammar/parameters.d.ts +16 -0
- package/dist/types/lib/sip.js/grammar/pegjs/dist/grammar.d.ts +50 -0
- package/dist/types/lib/sip.js/grammar/uri.d.ts +62 -0
- package/dist/types/lib/sip.js/index.d.ts +9 -0
- package/dist/types/lib/sip.js/platform/web/index.d.ts +4 -0
- package/dist/types/lib/sip.js/platform/web/modifiers/index.d.ts +5 -0
- package/dist/types/lib/sip.js/platform/web/modifiers/modifiers.d.ts +41 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/index.d.ts +14 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/media-stream-factory-default.d.ts +6 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/media-stream-factory.d.ts +6 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/peer-connection-configuration-default.d.ts +5 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/peer-connection-delegate.d.ts +63 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-configuration.d.ts +16 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-default.d.ts +11 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-options.d.ts +9 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory.d.ts +16 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-options.d.ts +47 -0
- package/dist/types/lib/sip.js/platform/web/session-description-handler/session-description-handler.d.ts +212 -0
- package/dist/types/lib/sip.js/platform/web/simple-user/index.d.ts +7 -0
- package/dist/types/lib/sip.js/platform/web/simple-user/simple-user-delegate.d.ts +72 -0
- package/dist/types/lib/sip.js/platform/web/simple-user/simple-user-options.d.ts +90 -0
- package/dist/types/lib/sip.js/platform/web/simple-user/simple-user.d.ts +226 -0
- package/dist/types/lib/sip.js/platform/web/transport/index.d.ts +6 -0
- package/dist/types/lib/sip.js/platform/web/transport/transport-options.d.ts +30 -0
- package/dist/types/lib/sip.js/platform/web/transport/transport.d.ts +125 -0
- package/dist/types/lib/sip.js/version.d.ts +1 -0
- package/dist/types/webrtc/webrtc-method.d.ts +2 -0
- package/dist/types/webrtc/webrtc.d.ts +38 -0
- package/dist/ue-softphone-sdk.js +2 -2
- package/index.html/index.html +5 -5
- package/package.json +1 -1
- package/src/index.ts +10 -2
- package/src/lib/sip.js/api/ack.ts +15 -0
- package/src/lib/sip.js/api/api-extractor.json +350 -0
- package/src/lib/sip.js/api/bye.ts +27 -0
- package/src/lib/sip.js/api/dtmf.ts +27 -0
- package/src/lib/sip.js/api/emitter.ts +110 -0
- package/src/lib/sip.js/api/exceptions/content-type-unsupported.ts +11 -0
- package/src/lib/sip.js/api/exceptions/index.ts +5 -0
- package/src/lib/sip.js/api/exceptions/request-pending.ts +12 -0
- package/src/lib/sip.js/api/exceptions/session-description-handler.ts +11 -0
- package/src/lib/sip.js/api/exceptions/session-terminated.ts +11 -0
- package/src/lib/sip.js/api/exceptions/state-transition.ts +11 -0
- package/src/lib/sip.js/api/index.ts +59 -0
- package/src/lib/sip.js/api/info.ts +27 -0
- package/src/lib/sip.js/api/invitation-accept-options.ts +20 -0
- package/src/lib/sip.js/api/invitation-progress-options.ts +36 -0
- package/src/lib/sip.js/api/invitation-reject-options.ts +22 -0
- package/src/lib/sip.js/api/invitation.ts +815 -0
- package/src/lib/sip.js/api/inviter-cancel-options.ts +9 -0
- package/src/lib/sip.js/api/inviter-invite-options.ts +29 -0
- package/src/lib/sip.js/api/inviter-options.ts +44 -0
- package/src/lib/sip.js/api/inviter.ts +1126 -0
- package/src/lib/sip.js/api/message.ts +27 -0
- package/src/lib/sip.js/api/messager-message-options.ts +12 -0
- package/src/lib/sip.js/api/messager-options.ts +18 -0
- package/src/lib/sip.js/api/messager.ts +89 -0
- package/src/lib/sip.js/api/notification.ts +27 -0
- package/src/lib/sip.js/api/notifier.ts +7 -0
- package/src/lib/sip.js/api/publisher-options.ts +34 -0
- package/src/lib/sip.js/api/publisher-publish-options.ts +6 -0
- package/src/lib/sip.js/api/publisher-state.ts +21 -0
- package/src/lib/sip.js/api/publisher-unpublish-options.ts +6 -0
- package/src/lib/sip.js/api/publisher.ts +421 -0
- package/src/lib/sip.js/api/referral.ts +89 -0
- package/src/lib/sip.js/api/registerer-options.ts +55 -0
- package/src/lib/sip.js/api/registerer-register-options.ts +12 -0
- package/src/lib/sip.js/api/registerer-state.ts +21 -0
- package/src/lib/sip.js/api/registerer-unregister-options.ts +17 -0
- package/src/lib/sip.js/api/registerer.ts +819 -0
- package/src/lib/sip.js/api/session-bye-options.ts +12 -0
- package/src/lib/sip.js/api/session-delegate.ts +87 -0
- package/src/lib/sip.js/api/session-description-handler-factory.ts +16 -0
- package/src/lib/sip.js/api/session-description-handler.ts +89 -0
- package/src/lib/sip.js/api/session-info-options.ts +12 -0
- package/src/lib/sip.js/api/session-invite-options.ts +29 -0
- package/src/lib/sip.js/api/session-message-options.ts +12 -0
- package/src/lib/sip.js/api/session-options.ts +8 -0
- package/src/lib/sip.js/api/session-refer-options.ts +15 -0
- package/src/lib/sip.js/api/session-state.ts +45 -0
- package/src/lib/sip.js/api/session.ts +1454 -0
- package/src/lib/sip.js/api/subscriber-options.ts +12 -0
- package/src/lib/sip.js/api/subscriber-subscribe-options.ts +6 -0
- package/src/lib/sip.js/api/subscriber.ts +537 -0
- package/src/lib/sip.js/api/subscription-delegate.ts +13 -0
- package/src/lib/sip.js/api/subscription-options.ts +8 -0
- package/src/lib/sip.js/api/subscription-state.ts +19 -0
- package/src/lib/sip.js/api/subscription-subscribe-options.ts +6 -0
- package/src/lib/sip.js/api/subscription-unsubscribe-options.ts +6 -0
- package/src/lib/sip.js/api/subscription.ts +161 -0
- package/src/lib/sip.js/api/transport-state.ts +37 -0
- package/src/lib/sip.js/api/transport.ts +169 -0
- package/src/lib/sip.js/api/user-agent-delegate.ts +95 -0
- package/src/lib/sip.js/api/user-agent-options.ts +322 -0
- package/src/lib/sip.js/api/user-agent-state.ts +14 -0
- package/src/lib/sip.js/api/user-agent.ts +1013 -0
- package/src/lib/sip.js/core/api-extractor.json +350 -0
- package/src/lib/sip.js/core/dialogs/dialog-state.ts +35 -0
- package/src/lib/sip.js/core/dialogs/dialog.ts +605 -0
- package/src/lib/sip.js/core/dialogs/index.ts +4 -0
- package/src/lib/sip.js/core/dialogs/session-dialog.ts +997 -0
- package/src/lib/sip.js/core/dialogs/subscription-dialog.ts +558 -0
- package/src/lib/sip.js/core/exceptions/exception.ts +11 -0
- package/src/lib/sip.js/core/exceptions/index.ts +3 -0
- package/src/lib/sip.js/core/exceptions/transaction-state-error.ts +11 -0
- package/src/lib/sip.js/core/exceptions/transport-error.ts +11 -0
- package/src/lib/sip.js/core/index.ts +19 -0
- package/src/lib/sip.js/core/log/index.ts +3 -0
- package/src/lib/sip.js/core/log/levels.ts +10 -0
- package/src/lib/sip.js/core/log/logger-factory.ts +119 -0
- package/src/lib/sip.js/core/log/logger.ts +42 -0
- package/src/lib/sip.js/core/messages/body.ts +171 -0
- package/src/lib/sip.js/core/messages/digest-authentication.ts +190 -0
- package/src/lib/sip.js/core/messages/incoming-message.ts +152 -0
- package/src/lib/sip.js/core/messages/incoming-request-message.ts +14 -0
- package/src/lib/sip.js/core/messages/incoming-request.ts +75 -0
- package/src/lib/sip.js/core/messages/incoming-response-message.ts +14 -0
- package/src/lib/sip.js/core/messages/incoming-response.ts +13 -0
- package/src/lib/sip.js/core/messages/index.ts +18 -0
- package/src/lib/sip.js/core/messages/md5.ts +437 -0
- package/src/lib/sip.js/core/messages/methods/ack.ts +22 -0
- package/src/lib/sip.js/core/messages/methods/bye.ts +22 -0
- package/src/lib/sip.js/core/messages/methods/cancel.ts +22 -0
- package/src/lib/sip.js/core/messages/methods/constants.ts +21 -0
- package/src/lib/sip.js/core/messages/methods/index.ts +13 -0
- package/src/lib/sip.js/core/messages/methods/info.ts +22 -0
- package/src/lib/sip.js/core/messages/methods/invite.ts +104 -0
- package/src/lib/sip.js/core/messages/methods/message.ts +22 -0
- package/src/lib/sip.js/core/messages/methods/notify.ts +22 -0
- package/src/lib/sip.js/core/messages/methods/prack.ts +22 -0
- package/src/lib/sip.js/core/messages/methods/publish.ts +22 -0
- package/src/lib/sip.js/core/messages/methods/refer.ts +22 -0
- package/src/lib/sip.js/core/messages/methods/register.ts +22 -0
- package/src/lib/sip.js/core/messages/methods/subscribe.ts +59 -0
- package/src/lib/sip.js/core/messages/outgoing-request-message.ts +299 -0
- package/src/lib/sip.js/core/messages/outgoing-request.ts +77 -0
- package/src/lib/sip.js/core/messages/outgoing-response.ts +174 -0
- package/src/lib/sip.js/core/messages/parser.ts +265 -0
- package/src/lib/sip.js/core/messages/utils.ts +144 -0
- package/src/lib/sip.js/core/session/index.ts +2 -0
- package/src/lib/sip.js/core/session/session-delegate.ts +88 -0
- package/src/lib/sip.js/core/session/session.ts +158 -0
- package/src/lib/sip.js/core/subscription/index.ts +2 -0
- package/src/lib/sip.js/core/subscription/subscription-delegate.ts +30 -0
- package/src/lib/sip.js/core/subscription/subscription.ts +61 -0
- package/src/lib/sip.js/core/timers.ts +24 -0
- package/src/lib/sip.js/core/transactions/client-transaction.ts +78 -0
- package/src/lib/sip.js/core/transactions/index.ts +10 -0
- package/src/lib/sip.js/core/transactions/invite-client-transaction.ts +505 -0
- package/src/lib/sip.js/core/transactions/invite-server-transaction.ts +433 -0
- package/src/lib/sip.js/core/transactions/non-invite-client-transaction.ts +258 -0
- package/src/lib/sip.js/core/transactions/non-invite-server-transaction.ts +242 -0
- package/src/lib/sip.js/core/transactions/server-transaction.ts +47 -0
- package/src/lib/sip.js/core/transactions/transaction-state.ts +13 -0
- package/src/lib/sip.js/core/transactions/transaction-user.ts +82 -0
- package/src/lib/sip.js/core/transactions/transaction.ts +149 -0
- package/src/lib/sip.js/core/transport.ts +32 -0
- package/src/lib/sip.js/core/user-agent-core/allowed-methods.ts +19 -0
- package/src/lib/sip.js/core/user-agent-core/index.ts +3 -0
- package/src/lib/sip.js/core/user-agent-core/user-agent-core-configuration.ts +111 -0
- package/src/lib/sip.js/core/user-agent-core/user-agent-core-delegate.ts +50 -0
- package/src/lib/sip.js/core/user-agent-core/user-agent-core.ts +905 -0
- package/src/lib/sip.js/core/user-agents/bye-user-agent-client.ts +16 -0
- package/src/lib/sip.js/core/user-agents/bye-user-agent-server.ts +14 -0
- package/src/lib/sip.js/core/user-agents/cancel-user-agent-client.ts +14 -0
- package/src/lib/sip.js/core/user-agents/index.ts +26 -0
- package/src/lib/sip.js/core/user-agents/info-user-agent-client.ts +15 -0
- package/src/lib/sip.js/core/user-agents/info-user-agent-server.ts +14 -0
- package/src/lib/sip.js/core/user-agents/invite-user-agent-client.ts +406 -0
- package/src/lib/sip.js/core/user-agents/invite-user-agent-server.ts +269 -0
- package/src/lib/sip.js/core/user-agents/message-user-agent-client.ts +14 -0
- package/src/lib/sip.js/core/user-agents/message-user-agent-server.ts +14 -0
- package/src/lib/sip.js/core/user-agents/notify-user-agent-client.ts +15 -0
- package/src/lib/sip.js/core/user-agents/notify-user-agent-server.ts +30 -0
- package/src/lib/sip.js/core/user-agents/prack-user-agent-client.ts +16 -0
- package/src/lib/sip.js/core/user-agents/prack-user-agent-server.ts +37 -0
- package/src/lib/sip.js/core/user-agents/publish-user-agent-client.ts +14 -0
- package/src/lib/sip.js/core/user-agents/re-invite-user-agent-client.ts +128 -0
- package/src/lib/sip.js/core/user-agents/re-invite-user-agent-server.ts +109 -0
- package/src/lib/sip.js/core/user-agents/re-subscribe-user-agent-client.ts +78 -0
- package/src/lib/sip.js/core/user-agents/re-subscribe-user-agent-server.ts +14 -0
- package/src/lib/sip.js/core/user-agents/refer-user-agent-client.ts +15 -0
- package/src/lib/sip.js/core/user-agents/refer-user-agent-server.ts +30 -0
- package/src/lib/sip.js/core/user-agents/register-user-agent-client.ts +14 -0
- package/src/lib/sip.js/core/user-agents/register-user-agent-server.ts +14 -0
- package/src/lib/sip.js/core/user-agents/subscribe-user-agent-client.ts +342 -0
- package/src/lib/sip.js/core/user-agents/subscribe-user-agent-server.ts +14 -0
- package/src/lib/sip.js/core/user-agents/user-agent-client.ts +378 -0
- package/src/lib/sip.js/core/user-agents/user-agent-server.ts +276 -0
- package/src/lib/sip.js/grammar/grammar.ts +55 -0
- package/src/lib/sip.js/grammar/index.ts +4 -0
- package/src/lib/sip.js/grammar/name-addr-header.ts +58 -0
- package/src/lib/sip.js/grammar/parameters.ts +45 -0
- package/src/lib/sip.js/grammar/pegjs/README.md +9 -0
- package/src/lib/sip.js/grammar/pegjs/dist/grammar.ts +1557 -0
- package/src/lib/sip.js/grammar/pegjs/src/grammar.pegjs +1009 -0
- package/src/lib/sip.js/grammar/uri.ts +370 -0
- package/src/lib/sip.js/index.ts +20 -0
- package/src/lib/sip.js/platform/react/README.md +1 -0
- package/src/lib/sip.js/platform/web/index.ts +4 -0
- package/src/lib/sip.js/platform/web/modifiers/index.ts +5 -0
- package/src/lib/sip.js/platform/web/modifiers/modifiers.ts +180 -0
- package/src/lib/sip.js/platform/web/session-description-handler/api-extractor.json +350 -0
- package/src/lib/sip.js/platform/web/session-description-handler/index.ts +14 -0
- package/src/lib/sip.js/platform/web/session-description-handler/media-stream-factory-default.ts +22 -0
- package/src/lib/sip.js/platform/web/session-description-handler/media-stream-factory.ts +10 -0
- package/src/lib/sip.js/platform/web/session-description-handler/peer-connection-configuration-default.ts +17 -0
- package/src/lib/sip.js/platform/web/session-description-handler/peer-connection-delegate.ts +72 -0
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-configuration.ts +17 -0
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-default.ts +45 -0
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-options.ts +10 -0
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory.ts +17 -0
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-options.ts +56 -0
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler.ts +938 -0
- package/src/lib/sip.js/platform/web/simple-user/api-extractor.json +350 -0
- package/src/lib/sip.js/platform/web/simple-user/index.ts +7 -0
- package/src/lib/sip.js/platform/web/simple-user/simple-user-delegate.ts +82 -0
- package/src/lib/sip.js/platform/web/simple-user/simple-user-options.ts +102 -0
- package/src/lib/sip.js/platform/web/simple-user/simple-user.ts +1099 -0
- package/src/lib/sip.js/platform/web/transport/api-extractor.json +350 -0
- package/src/lib/sip.js/platform/web/transport/index.ts +6 -0
- package/src/lib/sip.js/platform/web/transport/transport-options.ts +34 -0
- package/src/lib/sip.js/platform/web/transport/transport.ts +743 -0
- package/src/lib/sip.js/version.ts +1 -0
- package/src/webrtc/webrtc-method.ts +49 -0
- package/src/webrtc/webrtc.ts +350 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { TransportError } from '../exceptions'
|
|
2
|
+
import { URI } from '.'
|
|
3
|
+
import { IncomingRequestMessage } from './incoming-request-message'
|
|
4
|
+
import { OutgoingResponse, ResponseOptions } from './outgoing-response'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A SIP message sent from a remote client to a local server.
|
|
8
|
+
* @remarks
|
|
9
|
+
* For the purpose of invoking a particular operation.
|
|
10
|
+
* https://tools.ietf.org/html/rfc3261#section-7.1
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export interface IncomingRequest {
|
|
14
|
+
/** Delegate providing custom handling of this incoming request. */
|
|
15
|
+
delegate?: IncomingRequestDelegate
|
|
16
|
+
/** The incoming message. */
|
|
17
|
+
readonly message: IncomingRequestMessage
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Send a 2xx positive final response to this request. Defaults to 200.
|
|
21
|
+
* @param options - Response options bucket.
|
|
22
|
+
*/
|
|
23
|
+
accept(options?: ResponseOptions): OutgoingResponse
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Send a 1xx provisional response to this request. Defaults to 180. Excludes 100.
|
|
27
|
+
* Note that per RFC 4320, this method may only be used to respond to INVITE requests.
|
|
28
|
+
* @param options - Response options bucket.
|
|
29
|
+
*/
|
|
30
|
+
progress(options?: ResponseOptions): OutgoingResponse
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Send a 3xx negative final response to this request. Defaults to 302.
|
|
34
|
+
* @param contacts - Contacts to redirect the UAC to.
|
|
35
|
+
* @param options - Response options bucket.
|
|
36
|
+
*/
|
|
37
|
+
redirect(contacts: Array<URI>, options?: ResponseOptions): OutgoingResponse
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Send a 4xx, 5xx, or 6xx negative final response to this request. Defaults to 480.
|
|
41
|
+
* @param options - Response options bucket.
|
|
42
|
+
*/
|
|
43
|
+
reject(options?: ResponseOptions): OutgoingResponse
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Send a 100 outgoing response to this request.
|
|
47
|
+
* @param options - Response options bucket.
|
|
48
|
+
*/
|
|
49
|
+
trying(options?: ResponseOptions): OutgoingResponse
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Delegate providing custom handling of incoming requests.
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export interface IncomingRequestDelegate {
|
|
57
|
+
/**
|
|
58
|
+
* Receive CANCEL request.
|
|
59
|
+
* https://tools.ietf.org/html/rfc3261#section-9.2
|
|
60
|
+
* Note: Currently CANCEL is being handled as a special case.
|
|
61
|
+
* No UAS is created to handle the CANCEL and the response to
|
|
62
|
+
* it CANCEL is being handled statelessly by the user agent core.
|
|
63
|
+
* As such, there is currently no way to externally impact the
|
|
64
|
+
* response to the a CANCEL request and thus the method here is
|
|
65
|
+
* receiving a "message" (as apposed to a "uas").
|
|
66
|
+
* @param message - Incoming CANCEL request message.
|
|
67
|
+
*/
|
|
68
|
+
onCancel?(message: IncomingRequestMessage): void
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* A transport error occurred attempted to send a response.
|
|
72
|
+
* @param error - Transport error.
|
|
73
|
+
*/
|
|
74
|
+
onTransportError?(error: TransportError): void
|
|
75
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IncomingMessage } from "./incoming-message";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Incoming response message.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export class IncomingResponseMessage extends IncomingMessage {
|
|
8
|
+
public statusCode: number | undefined;
|
|
9
|
+
public reasonPhrase: string | undefined;
|
|
10
|
+
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IncomingResponseMessage } from "./incoming-response-message";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A SIP message sent from a remote server to a local client.
|
|
5
|
+
* @remarks
|
|
6
|
+
* For indicating the status of a request sent from the client to the server.
|
|
7
|
+
* https://tools.ietf.org/html/rfc3261#section-7.2
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export interface IncomingResponse {
|
|
11
|
+
/** The incoming message. */
|
|
12
|
+
readonly message: IncomingResponseMessage;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Grammar
|
|
2
|
+
export * from "../../grammar";
|
|
3
|
+
|
|
4
|
+
// Directories
|
|
5
|
+
export * from "./methods";
|
|
6
|
+
|
|
7
|
+
// Files
|
|
8
|
+
export * from "./body";
|
|
9
|
+
export * from "./digest-authentication";
|
|
10
|
+
export * from "./incoming-message";
|
|
11
|
+
export * from "./incoming-request-message";
|
|
12
|
+
export * from "./incoming-request";
|
|
13
|
+
export * from "./incoming-response-message";
|
|
14
|
+
export * from "./incoming-response";
|
|
15
|
+
export * from "./outgoing-request-message";
|
|
16
|
+
export * from "./outgoing-request";
|
|
17
|
+
export * from "./outgoing-response";
|
|
18
|
+
export * from "./parser";
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
// Scoped from: https://github.com/cotag/ts-md5
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
|
|
9
|
+
TypeScript Md5
|
|
10
|
+
==============
|
|
11
|
+
|
|
12
|
+
Based on work by
|
|
13
|
+
* Joseph Myers: http://www.myersdaily.org/joseph/javascript/md5-text.html
|
|
14
|
+
* André Cruz: https://github.com/satazor/SparkMD5
|
|
15
|
+
* Raymond Hill: https://github.com/gorhill/yamd5.js
|
|
16
|
+
|
|
17
|
+
Effectively a TypeScrypt re-write of Raymond Hill JS Library
|
|
18
|
+
|
|
19
|
+
The MIT License (MIT)
|
|
20
|
+
|
|
21
|
+
Copyright (C) 2014 Raymond Hill
|
|
22
|
+
|
|
23
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
24
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
25
|
+
in the Software without restriction, including without limitation the rights
|
|
26
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
27
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
28
|
+
furnished to do so, subject to the following conditions:
|
|
29
|
+
|
|
30
|
+
The above copyright notice and this permission notice shall be included in
|
|
31
|
+
all copies or substantial portions of the Software.
|
|
32
|
+
|
|
33
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
34
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
35
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
36
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
37
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
38
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
39
|
+
THE SOFTWARE.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
44
|
+
Version 2, December 2004
|
|
45
|
+
|
|
46
|
+
Copyright (C) 2015 André Cruz <amdfcruz@gmail.com>
|
|
47
|
+
|
|
48
|
+
Everyone is permitted to copy and distribute verbatim or modified
|
|
49
|
+
copies of this license document, and changing it is allowed as long
|
|
50
|
+
as the name is changed.
|
|
51
|
+
|
|
52
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
53
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
54
|
+
|
|
55
|
+
0. You just DO WHAT THE FUCK YOU WANT TO.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
export class Md5 {
|
|
61
|
+
|
|
62
|
+
// One time hashing functions
|
|
63
|
+
public static hashStr(str: string, raw?: false): string
|
|
64
|
+
public static hashStr(str: string, raw?: true): Int32Array
|
|
65
|
+
public static hashStr(str: string, raw: boolean = false) {
|
|
66
|
+
return this.onePassHasher
|
|
67
|
+
.start()
|
|
68
|
+
.appendStr(str)
|
|
69
|
+
.end(raw);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public static hashAsciiStr(str: string, raw?: false): string
|
|
73
|
+
public static hashAsciiStr(str: string, raw?: true): Int32Array
|
|
74
|
+
public static hashAsciiStr(str: string, raw: boolean = false) {
|
|
75
|
+
return this.onePassHasher
|
|
76
|
+
.start()
|
|
77
|
+
.appendAsciiStr(str)
|
|
78
|
+
.end(raw);
|
|
79
|
+
}
|
|
80
|
+
// Private Static Variables
|
|
81
|
+
private static stateIdentity = new Int32Array([1732584193, -271733879, -1732584194, 271733878]);
|
|
82
|
+
private static buffer32Identity = new Int32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
|
83
|
+
private static hexChars = '0123456789abcdef';
|
|
84
|
+
private static hexOut: string[] = [];
|
|
85
|
+
|
|
86
|
+
// Permanent instance is to use for one-call hashing
|
|
87
|
+
private static onePassHasher = new Md5();
|
|
88
|
+
|
|
89
|
+
private static _hex(x: any): string {
|
|
90
|
+
const hc = Md5.hexChars;
|
|
91
|
+
const ho = Md5.hexOut;
|
|
92
|
+
let n;
|
|
93
|
+
let offset;
|
|
94
|
+
let j;
|
|
95
|
+
let i;
|
|
96
|
+
|
|
97
|
+
for (i = 0; i < 4; i += 1) {
|
|
98
|
+
offset = i * 8;
|
|
99
|
+
n = x[i];
|
|
100
|
+
for (j = 0; j < 8; j += 2) {
|
|
101
|
+
ho[offset + 1 + j] = hc.charAt(n & 0x0F);
|
|
102
|
+
n >>>= 4;
|
|
103
|
+
ho[offset + 0 + j] = hc.charAt(n & 0x0F);
|
|
104
|
+
n >>>= 4;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return ho.join('');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
private static _md5cycle(x: Int32Array|Uint32Array, k: Int32Array|Uint32Array) {
|
|
111
|
+
let a = x[0];
|
|
112
|
+
let b = x[1];
|
|
113
|
+
let c = x[2];
|
|
114
|
+
let d = x[3];
|
|
115
|
+
// ff()
|
|
116
|
+
a += (b & c | ~b & d) + k[0] - 680876936 | 0;
|
|
117
|
+
a = (a << 7 | a >>> 25) + b | 0;
|
|
118
|
+
d += (a & b | ~a & c) + k[1] - 389564586 | 0;
|
|
119
|
+
d = (d << 12 | d >>> 20) + a | 0;
|
|
120
|
+
c += (d & a | ~d & b) + k[2] + 606105819 | 0;
|
|
121
|
+
c = (c << 17 | c >>> 15) + d | 0;
|
|
122
|
+
b += (c & d | ~c & a) + k[3] - 1044525330 | 0;
|
|
123
|
+
b = (b << 22 | b >>> 10) + c | 0;
|
|
124
|
+
a += (b & c | ~b & d) + k[4] - 176418897 | 0;
|
|
125
|
+
a = (a << 7 | a >>> 25) + b | 0;
|
|
126
|
+
d += (a & b | ~a & c) + k[5] + 1200080426 | 0;
|
|
127
|
+
d = (d << 12 | d >>> 20) + a | 0;
|
|
128
|
+
c += (d & a | ~d & b) + k[6] - 1473231341 | 0;
|
|
129
|
+
c = (c << 17 | c >>> 15) + d | 0;
|
|
130
|
+
b += (c & d | ~c & a) + k[7] - 45705983 | 0;
|
|
131
|
+
b = (b << 22 | b >>> 10) + c | 0;
|
|
132
|
+
a += (b & c | ~b & d) + k[8] + 1770035416 | 0;
|
|
133
|
+
a = (a << 7 | a >>> 25) + b | 0;
|
|
134
|
+
d += (a & b | ~a & c) + k[9] - 1958414417 | 0;
|
|
135
|
+
d = (d << 12 | d >>> 20) + a | 0;
|
|
136
|
+
c += (d & a | ~d & b) + k[10] - 42063 | 0;
|
|
137
|
+
c = (c << 17 | c >>> 15) + d | 0;
|
|
138
|
+
b += (c & d | ~c & a) + k[11] - 1990404162 | 0;
|
|
139
|
+
b = (b << 22 | b >>> 10) + c | 0;
|
|
140
|
+
a += (b & c | ~b & d) + k[12] + 1804603682 | 0;
|
|
141
|
+
a = (a << 7 | a >>> 25) + b | 0;
|
|
142
|
+
d += (a & b | ~a & c) + k[13] - 40341101 | 0;
|
|
143
|
+
d = (d << 12 | d >>> 20) + a | 0;
|
|
144
|
+
c += (d & a | ~d & b) + k[14] - 1502002290 | 0;
|
|
145
|
+
c = (c << 17 | c >>> 15) + d | 0;
|
|
146
|
+
b += (c & d | ~c & a) + k[15] + 1236535329 | 0;
|
|
147
|
+
b = (b << 22 | b >>> 10) + c | 0;
|
|
148
|
+
// gg()
|
|
149
|
+
a += (b & d | c & ~d) + k[1] - 165796510 | 0;
|
|
150
|
+
a = (a << 5 | a >>> 27) + b | 0;
|
|
151
|
+
d += (a & c | b & ~c) + k[6] - 1069501632 | 0;
|
|
152
|
+
d = (d << 9 | d >>> 23) + a | 0;
|
|
153
|
+
c += (d & b | a & ~b) + k[11] + 643717713 | 0;
|
|
154
|
+
c = (c << 14 | c >>> 18) + d | 0;
|
|
155
|
+
b += (c & a | d & ~a) + k[0] - 373897302 | 0;
|
|
156
|
+
b = (b << 20 | b >>> 12) + c | 0;
|
|
157
|
+
a += (b & d | c & ~d) + k[5] - 701558691 | 0;
|
|
158
|
+
a = (a << 5 | a >>> 27) + b | 0;
|
|
159
|
+
d += (a & c | b & ~c) + k[10] + 38016083 | 0;
|
|
160
|
+
d = (d << 9 | d >>> 23) + a | 0;
|
|
161
|
+
c += (d & b | a & ~b) + k[15] - 660478335 | 0;
|
|
162
|
+
c = (c << 14 | c >>> 18) + d | 0;
|
|
163
|
+
b += (c & a | d & ~a) + k[4] - 405537848 | 0;
|
|
164
|
+
b = (b << 20 | b >>> 12) + c | 0;
|
|
165
|
+
a += (b & d | c & ~d) + k[9] + 568446438 | 0;
|
|
166
|
+
a = (a << 5 | a >>> 27) + b | 0;
|
|
167
|
+
d += (a & c | b & ~c) + k[14] - 1019803690 | 0;
|
|
168
|
+
d = (d << 9 | d >>> 23) + a | 0;
|
|
169
|
+
c += (d & b | a & ~b) + k[3] - 187363961 | 0;
|
|
170
|
+
c = (c << 14 | c >>> 18) + d | 0;
|
|
171
|
+
b += (c & a | d & ~a) + k[8] + 1163531501 | 0;
|
|
172
|
+
b = (b << 20 | b >>> 12) + c | 0;
|
|
173
|
+
a += (b & d | c & ~d) + k[13] - 1444681467 | 0;
|
|
174
|
+
a = (a << 5 | a >>> 27) + b | 0;
|
|
175
|
+
d += (a & c | b & ~c) + k[2] - 51403784 | 0;
|
|
176
|
+
d = (d << 9 | d >>> 23) + a | 0;
|
|
177
|
+
c += (d & b | a & ~b) + k[7] + 1735328473 | 0;
|
|
178
|
+
c = (c << 14 | c >>> 18) + d | 0;
|
|
179
|
+
b += (c & a | d & ~a) + k[12] - 1926607734 | 0;
|
|
180
|
+
b = (b << 20 | b >>> 12) + c | 0;
|
|
181
|
+
// hh()
|
|
182
|
+
a += (b ^ c ^ d) + k[5] - 378558 | 0;
|
|
183
|
+
a = (a << 4 | a >>> 28) + b | 0;
|
|
184
|
+
d += (a ^ b ^ c) + k[8] - 2022574463 | 0;
|
|
185
|
+
d = (d << 11 | d >>> 21) + a | 0;
|
|
186
|
+
c += (d ^ a ^ b) + k[11] + 1839030562 | 0;
|
|
187
|
+
c = (c << 16 | c >>> 16) + d | 0;
|
|
188
|
+
b += (c ^ d ^ a) + k[14] - 35309556 | 0;
|
|
189
|
+
b = (b << 23 | b >>> 9) + c | 0;
|
|
190
|
+
a += (b ^ c ^ d) + k[1] - 1530992060 | 0;
|
|
191
|
+
a = (a << 4 | a >>> 28) + b | 0;
|
|
192
|
+
d += (a ^ b ^ c) + k[4] + 1272893353 | 0;
|
|
193
|
+
d = (d << 11 | d >>> 21) + a | 0;
|
|
194
|
+
c += (d ^ a ^ b) + k[7] - 155497632 | 0;
|
|
195
|
+
c = (c << 16 | c >>> 16) + d | 0;
|
|
196
|
+
b += (c ^ d ^ a) + k[10] - 1094730640 | 0;
|
|
197
|
+
b = (b << 23 | b >>> 9) + c | 0;
|
|
198
|
+
a += (b ^ c ^ d) + k[13] + 681279174 | 0;
|
|
199
|
+
a = (a << 4 | a >>> 28) + b | 0;
|
|
200
|
+
d += (a ^ b ^ c) + k[0] - 358537222 | 0;
|
|
201
|
+
d = (d << 11 | d >>> 21) + a | 0;
|
|
202
|
+
c += (d ^ a ^ b) + k[3] - 722521979 | 0;
|
|
203
|
+
c = (c << 16 | c >>> 16) + d | 0;
|
|
204
|
+
b += (c ^ d ^ a) + k[6] + 76029189 | 0;
|
|
205
|
+
b = (b << 23 | b >>> 9) + c | 0;
|
|
206
|
+
a += (b ^ c ^ d) + k[9] - 640364487 | 0;
|
|
207
|
+
a = (a << 4 | a >>> 28) + b | 0;
|
|
208
|
+
d += (a ^ b ^ c) + k[12] - 421815835 | 0;
|
|
209
|
+
d = (d << 11 | d >>> 21) + a | 0;
|
|
210
|
+
c += (d ^ a ^ b) + k[15] + 530742520 | 0;
|
|
211
|
+
c = (c << 16 | c >>> 16) + d | 0;
|
|
212
|
+
b += (c ^ d ^ a) + k[2] - 995338651 | 0;
|
|
213
|
+
b = (b << 23 | b >>> 9) + c | 0;
|
|
214
|
+
// ii()
|
|
215
|
+
a += (c ^ (b | ~d)) + k[0] - 198630844 | 0;
|
|
216
|
+
a = (a << 6 | a >>> 26) + b | 0;
|
|
217
|
+
d += (b ^ (a | ~c)) + k[7] + 1126891415 | 0;
|
|
218
|
+
d = (d << 10 | d >>> 22) + a | 0;
|
|
219
|
+
c += (a ^ (d | ~b)) + k[14] - 1416354905 | 0;
|
|
220
|
+
c = (c << 15 | c >>> 17) + d | 0;
|
|
221
|
+
b += (d ^ (c | ~a)) + k[5] - 57434055 | 0;
|
|
222
|
+
b = (b << 21 | b >>> 11) + c | 0;
|
|
223
|
+
a += (c ^ (b | ~d)) + k[12] + 1700485571 | 0;
|
|
224
|
+
a = (a << 6 | a >>> 26) + b | 0;
|
|
225
|
+
d += (b ^ (a | ~c)) + k[3] - 1894986606 | 0;
|
|
226
|
+
d = (d << 10 | d >>> 22) + a | 0;
|
|
227
|
+
c += (a ^ (d | ~b)) + k[10] - 1051523 | 0;
|
|
228
|
+
c = (c << 15 | c >>> 17) + d | 0;
|
|
229
|
+
b += (d ^ (c | ~a)) + k[1] - 2054922799 | 0;
|
|
230
|
+
b = (b << 21 | b >>> 11) + c | 0;
|
|
231
|
+
a += (c ^ (b | ~d)) + k[8] + 1873313359 | 0;
|
|
232
|
+
a = (a << 6 | a >>> 26) + b | 0;
|
|
233
|
+
d += (b ^ (a | ~c)) + k[15] - 30611744 | 0;
|
|
234
|
+
d = (d << 10 | d >>> 22) + a | 0;
|
|
235
|
+
c += (a ^ (d | ~b)) + k[6] - 1560198380 | 0;
|
|
236
|
+
c = (c << 15 | c >>> 17) + d | 0;
|
|
237
|
+
b += (d ^ (c | ~a)) + k[13] + 1309151649 | 0;
|
|
238
|
+
b = (b << 21 | b >>> 11) + c | 0;
|
|
239
|
+
a += (c ^ (b | ~d)) + k[4] - 145523070 | 0;
|
|
240
|
+
a = (a << 6 | a >>> 26) + b | 0;
|
|
241
|
+
d += (b ^ (a | ~c)) + k[11] - 1120210379 | 0;
|
|
242
|
+
d = (d << 10 | d >>> 22) + a | 0;
|
|
243
|
+
c += (a ^ (d | ~b)) + k[2] + 718787259 | 0;
|
|
244
|
+
c = (c << 15 | c >>> 17) + d | 0;
|
|
245
|
+
b += (d ^ (c | ~a)) + k[9] - 343485551 | 0;
|
|
246
|
+
b = (b << 21 | b >>> 11) + c | 0;
|
|
247
|
+
|
|
248
|
+
x[0] = a + x[0] | 0;
|
|
249
|
+
x[1] = b + x[1] | 0;
|
|
250
|
+
x[2] = c + x[2] | 0;
|
|
251
|
+
x[3] = d + x[3] | 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
private _dataLength: number = 0;
|
|
255
|
+
private _bufferLength: number = 0;
|
|
256
|
+
|
|
257
|
+
private _state: Int32Array = new Int32Array(4);
|
|
258
|
+
private _buffer: ArrayBuffer = new ArrayBuffer(68);
|
|
259
|
+
private _buffer8: Uint8Array;
|
|
260
|
+
private _buffer32: Uint32Array;
|
|
261
|
+
|
|
262
|
+
constructor() {
|
|
263
|
+
this._buffer8 = new Uint8Array(this._buffer, 0, 68);
|
|
264
|
+
this._buffer32 = new Uint32Array(this._buffer, 0, 17);
|
|
265
|
+
this.start();
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
public start() {
|
|
269
|
+
this._dataLength = 0;
|
|
270
|
+
this._bufferLength = 0;
|
|
271
|
+
this._state.set(Md5.stateIdentity);
|
|
272
|
+
return this;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// Char to code point to to array conversion:
|
|
276
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt
|
|
277
|
+
// #Example.3A_Fixing_charCodeAt_to_handle_non-Basic-Multilingual-Plane_characters_if_their_presence_earlier_in_the_string_is_unknown
|
|
278
|
+
public appendStr(str: string) {
|
|
279
|
+
const buf8 = this._buffer8;
|
|
280
|
+
const buf32 = this._buffer32;
|
|
281
|
+
let bufLen = this._bufferLength;
|
|
282
|
+
let code;
|
|
283
|
+
let i;
|
|
284
|
+
|
|
285
|
+
for (i = 0; i < str.length; i += 1) {
|
|
286
|
+
code = str.charCodeAt(i);
|
|
287
|
+
if (code < 128) {
|
|
288
|
+
buf8[bufLen++] = code;
|
|
289
|
+
} else if (code < 0x800) {
|
|
290
|
+
buf8[bufLen++] = (code >>> 6) + 0xC0;
|
|
291
|
+
buf8[bufLen++] = code & 0x3F | 0x80;
|
|
292
|
+
} else if (code < 0xD800 || code > 0xDBFF) {
|
|
293
|
+
buf8[bufLen++] = (code >>> 12) + 0xE0;
|
|
294
|
+
buf8[bufLen++] = (code >>> 6 & 0x3F) | 0x80;
|
|
295
|
+
buf8[bufLen++] = (code & 0x3F) | 0x80;
|
|
296
|
+
} else {
|
|
297
|
+
code = ((code - 0xD800) * 0x400) + (str.charCodeAt(++i) - 0xDC00) + 0x10000;
|
|
298
|
+
if (code > 0x10FFFF) {
|
|
299
|
+
throw new Error('Unicode standard supports code points up to U+10FFFF');
|
|
300
|
+
}
|
|
301
|
+
buf8[bufLen++] = (code >>> 18) + 0xF0;
|
|
302
|
+
buf8[bufLen++] = (code >>> 12 & 0x3F) | 0x80;
|
|
303
|
+
buf8[bufLen++] = (code >>> 6 & 0x3F) | 0x80;
|
|
304
|
+
buf8[bufLen++] = (code & 0x3F) | 0x80;
|
|
305
|
+
}
|
|
306
|
+
if (bufLen >= 64) {
|
|
307
|
+
this._dataLength += 64;
|
|
308
|
+
Md5._md5cycle(this._state, buf32);
|
|
309
|
+
bufLen -= 64;
|
|
310
|
+
buf32[0] = buf32[16];
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
this._bufferLength = bufLen;
|
|
314
|
+
return this;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
public appendAsciiStr(str: string) {
|
|
318
|
+
const buf8 = this._buffer8;
|
|
319
|
+
const buf32 = this._buffer32;
|
|
320
|
+
let bufLen = this._bufferLength;
|
|
321
|
+
let i;
|
|
322
|
+
let j = 0;
|
|
323
|
+
|
|
324
|
+
for (; ;) {
|
|
325
|
+
i = Math.min(str.length - j, 64 - bufLen);
|
|
326
|
+
while (i--) {
|
|
327
|
+
buf8[bufLen++] = str.charCodeAt(j++);
|
|
328
|
+
}
|
|
329
|
+
if (bufLen < 64) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
this._dataLength += 64;
|
|
333
|
+
Md5._md5cycle(this._state, buf32);
|
|
334
|
+
bufLen = 0;
|
|
335
|
+
}
|
|
336
|
+
this._bufferLength = bufLen;
|
|
337
|
+
return this;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
public appendByteArray(input: Uint8Array) {
|
|
341
|
+
const buf8 = this._buffer8;
|
|
342
|
+
const buf32 = this._buffer32;
|
|
343
|
+
let bufLen = this._bufferLength;
|
|
344
|
+
let i;
|
|
345
|
+
let j = 0;
|
|
346
|
+
|
|
347
|
+
for (; ;) {
|
|
348
|
+
i = Math.min(input.length - j, 64 - bufLen);
|
|
349
|
+
while (i--) {
|
|
350
|
+
buf8[bufLen++] = input[j++];
|
|
351
|
+
}
|
|
352
|
+
if (bufLen < 64) {
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
this._dataLength += 64;
|
|
356
|
+
Md5._md5cycle(this._state, buf32);
|
|
357
|
+
bufLen = 0;
|
|
358
|
+
}
|
|
359
|
+
this._bufferLength = bufLen;
|
|
360
|
+
return this;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
public getState() {
|
|
364
|
+
const self = this;
|
|
365
|
+
const s = self._state;
|
|
366
|
+
|
|
367
|
+
return {
|
|
368
|
+
buffer: String.fromCharCode.apply(null, self._buffer8 as any),
|
|
369
|
+
buflen: self._bufferLength,
|
|
370
|
+
length: self._dataLength,
|
|
371
|
+
state: [s[0], s[1], s[2], s[3]]
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
public setState(state: any) {
|
|
376
|
+
const buf = state.buffer;
|
|
377
|
+
const x = state.state;
|
|
378
|
+
const s = this._state;
|
|
379
|
+
let i;
|
|
380
|
+
|
|
381
|
+
this._dataLength = state.length;
|
|
382
|
+
this._bufferLength = state.buflen;
|
|
383
|
+
s[0] = x[0];
|
|
384
|
+
s[1] = x[1];
|
|
385
|
+
s[2] = x[2];
|
|
386
|
+
s[3] = x[3];
|
|
387
|
+
|
|
388
|
+
for (i = 0; i < buf.length; i += 1) {
|
|
389
|
+
this._buffer8[i] = buf.charCodeAt(i);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
public end(raw: boolean = false) {
|
|
394
|
+
const bufLen = this._bufferLength;
|
|
395
|
+
const buf8 = this._buffer8;
|
|
396
|
+
const buf32 = this._buffer32;
|
|
397
|
+
const i = (bufLen >> 2) + 1;
|
|
398
|
+
let dataBitsLen;
|
|
399
|
+
|
|
400
|
+
this._dataLength += bufLen;
|
|
401
|
+
|
|
402
|
+
buf8[bufLen] = 0x80;
|
|
403
|
+
buf8[bufLen + 1] = buf8[bufLen + 2] = buf8[bufLen + 3] = 0;
|
|
404
|
+
buf32.set(Md5.buffer32Identity.subarray(i), i);
|
|
405
|
+
|
|
406
|
+
if (bufLen > 55) {
|
|
407
|
+
Md5._md5cycle(this._state, buf32);
|
|
408
|
+
buf32.set(Md5.buffer32Identity);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// Do the final computation based on the tail and length
|
|
412
|
+
// Beware that the final length may not fit in 32 bits so we take care of that
|
|
413
|
+
dataBitsLen = this._dataLength * 8;
|
|
414
|
+
if (dataBitsLen <= 0xFFFFFFFF) {
|
|
415
|
+
buf32[14] = dataBitsLen;
|
|
416
|
+
} else {
|
|
417
|
+
const matches = dataBitsLen.toString(16).match(/(.*?)(.{0,8})$/);
|
|
418
|
+
if (matches === null) {
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
const lo = parseInt(matches[2], 16);
|
|
423
|
+
const hi = parseInt(matches[1], 16) || 0;
|
|
424
|
+
|
|
425
|
+
buf32[14] = lo;
|
|
426
|
+
buf32[15] = hi;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
Md5._md5cycle(this._state, buf32);
|
|
430
|
+
|
|
431
|
+
return raw ? this._state : Md5._hex(this._state);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
if (Md5.hashStr('hello') !== '5d41402abc4b2a76b9719d911017c592') {
|
|
436
|
+
console.error('Md5 self test failed.');
|
|
437
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IncomingRequestMessage } from "../incoming-request-message";
|
|
2
|
+
import { OutgoingRequestMessage } from "../outgoing-request-message";
|
|
3
|
+
|
|
4
|
+
// Note: As a request with no response, ACK is a special case.
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Incoming ACK request.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export interface IncomingAckRequest {
|
|
11
|
+
/** The incoming message. */
|
|
12
|
+
readonly message: IncomingRequestMessage;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Outgoing ACK request.
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface OutgoingAckRequest {
|
|
20
|
+
/** The outgoing message. */
|
|
21
|
+
readonly message: OutgoingRequestMessage;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
2
|
+
import { IncomingRequest } from "../incoming-request";
|
|
3
|
+
import { IncomingResponse } from "../incoming-response";
|
|
4
|
+
import { OutgoingRequest } from "../outgoing-request";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Incoming BYE request.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export interface IncomingByeRequest extends IncomingRequest {}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Incoming BYE response.
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface IncomingByeResponse extends IncomingResponse {}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Outgoing BYE request.
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface OutgoingByeRequest extends OutgoingRequest {}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
2
|
+
import { IncomingRequest } from "../incoming-request";
|
|
3
|
+
import { IncomingResponse } from "../incoming-response";
|
|
4
|
+
import { OutgoingRequest } from "../outgoing-request";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Incoming CANCEL request.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export interface IncomingCancelRequest extends IncomingRequest {}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Incoming CANCEL response.
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface IncomingCancelResponse extends IncomingResponse {}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Outgoing CANCEL request.
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface OutgoingCancelRequest extends OutgoingRequest {}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
/**
|
|
3
|
+
* SIP Methods
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export namespace C {
|
|
7
|
+
export const ACK = "ACK";
|
|
8
|
+
export const BYE = "BYE";
|
|
9
|
+
export const CANCEL = "CANCEL";
|
|
10
|
+
export const INFO = "INFO";
|
|
11
|
+
export const INVITE = "INVITE";
|
|
12
|
+
export const MESSAGE = "MESSAGE";
|
|
13
|
+
export const NOTIFY = "NOTIFY";
|
|
14
|
+
export const OPTIONS = "OPTIONS";
|
|
15
|
+
export const REGISTER = "REGISTER";
|
|
16
|
+
export const UPDATE = "UPDATE";
|
|
17
|
+
export const SUBSCRIBE = "SUBSCRIBE";
|
|
18
|
+
export const PUBLISH = "PUBLISH";
|
|
19
|
+
export const REFER = "REFER";
|
|
20
|
+
export const PRACK = "PRACK";
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./constants";
|
|
2
|
+
export * from "./ack";
|
|
3
|
+
export * from "./bye";
|
|
4
|
+
export * from "./cancel";
|
|
5
|
+
export * from "./info";
|
|
6
|
+
export * from "./invite";
|
|
7
|
+
export * from "./message";
|
|
8
|
+
export * from "./notify";
|
|
9
|
+
export * from "./prack";
|
|
10
|
+
export * from "./publish";
|
|
11
|
+
export * from "./register";
|
|
12
|
+
export * from "./refer";
|
|
13
|
+
export * from "./subscribe";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
2
|
+
import { IncomingRequest } from "../incoming-request";
|
|
3
|
+
import { IncomingResponse } from "../incoming-response";
|
|
4
|
+
import { OutgoingRequest } from "../outgoing-request";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Incoming INFO request.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export interface IncomingInfoRequest extends IncomingRequest {}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Incoming INFO response.
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface IncomingInfoResponse extends IncomingResponse {}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Outgoing INFO request.
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface OutgoingInfoRequest extends OutgoingRequest {}
|