ue-softphone-sdk 2.1.9 → 2.2.1
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/{index.d.ts → types/index.d.ts} +3 -7
- package/dist/ue-softphone-sdk.js +1 -2
- package/package.json +6 -6
- package/{new-rollup.config.mjs → rollup-new.config.mjs} +1 -1
- package/rollup.config.js +14 -15
- package/src/index.ts +23 -49
- package/tsconfig.json +10 -26
- package/dist/api/bye.d.ts +0 -16
- package/dist/api/dtmf.d.ts +0 -15
- package/dist/api/emitter.d.ts +0 -88
- package/dist/api/exceptions/content-type-unsupported.d.ts +0 -8
- package/dist/api/exceptions/index.d.ts +0 -5
- package/dist/api/exceptions/request-pending.d.ts +0 -9
- package/dist/api/exceptions/session-description-handler.d.ts +0 -8
- package/dist/api/exceptions/session-terminated.d.ts +0 -8
- package/dist/api/exceptions/state-transition.d.ts +0 -8
- package/dist/api/index.d.ts +0 -58
- package/dist/api/info.d.ts +0 -16
- package/dist/api/invitation-accept-options.d.ts +0 -19
- package/dist/api/invitation-progress-options.d.ts +0 -38
- package/dist/api/invitation-reject-options.d.ts +0 -25
- package/dist/api/invitation.d.ts +0 -179
- package/dist/api/inviter-cancel-options.d.ts +0 -9
- package/dist/api/inviter-invite-options.d.ts +0 -28
- package/dist/api/inviter-options.d.ts +0 -43
- package/dist/api/inviter.d.ts +0 -236
- package/dist/api/message.d.ts +0 -16
- package/dist/api/messager-message-options.d.ts +0 -11
- package/dist/api/messager-options.d.ts +0 -17
- package/dist/api/messager.d.ts +0 -26
- package/dist/api/notification.d.ts +0 -16
- package/dist/api/notifier.d.ts +0 -8
- package/dist/api/publisher-options.d.ts +0 -33
- package/dist/api/publisher-publish-options.d.ts +0 -6
- package/dist/api/publisher-state.d.ts +0 -21
- package/dist/api/publisher-unpublish-options.d.ts +0 -6
- package/dist/api/publisher.d.ts +0 -65
- package/dist/api/referral.d.ts +0 -38
- package/dist/api/registerer-options.d.ts +0 -46
- package/dist/api/registerer-register-options.d.ts +0 -11
- package/dist/api/registerer-state.d.ts +0 -21
- package/dist/api/registerer-unregister-options.d.ts +0 -16
- package/dist/api/registerer.d.ts +0 -144
- package/dist/api/session-bye-options.d.ts +0 -11
- package/dist/api/session-delegate.d.ts +0 -73
- package/dist/api/session-description-handler-factory.d.ts +0 -15
- package/dist/api/session-description-handler.d.ts +0 -74
- package/dist/api/session-info-options.d.ts +0 -11
- package/dist/api/session-invite-options.d.ts +0 -28
- package/dist/api/session-message-options.d.ts +0 -11
- package/dist/api/session-options.d.ts +0 -8
- package/dist/api/session-refer-options.d.ts +0 -14
- package/dist/api/session-state.d.ts +0 -45
- package/dist/api/session.d.ts +0 -359
- package/dist/api/subscriber-options.d.ts +0 -11
- package/dist/api/subscriber-subscribe-options.d.ts +0 -6
- package/dist/api/subscriber.d.ts +0 -94
- package/dist/api/subscription-delegate.d.ts +0 -12
- package/dist/api/subscription-options.d.ts +0 -8
- package/dist/api/subscription-state.d.ts +0 -19
- package/dist/api/subscription-subscribe-options.d.ts +0 -6
- package/dist/api/subscription-unsubscribe-options.d.ts +0 -6
- package/dist/api/subscription.d.ts +0 -84
- package/dist/api/transport-state.d.ts +0 -37
- package/dist/api/transport.d.ts +0 -159
- package/dist/api/user-agent-delegate.d.ts +0 -84
- package/dist/api/user-agent-options.d.ts +0 -253
- package/dist/api/user-agent-state.d.ts +0 -14
- package/dist/api/user-agent.d.ts +0 -200
- package/dist/core/dialogs/dialog-state.d.ts +0 -34
- package/dist/core/dialogs/dialog.d.ts +0 -161
- package/dist/core/dialogs/index.d.ts +0 -4
- package/dist/core/dialogs/session-dialog.d.ts +0 -196
- package/dist/core/dialogs/subscription-dialog.d.ts +0 -120
- package/dist/core/exceptions/exception.d.ts +0 -8
- package/dist/core/exceptions/index.d.ts +0 -3
- package/dist/core/exceptions/transaction-state-error.d.ts +0 -8
- package/dist/core/exceptions/transport-error.d.ts +0 -8
- package/dist/core/index.d.ts +0 -15
- package/dist/core/log/index.d.ts +0 -3
- package/dist/core/log/levels.d.ts +0 -10
- package/dist/core/log/logger-factory.d.ts +0 -21
- package/dist/core/log/logger.d.ts +0 -19
- package/dist/core/messages/body.d.ts +0 -64
- package/dist/core/messages/digest-authentication.d.ts +0 -51
- package/dist/core/messages/incoming-message.d.ts +0 -79
- package/dist/core/messages/incoming-request-message.d.ts +0 -10
- package/dist/core/messages/incoming-request.d.ts +0 -67
- package/dist/core/messages/incoming-response-message.d.ts +0 -10
- package/dist/core/messages/incoming-response.d.ts +0 -12
- package/dist/core/messages/index.d.ts +0 -13
- package/dist/core/messages/md5.d.ts +0 -32
- package/dist/core/messages/methods/ack.d.ts +0 -18
- package/dist/core/messages/methods/bye.d.ts +0 -21
- package/dist/core/messages/methods/cancel.d.ts +0 -21
- package/dist/core/messages/methods/constants.d.ts +0 -20
- package/dist/core/messages/methods/index.d.ts +0 -13
- package/dist/core/messages/methods/info.d.ts +0 -21
- package/dist/core/messages/methods/invite.d.ts +0 -86
- package/dist/core/messages/methods/message.d.ts +0 -21
- package/dist/core/messages/methods/notify.d.ts +0 -21
- package/dist/core/messages/methods/prack.d.ts +0 -21
- package/dist/core/messages/methods/publish.d.ts +0 -21
- package/dist/core/messages/methods/refer.d.ts +0 -21
- package/dist/core/messages/methods/register.d.ts +0 -21
- package/dist/core/messages/methods/subscribe.d.ts +0 -54
- package/dist/core/messages/outgoing-request-message.d.ts +0 -94
- package/dist/core/messages/outgoing-request.d.ts +0 -67
- package/dist/core/messages/outgoing-response.d.ts +0 -42
- package/dist/core/messages/parser.d.ts +0 -14
- package/dist/core/messages/utils.d.ts +0 -24
- package/dist/core/session/index.d.ts +0 -2
- package/dist/core/session/session-delegate.d.ts +0 -70
- package/dist/core/session/session.d.ts +0 -134
- package/dist/core/subscription/index.d.ts +0 -2
- package/dist/core/subscription/subscription-delegate.d.ts +0 -27
- package/dist/core/subscription/subscription.d.ts +0 -55
- package/dist/core/timers.d.ts +0 -20
- package/dist/core/transactions/client-transaction.d.ts +0 -45
- package/dist/core/transactions/index.d.ts +0 -10
- package/dist/core/transactions/invite-client-transaction.d.ts +0 -116
- package/dist/core/transactions/invite-server-transaction.d.ts +0 -127
- package/dist/core/transactions/non-invite-client-transaction.d.ts +0 -69
- package/dist/core/transactions/non-invite-server-transaction.d.ts +0 -57
- package/dist/core/transactions/server-transaction.d.ts +0 -35
- package/dist/core/transactions/transaction-state.d.ts +0 -13
- package/dist/core/transactions/transaction-user.d.ts +0 -72
- package/dist/core/transactions/transaction.d.ts +0 -79
- package/dist/core/transport.d.ts +0 -31
- package/dist/core/user-agent-core/allowed-methods.d.ts +0 -4
- package/dist/core/user-agent-core/index.d.ts +0 -3
- package/dist/core/user-agent-core/user-agent-core-configuration.d.ts +0 -99
- package/dist/core/user-agent-core/user-agent-core-delegate.d.ts +0 -37
- package/dist/core/user-agent-core/user-agent-core.d.ts +0 -179
- package/dist/core/user-agents/bye-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/bye-user-agent-server.d.ts +0 -10
- package/dist/core/user-agents/cancel-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/index.d.ts +0 -26
- package/dist/core/user-agents/info-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/info-user-agent-server.d.ts +0 -10
- package/dist/core/user-agents/invite-user-agent-client.d.ts +0 -35
- package/dist/core/user-agents/invite-user-agent-server.d.ts +0 -77
- package/dist/core/user-agents/message-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/message-user-agent-server.d.ts +0 -10
- package/dist/core/user-agents/notify-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/notify-user-agent-server.d.ts +0 -16
- package/dist/core/user-agents/prack-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/prack-user-agent-server.d.ts +0 -16
- package/dist/core/user-agents/publish-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/re-invite-user-agent-client.d.ts +0 -18
- package/dist/core/user-agents/re-invite-user-agent-server.d.ts +0 -41
- package/dist/core/user-agents/re-subscribe-user-agent-client.d.ts +0 -17
- package/dist/core/user-agents/re-subscribe-user-agent-server.d.ts +0 -10
- package/dist/core/user-agents/refer-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/refer-user-agent-server.d.ts +0 -16
- package/dist/core/user-agents/register-user-agent-client.d.ts +0 -10
- package/dist/core/user-agents/register-user-agent-server.d.ts +0 -11
- package/dist/core/user-agents/subscribe-user-agent-client.d.ts +0 -65
- package/dist/core/user-agents/subscribe-user-agent-server.d.ts +0 -11
- package/dist/core/user-agents/user-agent-client.d.ts +0 -103
- package/dist/core/user-agents/user-agent-server.d.ts +0 -79
- package/dist/grammar/grammar.d.ts +0 -26
- package/dist/grammar/index.d.ts +0 -4
- package/dist/grammar/name-addr-header.d.ts +0 -24
- package/dist/grammar/parameters.d.ts +0 -16
- package/dist/grammar/pegjs/dist/grammar.d.ts +0 -50
- package/dist/grammar/uri.d.ts +0 -62
- package/dist/main.d.ts +0 -9
- package/dist/new-index.d.ts +0 -199
- package/dist/platform/web/index.d.ts +0 -4
- package/dist/platform/web/modifiers/index.d.ts +0 -5
- package/dist/platform/web/modifiers/modifiers.d.ts +0 -41
- package/dist/platform/web/session-description-handler/index.d.ts +0 -14
- package/dist/platform/web/session-description-handler/media-stream-factory-default.d.ts +0 -6
- package/dist/platform/web/session-description-handler/media-stream-factory.d.ts +0 -6
- package/dist/platform/web/session-description-handler/peer-connection-configuration-default.d.ts +0 -5
- package/dist/platform/web/session-description-handler/peer-connection-delegate.d.ts +0 -63
- package/dist/platform/web/session-description-handler/session-description-handler-configuration.d.ts +0 -16
- package/dist/platform/web/session-description-handler/session-description-handler-factory-default.d.ts +0 -11
- package/dist/platform/web/session-description-handler/session-description-handler-factory-options.d.ts +0 -9
- package/dist/platform/web/session-description-handler/session-description-handler-factory.d.ts +0 -16
- package/dist/platform/web/session-description-handler/session-description-handler-options.d.ts +0 -47
- package/dist/platform/web/session-description-handler/session-description-handler.d.ts +0 -212
- package/dist/platform/web/simple-user/index.d.ts +0 -7
- package/dist/platform/web/simple-user/simple-user-delegate.d.ts +0 -72
- package/dist/platform/web/simple-user/simple-user-options.d.ts +0 -90
- package/dist/platform/web/simple-user/simple-user.d.ts +0 -226
- package/dist/platform/web/transport/index.d.ts +0 -6
- package/dist/platform/web/transport/transport-options.d.ts +0 -30
- package/dist/platform/web/transport/transport.d.ts +0 -125
- package/dist/ue-softphone-sdk.js.map +0 -1
- package/dist/version.d.ts +0 -1
- package/dist/webPhoneSdk.d.ts +0 -24
- package/dist/webrtc.d.ts +0 -17
- package/src/api/api-extractor.json +0 -358
- package/src/api/bye.ts +0 -27
- package/src/api/dtmf.ts +0 -27
- package/src/api/emitter.ts +0 -110
- package/src/api/exceptions/content-type-unsupported.ts +0 -11
- package/src/api/exceptions/index.ts +0 -5
- package/src/api/exceptions/request-pending.ts +0 -12
- package/src/api/exceptions/session-description-handler.ts +0 -11
- package/src/api/exceptions/session-terminated.ts +0 -11
- package/src/api/exceptions/state-transition.ts +0 -11
- package/src/api/index.ts +0 -58
- package/src/api/info.ts +0 -27
- package/src/api/invitation-accept-options.ts +0 -20
- package/src/api/invitation-progress-options.ts +0 -36
- package/src/api/invitation-reject-options.ts +0 -22
- package/src/api/invitation.ts +0 -816
- package/src/api/inviter-cancel-options.ts +0 -9
- package/src/api/inviter-invite-options.ts +0 -29
- package/src/api/inviter-options.ts +0 -44
- package/src/api/inviter.ts +0 -1126
- package/src/api/message.ts +0 -27
- package/src/api/messager-message-options.ts +0 -12
- package/src/api/messager-options.ts +0 -18
- package/src/api/messager.ts +0 -89
- package/src/api/notification.ts +0 -27
- package/src/api/notifier.ts +0 -7
- package/src/api/publisher-options.ts +0 -34
- package/src/api/publisher-publish-options.ts +0 -6
- package/src/api/publisher-state.ts +0 -21
- package/src/api/publisher-unpublish-options.ts +0 -6
- package/src/api/publisher.ts +0 -418
- package/src/api/referral.ts +0 -89
- package/src/api/registerer-options.ts +0 -55
- package/src/api/registerer-register-options.ts +0 -12
- package/src/api/registerer-state.ts +0 -21
- package/src/api/registerer-unregister-options.ts +0 -17
- package/src/api/registerer.ts +0 -814
- package/src/api/session-bye-options.ts +0 -12
- package/src/api/session-delegate.ts +0 -80
- package/src/api/session-description-handler-factory.ts +0 -16
- package/src/api/session-description-handler.ts +0 -89
- package/src/api/session-info-options.ts +0 -12
- package/src/api/session-invite-options.ts +0 -29
- package/src/api/session-message-options.ts +0 -12
- package/src/api/session-options.ts +0 -8
- package/src/api/session-refer-options.ts +0 -15
- package/src/api/session-state.ts +0 -45
- package/src/api/session.ts +0 -1448
- package/src/api/subscriber-options.ts +0 -12
- package/src/api/subscriber-subscribe-options.ts +0 -6
- package/src/api/subscriber.ts +0 -536
- package/src/api/subscription-delegate.ts +0 -13
- package/src/api/subscription-options.ts +0 -8
- package/src/api/subscription-state.ts +0 -19
- package/src/api/subscription-subscribe-options.ts +0 -6
- package/src/api/subscription-unsubscribe-options.ts +0 -6
- package/src/api/subscription.ts +0 -161
- package/src/api/transport-state.ts +0 -37
- package/src/api/transport.ts +0 -169
- package/src/api/user-agent-delegate.ts +0 -95
- package/src/api/user-agent-options.ts +0 -322
- package/src/api/user-agent-state.ts +0 -14
- package/src/api/user-agent.ts +0 -1014
- package/src/core/api-extractor.json +0 -358
- package/src/core/dialogs/dialog-state.ts +0 -35
- package/src/core/dialogs/dialog.ts +0 -605
- package/src/core/dialogs/index.ts +0 -4
- package/src/core/dialogs/session-dialog.ts +0 -996
- package/src/core/dialogs/subscription-dialog.ts +0 -557
- package/src/core/exceptions/exception.ts +0 -11
- package/src/core/exceptions/index.ts +0 -3
- package/src/core/exceptions/transaction-state-error.ts +0 -11
- package/src/core/exceptions/transport-error.ts +0 -11
- package/src/core/index.ts +0 -19
- package/src/core/log/index.ts +0 -3
- package/src/core/log/levels.ts +0 -10
- package/src/core/log/logger-factory.ts +0 -119
- package/src/core/log/logger.ts +0 -42
- package/src/core/messages/body.ts +0 -171
- package/src/core/messages/digest-authentication.ts +0 -190
- package/src/core/messages/incoming-message.ts +0 -152
- package/src/core/messages/incoming-request-message.ts +0 -14
- package/src/core/messages/incoming-request.ts +0 -75
- package/src/core/messages/incoming-response-message.ts +0 -14
- package/src/core/messages/incoming-response.ts +0 -13
- package/src/core/messages/index.ts +0 -18
- package/src/core/messages/md5.ts +0 -437
- package/src/core/messages/methods/ack.ts +0 -22
- package/src/core/messages/methods/bye.ts +0 -22
- package/src/core/messages/methods/cancel.ts +0 -22
- package/src/core/messages/methods/constants.ts +0 -21
- package/src/core/messages/methods/index.ts +0 -13
- package/src/core/messages/methods/info.ts +0 -22
- package/src/core/messages/methods/invite.ts +0 -104
- package/src/core/messages/methods/message.ts +0 -22
- package/src/core/messages/methods/notify.ts +0 -22
- package/src/core/messages/methods/prack.ts +0 -22
- package/src/core/messages/methods/publish.ts +0 -22
- package/src/core/messages/methods/refer.ts +0 -22
- package/src/core/messages/methods/register.ts +0 -22
- package/src/core/messages/methods/subscribe.ts +0 -59
- package/src/core/messages/outgoing-request-message.ts +0 -299
- package/src/core/messages/outgoing-request.ts +0 -77
- package/src/core/messages/outgoing-response.ts +0 -174
- package/src/core/messages/parser.ts +0 -265
- package/src/core/messages/utils.ts +0 -144
- package/src/core/session/index.ts +0 -2
- package/src/core/session/session-delegate.ts +0 -88
- package/src/core/session/session.ts +0 -158
- package/src/core/subscription/index.ts +0 -2
- package/src/core/subscription/subscription-delegate.ts +0 -30
- package/src/core/subscription/subscription.ts +0 -61
- package/src/core/timers.ts +0 -24
- package/src/core/transactions/client-transaction.ts +0 -78
- package/src/core/transactions/index.ts +0 -10
- package/src/core/transactions/invite-client-transaction.ts +0 -504
- package/src/core/transactions/invite-server-transaction.ts +0 -432
- package/src/core/transactions/non-invite-client-transaction.ts +0 -257
- package/src/core/transactions/non-invite-server-transaction.ts +0 -241
- package/src/core/transactions/server-transaction.ts +0 -47
- package/src/core/transactions/transaction-state.ts +0 -13
- package/src/core/transactions/transaction-user.ts +0 -82
- package/src/core/transactions/transaction.ts +0 -149
- package/src/core/transport.ts +0 -32
- package/src/core/user-agent-core/allowed-methods.ts +0 -19
- package/src/core/user-agent-core/index.ts +0 -3
- package/src/core/user-agent-core/user-agent-core-configuration.ts +0 -111
- package/src/core/user-agent-core/user-agent-core-delegate.ts +0 -50
- package/src/core/user-agent-core/user-agent-core.ts +0 -905
- package/src/core/user-agents/bye-user-agent-client.ts +0 -16
- package/src/core/user-agents/bye-user-agent-server.ts +0 -14
- package/src/core/user-agents/cancel-user-agent-client.ts +0 -14
- package/src/core/user-agents/index.ts +0 -26
- package/src/core/user-agents/info-user-agent-client.ts +0 -15
- package/src/core/user-agents/info-user-agent-server.ts +0 -14
- package/src/core/user-agents/invite-user-agent-client.ts +0 -405
- package/src/core/user-agents/invite-user-agent-server.ts +0 -269
- package/src/core/user-agents/message-user-agent-client.ts +0 -14
- package/src/core/user-agents/message-user-agent-server.ts +0 -14
- package/src/core/user-agents/notify-user-agent-client.ts +0 -15
- package/src/core/user-agents/notify-user-agent-server.ts +0 -30
- package/src/core/user-agents/prack-user-agent-client.ts +0 -16
- package/src/core/user-agents/prack-user-agent-server.ts +0 -37
- package/src/core/user-agents/publish-user-agent-client.ts +0 -14
- package/src/core/user-agents/re-invite-user-agent-client.ts +0 -127
- package/src/core/user-agents/re-invite-user-agent-server.ts +0 -109
- package/src/core/user-agents/re-subscribe-user-agent-client.ts +0 -78
- package/src/core/user-agents/re-subscribe-user-agent-server.ts +0 -14
- package/src/core/user-agents/refer-user-agent-client.ts +0 -15
- package/src/core/user-agents/refer-user-agent-server.ts +0 -30
- package/src/core/user-agents/register-user-agent-client.ts +0 -14
- package/src/core/user-agents/register-user-agent-server.ts +0 -14
- package/src/core/user-agents/subscribe-user-agent-client.ts +0 -341
- package/src/core/user-agents/subscribe-user-agent-server.ts +0 -14
- package/src/core/user-agents/user-agent-client.ts +0 -378
- package/src/core/user-agents/user-agent-server.ts +0 -276
- package/src/grammar/grammar.ts +0 -55
- package/src/grammar/index.ts +0 -4
- package/src/grammar/name-addr-header.ts +0 -58
- package/src/grammar/parameters.ts +0 -45
- package/src/grammar/pegjs/README.md +0 -9
- package/src/grammar/pegjs/dist/grammar.ts +0 -1557
- package/src/grammar/pegjs/src/grammar.pegjs +0 -1009
- package/src/grammar/uri.ts +0 -370
- package/src/lib/socket.io.esm.min.js +0 -7
- package/src/main.ts +0 -26
- package/src/new-index.ts +0 -2478
- package/src/platform/react/README.md +0 -1
- package/src/platform/web/index.ts +0 -4
- package/src/platform/web/modifiers/index.ts +0 -5
- package/src/platform/web/modifiers/modifiers.ts +0 -180
- package/src/platform/web/session-description-handler/api-extractor.json +0 -358
- package/src/platform/web/session-description-handler/index.ts +0 -14
- package/src/platform/web/session-description-handler/media-stream-factory-default.ts +0 -22
- package/src/platform/web/session-description-handler/media-stream-factory.ts +0 -10
- package/src/platform/web/session-description-handler/peer-connection-configuration-default.ts +0 -17
- package/src/platform/web/session-description-handler/peer-connection-delegate.ts +0 -72
- package/src/platform/web/session-description-handler/session-description-handler-configuration.ts +0 -17
- package/src/platform/web/session-description-handler/session-description-handler-factory-default.ts +0 -45
- package/src/platform/web/session-description-handler/session-description-handler-factory-options.ts +0 -10
- package/src/platform/web/session-description-handler/session-description-handler-factory.ts +0 -17
- package/src/platform/web/session-description-handler/session-description-handler-options.ts +0 -56
- package/src/platform/web/session-description-handler/session-description-handler.ts +0 -938
- package/src/platform/web/simple-user/api-extractor.json +0 -358
- package/src/platform/web/simple-user/index.ts +0 -7
- package/src/platform/web/simple-user/simple-user-delegate.ts +0 -82
- package/src/platform/web/simple-user/simple-user-options.ts +0 -102
- package/src/platform/web/simple-user/simple-user.ts +0 -1099
- package/src/platform/web/transport/api-extractor.json +0 -358
- package/src/platform/web/transport/index.ts +0 -6
- package/src/platform/web/transport/transport-options.ts +0 -34
- package/src/platform/web/transport/transport.ts +0 -742
- package/src/version.ts +0 -8
- package/src/webPhoneSdk.ts +0 -67
- package/src/webrtc.ts +0 -318
- /package/dist/{config.d.ts → types/config.d.ts} +0 -0
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { Logger, URI } from "../core";
|
|
2
|
-
import { SessionDescriptionHandlerFactory } from "./session-description-handler-factory";
|
|
3
|
-
import { Transport } from "./transport";
|
|
4
|
-
import { UserAgentDelegate } from "./user-agent-delegate";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Log level.
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
export type LogLevel = "debug" | "log" | "warn" | "error";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Log connector function.
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
export type LogConnector = (level: LogLevel, category: string, label: string | undefined, content: string) => void;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* SIP extension support level.
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export enum SIPExtension {
|
|
23
|
-
Required = "Required",
|
|
24
|
-
Supported = "Supported",
|
|
25
|
-
Unsupported = "Unsupported"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Options for {@link UserAgent} constructor.
|
|
30
|
-
* @public
|
|
31
|
-
*/
|
|
32
|
-
export interface UserAgentOptions {
|
|
33
|
-
/**
|
|
34
|
-
* If `true`, the user agent will accept out of dialog NOTIFY.
|
|
35
|
-
* @remarks
|
|
36
|
-
* RFC 6665 obsoletes the use of out of dialog NOTIFY from RFC 3265.
|
|
37
|
-
* @defaultValue `false`
|
|
38
|
-
*/
|
|
39
|
-
allowLegacyNotifications?: boolean;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Authorization ha1.
|
|
43
|
-
* @defaultValue `""`
|
|
44
|
-
*/
|
|
45
|
-
authorizationHa1?: string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Authorization password.
|
|
49
|
-
* @defaultValue `""`
|
|
50
|
-
*/
|
|
51
|
-
authorizationPassword?: string;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Authorization username.
|
|
55
|
-
* @defaultValue `""`
|
|
56
|
-
*/
|
|
57
|
-
authorizationUsername?: string;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @deprecated
|
|
61
|
-
* If `true`, the user agent calls the `start()` method in the constructor.
|
|
62
|
-
* @defaultValue `false`
|
|
63
|
-
* @remarks
|
|
64
|
-
* The call to start() resolves when the user agent connects, so if this
|
|
65
|
-
* option is set to `true` an alternative method of connection detection
|
|
66
|
-
* must be used.
|
|
67
|
-
*/
|
|
68
|
-
autoStart?: boolean;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* If `true`, the user agent calls the `stop()` method on unload (if running in browser window).
|
|
72
|
-
* @defaultValue `true`
|
|
73
|
-
*/
|
|
74
|
-
autoStop?: boolean;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The user portion of user agent's contact URI.
|
|
78
|
-
* @remarks
|
|
79
|
-
* If not specifed a random string will be generated and utilized as the user portion of the contact URI.
|
|
80
|
-
* @defaultValue `""`
|
|
81
|
-
*/
|
|
82
|
-
contactName?: string;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* The URI parameters of the user agent's contact URI.
|
|
86
|
-
* @defaultValue `{ transport: "ws" }`
|
|
87
|
-
*/
|
|
88
|
-
contactParams?: { [name: string]: string };
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Delegate for {@link UserAgent}.
|
|
92
|
-
* @defaultValue `{}`
|
|
93
|
-
*/
|
|
94
|
-
delegate?: UserAgentDelegate;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* The display name associated with the user agent.
|
|
98
|
-
* @remarks
|
|
99
|
-
* Descriptive name to be shown to the called party when calling or sending IM messages
|
|
100
|
-
* (the display name portion of the From header).
|
|
101
|
-
* It must NOT be enclosed between double quotes even if the given name contains multi-byte symbols
|
|
102
|
-
* (SIPjs will always enclose the `displayName` value between double quotes).
|
|
103
|
-
* @defaultValue `""`
|
|
104
|
-
*/
|
|
105
|
-
displayName?: string;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Force adding rport to Via header.
|
|
109
|
-
* @defaultValue `false`
|
|
110
|
-
*/
|
|
111
|
-
forceRport?: boolean;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Hack
|
|
115
|
-
* @deprecated TBD
|
|
116
|
-
*/
|
|
117
|
-
hackIpInContact?: boolean | string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Hack
|
|
121
|
-
* @deprecated TBD
|
|
122
|
-
*/
|
|
123
|
-
hackAllowUnregisteredOptionTags?: boolean;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Hack
|
|
127
|
-
* @deprecated TBD
|
|
128
|
-
*/
|
|
129
|
-
hackViaTcp?: boolean;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Indicates whether log messages should be written to the browser console.
|
|
133
|
-
* @defaultValue `true`
|
|
134
|
-
*/
|
|
135
|
-
logBuiltinEnabled?: boolean;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* If true, constructor logs the user agent configuration.
|
|
139
|
-
* @defaultValue `true`
|
|
140
|
-
*/
|
|
141
|
-
logConfiguration?: boolean;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* A function which will be called every time a log is generated.
|
|
145
|
-
* @defaultValue A noop
|
|
146
|
-
*/
|
|
147
|
-
logConnector?: LogConnector;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Indicates the verbosity level of the log messages.
|
|
151
|
-
* @defaultValue `"log"`
|
|
152
|
-
*/
|
|
153
|
-
logLevel?: LogLevel;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Number of seconds after which an incoming call is rejected if not answered.
|
|
157
|
-
* @defaultValue 60
|
|
158
|
-
*/
|
|
159
|
-
noAnswerTimeout?: number;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Adds a Route header(s) to outgoing requests.
|
|
163
|
-
* @defaultValue `[]`
|
|
164
|
-
*/
|
|
165
|
-
preloadedRouteSet?: Array<string>;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* @deprecated
|
|
169
|
-
* Maximum number of times to attempt to reconnect when the transport connection drops.
|
|
170
|
-
* @defaultValue 0
|
|
171
|
-
*/
|
|
172
|
-
reconnectionAttempts?: number;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @deprecated
|
|
176
|
-
* Seconds to wait between reconnection attempts when the transport connection drops.
|
|
177
|
-
* @defaultValue 4
|
|
178
|
-
*/
|
|
179
|
-
reconnectionDelay?: number;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* If true, a first provisional response after the 100 Trying will be sent automatically if UAC does not
|
|
183
|
-
* require reliable provisional responses.
|
|
184
|
-
* @defaultValue `true`
|
|
185
|
-
*/
|
|
186
|
-
sendInitialProvisionalResponse?: boolean;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* A factory for generating `SessionDescriptionHandler` instances.
|
|
190
|
-
* @remarks
|
|
191
|
-
* The factory will be passed a `Session` object for the current session
|
|
192
|
-
* and the `sessionDescriptionHandlerFactoryOptions` object.
|
|
193
|
-
* @defaultValue `Web.SessionDescriptionHandler.defaultFactory`
|
|
194
|
-
*/
|
|
195
|
-
sessionDescriptionHandlerFactory?: SessionDescriptionHandlerFactory;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Options to passed to `sessionDescriptionHandlerFactory`.
|
|
199
|
-
* @remarks
|
|
200
|
-
* See `Web.SessionDescriptionHandlerOptions` for details.
|
|
201
|
-
* @defaultValue `{}`
|
|
202
|
-
*/
|
|
203
|
-
sessionDescriptionHandlerFactoryOptions?: object;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Reliable provisional responses.
|
|
207
|
-
* https://tools.ietf.org/html/rfc3262
|
|
208
|
-
* @defaultValue `SIPExtension.Unsupported`
|
|
209
|
-
*/
|
|
210
|
-
sipExtension100rel?: SIPExtension;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Replaces header.
|
|
214
|
-
* https://tools.ietf.org/html/rfc3891
|
|
215
|
-
* @defaultValue `SIPExtension.Unsupported`
|
|
216
|
-
*/
|
|
217
|
-
sipExtensionReplaces?: SIPExtension;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Extra option tags to claim support for.
|
|
221
|
-
* @remarks
|
|
222
|
-
* Setting an extra option tag does not enable support for the associated extension
|
|
223
|
-
* it simply adds the tag to the list of supported options.
|
|
224
|
-
* See {@link UserAgentRegisteredOptionTags} for valid option tags.
|
|
225
|
-
* @defaultValue `[]`
|
|
226
|
-
*/
|
|
227
|
-
sipExtensionExtraSupported?: Array<string>;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* An id uniquely identify this user agent instance.
|
|
231
|
-
* @defaultValue
|
|
232
|
-
* A random id generated by default.
|
|
233
|
-
*/
|
|
234
|
-
sipjsId?: string;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* A constructor function for the user agent's `Transport`.
|
|
238
|
-
* @remarks
|
|
239
|
-
* For more information about creating your own transport see `Transport`.
|
|
240
|
-
* @defaultValue `WebSocketTransport`
|
|
241
|
-
*/
|
|
242
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
243
|
-
transportConstructor?: new (logger: Logger, options: any) => Transport;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* An options bucket object passed to `transportConstructor` when instantiated.
|
|
247
|
-
* @remarks
|
|
248
|
-
* See WebSocket Transport Configuration Parameters for the full list of options for the default transport.
|
|
249
|
-
* @defaultValue `{}`
|
|
250
|
-
*/
|
|
251
|
-
transportOptions?: unknown;
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* SIP Addresses-of-Record URI associated with the user agent.
|
|
255
|
-
* @remarks
|
|
256
|
-
* This is a SIP address given to you by your provider.
|
|
257
|
-
* If the user agent registers, it is the address-of-record which the user agent registers a contact for.
|
|
258
|
-
* An address-of-record represents an identity of the user, generally a long-term identity,
|
|
259
|
-
* and it does not have a dependency on any device; users can move between devices or even
|
|
260
|
-
* be associated with multiple devices at one time while retaining the same address-of-record.
|
|
261
|
-
* A simple URI, generally of the form `sip:egdar@example.com`, is used for an address-of-record.
|
|
262
|
-
* @defaultValue
|
|
263
|
-
* By default, URI is set to `sip:anonymous.X@anonymous.invalid`, where X is a random token generated for each UA.
|
|
264
|
-
*/
|
|
265
|
-
uri?: URI;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* User agent string used in the UserAgent header.
|
|
269
|
-
* @defaultValue
|
|
270
|
-
* A reasonable value is utilized.
|
|
271
|
-
*/
|
|
272
|
-
userAgentString?: string;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Hostname to use in Via header.
|
|
276
|
-
* @defaultValue
|
|
277
|
-
* A random hostname in the .invalid domain.
|
|
278
|
-
*/
|
|
279
|
-
viaHost?: any;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* SIP Option Tags
|
|
284
|
-
* @remarks
|
|
285
|
-
* http://www.iana.org/assignments/sip-parameters/sip-parameters.xhtml#sip-parameters-4
|
|
286
|
-
* @public
|
|
287
|
-
*/
|
|
288
|
-
export const UserAgentRegisteredOptionTags: { [option: string]: boolean } = {
|
|
289
|
-
"100rel": true, // RFC 3262
|
|
290
|
-
"199": true, // RFC 6228
|
|
291
|
-
answermode: true, // RFC 5373
|
|
292
|
-
"early-session": true, // RFC 3959
|
|
293
|
-
eventlist: true, // RFC 4662
|
|
294
|
-
explicitsub: true, // RFC-ietf-sipcore-refer-explicit-subscription-03
|
|
295
|
-
"from-change": true, // RFC 4916
|
|
296
|
-
"geolocation-http": true, // RFC 6442
|
|
297
|
-
"geolocation-sip": true, // RFC 6442
|
|
298
|
-
gin: true, // RFC 6140
|
|
299
|
-
gruu: true, // RFC 5627
|
|
300
|
-
histinfo: true, // RFC 7044
|
|
301
|
-
ice: true, // RFC 5768
|
|
302
|
-
join: true, // RFC 3911
|
|
303
|
-
"multiple-refer": true, // RFC 5368
|
|
304
|
-
norefersub: true, // RFC 4488
|
|
305
|
-
nosub: true, // RFC-ietf-sipcore-refer-explicit-subscription-03
|
|
306
|
-
outbound: true, // RFC 5626
|
|
307
|
-
path: true, // RFC 3327
|
|
308
|
-
policy: true, // RFC 6794
|
|
309
|
-
precondition: true, // RFC 3312
|
|
310
|
-
pref: true, // RFC 3840
|
|
311
|
-
privacy: true, // RFC 3323
|
|
312
|
-
"recipient-list-invite": true, // RFC 5366
|
|
313
|
-
"recipient-list-message": true, // RFC 5365
|
|
314
|
-
"recipient-list-subscribe": true, // RFC 5367
|
|
315
|
-
replaces: true, // RFC 3891
|
|
316
|
-
"resource-priority": true, // RFC 4412
|
|
317
|
-
"sdp-anat": true, // RFC 4092
|
|
318
|
-
"sec-agree": true, // RFC 3329
|
|
319
|
-
tdialog: true, // RFC 4538
|
|
320
|
-
timer: true, // RFC 4028
|
|
321
|
-
uui: true // RFC 7433
|
|
322
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* {@link UserAgent} state.
|
|
3
|
-
* @remarks
|
|
4
|
-
* Valid state transitions:
|
|
5
|
-
* ```
|
|
6
|
-
* 1. "Started" --> "Stopped"
|
|
7
|
-
* 2. "Stopped" --> "Started"
|
|
8
|
-
* ```
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
export enum UserAgentState {
|
|
12
|
-
Started = "Started",
|
|
13
|
-
Stopped = "Stopped"
|
|
14
|
-
}
|