ue-softphone-sdk 2.2.4 → 2.2.6
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 +7 -2
- package/package.json +5 -6
- package/{new-rollup.config.mjs → rollup-new.config.mjs} +1 -1
- package/rollup.config.js +14 -15
- package/src/index.ts +28 -53
- 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/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,33 +0,0 @@
|
|
|
1
|
-
import { URI } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* Options for {@link Publisher} constructor.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface PublisherOptions {
|
|
7
|
-
/** @deprecated TODO: provide alternative. */
|
|
8
|
-
body?: string;
|
|
9
|
-
/** @deprecated TODO: provide alternative. */
|
|
10
|
-
contentType?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Expire value for the published event.
|
|
13
|
-
* @defaultValue 3600
|
|
14
|
-
*/
|
|
15
|
-
expires?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Array of extra headers added to the PUBLISH request message.
|
|
18
|
-
*/
|
|
19
|
-
extraHeaders?: Array<string>;
|
|
20
|
-
/** @deprecated TODO: provide alternative. */
|
|
21
|
-
params?: {
|
|
22
|
-
fromDisplayName?: string;
|
|
23
|
-
fromTag?: string;
|
|
24
|
-
fromUri?: URI;
|
|
25
|
-
toDisplayName?: string;
|
|
26
|
-
toUri?: URI;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* If set true, UA will gracefully unpublish for the event on UA close.
|
|
30
|
-
* @defaultValue true
|
|
31
|
-
*/
|
|
32
|
-
unpublishOnClose?: boolean;
|
|
33
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* {@link Publisher} state.
|
|
3
|
-
* @remarks
|
|
4
|
-
* The {@link Publisher} behaves in a deterministic manner according to the following
|
|
5
|
-
* Finite State Machine (FSM).
|
|
6
|
-
* ```txt
|
|
7
|
-
* __________________________________________
|
|
8
|
-
* | __________________________ |
|
|
9
|
-
* Publisher | | v v
|
|
10
|
-
* Constructed -> Initial -> Published -> Unpublished -> Terminated
|
|
11
|
-
* | ^____________| ^
|
|
12
|
-
* |______________________________|
|
|
13
|
-
* ```
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
export declare enum PublisherState {
|
|
17
|
-
Initial = "Initial",
|
|
18
|
-
Published = "Published",
|
|
19
|
-
Unpublished = "Unpublished",
|
|
20
|
-
Terminated = "Terminated"
|
|
21
|
-
}
|
package/dist/api/publisher.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { IncomingResponseMessage, OutgoingPublishRequest, URI } from "../core";
|
|
2
|
-
import { Emitter } from "./emitter";
|
|
3
|
-
import { PublisherOptions } from "./publisher-options";
|
|
4
|
-
import { PublisherPublishOptions } from "./publisher-publish-options";
|
|
5
|
-
import { PublisherState } from "./publisher-state";
|
|
6
|
-
import { PublisherUnpublishOptions } from "./publisher-unpublish-options";
|
|
7
|
-
import { UserAgent } from "./user-agent";
|
|
8
|
-
/**
|
|
9
|
-
* A publisher publishes a publication (outgoing PUBLISH).
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export declare class Publisher {
|
|
13
|
-
private event;
|
|
14
|
-
private options;
|
|
15
|
-
private target;
|
|
16
|
-
private pubRequestBody;
|
|
17
|
-
private pubRequestExpires;
|
|
18
|
-
private pubRequestEtag;
|
|
19
|
-
private publishRefreshTimer;
|
|
20
|
-
private disposed;
|
|
21
|
-
private id;
|
|
22
|
-
private logger;
|
|
23
|
-
private request;
|
|
24
|
-
private userAgent;
|
|
25
|
-
/** The publication state. */
|
|
26
|
-
private _state;
|
|
27
|
-
/** Emits when the registration state changes. */
|
|
28
|
-
private _stateEventEmitter;
|
|
29
|
-
/**
|
|
30
|
-
* Constructs a new instance of the `Publisher` class.
|
|
31
|
-
*
|
|
32
|
-
* @param userAgent - User agent. See {@link UserAgent} for details.
|
|
33
|
-
* @param targetURI - Request URI identifying the target of the message.
|
|
34
|
-
* @param eventType - The event type identifying the published document.
|
|
35
|
-
* @param options - Options bucket. See {@link PublisherOptions} for details.
|
|
36
|
-
*/
|
|
37
|
-
constructor(userAgent: UserAgent, targetURI: URI, eventType: string, options?: PublisherOptions);
|
|
38
|
-
/**
|
|
39
|
-
* Destructor.
|
|
40
|
-
*/
|
|
41
|
-
dispose(): Promise<void>;
|
|
42
|
-
/** The publication state. */
|
|
43
|
-
get state(): PublisherState;
|
|
44
|
-
/** Emits when the publisher state changes. */
|
|
45
|
-
get stateChange(): Emitter<PublisherState>;
|
|
46
|
-
/**
|
|
47
|
-
* Publish.
|
|
48
|
-
* @param content - Body to publish
|
|
49
|
-
*/
|
|
50
|
-
publish(content: string, options?: PublisherPublishOptions): Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* Unpublish.
|
|
53
|
-
*/
|
|
54
|
-
unpublish(options?: PublisherUnpublishOptions): Promise<void>;
|
|
55
|
-
/** @internal */
|
|
56
|
-
protected receiveResponse(response: IncomingResponseMessage): void;
|
|
57
|
-
/** @internal */
|
|
58
|
-
protected send(): OutgoingPublishRequest;
|
|
59
|
-
private refreshRequest;
|
|
60
|
-
private sendPublishRequest;
|
|
61
|
-
/**
|
|
62
|
-
* Transition publication state.
|
|
63
|
-
*/
|
|
64
|
-
private stateTransition;
|
|
65
|
-
}
|
package/dist/api/referral.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { IncomingReferRequest, IncomingRequestMessage, NameAddrHeader, ResponseOptions } from "../core";
|
|
2
|
-
import { Inviter } from "./inviter";
|
|
3
|
-
import { InviterOptions } from "./inviter-options";
|
|
4
|
-
import { Session } from "./session";
|
|
5
|
-
/**
|
|
6
|
-
* A request to establish a {@link Session} elsewhere (incoming REFER).
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare class Referral {
|
|
10
|
-
private incomingReferRequest;
|
|
11
|
-
private session;
|
|
12
|
-
private inviter;
|
|
13
|
-
/** @internal */
|
|
14
|
-
constructor(incomingReferRequest: IncomingReferRequest, session: Session);
|
|
15
|
-
get referTo(): NameAddrHeader;
|
|
16
|
-
get referredBy(): string | undefined;
|
|
17
|
-
get replaces(): string | undefined;
|
|
18
|
-
/** Incoming REFER request message. */
|
|
19
|
-
get request(): IncomingRequestMessage;
|
|
20
|
-
/** Accept the request. */
|
|
21
|
-
accept(options?: ResponseOptions): Promise<void>;
|
|
22
|
-
/** Reject the request. */
|
|
23
|
-
reject(options?: ResponseOptions): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Creates an inviter which may be used to send an out of dialog INVITE request.
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* This a helper method to create an Inviter which will execute the referral
|
|
29
|
-
* of the `Session` which was referred. The appropriate headers are set and
|
|
30
|
-
* the referred `Session` is linked to the new `Session`. Note that only a
|
|
31
|
-
* single instance of the `Inviter` will be created and returned (if called
|
|
32
|
-
* more than once a reference to the same `Inviter` will be returned every time).
|
|
33
|
-
*
|
|
34
|
-
* @param options - Options bucket.
|
|
35
|
-
* @param modifiers - Session description handler modifiers.
|
|
36
|
-
*/
|
|
37
|
-
makeInviter(options?: InviterOptions): Inviter;
|
|
38
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { URI } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* Options for {@link Registerer} constructor.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface RegistererOptions {
|
|
7
|
-
/** Registration expiration time in seconds. */
|
|
8
|
-
expires?: number;
|
|
9
|
-
/** Array of extra Contact header parameters. */
|
|
10
|
-
extraContactHeaderParams?: Array<string>;
|
|
11
|
-
/** Array of extra headers added to the REGISTER. */
|
|
12
|
-
extraHeaders?: Array<string>;
|
|
13
|
-
/**
|
|
14
|
-
* UUID to provide with "+sip.instance" Contact parameter.
|
|
15
|
-
* @defaultValue a randomly generated uuid
|
|
16
|
-
*/
|
|
17
|
-
instanceId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* If true, constructor logs the registerer configuration.
|
|
20
|
-
* @defaultValue `true`
|
|
21
|
-
*/
|
|
22
|
-
logConfiguration?: boolean;
|
|
23
|
-
/** @deprecated TODO: provide alternative. */
|
|
24
|
-
params?: {
|
|
25
|
-
fromDisplayName?: string;
|
|
26
|
-
fromTag?: string;
|
|
27
|
-
fromUri?: URI;
|
|
28
|
-
toDisplayName?: string;
|
|
29
|
-
toUri?: URI;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Value to provide with "reg-id" Contact parameter.
|
|
33
|
-
* @defaultValue 1
|
|
34
|
-
*/
|
|
35
|
-
regId?: number;
|
|
36
|
-
/**
|
|
37
|
-
* The URI of the registrar to send the REGISTER requests.
|
|
38
|
-
* @defaultValue domain portion of the user agent's uri
|
|
39
|
-
*/
|
|
40
|
-
registrar?: URI;
|
|
41
|
-
/**
|
|
42
|
-
* Determines when a re-REGISTER request is sent. The value should be specified as a percentage of the expiration time (between 50 and 99).
|
|
43
|
-
* @defaultValue 99
|
|
44
|
-
*/
|
|
45
|
-
refreshFrequency?: number;
|
|
46
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OutgoingRequestDelegate, RequestOptions } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* Options for {@link Registerer.register}.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface RegistererRegisterOptions {
|
|
7
|
-
/** See `core` API. */
|
|
8
|
-
requestDelegate?: OutgoingRequestDelegate;
|
|
9
|
-
/** See `core` API. */
|
|
10
|
-
requestOptions?: RequestOptions;
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* {@link Registerer} state.
|
|
3
|
-
* @remarks
|
|
4
|
-
* The {@link Registerer} behaves in a deterministic manner according to the following
|
|
5
|
-
* Finite State Machine (FSM).
|
|
6
|
-
* ```txt
|
|
7
|
-
* __________________________________________
|
|
8
|
-
* | __________________________ |
|
|
9
|
-
* Registerer | | v v
|
|
10
|
-
* Constructed -> Initial -> Registered -> Unregistered -> Terminated
|
|
11
|
-
* | ^____________| ^
|
|
12
|
-
* |______________________________|
|
|
13
|
-
* ```
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
export declare enum RegistererState {
|
|
17
|
-
Initial = "Initial",
|
|
18
|
-
Registered = "Registered",
|
|
19
|
-
Unregistered = "Unregistered",
|
|
20
|
-
Terminated = "Terminated"
|
|
21
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { OutgoingRequestDelegate, RequestOptions } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* Options for {@link Registerer.unregister}.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface RegistererUnregisterOptions {
|
|
7
|
-
/**
|
|
8
|
-
* If true, unregister all contacts.
|
|
9
|
-
* @defaultValue false
|
|
10
|
-
*/
|
|
11
|
-
all?: boolean;
|
|
12
|
-
/** See `core` API. */
|
|
13
|
-
requestDelegate?: OutgoingRequestDelegate;
|
|
14
|
-
/** See `core` API. */
|
|
15
|
-
requestOptions?: RequestOptions;
|
|
16
|
-
}
|
package/dist/api/registerer.d.ts
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { OutgoingRegisterRequest } from "../core";
|
|
2
|
-
import { Emitter } from "./emitter";
|
|
3
|
-
import { RegistererOptions } from "./registerer-options";
|
|
4
|
-
import { RegistererRegisterOptions } from "./registerer-register-options";
|
|
5
|
-
import { RegistererState } from "./registerer-state";
|
|
6
|
-
import { RegistererUnregisterOptions } from "./registerer-unregister-options";
|
|
7
|
-
import { UserAgent } from "./user-agent";
|
|
8
|
-
/**
|
|
9
|
-
* A registerer registers a contact for an address of record (outgoing REGISTER).
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export declare class Registerer {
|
|
13
|
-
private static readonly defaultExpires;
|
|
14
|
-
private static readonly defaultRefreshFrequency;
|
|
15
|
-
private disposed;
|
|
16
|
-
private id;
|
|
17
|
-
private expires;
|
|
18
|
-
private refreshFrequency;
|
|
19
|
-
private logger;
|
|
20
|
-
private options;
|
|
21
|
-
private request;
|
|
22
|
-
private userAgent;
|
|
23
|
-
private registrationExpiredTimer;
|
|
24
|
-
private registrationTimer;
|
|
25
|
-
/** The contacts returned from the most recent accepted REGISTER request. */
|
|
26
|
-
private _contacts;
|
|
27
|
-
/** The number of seconds to wait before retrying to register. */
|
|
28
|
-
private _retryAfter;
|
|
29
|
-
/** The registration state. */
|
|
30
|
-
private _state;
|
|
31
|
-
/** Emits when the registration state changes. */
|
|
32
|
-
private _stateEventEmitter;
|
|
33
|
-
/** True is waiting for final response to outstanding REGISTER request. */
|
|
34
|
-
private _waiting;
|
|
35
|
-
/** Emits when waiting changes. */
|
|
36
|
-
private _waitingEventEmitter;
|
|
37
|
-
/**
|
|
38
|
-
* Constructs a new instance of the `Registerer` class.
|
|
39
|
-
* @param userAgent - User agent. See {@link UserAgent} for details.
|
|
40
|
-
* @param options - Options bucket. See {@link RegistererOptions} for details.
|
|
41
|
-
*/
|
|
42
|
-
constructor(userAgent: UserAgent, options?: RegistererOptions);
|
|
43
|
-
/** Default registerer options. */
|
|
44
|
-
private static defaultOptions;
|
|
45
|
-
private static newUUID;
|
|
46
|
-
/**
|
|
47
|
-
* Strip properties with undefined values from options.
|
|
48
|
-
* This is a work around while waiting for missing vs undefined to be addressed (or not)...
|
|
49
|
-
* https://github.com/Microsoft/TypeScript/issues/13195
|
|
50
|
-
* @param options - Options to reduce
|
|
51
|
-
*/
|
|
52
|
-
private static stripUndefinedProperties;
|
|
53
|
-
/** The registered contacts. */
|
|
54
|
-
get contacts(): Array<string>;
|
|
55
|
-
/**
|
|
56
|
-
* The number of seconds to wait before retrying to register.
|
|
57
|
-
* @defaultValue `undefined`
|
|
58
|
-
* @remarks
|
|
59
|
-
* When the server rejects a registration request, if it provides a suggested
|
|
60
|
-
* duration to wait before retrying, that value is available here when and if
|
|
61
|
-
* the state transitions to `Unsubscribed`. It is also available during the
|
|
62
|
-
* callback to `onReject` after a call to `register`. (Note that if the state
|
|
63
|
-
* if already `Unsubscribed`, a rejected request created by `register` will
|
|
64
|
-
* not cause the state to transition to `Unsubscribed`. One way to avoid this
|
|
65
|
-
* case is to dispose of `Registerer` when unregistered and create a new
|
|
66
|
-
* `Registerer` for any attempts to retry registering.)
|
|
67
|
-
* @example
|
|
68
|
-
* ```ts
|
|
69
|
-
* // Checking for retry after on state change
|
|
70
|
-
* registerer.stateChange.addListener((newState) => {
|
|
71
|
-
* switch (newState) {
|
|
72
|
-
* case RegistererState.Unregistered:
|
|
73
|
-
* const retryAfter = registerer.retryAfter;
|
|
74
|
-
* break;
|
|
75
|
-
* }
|
|
76
|
-
* });
|
|
77
|
-
*
|
|
78
|
-
* // Checking for retry after on request rejection
|
|
79
|
-
* registerer.register({
|
|
80
|
-
* requestDelegate: {
|
|
81
|
-
* onReject: () => {
|
|
82
|
-
* const retryAfter = registerer.retryAfter;
|
|
83
|
-
* }
|
|
84
|
-
* }
|
|
85
|
-
* });
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
get retryAfter(): number | undefined;
|
|
89
|
-
/** The registration state. */
|
|
90
|
-
get state(): RegistererState;
|
|
91
|
-
/** Emits when the registerer state changes. */
|
|
92
|
-
get stateChange(): Emitter<RegistererState>;
|
|
93
|
-
/** Destructor. */
|
|
94
|
-
dispose(): Promise<void>;
|
|
95
|
-
/**
|
|
96
|
-
* Sends the REGISTER request.
|
|
97
|
-
* @remarks
|
|
98
|
-
* If successful, sends re-REGISTER requests prior to registration expiration until `unsubscribe()` is called.
|
|
99
|
-
* Rejects with `RequestPendingError` if a REGISTER request is already in progress.
|
|
100
|
-
*/
|
|
101
|
-
register(options?: RegistererRegisterOptions): Promise<OutgoingRegisterRequest>;
|
|
102
|
-
/**
|
|
103
|
-
* Sends the REGISTER request with expires equal to zero.
|
|
104
|
-
* @remarks
|
|
105
|
-
* Rejects with `RequestPendingError` if a REGISTER request is already in progress.
|
|
106
|
-
*/
|
|
107
|
-
unregister(options?: RegistererUnregisterOptions): Promise<OutgoingRegisterRequest>;
|
|
108
|
-
/**
|
|
109
|
-
* Clear registration timers.
|
|
110
|
-
*/
|
|
111
|
-
private clearTimers;
|
|
112
|
-
/**
|
|
113
|
-
* Generate Contact Header
|
|
114
|
-
*/
|
|
115
|
-
private generateContactHeader;
|
|
116
|
-
/**
|
|
117
|
-
* Helper function, called when registered.
|
|
118
|
-
*/
|
|
119
|
-
private registered;
|
|
120
|
-
/**
|
|
121
|
-
* Helper function, called when unregistered.
|
|
122
|
-
*/
|
|
123
|
-
private unregistered;
|
|
124
|
-
/**
|
|
125
|
-
* Helper function, called when terminated.
|
|
126
|
-
*/
|
|
127
|
-
private terminated;
|
|
128
|
-
/**
|
|
129
|
-
* Transition registration state.
|
|
130
|
-
*/
|
|
131
|
-
private stateTransition;
|
|
132
|
-
/** True if the registerer is currently waiting for final response to a REGISTER request. */
|
|
133
|
-
private get waiting();
|
|
134
|
-
/** Emits when the registerer waiting state changes. */
|
|
135
|
-
private get waitingChange();
|
|
136
|
-
/**
|
|
137
|
-
* Toggle waiting.
|
|
138
|
-
*/
|
|
139
|
-
private waitingToggle;
|
|
140
|
-
/** Hopefully helpful as the standard behavior has been found to be unexpected. */
|
|
141
|
-
private waitingWarning;
|
|
142
|
-
/** Hopefully helpful as the standard behavior has been found to be unexpected. */
|
|
143
|
-
private stateError;
|
|
144
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OutgoingRequestDelegate, RequestOptions } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* Options for {@link Session.bye}.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface SessionByeOptions {
|
|
7
|
-
/** See `core` API. */
|
|
8
|
-
requestDelegate?: OutgoingRequestDelegate;
|
|
9
|
-
/** See `core` API. */
|
|
10
|
-
requestOptions?: RequestOptions;
|
|
11
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { IncomingRequestMessage } from "../core";
|
|
2
|
-
import { Bye } from "./bye";
|
|
3
|
-
import { Info } from "./info";
|
|
4
|
-
import { Message } from "./message";
|
|
5
|
-
import { Notification } from "./notification";
|
|
6
|
-
import { Referral } from "./referral";
|
|
7
|
-
import { SessionDescriptionHandler } from "./session-description-handler";
|
|
8
|
-
/**
|
|
9
|
-
* Delegate for {@link Session}.
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export interface SessionDelegate {
|
|
13
|
-
/**
|
|
14
|
-
* Called upon receiving an incoming in dialog BYE request.
|
|
15
|
-
* @param bye - The bye.
|
|
16
|
-
*/
|
|
17
|
-
onBye?(bye: Bye): void;
|
|
18
|
-
/**
|
|
19
|
-
* Called upon receiving an incoming in dialog INFO request.
|
|
20
|
-
* @param info - The info.
|
|
21
|
-
*/
|
|
22
|
-
onInfo?(info: Info): void;
|
|
23
|
-
/**
|
|
24
|
-
* Called upon receiving an incoming in dialog INVITE request.
|
|
25
|
-
* @param invite - The invite.
|
|
26
|
-
*/
|
|
27
|
-
onInvite?(request: IncomingRequestMessage, response: string, statusCode: number): void;
|
|
28
|
-
/**
|
|
29
|
-
* Called upon receiving an incoming in dialog MESSAGE request.
|
|
30
|
-
* @param message - The message.
|
|
31
|
-
*/
|
|
32
|
-
onMessage?(message: Message): void;
|
|
33
|
-
/**
|
|
34
|
-
* Called upon receiving an incoming in dialog NOTIFY request.
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* If a refer is in progress notifications are delivered to the referrers delegate.
|
|
38
|
-
*
|
|
39
|
-
* @param notification - The notification.
|
|
40
|
-
*/
|
|
41
|
-
onNotify?(notification: Notification): void;
|
|
42
|
-
/**
|
|
43
|
-
* Called upon receiving an incoming in dialog REFER request.
|
|
44
|
-
* @param referral - The referral.
|
|
45
|
-
*/
|
|
46
|
-
onRefer?(referral: Referral): void;
|
|
47
|
-
/**
|
|
48
|
-
* Called upon creating a SessionDescriptionHandler.
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* It's recommended that the SessionDescriptionHandler be accessed via the `Session.sessionDescriptionHandler` property.
|
|
52
|
-
* However there are use cases where one needs access immediately after it is constructed and before it is utilized.
|
|
53
|
-
* Thus this callback.
|
|
54
|
-
*
|
|
55
|
-
* In most scenarios a single SessionDescriptionHandler will be created per Session
|
|
56
|
-
* in which case this callback will be called at most once and `provisional` will be `false`.
|
|
57
|
-
*
|
|
58
|
-
* However if reliable provisional responses are being supported and an INVITE is sent without SDP,
|
|
59
|
-
* one or more session description handlers will be created if remote offers are received in reliable provisional responses.
|
|
60
|
-
* When remote offers are received in reliable provisional responses, the `provisional` parameter will be `true`.
|
|
61
|
-
* When the `provisional` paramter is `true`, this callback may (or may not) be called again.
|
|
62
|
-
* If the session is ultimately established using a SessionDescriptionHandler which was not created provisionally,
|
|
63
|
-
* this callback will be called again and the `provisional` parameter will be `false`.
|
|
64
|
-
* If the session is ultimately established using a SessionDescriptionHandler which was created provisionally,
|
|
65
|
-
* this callback will not be called again.
|
|
66
|
-
* Note that if the session is ultimately established using a SessionDescriptionHandler which was created provisionally,
|
|
67
|
-
* the provisional SessionDescriptionHandler being utilized will be available via the `Session.sessionDescriptionHandler` property.
|
|
68
|
-
*
|
|
69
|
-
* @param sessionDescriptionHandler - The handler.
|
|
70
|
-
* @param provisional - True if created provisionally.
|
|
71
|
-
*/
|
|
72
|
-
onSessionDescriptionHandler?(sessionDescriptionHandler: SessionDescriptionHandler, provisional: boolean): void;
|
|
73
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Session } from "./session";
|
|
2
|
-
import { SessionDescriptionHandler } from "./session-description-handler";
|
|
3
|
-
/**
|
|
4
|
-
* Factory for {@link SessionDescriptionHandler}.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export interface SessionDescriptionHandlerFactory {
|
|
8
|
-
/**
|
|
9
|
-
* SessionDescriptionHandler factory function.
|
|
10
|
-
* @remarks
|
|
11
|
-
* The `options` are provided as part of the UserAgent configuration
|
|
12
|
-
* and passed through on every call to SessionDescriptionHandlerFactory's constructor.
|
|
13
|
-
*/
|
|
14
|
-
(session: Session, options?: object): SessionDescriptionHandler;
|
|
15
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delegate for {@link Session} offer/answer exchange.
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
export interface SessionDescriptionHandler {
|
|
6
|
-
/**
|
|
7
|
-
* Destructor.
|
|
8
|
-
*/
|
|
9
|
-
close(): void;
|
|
10
|
-
/**
|
|
11
|
-
* Gets the local description from the underlying media implementation.
|
|
12
|
-
* @param options - Options object to be used by getDescription.
|
|
13
|
-
* @param modifiers - Array with one time use description modifiers.
|
|
14
|
-
* @returns Promise that resolves with the local description to be used for the session.
|
|
15
|
-
* Rejects with `ClosedSessionDescriptionHandlerError` when this method
|
|
16
|
-
* is called after close or when close occurs before complete.
|
|
17
|
-
*/
|
|
18
|
-
getDescription(options?: SessionDescriptionHandlerOptions, modifiers?: Array<SessionDescriptionHandlerModifier>): Promise<BodyAndContentType>;
|
|
19
|
-
/**
|
|
20
|
-
* Returns true if the Session Description Handler can handle the Content-Type described by a SIP message.
|
|
21
|
-
* @param contentType - The content type that is in the SIP Message.
|
|
22
|
-
* @returns True if the content type is handled by this session description handler. False otherwise.
|
|
23
|
-
*/
|
|
24
|
-
hasDescription(contentType: string): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Rolls back the current local/remote offer to the prior stable state.
|
|
27
|
-
*/
|
|
28
|
-
rollbackDescription?(): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the remote description to the underlying media implementation.
|
|
31
|
-
* @param sessionDescription - The description provided by a SIP message to be set on the media implementation.
|
|
32
|
-
* @param options - Options object to be used by setDescription.
|
|
33
|
-
* @param modifiers - Array with one time use description modifiers.
|
|
34
|
-
* @returns Promise that resolves once the description is set.
|
|
35
|
-
* Rejects with `ClosedSessionDescriptionHandlerError` when this method
|
|
36
|
-
* is called after close or when close occurs before complete.
|
|
37
|
-
*/
|
|
38
|
-
setDescription(sdp: string, options?: SessionDescriptionHandlerOptions, modifiers?: Array<SessionDescriptionHandlerModifier>): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Send DTMF via RTP (RFC 4733).
|
|
41
|
-
* Returns true if DTMF send is successful, false otherwise.
|
|
42
|
-
* @param tones - A string containing DTMF digits.
|
|
43
|
-
* @param options - Options object to be used by sendDtmf.
|
|
44
|
-
* @returns True if DTMF send is successful, false otherwise.
|
|
45
|
-
*/
|
|
46
|
-
sendDtmf(tones: string, options?: unknown): boolean;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Modifier for {@link SessionDescriptionHandler} offer/answer.
|
|
50
|
-
* @public
|
|
51
|
-
*/
|
|
52
|
-
export interface SessionDescriptionHandlerModifier {
|
|
53
|
-
(sessionDescription: RTCSessionDescriptionInit): Promise<RTCSessionDescriptionInit>;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Options for {@link SessionDescriptionHandler} methods.
|
|
57
|
-
* @remarks
|
|
58
|
-
* These options are provided to various UserAgent methods (invite() for example)
|
|
59
|
-
* and passed through on calls to getDescription() and setDescription().
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
62
|
-
export interface SessionDescriptionHandlerOptions {
|
|
63
|
-
constraints?: object;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Message body content and type.
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
export interface BodyAndContentType {
|
|
70
|
-
/** Message body content. */
|
|
71
|
-
body: string;
|
|
72
|
-
/** Message body content type. */
|
|
73
|
-
contentType: string;
|
|
74
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OutgoingRequestDelegate, RequestOptions } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* Options for {@link Session.info}.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface SessionInfoOptions {
|
|
7
|
-
/** See `core` API. */
|
|
8
|
-
requestDelegate?: OutgoingRequestDelegate;
|
|
9
|
-
/** See `core` API. */
|
|
10
|
-
requestOptions?: RequestOptions;
|
|
11
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { OutgoingRequestDelegate, RequestOptions } from "../core";
|
|
2
|
-
import { SessionDescriptionHandlerModifier, SessionDescriptionHandlerOptions } from "./session-description-handler";
|
|
3
|
-
/**
|
|
4
|
-
* Options for {@link Session.invite}.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export interface SessionInviteOptions {
|
|
8
|
-
/**
|
|
9
|
-
* See `core` API.
|
|
10
|
-
*/
|
|
11
|
-
requestDelegate?: OutgoingRequestDelegate;
|
|
12
|
-
/**
|
|
13
|
-
* See `core` API.
|
|
14
|
-
*/
|
|
15
|
-
requestOptions?: RequestOptions;
|
|
16
|
-
/**
|
|
17
|
-
* Modifiers to pass to SessionDescriptionHandler during re-INVITE transaction.
|
|
18
|
-
*/
|
|
19
|
-
sessionDescriptionHandlerModifiers?: Array<SessionDescriptionHandlerModifier>;
|
|
20
|
-
/**
|
|
21
|
-
* Options to pass to SessionDescriptionHandler during re-INVITE transaction.
|
|
22
|
-
*/
|
|
23
|
-
sessionDescriptionHandlerOptions?: SessionDescriptionHandlerOptions;
|
|
24
|
-
/**
|
|
25
|
-
* If true, send INVITE without SDP. Default is false.
|
|
26
|
-
*/
|
|
27
|
-
withoutSdp?: boolean;
|
|
28
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OutgoingRequestDelegate, RequestOptions } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* Options for {@link Session.message}.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface SessionMessageOptions {
|
|
7
|
-
/** See `core` API. */
|
|
8
|
-
requestDelegate?: OutgoingRequestDelegate;
|
|
9
|
-
/** See `core` API. */
|
|
10
|
-
requestOptions?: RequestOptions;
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { OutgoingRequestDelegate, RequestOptions } from "../core";
|
|
2
|
-
import { Notification } from "./notification";
|
|
3
|
-
/**
|
|
4
|
-
* Options for {@link Session.refer}.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export interface SessionReferOptions {
|
|
8
|
-
/** Called upon receiving an incoming NOTIFY associated with a REFER. */
|
|
9
|
-
onNotify?: (notification: Notification) => void;
|
|
10
|
-
/** See `core` API. */
|
|
11
|
-
requestDelegate?: OutgoingRequestDelegate;
|
|
12
|
-
/** See `core` API. */
|
|
13
|
-
requestOptions?: RequestOptions;
|
|
14
|
-
}
|