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,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Options for {@link Invitation.reject}.
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
export interface InvitationRejectOptions {
|
|
6
|
-
/**
|
|
7
|
-
* Body
|
|
8
|
-
*/
|
|
9
|
-
body?: string | {
|
|
10
|
-
body: string;
|
|
11
|
-
contentType: string;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Array of extra headers added to the response.
|
|
15
|
-
*/
|
|
16
|
-
extraHeaders?: Array<string>;
|
|
17
|
-
/**
|
|
18
|
-
* Status code for response.
|
|
19
|
-
*/
|
|
20
|
-
statusCode?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Reason phrase for response.
|
|
23
|
-
*/
|
|
24
|
-
reasonPhrase?: string;
|
|
25
|
-
}
|
package/dist/api/invitation.d.ts
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { IncomingInviteRequest, IncomingRequestMessage, Logger, NameAddrHeader } from "../core";
|
|
2
|
-
import { InvitationAcceptOptions } from "./invitation-accept-options";
|
|
3
|
-
import { InvitationProgressOptions } from "./invitation-progress-options";
|
|
4
|
-
import { InvitationRejectOptions } from "./invitation-reject-options";
|
|
5
|
-
import { Session } from "./session";
|
|
6
|
-
import { UserAgent } from "./user-agent";
|
|
7
|
-
/**
|
|
8
|
-
* An invitation is an offer to establish a {@link Session} (incoming INVITE).
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
export declare class Invitation extends Session {
|
|
12
|
-
incomingInviteRequest: IncomingInviteRequest;
|
|
13
|
-
/**
|
|
14
|
-
* Logger.
|
|
15
|
-
*/
|
|
16
|
-
protected logger: Logger;
|
|
17
|
-
/** @internal */
|
|
18
|
-
protected _id: string;
|
|
19
|
-
/** True if dispose() has been called. */
|
|
20
|
-
private disposed;
|
|
21
|
-
/** INVITE will be rejected if not accepted within a certain period time. */
|
|
22
|
-
private expiresTimer;
|
|
23
|
-
/** True if this Session has been Terminated due to a CANCEL request. */
|
|
24
|
-
private isCanceled;
|
|
25
|
-
/** Are reliable provisional responses required or supported. */
|
|
26
|
-
private rel100;
|
|
27
|
-
/** The current RSeq header value. */
|
|
28
|
-
private rseq;
|
|
29
|
-
/** INVITE will be rejected if final response not sent in a certain period time. */
|
|
30
|
-
private userNoAnswerTimer;
|
|
31
|
-
/** True if waiting for a PRACK before sending a 200 Ok. */
|
|
32
|
-
private waitingForPrack;
|
|
33
|
-
/** A Promise providing a defer when waiting for a PRACK. */
|
|
34
|
-
private waitingForPrackPromise;
|
|
35
|
-
/** Function to resolve when PRACK arrives. */
|
|
36
|
-
private waitingForPrackResolve;
|
|
37
|
-
/** Function to reject when PRACK never arrives. */
|
|
38
|
-
private waitingForPrackReject;
|
|
39
|
-
/** @internal */
|
|
40
|
-
constructor(userAgent: UserAgent, incomingInviteRequest: IncomingInviteRequest);
|
|
41
|
-
/**
|
|
42
|
-
* Destructor.
|
|
43
|
-
*/
|
|
44
|
-
dispose(): Promise<void>;
|
|
45
|
-
/**
|
|
46
|
-
* If true, a first provisional response after the 100 Trying
|
|
47
|
-
* will be sent automatically. This is false it the UAC required
|
|
48
|
-
* reliable provisional responses (100rel in Require header) or
|
|
49
|
-
* the user agent configuration has specified to not send an
|
|
50
|
-
* initial response, otherwise it is true. The provisional is sent by
|
|
51
|
-
* calling `progress()` without any options.
|
|
52
|
-
*/
|
|
53
|
-
get autoSendAnInitialProvisionalResponse(): boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Initial incoming INVITE request message body.
|
|
56
|
-
*/
|
|
57
|
-
get body(): string | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* The identity of the local user.
|
|
60
|
-
*/
|
|
61
|
-
get localIdentity(): NameAddrHeader;
|
|
62
|
-
/**
|
|
63
|
-
* The identity of the remote user.
|
|
64
|
-
*/
|
|
65
|
-
get remoteIdentity(): NameAddrHeader;
|
|
66
|
-
/**
|
|
67
|
-
* Initial incoming INVITE request message.
|
|
68
|
-
*/
|
|
69
|
-
get request(): IncomingRequestMessage;
|
|
70
|
-
/**
|
|
71
|
-
* Accept the invitation.
|
|
72
|
-
*
|
|
73
|
-
* @remarks
|
|
74
|
-
* Accept the incoming INVITE request to start a Session.
|
|
75
|
-
* Replies to the INVITE request with a 200 Ok response.
|
|
76
|
-
* Resolves once the response sent, otherwise rejects.
|
|
77
|
-
*
|
|
78
|
-
* This method may reject for a variety of reasons including
|
|
79
|
-
* the receipt of a CANCEL request before `accept` is able
|
|
80
|
-
* to construct a response.
|
|
81
|
-
* @param options - Options bucket.
|
|
82
|
-
*/
|
|
83
|
-
accept(options?: InvitationAcceptOptions): Promise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* Indicate progress processing the invitation.
|
|
86
|
-
*
|
|
87
|
-
* @remarks
|
|
88
|
-
* Report progress to the the caller.
|
|
89
|
-
* Replies to the INVITE request with a 1xx provisional response.
|
|
90
|
-
* Resolves once the response sent, otherwise rejects.
|
|
91
|
-
* @param options - Options bucket.
|
|
92
|
-
*/
|
|
93
|
-
progress(options?: InvitationProgressOptions): Promise<void>;
|
|
94
|
-
/**
|
|
95
|
-
* Reject the invitation.
|
|
96
|
-
*
|
|
97
|
-
* @remarks
|
|
98
|
-
* Replies to the INVITE request with a 4xx, 5xx, or 6xx final response.
|
|
99
|
-
* Resolves once the response sent, otherwise rejects.
|
|
100
|
-
*
|
|
101
|
-
* The expectation is that this method is used to reject an INVITE request.
|
|
102
|
-
* That is indeed the case - a call to `progress` followed by `reject` is
|
|
103
|
-
* a typical way to "decline" an incoming INVITE request. However it may
|
|
104
|
-
* also be called after calling `accept` (but only before it completes)
|
|
105
|
-
* which will reject the call and cause `accept` to reject.
|
|
106
|
-
* @param options - Options bucket.
|
|
107
|
-
*/
|
|
108
|
-
reject(options?: InvitationRejectOptions): Promise<void>;
|
|
109
|
-
/**
|
|
110
|
-
* Handle CANCEL request.
|
|
111
|
-
*
|
|
112
|
-
* @param message - CANCEL message.
|
|
113
|
-
* @internal
|
|
114
|
-
*/
|
|
115
|
-
_onCancel(message: IncomingRequestMessage): void;
|
|
116
|
-
/**
|
|
117
|
-
* Helper function to handle offer/answer in a PRACK.
|
|
118
|
-
*/
|
|
119
|
-
private handlePrackOfferAnswer;
|
|
120
|
-
/**
|
|
121
|
-
* A handler for errors which occur while attempting to send 1xx and 2xx responses.
|
|
122
|
-
* In all cases, an attempt is made to reject the request if it is still outstanding.
|
|
123
|
-
* And while there are a variety of things which can go wrong and we log something here
|
|
124
|
-
* for all errors, there are a handful of common exceptions we pay some extra attention to.
|
|
125
|
-
* @param error - The error which occurred.
|
|
126
|
-
*/
|
|
127
|
-
private handleResponseError;
|
|
128
|
-
/**
|
|
129
|
-
* Callback for when ACK for a 2xx response is never received.
|
|
130
|
-
* @param session - Session the ACK never arrived for.
|
|
131
|
-
*/
|
|
132
|
-
private onAckTimeout;
|
|
133
|
-
/**
|
|
134
|
-
* A version of `accept` which resolves a session when the 200 Ok response is sent.
|
|
135
|
-
* @param options - Options bucket.
|
|
136
|
-
*/
|
|
137
|
-
private sendAccept;
|
|
138
|
-
/**
|
|
139
|
-
* A version of `progress` which resolves when the provisional response is sent.
|
|
140
|
-
* @param options - Options bucket.
|
|
141
|
-
*/
|
|
142
|
-
private sendProgress;
|
|
143
|
-
/**
|
|
144
|
-
* A version of `progress` which resolves when the provisional response with sdp is sent.
|
|
145
|
-
* @param options - Options bucket.
|
|
146
|
-
*/
|
|
147
|
-
private sendProgressWithSDP;
|
|
148
|
-
/**
|
|
149
|
-
* A version of `progress` which resolves when the reliable provisional response is sent.
|
|
150
|
-
* @param options - Options bucket.
|
|
151
|
-
*/
|
|
152
|
-
private sendProgressReliable;
|
|
153
|
-
/**
|
|
154
|
-
* A version of `progress` which resolves when the reliable provisional response is acknowledged.
|
|
155
|
-
* @param options - Options bucket.
|
|
156
|
-
*/
|
|
157
|
-
private sendProgressReliableWaitForPrack;
|
|
158
|
-
/**
|
|
159
|
-
* A version of `progress` which resolves when a 100 Trying provisional response is sent.
|
|
160
|
-
*/
|
|
161
|
-
private sendProgressTrying;
|
|
162
|
-
/**
|
|
163
|
-
* When attempting to accept the INVITE, an invitation waits
|
|
164
|
-
* for any outstanding PRACK to arrive before sending the 200 Ok.
|
|
165
|
-
* It will be waiting on this Promise to resolve which lets it know
|
|
166
|
-
* the PRACK has arrived and it may proceed to send the 200 Ok.
|
|
167
|
-
*/
|
|
168
|
-
private waitForArrivalOfPrack;
|
|
169
|
-
/**
|
|
170
|
-
* Here we are resolving the promise which in turn will cause
|
|
171
|
-
* the accept to proceed (it may still fail for other reasons, but...).
|
|
172
|
-
*/
|
|
173
|
-
private prackArrived;
|
|
174
|
-
/**
|
|
175
|
-
* Here we are rejecting the promise which in turn will cause
|
|
176
|
-
* the accept to fail and the session to transition to "terminated".
|
|
177
|
-
*/
|
|
178
|
-
private prackNeverArrived;
|
|
179
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { OutgoingRequestDelegate, RequestOptions } from "../core";
|
|
2
|
-
import { SessionDescriptionHandlerModifier, SessionDescriptionHandlerOptions } from "./session-description-handler";
|
|
3
|
-
/**
|
|
4
|
-
* Options for {@link Inviter.invite}.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export interface InviterInviteOptions {
|
|
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 the initial INVITE transaction.
|
|
18
|
-
*/
|
|
19
|
-
sessionDescriptionHandlerModifiers?: Array<SessionDescriptionHandlerModifier>;
|
|
20
|
-
/**
|
|
21
|
-
* Options to pass to SessionDescriptionHandler during the initial INVITE transaction.
|
|
22
|
-
*/
|
|
23
|
-
sessionDescriptionHandlerOptions?: SessionDescriptionHandlerOptions;
|
|
24
|
-
/**
|
|
25
|
-
* If true, send INVITE without SDP. Default is false.
|
|
26
|
-
*/
|
|
27
|
-
withoutSdp?: boolean;
|
|
28
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { URI } from "../core";
|
|
2
|
-
import { SessionDescriptionHandlerModifier } from "./session-description-handler";
|
|
3
|
-
import { SessionDescriptionHandlerOptions } from "./session-description-handler";
|
|
4
|
-
import { SessionOptions } from "./session-options";
|
|
5
|
-
/**
|
|
6
|
-
* Options for {@link Inviter} constructor.
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export interface InviterOptions extends SessionOptions {
|
|
10
|
-
/** If true, an anonymous call. */
|
|
11
|
-
anonymous?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* If true, the first answer to the local offer is immediately utilized for media.
|
|
14
|
-
* Requires that the INVITE request MUST NOT fork.
|
|
15
|
-
* Has no effect if `inviteWithoutSdp` is true.
|
|
16
|
-
* Default is false.
|
|
17
|
-
*/
|
|
18
|
-
earlyMedia?: boolean;
|
|
19
|
-
/** Array of extra headers added to the INVITE. */
|
|
20
|
-
extraHeaders?: Array<string>;
|
|
21
|
-
/** If true, send INVITE without SDP. Default is false. */
|
|
22
|
-
inviteWithoutSdp?: boolean;
|
|
23
|
-
/** @deprecated TODO: provide alternative. */
|
|
24
|
-
params?: {
|
|
25
|
-
fromDisplayName?: string;
|
|
26
|
-
fromTag?: string;
|
|
27
|
-
fromUri?: string | URI;
|
|
28
|
-
toDisplayName?: string;
|
|
29
|
-
toUri?: string | URI;
|
|
30
|
-
};
|
|
31
|
-
/** @deprecated TODO: provide alternative. */
|
|
32
|
-
renderbody?: string;
|
|
33
|
-
/** @deprecated TODO: provide alternative. */
|
|
34
|
-
rendertype?: string;
|
|
35
|
-
/** Modifiers to pass to SessionDescriptionHandler during the initial INVITE transaction. */
|
|
36
|
-
sessionDescriptionHandlerModifiers?: Array<SessionDescriptionHandlerModifier>;
|
|
37
|
-
/** Options to pass to SessionDescriptionHandler during the initial INVITE transaction. */
|
|
38
|
-
sessionDescriptionHandlerOptions?: SessionDescriptionHandlerOptions;
|
|
39
|
-
/** Modifiers to pass to SessionDescriptionHandler during re-INVITE transactions. */
|
|
40
|
-
sessionDescriptionHandlerModifiersReInvite?: Array<SessionDescriptionHandlerModifier>;
|
|
41
|
-
/** Options to pass to SessionDescriptionHandler during re-INVITE transactions. */
|
|
42
|
-
sessionDescriptionHandlerOptionsReInvite?: SessionDescriptionHandlerOptions;
|
|
43
|
-
}
|
package/dist/api/inviter.d.ts
DELETED
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import { Logger, NameAddrHeader, OutgoingInviteRequest, OutgoingRequestMessage, URI } from "../core";
|
|
2
|
-
import { InviterCancelOptions } from "./inviter-cancel-options";
|
|
3
|
-
import { InviterInviteOptions } from "./inviter-invite-options";
|
|
4
|
-
import { InviterOptions } from "./inviter-options";
|
|
5
|
-
import { Session } from "./session";
|
|
6
|
-
import { BodyAndContentType } from "./session-description-handler";
|
|
7
|
-
import { UserAgent } from "./user-agent";
|
|
8
|
-
/**
|
|
9
|
-
* An inviter offers to establish a {@link Session} (outgoing INVITE).
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export declare class Inviter extends Session {
|
|
13
|
-
/**
|
|
14
|
-
* If this Inviter was created as a result of a REFER, the referred Session. Otherwise undefined.
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
_referred: Session | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Logger.
|
|
20
|
-
*/
|
|
21
|
-
protected logger: Logger;
|
|
22
|
-
/** @internal */
|
|
23
|
-
protected _id: string;
|
|
24
|
-
/** True if dispose() has been called. */
|
|
25
|
-
private disposed;
|
|
26
|
-
/** True if early media use is enabled. */
|
|
27
|
-
private earlyMedia;
|
|
28
|
-
/** The early media session. */
|
|
29
|
-
private earlyMediaDialog;
|
|
30
|
-
/** The early media session description handlers. */
|
|
31
|
-
private earlyMediaSessionDescriptionHandlers;
|
|
32
|
-
/** Our From tag. */
|
|
33
|
-
private fromTag;
|
|
34
|
-
/** True if cancel() was called. */
|
|
35
|
-
private isCanceled;
|
|
36
|
-
/** True if initial INVITE without SDP. */
|
|
37
|
-
private inviteWithoutSdp;
|
|
38
|
-
/** Initial INVITE request sent by core. Undefined until sent. */
|
|
39
|
-
private outgoingInviteRequest;
|
|
40
|
-
/** Initial INVITE message provided to core to send. */
|
|
41
|
-
private outgoingRequestMessage;
|
|
42
|
-
/**
|
|
43
|
-
* Constructs a new instance of the `Inviter` class.
|
|
44
|
-
* @param userAgent - User agent. See {@link UserAgent} for details.
|
|
45
|
-
* @param targetURI - Request URI identifying the target of the message.
|
|
46
|
-
* @param options - Options bucket. See {@link InviterOptions} for details.
|
|
47
|
-
*/
|
|
48
|
-
constructor(userAgent: UserAgent, targetURI: URI, options?: InviterOptions);
|
|
49
|
-
/**
|
|
50
|
-
* Destructor.
|
|
51
|
-
*/
|
|
52
|
-
dispose(): Promise<void>;
|
|
53
|
-
/**
|
|
54
|
-
* Initial outgoing INVITE request message body.
|
|
55
|
-
*/
|
|
56
|
-
get body(): BodyAndContentType | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* The identity of the local user.
|
|
59
|
-
*/
|
|
60
|
-
get localIdentity(): NameAddrHeader;
|
|
61
|
-
/**
|
|
62
|
-
* The identity of the remote user.
|
|
63
|
-
*/
|
|
64
|
-
get remoteIdentity(): NameAddrHeader;
|
|
65
|
-
/**
|
|
66
|
-
* Initial outgoing INVITE request message.
|
|
67
|
-
*/
|
|
68
|
-
get request(): OutgoingRequestMessage;
|
|
69
|
-
/**
|
|
70
|
-
* Cancels the INVITE request.
|
|
71
|
-
*
|
|
72
|
-
* @remarks
|
|
73
|
-
* Sends a CANCEL request.
|
|
74
|
-
* Resolves once the response sent, otherwise rejects.
|
|
75
|
-
*
|
|
76
|
-
* After sending a CANCEL request the expectation is that a 487 final response
|
|
77
|
-
* will be received for the INVITE. However a 200 final response to the INVITE
|
|
78
|
-
* may nonetheless arrive (it's a race between the CANCEL reaching the UAS before
|
|
79
|
-
* the UAS sends a 200) in which case an ACK & BYE will be sent. The net effect
|
|
80
|
-
* is that this method will terminate the session regardless of the race.
|
|
81
|
-
* @param options - Options bucket.
|
|
82
|
-
*/
|
|
83
|
-
cancel(options?: InviterCancelOptions): Promise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* Sends the INVITE request.
|
|
86
|
-
*
|
|
87
|
-
* @remarks
|
|
88
|
-
* TLDR...
|
|
89
|
-
* 1) Only one offer/answer exchange permitted during initial INVITE.
|
|
90
|
-
* 2) No "early media" if the initial offer is in an INVITE (default behavior).
|
|
91
|
-
* 3) If "early media" and the initial offer is in an INVITE, no INVITE forking.
|
|
92
|
-
*
|
|
93
|
-
* 1) Only one offer/answer exchange permitted during initial INVITE.
|
|
94
|
-
*
|
|
95
|
-
* Our implementation replaces the following bullet point...
|
|
96
|
-
*
|
|
97
|
-
* o After having sent or received an answer to the first offer, the
|
|
98
|
-
* UAC MAY generate subsequent offers in requests based on rules
|
|
99
|
-
* specified for that method, but only if it has received answers
|
|
100
|
-
* to any previous offers, and has not sent any offers to which it
|
|
101
|
-
* hasn't gotten an answer.
|
|
102
|
-
* https://tools.ietf.org/html/rfc3261#section-13.2.1
|
|
103
|
-
*
|
|
104
|
-
* ...with...
|
|
105
|
-
*
|
|
106
|
-
* o After having sent or received an answer to the first offer, the
|
|
107
|
-
* UAC MUST NOT generate subsequent offers in requests based on rules
|
|
108
|
-
* specified for that method.
|
|
109
|
-
*
|
|
110
|
-
* ...which in combination with this bullet point...
|
|
111
|
-
*
|
|
112
|
-
* o Once the UAS has sent or received an answer to the initial
|
|
113
|
-
* offer, it MUST NOT generate subsequent offers in any responses
|
|
114
|
-
* to the initial INVITE. This means that a UAS based on this
|
|
115
|
-
* specification alone can never generate subsequent offers until
|
|
116
|
-
* completion of the initial transaction.
|
|
117
|
-
* https://tools.ietf.org/html/rfc3261#section-13.2.1
|
|
118
|
-
*
|
|
119
|
-
* ...ensures that EXACTLY ONE offer/answer exchange will occur
|
|
120
|
-
* during an initial out of dialog INVITE request made by our UAC.
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* 2) No "early media" if the initial offer is in an INVITE (default behavior).
|
|
124
|
-
*
|
|
125
|
-
* While our implementation adheres to the following bullet point...
|
|
126
|
-
*
|
|
127
|
-
* o If the initial offer is in an INVITE, the answer MUST be in a
|
|
128
|
-
* reliable non-failure message from UAS back to UAC which is
|
|
129
|
-
* correlated to that INVITE. For this specification, that is
|
|
130
|
-
* only the final 2xx response to that INVITE. That same exact
|
|
131
|
-
* answer MAY also be placed in any provisional responses sent
|
|
132
|
-
* prior to the answer. The UAC MUST treat the first session
|
|
133
|
-
* description it receives as the answer, and MUST ignore any
|
|
134
|
-
* session descriptions in subsequent responses to the initial
|
|
135
|
-
* INVITE.
|
|
136
|
-
* https://tools.ietf.org/html/rfc3261#section-13.2.1
|
|
137
|
-
*
|
|
138
|
-
* We have made the following implementation decision with regard to early media...
|
|
139
|
-
*
|
|
140
|
-
* o If the initial offer is in the INVITE, the answer from the
|
|
141
|
-
* UAS back to the UAC will establish a media session only
|
|
142
|
-
* only after the final 2xx response to that INVITE is received.
|
|
143
|
-
*
|
|
144
|
-
* The reason for this decision is rooted in a restriction currently
|
|
145
|
-
* inherent in WebRTC. Specifically, while a SIP INVITE request with an
|
|
146
|
-
* initial offer may fork resulting in more than one provisional answer,
|
|
147
|
-
* there is currently no easy/good way to to "fork" an offer generated
|
|
148
|
-
* by a peer connection. In particular, a WebRTC offer currently may only
|
|
149
|
-
* be matched with one answer and we have no good way to know which
|
|
150
|
-
* "provisional answer" is going to be the "final answer". So we have
|
|
151
|
-
* decided to punt and not create any "early media" sessions in this case.
|
|
152
|
-
*
|
|
153
|
-
* The upshot is that if you want "early media", you must not put the
|
|
154
|
-
* initial offer in the INVITE. Instead, force the UAS to provide the
|
|
155
|
-
* initial offer by sending an INVITE without an offer. In the WebRTC
|
|
156
|
-
* case this allows us to create a unique peer connection with a unique
|
|
157
|
-
* answer for every provisional offer with "early media" on all of them.
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* 3) If "early media" and the initial offer is in an INVITE, no INVITE forking.
|
|
161
|
-
*
|
|
162
|
-
* The default behavior may be altered and "early media" utilized if the
|
|
163
|
-
* initial offer is in the an INVITE by setting the `earlyMedia` options.
|
|
164
|
-
* However in that case the INVITE request MUST NOT fork. This allows for
|
|
165
|
-
* "early media" in environments where the forking behavior of the SIP
|
|
166
|
-
* servers being utilized is configured to disallow forking.
|
|
167
|
-
*/
|
|
168
|
-
invite(options?: InviterInviteOptions): Promise<OutgoingInviteRequest>;
|
|
169
|
-
/**
|
|
170
|
-
* 13.2.1 Creating the Initial INVITE
|
|
171
|
-
*
|
|
172
|
-
* Since the initial INVITE represents a request outside of a dialog,
|
|
173
|
-
* its construction follows the procedures of Section 8.1.1. Additional
|
|
174
|
-
* processing is required for the specific case of INVITE.
|
|
175
|
-
*
|
|
176
|
-
* An Allow header field (Section 20.5) SHOULD be present in the INVITE.
|
|
177
|
-
* It indicates what methods can be invoked within a dialog, on the UA
|
|
178
|
-
* sending the INVITE, for the duration of the dialog. For example, a
|
|
179
|
-
* UA capable of receiving INFO requests within a dialog [34] SHOULD
|
|
180
|
-
* include an Allow header field listing the INFO method.
|
|
181
|
-
*
|
|
182
|
-
* A Supported header field (Section 20.37) SHOULD be present in the
|
|
183
|
-
* INVITE. It enumerates all the extensions understood by the UAC.
|
|
184
|
-
*
|
|
185
|
-
* An Accept (Section 20.1) header field MAY be present in the INVITE.
|
|
186
|
-
* It indicates which Content-Types are acceptable to the UA, in both
|
|
187
|
-
* the response received by it, and in any subsequent requests sent to
|
|
188
|
-
* it within dialogs established by the INVITE. The Accept header field
|
|
189
|
-
* is especially useful for indicating support of various session
|
|
190
|
-
* description formats.
|
|
191
|
-
*
|
|
192
|
-
* The UAC MAY add an Expires header field (Section 20.19) to limit the
|
|
193
|
-
* validity of the invitation. If the time indicated in the Expires
|
|
194
|
-
* header field is reached and no final answer for the INVITE has been
|
|
195
|
-
* received, the UAC core SHOULD generate a CANCEL request for the
|
|
196
|
-
* INVITE, as per Section 9.
|
|
197
|
-
*
|
|
198
|
-
* A UAC MAY also find it useful to add, among others, Subject (Section
|
|
199
|
-
* 20.36), Organization (Section 20.25) and User-Agent (Section 20.41)
|
|
200
|
-
* header fields. They all contain information related to the INVITE.
|
|
201
|
-
*
|
|
202
|
-
* The UAC MAY choose to add a message body to the INVITE. Section
|
|
203
|
-
* 8.1.1.10 deals with how to construct the header fields -- Content-
|
|
204
|
-
* Type among others -- needed to describe the message body.
|
|
205
|
-
*
|
|
206
|
-
* https://tools.ietf.org/html/rfc3261#section-13.2.1
|
|
207
|
-
*/
|
|
208
|
-
private sendInvite;
|
|
209
|
-
private disposeEarlyMedia;
|
|
210
|
-
private notifyReferer;
|
|
211
|
-
/**
|
|
212
|
-
* Handle final response to initial INVITE.
|
|
213
|
-
* @param inviteResponse - 2xx response.
|
|
214
|
-
*/
|
|
215
|
-
private onAccept;
|
|
216
|
-
/**
|
|
217
|
-
* Handle provisional response to initial INVITE.
|
|
218
|
-
* @param inviteResponse - 1xx response.
|
|
219
|
-
*/
|
|
220
|
-
private onProgress;
|
|
221
|
-
/**
|
|
222
|
-
* Handle final response to initial INVITE.
|
|
223
|
-
* @param inviteResponse - 3xx response.
|
|
224
|
-
*/
|
|
225
|
-
private onRedirect;
|
|
226
|
-
/**
|
|
227
|
-
* Handle final response to initial INVITE.
|
|
228
|
-
* @param inviteResponse - 4xx, 5xx, or 6xx response.
|
|
229
|
-
*/
|
|
230
|
-
private onReject;
|
|
231
|
-
/**
|
|
232
|
-
* Handle final response to initial INVITE.
|
|
233
|
-
* @param inviteResponse - 100 response.
|
|
234
|
-
*/
|
|
235
|
-
private onTrying;
|
|
236
|
-
}
|
package/dist/api/message.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IncomingMessageRequest, IncomingRequestMessage, ResponseOptions } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* A received message (incoming MESSAGE).
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare class Message {
|
|
7
|
-
private incomingMessageRequest;
|
|
8
|
-
/** @internal */
|
|
9
|
-
constructor(incomingMessageRequest: IncomingMessageRequest);
|
|
10
|
-
/** Incoming MESSAGE request message. */
|
|
11
|
-
get request(): IncomingRequestMessage;
|
|
12
|
-
/** Accept the request. */
|
|
13
|
-
accept(options?: ResponseOptions): Promise<void>;
|
|
14
|
-
/** Reject the request. */
|
|
15
|
-
reject(options?: ResponseOptions): Promise<void>;
|
|
16
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OutgoingRequestDelegate, RequestOptions } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* Options for {@link Messager.message}.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface MessagerMessageOptions {
|
|
7
|
-
/** See `core` API. */
|
|
8
|
-
requestDelegate?: OutgoingRequestDelegate;
|
|
9
|
-
/** See `core` API. */
|
|
10
|
-
requestOptions?: RequestOptions;
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { URI } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* Options for {@link Messager} constructor.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface MessagerOptions {
|
|
7
|
-
/** Array of extra headers added to the MESSAGE. */
|
|
8
|
-
extraHeaders?: Array<string>;
|
|
9
|
-
/** @deprecated TODO: provide alternative. */
|
|
10
|
-
params?: {
|
|
11
|
-
fromDisplayName?: string;
|
|
12
|
-
fromTag?: string;
|
|
13
|
-
fromUri?: string | URI;
|
|
14
|
-
toDisplayName?: string;
|
|
15
|
-
toUri?: string | URI;
|
|
16
|
-
};
|
|
17
|
-
}
|
package/dist/api/messager.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { URI } from "../core";
|
|
2
|
-
import { MessagerMessageOptions } from "./messager-message-options";
|
|
3
|
-
import { MessagerOptions } from "./messager-options";
|
|
4
|
-
import { UserAgent } from "./user-agent";
|
|
5
|
-
/**
|
|
6
|
-
* A messager sends a {@link Message} (outgoing MESSAGE).
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare class Messager {
|
|
10
|
-
private logger;
|
|
11
|
-
private request;
|
|
12
|
-
private userAgent;
|
|
13
|
-
/**
|
|
14
|
-
* Constructs a new instance of the `Messager` class.
|
|
15
|
-
* @param userAgent - User agent. See {@link UserAgent} for details.
|
|
16
|
-
* @param targetURI - Request URI identifying the target of the message.
|
|
17
|
-
* @param content - Content for the body of the message.
|
|
18
|
-
* @param contentType - Content type of the body of the message.
|
|
19
|
-
* @param options - Options bucket. See {@link MessagerOptions} for details.
|
|
20
|
-
*/
|
|
21
|
-
constructor(userAgent: UserAgent, targetURI: URI, content: string, contentType?: string, options?: MessagerOptions);
|
|
22
|
-
/**
|
|
23
|
-
* Send the message.
|
|
24
|
-
*/
|
|
25
|
-
message(options?: MessagerMessageOptions): Promise<void>;
|
|
26
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IncomingNotifyRequest, IncomingRequestMessage, ResponseOptions } from "../core";
|
|
2
|
-
/**
|
|
3
|
-
* A notification of an event (incoming NOTIFY).
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare class Notification {
|
|
7
|
-
private incomingNotifyRequest;
|
|
8
|
-
/** @internal */
|
|
9
|
-
constructor(incomingNotifyRequest: IncomingNotifyRequest);
|
|
10
|
-
/** Incoming NOTIFY request message. */
|
|
11
|
-
get request(): IncomingRequestMessage;
|
|
12
|
-
/** Accept the request. */
|
|
13
|
-
accept(options?: ResponseOptions): Promise<void>;
|
|
14
|
-
/** Reject the request. */
|
|
15
|
-
reject(options?: ResponseOptions): Promise<void>;
|
|
16
|
-
}
|
package/dist/api/notifier.d.ts
DELETED
|
@@ -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
|
-
}
|