ue-softphone-sdk 4.0.0 → 4.0.2
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/dist/lib/ue-soft-phone.min.js +2 -2
- package/dist/ue-softphone-sdk.js +2 -2
- package/package.json +4 -1
- package/.babelrc +0 -12
- package/.gitlab-ci.yml +0 -3
- package/Dockerfile +0 -17
- package/dist/lib/types/lib/sip.js/api/ack.d.ts +0 -12
- package/dist/lib/types/lib/sip.js/api/bye.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/api/dtmf.d.ts +0 -15
- package/dist/lib/types/lib/sip.js/api/emitter.d.ts +0 -88
- package/dist/lib/types/lib/sip.js/api/exceptions/content-type-unsupported.d.ts +0 -8
- package/dist/lib/types/lib/sip.js/api/exceptions/index.d.ts +0 -5
- package/dist/lib/types/lib/sip.js/api/exceptions/request-pending.d.ts +0 -9
- package/dist/lib/types/lib/sip.js/api/exceptions/session-description-handler.d.ts +0 -8
- package/dist/lib/types/lib/sip.js/api/exceptions/session-terminated.d.ts +0 -8
- package/dist/lib/types/lib/sip.js/api/exceptions/state-transition.d.ts +0 -8
- package/dist/lib/types/lib/sip.js/api/index.d.ts +0 -59
- package/dist/lib/types/lib/sip.js/api/info.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/api/invitation-accept-options.d.ts +0 -19
- package/dist/lib/types/lib/sip.js/api/invitation-progress-options.d.ts +0 -38
- package/dist/lib/types/lib/sip.js/api/invitation-reject-options.d.ts +0 -25
- package/dist/lib/types/lib/sip.js/api/invitation.d.ts +0 -179
- package/dist/lib/types/lib/sip.js/api/inviter-cancel-options.d.ts +0 -9
- package/dist/lib/types/lib/sip.js/api/inviter-invite-options.d.ts +0 -28
- package/dist/lib/types/lib/sip.js/api/inviter-options.d.ts +0 -43
- package/dist/lib/types/lib/sip.js/api/inviter.d.ts +0 -236
- package/dist/lib/types/lib/sip.js/api/message.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/api/messager-message-options.d.ts +0 -11
- package/dist/lib/types/lib/sip.js/api/messager-options.d.ts +0 -17
- package/dist/lib/types/lib/sip.js/api/messager.d.ts +0 -26
- package/dist/lib/types/lib/sip.js/api/notification.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/api/notifier.d.ts +0 -8
- package/dist/lib/types/lib/sip.js/api/publisher-options.d.ts +0 -33
- package/dist/lib/types/lib/sip.js/api/publisher-publish-options.d.ts +0 -6
- package/dist/lib/types/lib/sip.js/api/publisher-state.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/api/publisher-unpublish-options.d.ts +0 -6
- package/dist/lib/types/lib/sip.js/api/publisher.d.ts +0 -65
- package/dist/lib/types/lib/sip.js/api/referral.d.ts +0 -38
- package/dist/lib/types/lib/sip.js/api/registerer-options.d.ts +0 -46
- package/dist/lib/types/lib/sip.js/api/registerer-register-options.d.ts +0 -11
- package/dist/lib/types/lib/sip.js/api/registerer-state.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/api/registerer-unregister-options.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/api/registerer.d.ts +0 -144
- package/dist/lib/types/lib/sip.js/api/session-bye-options.d.ts +0 -11
- package/dist/lib/types/lib/sip.js/api/session-delegate.d.ts +0 -79
- package/dist/lib/types/lib/sip.js/api/session-description-handler-factory.d.ts +0 -15
- package/dist/lib/types/lib/sip.js/api/session-description-handler.d.ts +0 -74
- package/dist/lib/types/lib/sip.js/api/session-info-options.d.ts +0 -11
- package/dist/lib/types/lib/sip.js/api/session-invite-options.d.ts +0 -28
- package/dist/lib/types/lib/sip.js/api/session-message-options.d.ts +0 -11
- package/dist/lib/types/lib/sip.js/api/session-options.d.ts +0 -8
- package/dist/lib/types/lib/sip.js/api/session-refer-options.d.ts +0 -14
- package/dist/lib/types/lib/sip.js/api/session-state.d.ts +0 -45
- package/dist/lib/types/lib/sip.js/api/session.d.ts +0 -359
- package/dist/lib/types/lib/sip.js/api/subscriber-options.d.ts +0 -11
- package/dist/lib/types/lib/sip.js/api/subscriber-subscribe-options.d.ts +0 -6
- package/dist/lib/types/lib/sip.js/api/subscriber.d.ts +0 -94
- package/dist/lib/types/lib/sip.js/api/subscription-delegate.d.ts +0 -12
- package/dist/lib/types/lib/sip.js/api/subscription-options.d.ts +0 -8
- package/dist/lib/types/lib/sip.js/api/subscription-state.d.ts +0 -19
- package/dist/lib/types/lib/sip.js/api/subscription-subscribe-options.d.ts +0 -6
- package/dist/lib/types/lib/sip.js/api/subscription-unsubscribe-options.d.ts +0 -6
- package/dist/lib/types/lib/sip.js/api/subscription.d.ts +0 -84
- package/dist/lib/types/lib/sip.js/api/transport-state.d.ts +0 -37
- package/dist/lib/types/lib/sip.js/api/transport.d.ts +0 -159
- package/dist/lib/types/lib/sip.js/api/user-agent-delegate.d.ts +0 -84
- package/dist/lib/types/lib/sip.js/api/user-agent-options.d.ts +0 -253
- package/dist/lib/types/lib/sip.js/api/user-agent-state.d.ts +0 -14
- package/dist/lib/types/lib/sip.js/api/user-agent.d.ts +0 -200
- package/dist/lib/types/lib/sip.js/core/dialogs/dialog-state.d.ts +0 -34
- package/dist/lib/types/lib/sip.js/core/dialogs/dialog.d.ts +0 -161
- package/dist/lib/types/lib/sip.js/core/dialogs/index.d.ts +0 -4
- package/dist/lib/types/lib/sip.js/core/dialogs/session-dialog.d.ts +0 -196
- package/dist/lib/types/lib/sip.js/core/dialogs/subscription-dialog.d.ts +0 -120
- package/dist/lib/types/lib/sip.js/core/exceptions/exception.d.ts +0 -8
- package/dist/lib/types/lib/sip.js/core/exceptions/index.d.ts +0 -3
- package/dist/lib/types/lib/sip.js/core/exceptions/transaction-state-error.d.ts +0 -8
- package/dist/lib/types/lib/sip.js/core/exceptions/transport-error.d.ts +0 -8
- package/dist/lib/types/lib/sip.js/core/index.d.ts +0 -15
- package/dist/lib/types/lib/sip.js/core/log/index.d.ts +0 -3
- package/dist/lib/types/lib/sip.js/core/log/levels.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/log/logger-factory.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/core/log/logger.d.ts +0 -19
- package/dist/lib/types/lib/sip.js/core/messages/body.d.ts +0 -64
- package/dist/lib/types/lib/sip.js/core/messages/digest-authentication.d.ts +0 -51
- package/dist/lib/types/lib/sip.js/core/messages/incoming-message.d.ts +0 -79
- package/dist/lib/types/lib/sip.js/core/messages/incoming-request-message.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/messages/incoming-request.d.ts +0 -67
- package/dist/lib/types/lib/sip.js/core/messages/incoming-response-message.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/messages/incoming-response.d.ts +0 -12
- package/dist/lib/types/lib/sip.js/core/messages/index.d.ts +0 -13
- package/dist/lib/types/lib/sip.js/core/messages/md5.d.ts +0 -32
- package/dist/lib/types/lib/sip.js/core/messages/methods/ack.d.ts +0 -18
- package/dist/lib/types/lib/sip.js/core/messages/methods/bye.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/core/messages/methods/cancel.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/core/messages/methods/constants.d.ts +0 -20
- package/dist/lib/types/lib/sip.js/core/messages/methods/index.d.ts +0 -13
- package/dist/lib/types/lib/sip.js/core/messages/methods/info.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/core/messages/methods/invite.d.ts +0 -86
- package/dist/lib/types/lib/sip.js/core/messages/methods/message.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/core/messages/methods/notify.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/core/messages/methods/prack.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/core/messages/methods/publish.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/core/messages/methods/refer.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/core/messages/methods/register.d.ts +0 -21
- package/dist/lib/types/lib/sip.js/core/messages/methods/subscribe.d.ts +0 -54
- package/dist/lib/types/lib/sip.js/core/messages/outgoing-request-message.d.ts +0 -94
- package/dist/lib/types/lib/sip.js/core/messages/outgoing-request.d.ts +0 -67
- package/dist/lib/types/lib/sip.js/core/messages/outgoing-response.d.ts +0 -42
- package/dist/lib/types/lib/sip.js/core/messages/parser.d.ts +0 -14
- package/dist/lib/types/lib/sip.js/core/messages/utils.d.ts +0 -24
- package/dist/lib/types/lib/sip.js/core/session/index.d.ts +0 -2
- package/dist/lib/types/lib/sip.js/core/session/session-delegate.d.ts +0 -70
- package/dist/lib/types/lib/sip.js/core/session/session.d.ts +0 -134
- package/dist/lib/types/lib/sip.js/core/subscription/index.d.ts +0 -2
- package/dist/lib/types/lib/sip.js/core/subscription/subscription-delegate.d.ts +0 -27
- package/dist/lib/types/lib/sip.js/core/subscription/subscription.d.ts +0 -55
- package/dist/lib/types/lib/sip.js/core/timers.d.ts +0 -20
- package/dist/lib/types/lib/sip.js/core/transactions/client-transaction.d.ts +0 -45
- package/dist/lib/types/lib/sip.js/core/transactions/index.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/transactions/invite-client-transaction.d.ts +0 -116
- package/dist/lib/types/lib/sip.js/core/transactions/invite-server-transaction.d.ts +0 -127
- package/dist/lib/types/lib/sip.js/core/transactions/non-invite-client-transaction.d.ts +0 -69
- package/dist/lib/types/lib/sip.js/core/transactions/non-invite-server-transaction.d.ts +0 -57
- package/dist/lib/types/lib/sip.js/core/transactions/server-transaction.d.ts +0 -35
- package/dist/lib/types/lib/sip.js/core/transactions/transaction-state.d.ts +0 -13
- package/dist/lib/types/lib/sip.js/core/transactions/transaction-user.d.ts +0 -72
- package/dist/lib/types/lib/sip.js/core/transactions/transaction.d.ts +0 -79
- package/dist/lib/types/lib/sip.js/core/transport.d.ts +0 -31
- package/dist/lib/types/lib/sip.js/core/user-agent-core/allowed-methods.d.ts +0 -4
- package/dist/lib/types/lib/sip.js/core/user-agent-core/index.d.ts +0 -3
- package/dist/lib/types/lib/sip.js/core/user-agent-core/user-agent-core-configuration.d.ts +0 -99
- package/dist/lib/types/lib/sip.js/core/user-agent-core/user-agent-core-delegate.d.ts +0 -37
- package/dist/lib/types/lib/sip.js/core/user-agent-core/user-agent-core.d.ts +0 -179
- package/dist/lib/types/lib/sip.js/core/user-agents/bye-user-agent-client.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/bye-user-agent-server.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/cancel-user-agent-client.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/index.d.ts +0 -26
- package/dist/lib/types/lib/sip.js/core/user-agents/info-user-agent-client.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/info-user-agent-server.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/invite-user-agent-client.d.ts +0 -35
- package/dist/lib/types/lib/sip.js/core/user-agents/invite-user-agent-server.d.ts +0 -77
- package/dist/lib/types/lib/sip.js/core/user-agents/message-user-agent-client.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/message-user-agent-server.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/notify-user-agent-client.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/notify-user-agent-server.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/core/user-agents/prack-user-agent-client.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/prack-user-agent-server.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/core/user-agents/publish-user-agent-client.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/re-invite-user-agent-client.d.ts +0 -18
- package/dist/lib/types/lib/sip.js/core/user-agents/re-invite-user-agent-server.d.ts +0 -41
- package/dist/lib/types/lib/sip.js/core/user-agents/re-subscribe-user-agent-client.d.ts +0 -17
- package/dist/lib/types/lib/sip.js/core/user-agents/re-subscribe-user-agent-server.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/refer-user-agent-client.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/refer-user-agent-server.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/core/user-agents/register-user-agent-client.d.ts +0 -10
- package/dist/lib/types/lib/sip.js/core/user-agents/register-user-agent-server.d.ts +0 -11
- package/dist/lib/types/lib/sip.js/core/user-agents/subscribe-user-agent-client.d.ts +0 -65
- package/dist/lib/types/lib/sip.js/core/user-agents/subscribe-user-agent-server.d.ts +0 -11
- package/dist/lib/types/lib/sip.js/core/user-agents/user-agent-client.d.ts +0 -103
- package/dist/lib/types/lib/sip.js/core/user-agents/user-agent-server.d.ts +0 -79
- package/dist/lib/types/lib/sip.js/grammar/grammar.d.ts +0 -26
- package/dist/lib/types/lib/sip.js/grammar/index.d.ts +0 -4
- package/dist/lib/types/lib/sip.js/grammar/name-addr-header.d.ts +0 -24
- package/dist/lib/types/lib/sip.js/grammar/parameters.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/grammar/pegjs/dist/grammar.d.ts +0 -50
- package/dist/lib/types/lib/sip.js/grammar/uri.d.ts +0 -62
- package/dist/lib/types/lib/sip.js/index.d.ts +0 -9
- package/dist/lib/types/lib/sip.js/platform/web/index.d.ts +0 -4
- package/dist/lib/types/lib/sip.js/platform/web/modifiers/index.d.ts +0 -5
- package/dist/lib/types/lib/sip.js/platform/web/modifiers/modifiers.d.ts +0 -41
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/index.d.ts +0 -14
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/media-stream-factory-default.d.ts +0 -6
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/media-stream-factory.d.ts +0 -6
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/peer-connection-configuration-default.d.ts +0 -5
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/peer-connection-delegate.d.ts +0 -63
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-configuration.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-default.d.ts +0 -11
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-options.d.ts +0 -9
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory.d.ts +0 -16
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler-options.d.ts +0 -47
- package/dist/lib/types/lib/sip.js/platform/web/session-description-handler/session-description-handler.d.ts +0 -212
- package/dist/lib/types/lib/sip.js/platform/web/simple-user/index.d.ts +0 -7
- package/dist/lib/types/lib/sip.js/platform/web/simple-user/simple-user-delegate.d.ts +0 -72
- package/dist/lib/types/lib/sip.js/platform/web/simple-user/simple-user-options.d.ts +0 -90
- package/dist/lib/types/lib/sip.js/platform/web/simple-user/simple-user.d.ts +0 -226
- package/dist/lib/types/lib/sip.js/platform/web/transport/index.d.ts +0 -6
- package/dist/lib/types/lib/sip.js/platform/web/transport/transport-options.d.ts +0 -30
- package/dist/lib/types/lib/sip.js/platform/web/transport/transport.d.ts +0 -125
- package/dist/lib/types/lib/sip.js/version.d.ts +0 -1
- package/dist/lib/types/webrtc/webrtc-method.d.ts +0 -2
- package/dist/lib/types/webrtc/webrtc.d.ts +0 -38
- package/index.html/index.html +0 -118
- package/nginx.conf +0 -56
- package/rollup-new.config.mjs +0 -20
- package/rollup.config.js +0 -45
- package/src/config.ts +0 -19
- package/src/index.ts +0 -2473
- package/src/lib/sip.js/api/ack.ts +0 -15
- package/src/lib/sip.js/api/api-extractor.json +0 -350
- package/src/lib/sip.js/api/bye.ts +0 -27
- package/src/lib/sip.js/api/dtmf.ts +0 -27
- package/src/lib/sip.js/api/emitter.ts +0 -110
- package/src/lib/sip.js/api/exceptions/content-type-unsupported.ts +0 -11
- package/src/lib/sip.js/api/exceptions/index.ts +0 -5
- package/src/lib/sip.js/api/exceptions/request-pending.ts +0 -12
- package/src/lib/sip.js/api/exceptions/session-description-handler.ts +0 -11
- package/src/lib/sip.js/api/exceptions/session-terminated.ts +0 -11
- package/src/lib/sip.js/api/exceptions/state-transition.ts +0 -11
- package/src/lib/sip.js/api/index.ts +0 -59
- package/src/lib/sip.js/api/info.ts +0 -27
- package/src/lib/sip.js/api/invitation-accept-options.ts +0 -20
- package/src/lib/sip.js/api/invitation-progress-options.ts +0 -36
- package/src/lib/sip.js/api/invitation-reject-options.ts +0 -22
- package/src/lib/sip.js/api/invitation.ts +0 -815
- package/src/lib/sip.js/api/inviter-cancel-options.ts +0 -9
- package/src/lib/sip.js/api/inviter-invite-options.ts +0 -29
- package/src/lib/sip.js/api/inviter-options.ts +0 -44
- package/src/lib/sip.js/api/inviter.ts +0 -1126
- package/src/lib/sip.js/api/message.ts +0 -27
- package/src/lib/sip.js/api/messager-message-options.ts +0 -12
- package/src/lib/sip.js/api/messager-options.ts +0 -18
- package/src/lib/sip.js/api/messager.ts +0 -89
- package/src/lib/sip.js/api/notification.ts +0 -27
- package/src/lib/sip.js/api/notifier.ts +0 -7
- package/src/lib/sip.js/api/publisher-options.ts +0 -34
- package/src/lib/sip.js/api/publisher-publish-options.ts +0 -6
- package/src/lib/sip.js/api/publisher-state.ts +0 -21
- package/src/lib/sip.js/api/publisher-unpublish-options.ts +0 -6
- package/src/lib/sip.js/api/publisher.ts +0 -421
- package/src/lib/sip.js/api/referral.ts +0 -89
- package/src/lib/sip.js/api/registerer-options.ts +0 -55
- package/src/lib/sip.js/api/registerer-register-options.ts +0 -12
- package/src/lib/sip.js/api/registerer-state.ts +0 -21
- package/src/lib/sip.js/api/registerer-unregister-options.ts +0 -17
- package/src/lib/sip.js/api/registerer.ts +0 -819
- package/src/lib/sip.js/api/session-bye-options.ts +0 -12
- package/src/lib/sip.js/api/session-delegate.ts +0 -87
- package/src/lib/sip.js/api/session-description-handler-factory.ts +0 -16
- package/src/lib/sip.js/api/session-description-handler.ts +0 -89
- package/src/lib/sip.js/api/session-info-options.ts +0 -12
- package/src/lib/sip.js/api/session-invite-options.ts +0 -29
- package/src/lib/sip.js/api/session-message-options.ts +0 -12
- package/src/lib/sip.js/api/session-options.ts +0 -8
- package/src/lib/sip.js/api/session-refer-options.ts +0 -15
- package/src/lib/sip.js/api/session-state.ts +0 -45
- package/src/lib/sip.js/api/session.ts +0 -1454
- package/src/lib/sip.js/api/subscriber-options.ts +0 -12
- package/src/lib/sip.js/api/subscriber-subscribe-options.ts +0 -6
- package/src/lib/sip.js/api/subscriber.ts +0 -537
- package/src/lib/sip.js/api/subscription-delegate.ts +0 -13
- package/src/lib/sip.js/api/subscription-options.ts +0 -8
- package/src/lib/sip.js/api/subscription-state.ts +0 -19
- package/src/lib/sip.js/api/subscription-subscribe-options.ts +0 -6
- package/src/lib/sip.js/api/subscription-unsubscribe-options.ts +0 -6
- package/src/lib/sip.js/api/subscription.ts +0 -161
- package/src/lib/sip.js/api/transport-state.ts +0 -37
- package/src/lib/sip.js/api/transport.ts +0 -169
- package/src/lib/sip.js/api/user-agent-delegate.ts +0 -95
- package/src/lib/sip.js/api/user-agent-options.ts +0 -322
- package/src/lib/sip.js/api/user-agent-state.ts +0 -14
- package/src/lib/sip.js/api/user-agent.ts +0 -1013
- package/src/lib/sip.js/core/api-extractor.json +0 -350
- package/src/lib/sip.js/core/dialogs/dialog-state.ts +0 -35
- package/src/lib/sip.js/core/dialogs/dialog.ts +0 -605
- package/src/lib/sip.js/core/dialogs/index.ts +0 -4
- package/src/lib/sip.js/core/dialogs/session-dialog.ts +0 -997
- package/src/lib/sip.js/core/dialogs/subscription-dialog.ts +0 -558
- package/src/lib/sip.js/core/exceptions/exception.ts +0 -11
- package/src/lib/sip.js/core/exceptions/index.ts +0 -3
- package/src/lib/sip.js/core/exceptions/transaction-state-error.ts +0 -11
- package/src/lib/sip.js/core/exceptions/transport-error.ts +0 -11
- package/src/lib/sip.js/core/index.ts +0 -19
- package/src/lib/sip.js/core/log/index.ts +0 -3
- package/src/lib/sip.js/core/log/levels.ts +0 -10
- package/src/lib/sip.js/core/log/logger-factory.ts +0 -119
- package/src/lib/sip.js/core/log/logger.ts +0 -42
- package/src/lib/sip.js/core/messages/body.ts +0 -171
- package/src/lib/sip.js/core/messages/digest-authentication.ts +0 -190
- package/src/lib/sip.js/core/messages/incoming-message.ts +0 -152
- package/src/lib/sip.js/core/messages/incoming-request-message.ts +0 -14
- package/src/lib/sip.js/core/messages/incoming-request.ts +0 -75
- package/src/lib/sip.js/core/messages/incoming-response-message.ts +0 -14
- package/src/lib/sip.js/core/messages/incoming-response.ts +0 -13
- package/src/lib/sip.js/core/messages/index.ts +0 -18
- package/src/lib/sip.js/core/messages/md5.ts +0 -437
- package/src/lib/sip.js/core/messages/methods/ack.ts +0 -22
- package/src/lib/sip.js/core/messages/methods/bye.ts +0 -22
- package/src/lib/sip.js/core/messages/methods/cancel.ts +0 -22
- package/src/lib/sip.js/core/messages/methods/constants.ts +0 -21
- package/src/lib/sip.js/core/messages/methods/index.ts +0 -13
- package/src/lib/sip.js/core/messages/methods/info.ts +0 -22
- package/src/lib/sip.js/core/messages/methods/invite.ts +0 -104
- package/src/lib/sip.js/core/messages/methods/message.ts +0 -22
- package/src/lib/sip.js/core/messages/methods/notify.ts +0 -22
- package/src/lib/sip.js/core/messages/methods/prack.ts +0 -22
- package/src/lib/sip.js/core/messages/methods/publish.ts +0 -22
- package/src/lib/sip.js/core/messages/methods/refer.ts +0 -22
- package/src/lib/sip.js/core/messages/methods/register.ts +0 -22
- package/src/lib/sip.js/core/messages/methods/subscribe.ts +0 -59
- package/src/lib/sip.js/core/messages/outgoing-request-message.ts +0 -299
- package/src/lib/sip.js/core/messages/outgoing-request.ts +0 -77
- package/src/lib/sip.js/core/messages/outgoing-response.ts +0 -174
- package/src/lib/sip.js/core/messages/parser.ts +0 -265
- package/src/lib/sip.js/core/messages/utils.ts +0 -144
- package/src/lib/sip.js/core/session/index.ts +0 -2
- package/src/lib/sip.js/core/session/session-delegate.ts +0 -88
- package/src/lib/sip.js/core/session/session.ts +0 -158
- package/src/lib/sip.js/core/subscription/index.ts +0 -2
- package/src/lib/sip.js/core/subscription/subscription-delegate.ts +0 -30
- package/src/lib/sip.js/core/subscription/subscription.ts +0 -61
- package/src/lib/sip.js/core/timers.ts +0 -24
- package/src/lib/sip.js/core/transactions/client-transaction.ts +0 -78
- package/src/lib/sip.js/core/transactions/index.ts +0 -10
- package/src/lib/sip.js/core/transactions/invite-client-transaction.ts +0 -505
- package/src/lib/sip.js/core/transactions/invite-server-transaction.ts +0 -433
- package/src/lib/sip.js/core/transactions/non-invite-client-transaction.ts +0 -258
- package/src/lib/sip.js/core/transactions/non-invite-server-transaction.ts +0 -242
- package/src/lib/sip.js/core/transactions/server-transaction.ts +0 -47
- package/src/lib/sip.js/core/transactions/transaction-state.ts +0 -13
- package/src/lib/sip.js/core/transactions/transaction-user.ts +0 -82
- package/src/lib/sip.js/core/transactions/transaction.ts +0 -149
- package/src/lib/sip.js/core/transport.ts +0 -32
- package/src/lib/sip.js/core/user-agent-core/allowed-methods.ts +0 -19
- package/src/lib/sip.js/core/user-agent-core/index.ts +0 -3
- package/src/lib/sip.js/core/user-agent-core/user-agent-core-configuration.ts +0 -111
- package/src/lib/sip.js/core/user-agent-core/user-agent-core-delegate.ts +0 -50
- package/src/lib/sip.js/core/user-agent-core/user-agent-core.ts +0 -905
- package/src/lib/sip.js/core/user-agents/bye-user-agent-client.ts +0 -16
- package/src/lib/sip.js/core/user-agents/bye-user-agent-server.ts +0 -14
- package/src/lib/sip.js/core/user-agents/cancel-user-agent-client.ts +0 -14
- package/src/lib/sip.js/core/user-agents/index.ts +0 -26
- package/src/lib/sip.js/core/user-agents/info-user-agent-client.ts +0 -15
- package/src/lib/sip.js/core/user-agents/info-user-agent-server.ts +0 -14
- package/src/lib/sip.js/core/user-agents/invite-user-agent-client.ts +0 -406
- package/src/lib/sip.js/core/user-agents/invite-user-agent-server.ts +0 -269
- package/src/lib/sip.js/core/user-agents/message-user-agent-client.ts +0 -14
- package/src/lib/sip.js/core/user-agents/message-user-agent-server.ts +0 -14
- package/src/lib/sip.js/core/user-agents/notify-user-agent-client.ts +0 -15
- package/src/lib/sip.js/core/user-agents/notify-user-agent-server.ts +0 -30
- package/src/lib/sip.js/core/user-agents/prack-user-agent-client.ts +0 -16
- package/src/lib/sip.js/core/user-agents/prack-user-agent-server.ts +0 -37
- package/src/lib/sip.js/core/user-agents/publish-user-agent-client.ts +0 -14
- package/src/lib/sip.js/core/user-agents/re-invite-user-agent-client.ts +0 -128
- package/src/lib/sip.js/core/user-agents/re-invite-user-agent-server.ts +0 -109
- package/src/lib/sip.js/core/user-agents/re-subscribe-user-agent-client.ts +0 -78
- package/src/lib/sip.js/core/user-agents/re-subscribe-user-agent-server.ts +0 -14
- package/src/lib/sip.js/core/user-agents/refer-user-agent-client.ts +0 -15
- package/src/lib/sip.js/core/user-agents/refer-user-agent-server.ts +0 -30
- package/src/lib/sip.js/core/user-agents/register-user-agent-client.ts +0 -14
- package/src/lib/sip.js/core/user-agents/register-user-agent-server.ts +0 -14
- package/src/lib/sip.js/core/user-agents/subscribe-user-agent-client.ts +0 -342
- package/src/lib/sip.js/core/user-agents/subscribe-user-agent-server.ts +0 -14
- package/src/lib/sip.js/core/user-agents/user-agent-client.ts +0 -378
- package/src/lib/sip.js/core/user-agents/user-agent-server.ts +0 -276
- package/src/lib/sip.js/grammar/grammar.ts +0 -55
- package/src/lib/sip.js/grammar/index.ts +0 -4
- package/src/lib/sip.js/grammar/name-addr-header.ts +0 -58
- package/src/lib/sip.js/grammar/parameters.ts +0 -45
- package/src/lib/sip.js/grammar/pegjs/README.md +0 -9
- package/src/lib/sip.js/grammar/pegjs/dist/grammar.ts +0 -1557
- package/src/lib/sip.js/grammar/pegjs/src/grammar.pegjs +0 -1009
- package/src/lib/sip.js/grammar/uri.ts +0 -370
- package/src/lib/sip.js/index.ts +0 -20
- package/src/lib/sip.js/platform/react/README.md +0 -1
- package/src/lib/sip.js/platform/web/index.ts +0 -4
- package/src/lib/sip.js/platform/web/modifiers/index.ts +0 -5
- package/src/lib/sip.js/platform/web/modifiers/modifiers.ts +0 -180
- package/src/lib/sip.js/platform/web/session-description-handler/api-extractor.json +0 -350
- package/src/lib/sip.js/platform/web/session-description-handler/index.ts +0 -14
- package/src/lib/sip.js/platform/web/session-description-handler/media-stream-factory-default.ts +0 -22
- package/src/lib/sip.js/platform/web/session-description-handler/media-stream-factory.ts +0 -10
- package/src/lib/sip.js/platform/web/session-description-handler/peer-connection-configuration-default.ts +0 -17
- package/src/lib/sip.js/platform/web/session-description-handler/peer-connection-delegate.ts +0 -72
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-configuration.ts +0 -17
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-default.ts +0 -45
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-options.ts +0 -10
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory.ts +0 -17
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-options.ts +0 -56
- package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler.ts +0 -938
- package/src/lib/sip.js/platform/web/simple-user/api-extractor.json +0 -350
- package/src/lib/sip.js/platform/web/simple-user/index.ts +0 -7
- package/src/lib/sip.js/platform/web/simple-user/simple-user-delegate.ts +0 -82
- package/src/lib/sip.js/platform/web/simple-user/simple-user-options.ts +0 -102
- package/src/lib/sip.js/platform/web/simple-user/simple-user.ts +0 -1099
- package/src/lib/sip.js/platform/web/transport/api-extractor.json +0 -350
- package/src/lib/sip.js/platform/web/transport/index.ts +0 -6
- package/src/lib/sip.js/platform/web/transport/transport-options.ts +0 -34
- package/src/lib/sip.js/platform/web/transport/transport.ts +0 -743
- package/src/lib/sip.js/version.ts +0 -1
- package/src/lib/socket.io.esm.min.js +0 -7
- package/src/webrtc/webrtc-method.ts +0 -49
- package/src/webrtc/webrtc.ts +0 -350
- package/tsconfig.json +0 -21
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { IncomingRequestMessage, OutgoingRequestMessage, OutgoingSubscribeRequest, OutgoingSubscribeRequestDelegate, RequestOptions } from '../messages';
|
|
2
|
-
import { Subscription, SubscriptionDelegate, SubscriptionState } from '../subscription';
|
|
3
|
-
import { UserAgentCore } from '../user-agent-core/user-agent-core';
|
|
4
|
-
import { Dialog } from './dialog';
|
|
5
|
-
import { DialogState } from './dialog-state';
|
|
6
|
-
/**
|
|
7
|
-
* Subscription Dialog.
|
|
8
|
-
* @remarks
|
|
9
|
-
* SIP-Specific Event Notification
|
|
10
|
-
*
|
|
11
|
-
* Abstract
|
|
12
|
-
*
|
|
13
|
-
* This document describes an extension to the Session Initiation
|
|
14
|
-
* Protocol (SIP) defined by RFC 3261. The purpose of this extension is
|
|
15
|
-
* to provide an extensible framework by which SIP nodes can request
|
|
16
|
-
* notification from remote nodes indicating that certain events have
|
|
17
|
-
* occurred.
|
|
18
|
-
*
|
|
19
|
-
* Note that the event notification mechanisms defined herein are NOT
|
|
20
|
-
* intended to be a general-purpose infrastructure for all classes of
|
|
21
|
-
* event subscription and notification.
|
|
22
|
-
*
|
|
23
|
-
* This document represents a backwards-compatible improvement on the
|
|
24
|
-
* original mechanism described by RFC 3265, taking into account several
|
|
25
|
-
* years of implementation experience. Accordingly, this document
|
|
26
|
-
* obsoletes RFC 3265. This document also updates RFC 4660 slightly to
|
|
27
|
-
* accommodate some small changes to the mechanism that were discussed
|
|
28
|
-
* in that document.
|
|
29
|
-
*
|
|
30
|
-
* https://tools.ietf.org/html/rfc6665
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export declare class SubscriptionDialog extends Dialog implements Subscription {
|
|
34
|
-
delegate: SubscriptionDelegate | undefined;
|
|
35
|
-
private _autoRefresh;
|
|
36
|
-
private _subscriptionEvent;
|
|
37
|
-
private _subscriptionExpires;
|
|
38
|
-
private _subscriptionExpiresInitial;
|
|
39
|
-
private _subscriptionExpiresLastSet;
|
|
40
|
-
private _subscriptionRefresh;
|
|
41
|
-
private _subscriptionRefreshLastSet;
|
|
42
|
-
private _subscriptionState;
|
|
43
|
-
private logger;
|
|
44
|
-
private N;
|
|
45
|
-
private refreshTimer;
|
|
46
|
-
constructor(subscriptionEvent: string, subscriptionExpires: number, subscriptionState: SubscriptionState, core: UserAgentCore, state: DialogState, delegate?: SubscriptionDelegate);
|
|
47
|
-
/**
|
|
48
|
-
* When a UAC receives a response that establishes a dialog, it
|
|
49
|
-
* constructs the state of the dialog. This state MUST be maintained
|
|
50
|
-
* for the duration of the dialog.
|
|
51
|
-
* https://tools.ietf.org/html/rfc3261#section-12.1.2
|
|
52
|
-
* @param outgoingRequestMessage - Outgoing request message for dialog.
|
|
53
|
-
* @param incomingResponseMessage - Incoming response message creating dialog.
|
|
54
|
-
*/
|
|
55
|
-
static initialDialogStateForSubscription(outgoingSubscribeRequestMessage: OutgoingRequestMessage, incomingNotifyRequestMessage: IncomingRequestMessage): DialogState;
|
|
56
|
-
dispose(): void;
|
|
57
|
-
get autoRefresh(): boolean;
|
|
58
|
-
set autoRefresh(autoRefresh: boolean);
|
|
59
|
-
get subscriptionEvent(): string;
|
|
60
|
-
/** Number of seconds until subscription expires. */
|
|
61
|
-
get subscriptionExpires(): number;
|
|
62
|
-
set subscriptionExpires(expires: number);
|
|
63
|
-
get subscriptionExpiresInitial(): number;
|
|
64
|
-
/** Number of seconds until subscription auto refresh. */
|
|
65
|
-
get subscriptionRefresh(): number | undefined;
|
|
66
|
-
get subscriptionState(): SubscriptionState;
|
|
67
|
-
/**
|
|
68
|
-
* Receive in dialog request message from transport.
|
|
69
|
-
* @param message - The incoming request message.
|
|
70
|
-
*/
|
|
71
|
-
receiveRequest(message: IncomingRequestMessage): void;
|
|
72
|
-
/**
|
|
73
|
-
* 4.1.2.2. Refreshing of Subscriptions
|
|
74
|
-
* https://tools.ietf.org/html/rfc6665#section-4.1.2.2
|
|
75
|
-
*/
|
|
76
|
-
refresh(): OutgoingSubscribeRequest;
|
|
77
|
-
/**
|
|
78
|
-
* 4.1.2.2. Refreshing of Subscriptions
|
|
79
|
-
* https://tools.ietf.org/html/rfc6665#section-4.1.2.2
|
|
80
|
-
* @param delegate - Delegate to handle responses.
|
|
81
|
-
* @param options - Options bucket.
|
|
82
|
-
*/
|
|
83
|
-
subscribe(delegate?: OutgoingSubscribeRequestDelegate, options?: RequestOptions): OutgoingSubscribeRequest;
|
|
84
|
-
/**
|
|
85
|
-
* 4.4.1. Dialog Creation and Termination
|
|
86
|
-
* A subscription is destroyed after a notifier sends a NOTIFY request
|
|
87
|
-
* with a "Subscription-State" of "terminated", or in certain error
|
|
88
|
-
* situations described elsewhere in this document.
|
|
89
|
-
* https://tools.ietf.org/html/rfc6665#section-4.4.1
|
|
90
|
-
*/
|
|
91
|
-
terminate(): void;
|
|
92
|
-
/**
|
|
93
|
-
* 4.1.2.3. Unsubscribing
|
|
94
|
-
* https://tools.ietf.org/html/rfc6665#section-4.1.2.3
|
|
95
|
-
*/
|
|
96
|
-
unsubscribe(): OutgoingSubscribeRequest;
|
|
97
|
-
/**
|
|
98
|
-
* Handle in dialog NOTIFY requests.
|
|
99
|
-
* This does not include the first NOTIFY which created the dialog.
|
|
100
|
-
* @param message - The incoming NOTIFY request message.
|
|
101
|
-
*/
|
|
102
|
-
private onNotify;
|
|
103
|
-
private onRefresh;
|
|
104
|
-
private onTerminated;
|
|
105
|
-
private refreshTimerClear;
|
|
106
|
-
private refreshTimerSet;
|
|
107
|
-
private stateTransition;
|
|
108
|
-
/**
|
|
109
|
-
* When refreshing a subscription, a subscriber starts Timer N, set to
|
|
110
|
-
* 64*T1, when it sends the SUBSCRIBE request. If this Timer N expires
|
|
111
|
-
* prior to the receipt of a NOTIFY request, the subscriber considers
|
|
112
|
-
* the subscription terminated. If the subscriber receives a success
|
|
113
|
-
* response to the SUBSCRIBE request that indicates that no NOTIFY
|
|
114
|
-
* request will be generated -- such as the 204 response defined for use
|
|
115
|
-
* with the optional extension described in [RFC5839] -- then it MUST
|
|
116
|
-
* cancel Timer N.
|
|
117
|
-
* https://tools.ietf.org/html/rfc6665#section-4.1.2.2
|
|
118
|
-
*/
|
|
119
|
-
private timerN;
|
|
120
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An Exception is considered a condition that a reasonable application may wish to catch.
|
|
3
|
-
* An Error indicates serious problems that a reasonable application should not try to catch.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class Exception extends Error {
|
|
7
|
-
protected constructor(message?: string);
|
|
8
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A core library implementing low level SIP protocol elements.
|
|
3
|
-
* @packageDocumentation
|
|
4
|
-
*/
|
|
5
|
-
export * from "./dialogs";
|
|
6
|
-
export * from "./exceptions";
|
|
7
|
-
export * from "./log";
|
|
8
|
-
export * from "./messages";
|
|
9
|
-
export * from "./session";
|
|
10
|
-
export * from "./subscription";
|
|
11
|
-
export * from "./transactions";
|
|
12
|
-
export * from "./user-agent-core";
|
|
13
|
-
export * from "./user-agents";
|
|
14
|
-
export * from "./timers";
|
|
15
|
-
export * from "./transport";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Levels } from "./levels";
|
|
2
|
-
import { Logger } from "./logger";
|
|
3
|
-
/**
|
|
4
|
-
* Logger.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export declare class LoggerFactory {
|
|
8
|
-
builtinEnabled: boolean;
|
|
9
|
-
private _level;
|
|
10
|
-
private _connector;
|
|
11
|
-
private loggers;
|
|
12
|
-
private logger;
|
|
13
|
-
constructor();
|
|
14
|
-
get level(): Levels;
|
|
15
|
-
set level(newLevel: Levels);
|
|
16
|
-
get connector(): ((level: string, category: string, label: string | undefined, content: any) => void) | undefined;
|
|
17
|
-
set connector(value: ((level: string, category: string, label: string | undefined, content: any) => void) | undefined);
|
|
18
|
-
getLogger(category: string, label?: string): Logger;
|
|
19
|
-
genericLog(levelToLog: Levels, category: string, label: string | undefined, content: any): void;
|
|
20
|
-
private print;
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Levels } from "./levels";
|
|
2
|
-
import { LoggerFactory } from "./logger-factory";
|
|
3
|
-
/**
|
|
4
|
-
* Logger.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export declare class Logger {
|
|
8
|
-
private logger;
|
|
9
|
-
private category;
|
|
10
|
-
private label;
|
|
11
|
-
constructor(logger: LoggerFactory, category: string, label?: string);
|
|
12
|
-
error(content: string): void;
|
|
13
|
-
warn(content: string): void;
|
|
14
|
-
log(content: string): void;
|
|
15
|
-
debug(content: string): void;
|
|
16
|
-
private genericLog;
|
|
17
|
-
get level(): Levels;
|
|
18
|
-
set level(newLevel: Levels);
|
|
19
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { IncomingRequestMessage } from "./incoming-request-message";
|
|
2
|
-
import { IncomingResponseMessage } from "./incoming-response-message";
|
|
3
|
-
import { OutgoingRequestMessage } from "./outgoing-request-message";
|
|
4
|
-
/**
|
|
5
|
-
* Message body.
|
|
6
|
-
* @remarks
|
|
7
|
-
* https://tools.ietf.org/html/rfc3261#section-7.4
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
export interface Body {
|
|
11
|
-
/**
|
|
12
|
-
* If the Content-Disposition header field is missing, bodies of
|
|
13
|
-
* Content-Type application/sdp imply the disposition "session", while
|
|
14
|
-
* other content types imply "render".
|
|
15
|
-
* https://tools.ietf.org/html/rfc3261#section-13.2.1
|
|
16
|
-
* For backward-compatibility, if the Content-Disposition header field
|
|
17
|
-
* is missing, the server SHOULD assume bodies of Content-Type
|
|
18
|
-
* application/sdp are the disposition "session", while other content
|
|
19
|
-
* types are "render".
|
|
20
|
-
* https://tools.ietf.org/html/rfc3261#section-20.11
|
|
21
|
-
*/
|
|
22
|
-
contentDisposition: string;
|
|
23
|
-
/**
|
|
24
|
-
* The Content-Type header field indicates the media type of the
|
|
25
|
-
* message-body sent to the recipient. The Content-Type header field
|
|
26
|
-
* MUST be present if the body is not empty. If the body is empty,
|
|
27
|
-
* and a Content-Type header field is present, it indicates that the body
|
|
28
|
-
* of the specific type has zero length (for example, an empty audio file).
|
|
29
|
-
* https://tools.ietf.org/html/rfc3261#section-20.15
|
|
30
|
-
*/
|
|
31
|
-
contentType: string;
|
|
32
|
-
/**
|
|
33
|
-
* Requests, including new requests defined in extensions to this
|
|
34
|
-
* specification, MAY contain message bodies unless otherwise noted.
|
|
35
|
-
* The interpretation of the body depends on the request method.
|
|
36
|
-
* For response messages, the request method and the response status
|
|
37
|
-
* code determine the type and interpretation of any message body. All
|
|
38
|
-
* responses MAY include a body.
|
|
39
|
-
* https://tools.ietf.org/html/rfc3261#section-7.4
|
|
40
|
-
*/
|
|
41
|
-
content: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Create a Body given a legacy body type.
|
|
45
|
-
* @param bodyLegacy - Body Object
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
export declare function fromBodyLegacy(bodyLegacy: string | {
|
|
49
|
-
body: string;
|
|
50
|
-
contentType: string;
|
|
51
|
-
}): Body;
|
|
52
|
-
/**
|
|
53
|
-
* User-Defined Type Guard for Body.
|
|
54
|
-
* @param body - Body to check.
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
export declare function isBody(body: any): body is Body;
|
|
58
|
-
/**
|
|
59
|
-
* Given a message, get a normalized body.
|
|
60
|
-
* The content disposition is inferred if not set.
|
|
61
|
-
* @param message - The message.
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
export declare function getBody(message: IncomingRequestMessage | IncomingResponseMessage | OutgoingRequestMessage | Body): Body | undefined;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { LoggerFactory } from "../log";
|
|
2
|
-
import { OutgoingRequestMessage } from "./outgoing-request-message";
|
|
3
|
-
/**
|
|
4
|
-
* Digest Authentication.
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class DigestAuthentication {
|
|
8
|
-
stale: boolean | undefined;
|
|
9
|
-
private logger;
|
|
10
|
-
private ha1;
|
|
11
|
-
private username;
|
|
12
|
-
private password;
|
|
13
|
-
private cnonce;
|
|
14
|
-
private nc;
|
|
15
|
-
private ncHex;
|
|
16
|
-
private response;
|
|
17
|
-
private algorithm;
|
|
18
|
-
private realm;
|
|
19
|
-
private nonce;
|
|
20
|
-
private opaque;
|
|
21
|
-
private qop;
|
|
22
|
-
private method;
|
|
23
|
-
private uri;
|
|
24
|
-
/**
|
|
25
|
-
* Constructor.
|
|
26
|
-
* @param loggerFactory - LoggerFactory.
|
|
27
|
-
* @param username - Username.
|
|
28
|
-
* @param password - Password.
|
|
29
|
-
*/
|
|
30
|
-
constructor(loggerFactory: LoggerFactory, ha1: string | undefined, username: string | undefined, password: string | undefined);
|
|
31
|
-
/**
|
|
32
|
-
* Performs Digest authentication given a SIP request and the challenge
|
|
33
|
-
* received in a response to that request.
|
|
34
|
-
* @param request -
|
|
35
|
-
* @param challenge -
|
|
36
|
-
* @returns true if credentials were successfully generated, false otherwise.
|
|
37
|
-
*/
|
|
38
|
-
authenticate(request: OutgoingRequestMessage, challenge: any, body?: string): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Return the Proxy-Authorization or WWW-Authorization header value.
|
|
41
|
-
*/
|
|
42
|
-
toString(): string;
|
|
43
|
-
/**
|
|
44
|
-
* Generate the 'nc' value as required by Digest in this.ncHex by reading this.nc.
|
|
45
|
-
*/
|
|
46
|
-
private updateNcHex;
|
|
47
|
-
/**
|
|
48
|
-
* Generate Digest 'response' value.
|
|
49
|
-
*/
|
|
50
|
-
private calculateResponse;
|
|
51
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { NameAddrHeader } from "../../grammar";
|
|
2
|
-
/**
|
|
3
|
-
* Incoming message.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare class IncomingMessage {
|
|
7
|
-
viaBranch: string;
|
|
8
|
-
method: string;
|
|
9
|
-
body: string;
|
|
10
|
-
toTag: string;
|
|
11
|
-
to: NameAddrHeader;
|
|
12
|
-
fromTag: string;
|
|
13
|
-
from: NameAddrHeader;
|
|
14
|
-
callId: string;
|
|
15
|
-
cseq: number;
|
|
16
|
-
via: {
|
|
17
|
-
host: string;
|
|
18
|
-
port: number;
|
|
19
|
-
};
|
|
20
|
-
headers: {
|
|
21
|
-
[name: string]: Array<{
|
|
22
|
-
parsed?: any;
|
|
23
|
-
raw: string;
|
|
24
|
-
}>;
|
|
25
|
-
};
|
|
26
|
-
referTo: string | undefined;
|
|
27
|
-
data: string;
|
|
28
|
-
/**
|
|
29
|
-
* Insert a header of the given name and value into the last position of the
|
|
30
|
-
* header array.
|
|
31
|
-
* @param name - header name
|
|
32
|
-
* @param value - header value
|
|
33
|
-
*/
|
|
34
|
-
addHeader(name: string, value: string): void;
|
|
35
|
-
/**
|
|
36
|
-
* Get the value of the given header name at the given position.
|
|
37
|
-
* @param name - header name
|
|
38
|
-
* @returns Returns the specified header, undefined if header doesn't exist.
|
|
39
|
-
*/
|
|
40
|
-
getHeader(name: string): string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Get the header/s of the given name.
|
|
43
|
-
* @param name - header name
|
|
44
|
-
* @returns Array - with all the headers of the specified name.
|
|
45
|
-
*/
|
|
46
|
-
getHeaders(name: string): Array<string>;
|
|
47
|
-
/**
|
|
48
|
-
* Verify the existence of the given header.
|
|
49
|
-
* @param name - header name
|
|
50
|
-
* @returns true if header with given name exists, false otherwise
|
|
51
|
-
*/
|
|
52
|
-
hasHeader(name: string): boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Parse the given header on the given index.
|
|
55
|
-
* @param name - header name
|
|
56
|
-
* @param idx - header index
|
|
57
|
-
* @returns Parsed header object, undefined if the
|
|
58
|
-
* header is not present or in case of a parsing error.
|
|
59
|
-
*/
|
|
60
|
-
parseHeader(name: string, idx?: number): any | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Message Header attribute selector. Alias of parseHeader.
|
|
63
|
-
* @param name - header name
|
|
64
|
-
* @param idx - header index
|
|
65
|
-
* @returns Parsed header object, undefined if the
|
|
66
|
-
* header is not present or in case of a parsing error.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* message.s('via',3).port
|
|
70
|
-
*/
|
|
71
|
-
s(name: string, idx?: number): any | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Replace the value of the given header by the value.
|
|
74
|
-
* @param name - header name
|
|
75
|
-
* @param value - header value
|
|
76
|
-
*/
|
|
77
|
-
setHeader(name: string, value: string): void;
|
|
78
|
-
toString(): string;
|
|
79
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
* A SIP message sent from a remote client to a local server.
|
|
7
|
-
* @remarks
|
|
8
|
-
* For the purpose of invoking a particular operation.
|
|
9
|
-
* https://tools.ietf.org/html/rfc3261#section-7.1
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export interface IncomingRequest {
|
|
13
|
-
/** Delegate providing custom handling of this incoming request. */
|
|
14
|
-
delegate?: IncomingRequestDelegate;
|
|
15
|
-
/** The incoming message. */
|
|
16
|
-
readonly message: IncomingRequestMessage;
|
|
17
|
-
/**
|
|
18
|
-
* Send a 2xx positive final response to this request. Defaults to 200.
|
|
19
|
-
* @param options - Response options bucket.
|
|
20
|
-
*/
|
|
21
|
-
accept(options?: ResponseOptions): OutgoingResponse;
|
|
22
|
-
/**
|
|
23
|
-
* Send a 1xx provisional response to this request. Defaults to 180. Excludes 100.
|
|
24
|
-
* Note that per RFC 4320, this method may only be used to respond to INVITE requests.
|
|
25
|
-
* @param options - Response options bucket.
|
|
26
|
-
*/
|
|
27
|
-
progress(options?: ResponseOptions): OutgoingResponse;
|
|
28
|
-
/**
|
|
29
|
-
* Send a 3xx negative final response to this request. Defaults to 302.
|
|
30
|
-
* @param contacts - Contacts to redirect the UAC to.
|
|
31
|
-
* @param options - Response options bucket.
|
|
32
|
-
*/
|
|
33
|
-
redirect(contacts: Array<URI>, options?: ResponseOptions): OutgoingResponse;
|
|
34
|
-
/**
|
|
35
|
-
* Send a 4xx, 5xx, or 6xx negative final response to this request. Defaults to 480.
|
|
36
|
-
* @param options - Response options bucket.
|
|
37
|
-
*/
|
|
38
|
-
reject(options?: ResponseOptions): OutgoingResponse;
|
|
39
|
-
/**
|
|
40
|
-
* Send a 100 outgoing response to this request.
|
|
41
|
-
* @param options - Response options bucket.
|
|
42
|
-
*/
|
|
43
|
-
trying(options?: ResponseOptions): OutgoingResponse;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Delegate providing custom handling of incoming requests.
|
|
47
|
-
* @public
|
|
48
|
-
*/
|
|
49
|
-
export interface IncomingRequestDelegate {
|
|
50
|
-
/**
|
|
51
|
-
* Receive CANCEL request.
|
|
52
|
-
* https://tools.ietf.org/html/rfc3261#section-9.2
|
|
53
|
-
* Note: Currently CANCEL is being handled as a special case.
|
|
54
|
-
* No UAS is created to handle the CANCEL and the response to
|
|
55
|
-
* it CANCEL is being handled statelessly by the user agent core.
|
|
56
|
-
* As such, there is currently no way to externally impact the
|
|
57
|
-
* response to the a CANCEL request and thus the method here is
|
|
58
|
-
* receiving a "message" (as apposed to a "uas").
|
|
59
|
-
* @param message - Incoming CANCEL request message.
|
|
60
|
-
*/
|
|
61
|
-
onCancel?(message: IncomingRequestMessage): void;
|
|
62
|
-
/**
|
|
63
|
-
* A transport error occurred attempted to send a response.
|
|
64
|
-
* @param error - Transport error.
|
|
65
|
-
*/
|
|
66
|
-
onTransportError?(error: TransportError): void;
|
|
67
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IncomingMessage } from "./incoming-message";
|
|
2
|
-
/**
|
|
3
|
-
* Incoming response message.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare class IncomingResponseMessage extends IncomingMessage {
|
|
7
|
-
statusCode: number | undefined;
|
|
8
|
-
reasonPhrase: string | undefined;
|
|
9
|
-
constructor();
|
|
10
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IncomingResponseMessage } from "./incoming-response-message";
|
|
2
|
-
/**
|
|
3
|
-
* A SIP message sent from a remote server to a local client.
|
|
4
|
-
* @remarks
|
|
5
|
-
* For indicating the status of a request sent from the client to the server.
|
|
6
|
-
* https://tools.ietf.org/html/rfc3261#section-7.2
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export interface IncomingResponse {
|
|
10
|
-
/** The incoming message. */
|
|
11
|
-
readonly message: IncomingResponseMessage;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from "../../grammar";
|
|
2
|
-
export * from "./methods";
|
|
3
|
-
export * from "./body";
|
|
4
|
-
export * from "./digest-authentication";
|
|
5
|
-
export * from "./incoming-message";
|
|
6
|
-
export * from "./incoming-request-message";
|
|
7
|
-
export * from "./incoming-request";
|
|
8
|
-
export * from "./incoming-response-message";
|
|
9
|
-
export * from "./incoming-response";
|
|
10
|
-
export * from "./outgoing-request-message";
|
|
11
|
-
export * from "./outgoing-request";
|
|
12
|
-
export * from "./outgoing-response";
|
|
13
|
-
export * from "./parser";
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare class Md5 {
|
|
2
|
-
static hashStr(str: string, raw?: false): string;
|
|
3
|
-
static hashStr(str: string, raw?: true): Int32Array;
|
|
4
|
-
static hashAsciiStr(str: string, raw?: false): string;
|
|
5
|
-
static hashAsciiStr(str: string, raw?: true): Int32Array;
|
|
6
|
-
private static stateIdentity;
|
|
7
|
-
private static buffer32Identity;
|
|
8
|
-
private static hexChars;
|
|
9
|
-
private static hexOut;
|
|
10
|
-
private static onePassHasher;
|
|
11
|
-
private static _hex;
|
|
12
|
-
private static _md5cycle;
|
|
13
|
-
private _dataLength;
|
|
14
|
-
private _bufferLength;
|
|
15
|
-
private _state;
|
|
16
|
-
private _buffer;
|
|
17
|
-
private _buffer8;
|
|
18
|
-
private _buffer32;
|
|
19
|
-
constructor();
|
|
20
|
-
start(): this;
|
|
21
|
-
appendStr(str: string): this;
|
|
22
|
-
appendAsciiStr(str: string): this;
|
|
23
|
-
appendByteArray(input: Uint8Array): this;
|
|
24
|
-
getState(): {
|
|
25
|
-
buffer: any;
|
|
26
|
-
buflen: number;
|
|
27
|
-
length: number;
|
|
28
|
-
state: number[];
|
|
29
|
-
};
|
|
30
|
-
setState(state: any): void;
|
|
31
|
-
end(raw?: boolean): string | Int32Array;
|
|
32
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IncomingRequestMessage } from "../incoming-request-message";
|
|
2
|
-
import { OutgoingRequestMessage } from "../outgoing-request-message";
|
|
3
|
-
/**
|
|
4
|
-
* Incoming ACK request.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export interface IncomingAckRequest {
|
|
8
|
-
/** The incoming message. */
|
|
9
|
-
readonly message: IncomingRequestMessage;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Outgoing ACK request.
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export interface OutgoingAckRequest {
|
|
16
|
-
/** The outgoing message. */
|
|
17
|
-
readonly message: OutgoingRequestMessage;
|
|
18
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IncomingRequest } from "../incoming-request";
|
|
2
|
-
import { IncomingResponse } from "../incoming-response";
|
|
3
|
-
import { OutgoingRequest } from "../outgoing-request";
|
|
4
|
-
/**
|
|
5
|
-
* Incoming BYE request.
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export interface IncomingByeRequest extends IncomingRequest {
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Incoming BYE response.
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export interface IncomingByeResponse extends IncomingResponse {
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Outgoing BYE request.
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
export interface OutgoingByeRequest extends OutgoingRequest {
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IncomingRequest } from "../incoming-request";
|
|
2
|
-
import { IncomingResponse } from "../incoming-response";
|
|
3
|
-
import { OutgoingRequest } from "../outgoing-request";
|
|
4
|
-
/**
|
|
5
|
-
* Incoming CANCEL request.
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export interface IncomingCancelRequest extends IncomingRequest {
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Incoming CANCEL response.
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export interface IncomingCancelResponse extends IncomingResponse {
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Outgoing CANCEL request.
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
export interface OutgoingCancelRequest extends OutgoingRequest {
|
|
21
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SIP Methods
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export declare namespace C {
|
|
6
|
-
const ACK = "ACK";
|
|
7
|
-
const BYE = "BYE";
|
|
8
|
-
const CANCEL = "CANCEL";
|
|
9
|
-
const INFO = "INFO";
|
|
10
|
-
const INVITE = "INVITE";
|
|
11
|
-
const MESSAGE = "MESSAGE";
|
|
12
|
-
const NOTIFY = "NOTIFY";
|
|
13
|
-
const OPTIONS = "OPTIONS";
|
|
14
|
-
const REGISTER = "REGISTER";
|
|
15
|
-
const UPDATE = "UPDATE";
|
|
16
|
-
const SUBSCRIBE = "SUBSCRIBE";
|
|
17
|
-
const PUBLISH = "PUBLISH";
|
|
18
|
-
const REFER = "REFER";
|
|
19
|
-
const PRACK = "PRACK";
|
|
20
|
-
}
|