ue-softphone-sdk-beta 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/dist/ue-softphone-sdk.js +1 -1
  2. package/package.json +4 -1
  3. package/.babelrc +0 -12
  4. package/.gitlab-ci.yml +0 -3
  5. package/Dockerfile +0 -15
  6. package/index.html/index.html +0 -118
  7. package/nginx.conf +0 -56
  8. package/rollup-new.config.mjs +0 -20
  9. package/rollup.config.js +0 -45
  10. package/src/config.ts +0 -19
  11. package/src/index.ts +0 -2473
  12. package/src/lib/sip.js/api/ack.ts +0 -15
  13. package/src/lib/sip.js/api/api-extractor.json +0 -350
  14. package/src/lib/sip.js/api/bye.ts +0 -27
  15. package/src/lib/sip.js/api/dtmf.ts +0 -27
  16. package/src/lib/sip.js/api/emitter.ts +0 -110
  17. package/src/lib/sip.js/api/exceptions/content-type-unsupported.ts +0 -11
  18. package/src/lib/sip.js/api/exceptions/index.ts +0 -5
  19. package/src/lib/sip.js/api/exceptions/request-pending.ts +0 -12
  20. package/src/lib/sip.js/api/exceptions/session-description-handler.ts +0 -11
  21. package/src/lib/sip.js/api/exceptions/session-terminated.ts +0 -11
  22. package/src/lib/sip.js/api/exceptions/state-transition.ts +0 -11
  23. package/src/lib/sip.js/api/index.ts +0 -59
  24. package/src/lib/sip.js/api/info.ts +0 -27
  25. package/src/lib/sip.js/api/invitation-accept-options.ts +0 -20
  26. package/src/lib/sip.js/api/invitation-progress-options.ts +0 -36
  27. package/src/lib/sip.js/api/invitation-reject-options.ts +0 -22
  28. package/src/lib/sip.js/api/invitation.ts +0 -815
  29. package/src/lib/sip.js/api/inviter-cancel-options.ts +0 -9
  30. package/src/lib/sip.js/api/inviter-invite-options.ts +0 -29
  31. package/src/lib/sip.js/api/inviter-options.ts +0 -44
  32. package/src/lib/sip.js/api/inviter.ts +0 -1126
  33. package/src/lib/sip.js/api/message.ts +0 -27
  34. package/src/lib/sip.js/api/messager-message-options.ts +0 -12
  35. package/src/lib/sip.js/api/messager-options.ts +0 -18
  36. package/src/lib/sip.js/api/messager.ts +0 -89
  37. package/src/lib/sip.js/api/notification.ts +0 -27
  38. package/src/lib/sip.js/api/notifier.ts +0 -7
  39. package/src/lib/sip.js/api/publisher-options.ts +0 -34
  40. package/src/lib/sip.js/api/publisher-publish-options.ts +0 -6
  41. package/src/lib/sip.js/api/publisher-state.ts +0 -21
  42. package/src/lib/sip.js/api/publisher-unpublish-options.ts +0 -6
  43. package/src/lib/sip.js/api/publisher.ts +0 -421
  44. package/src/lib/sip.js/api/referral.ts +0 -89
  45. package/src/lib/sip.js/api/registerer-options.ts +0 -55
  46. package/src/lib/sip.js/api/registerer-register-options.ts +0 -12
  47. package/src/lib/sip.js/api/registerer-state.ts +0 -21
  48. package/src/lib/sip.js/api/registerer-unregister-options.ts +0 -17
  49. package/src/lib/sip.js/api/registerer.ts +0 -819
  50. package/src/lib/sip.js/api/session-bye-options.ts +0 -12
  51. package/src/lib/sip.js/api/session-delegate.ts +0 -87
  52. package/src/lib/sip.js/api/session-description-handler-factory.ts +0 -16
  53. package/src/lib/sip.js/api/session-description-handler.ts +0 -89
  54. package/src/lib/sip.js/api/session-info-options.ts +0 -12
  55. package/src/lib/sip.js/api/session-invite-options.ts +0 -29
  56. package/src/lib/sip.js/api/session-message-options.ts +0 -12
  57. package/src/lib/sip.js/api/session-options.ts +0 -8
  58. package/src/lib/sip.js/api/session-refer-options.ts +0 -15
  59. package/src/lib/sip.js/api/session-state.ts +0 -45
  60. package/src/lib/sip.js/api/session.ts +0 -1454
  61. package/src/lib/sip.js/api/subscriber-options.ts +0 -12
  62. package/src/lib/sip.js/api/subscriber-subscribe-options.ts +0 -6
  63. package/src/lib/sip.js/api/subscriber.ts +0 -537
  64. package/src/lib/sip.js/api/subscription-delegate.ts +0 -13
  65. package/src/lib/sip.js/api/subscription-options.ts +0 -8
  66. package/src/lib/sip.js/api/subscription-state.ts +0 -19
  67. package/src/lib/sip.js/api/subscription-subscribe-options.ts +0 -6
  68. package/src/lib/sip.js/api/subscription-unsubscribe-options.ts +0 -6
  69. package/src/lib/sip.js/api/subscription.ts +0 -161
  70. package/src/lib/sip.js/api/transport-state.ts +0 -37
  71. package/src/lib/sip.js/api/transport.ts +0 -169
  72. package/src/lib/sip.js/api/user-agent-delegate.ts +0 -95
  73. package/src/lib/sip.js/api/user-agent-options.ts +0 -322
  74. package/src/lib/sip.js/api/user-agent-state.ts +0 -14
  75. package/src/lib/sip.js/api/user-agent.ts +0 -1013
  76. package/src/lib/sip.js/core/api-extractor.json +0 -350
  77. package/src/lib/sip.js/core/dialogs/dialog-state.ts +0 -35
  78. package/src/lib/sip.js/core/dialogs/dialog.ts +0 -605
  79. package/src/lib/sip.js/core/dialogs/index.ts +0 -4
  80. package/src/lib/sip.js/core/dialogs/session-dialog.ts +0 -997
  81. package/src/lib/sip.js/core/dialogs/subscription-dialog.ts +0 -558
  82. package/src/lib/sip.js/core/exceptions/exception.ts +0 -11
  83. package/src/lib/sip.js/core/exceptions/index.ts +0 -3
  84. package/src/lib/sip.js/core/exceptions/transaction-state-error.ts +0 -11
  85. package/src/lib/sip.js/core/exceptions/transport-error.ts +0 -11
  86. package/src/lib/sip.js/core/index.ts +0 -19
  87. package/src/lib/sip.js/core/log/index.ts +0 -3
  88. package/src/lib/sip.js/core/log/levels.ts +0 -10
  89. package/src/lib/sip.js/core/log/logger-factory.ts +0 -119
  90. package/src/lib/sip.js/core/log/logger.ts +0 -42
  91. package/src/lib/sip.js/core/messages/body.ts +0 -171
  92. package/src/lib/sip.js/core/messages/digest-authentication.ts +0 -190
  93. package/src/lib/sip.js/core/messages/incoming-message.ts +0 -152
  94. package/src/lib/sip.js/core/messages/incoming-request-message.ts +0 -14
  95. package/src/lib/sip.js/core/messages/incoming-request.ts +0 -75
  96. package/src/lib/sip.js/core/messages/incoming-response-message.ts +0 -14
  97. package/src/lib/sip.js/core/messages/incoming-response.ts +0 -13
  98. package/src/lib/sip.js/core/messages/index.ts +0 -18
  99. package/src/lib/sip.js/core/messages/md5.ts +0 -437
  100. package/src/lib/sip.js/core/messages/methods/ack.ts +0 -22
  101. package/src/lib/sip.js/core/messages/methods/bye.ts +0 -22
  102. package/src/lib/sip.js/core/messages/methods/cancel.ts +0 -22
  103. package/src/lib/sip.js/core/messages/methods/constants.ts +0 -21
  104. package/src/lib/sip.js/core/messages/methods/index.ts +0 -13
  105. package/src/lib/sip.js/core/messages/methods/info.ts +0 -22
  106. package/src/lib/sip.js/core/messages/methods/invite.ts +0 -104
  107. package/src/lib/sip.js/core/messages/methods/message.ts +0 -22
  108. package/src/lib/sip.js/core/messages/methods/notify.ts +0 -22
  109. package/src/lib/sip.js/core/messages/methods/prack.ts +0 -22
  110. package/src/lib/sip.js/core/messages/methods/publish.ts +0 -22
  111. package/src/lib/sip.js/core/messages/methods/refer.ts +0 -22
  112. package/src/lib/sip.js/core/messages/methods/register.ts +0 -22
  113. package/src/lib/sip.js/core/messages/methods/subscribe.ts +0 -59
  114. package/src/lib/sip.js/core/messages/outgoing-request-message.ts +0 -299
  115. package/src/lib/sip.js/core/messages/outgoing-request.ts +0 -77
  116. package/src/lib/sip.js/core/messages/outgoing-response.ts +0 -174
  117. package/src/lib/sip.js/core/messages/parser.ts +0 -265
  118. package/src/lib/sip.js/core/messages/utils.ts +0 -144
  119. package/src/lib/sip.js/core/session/index.ts +0 -2
  120. package/src/lib/sip.js/core/session/session-delegate.ts +0 -88
  121. package/src/lib/sip.js/core/session/session.ts +0 -158
  122. package/src/lib/sip.js/core/subscription/index.ts +0 -2
  123. package/src/lib/sip.js/core/subscription/subscription-delegate.ts +0 -30
  124. package/src/lib/sip.js/core/subscription/subscription.ts +0 -61
  125. package/src/lib/sip.js/core/timers.ts +0 -24
  126. package/src/lib/sip.js/core/transactions/client-transaction.ts +0 -78
  127. package/src/lib/sip.js/core/transactions/index.ts +0 -10
  128. package/src/lib/sip.js/core/transactions/invite-client-transaction.ts +0 -505
  129. package/src/lib/sip.js/core/transactions/invite-server-transaction.ts +0 -433
  130. package/src/lib/sip.js/core/transactions/non-invite-client-transaction.ts +0 -258
  131. package/src/lib/sip.js/core/transactions/non-invite-server-transaction.ts +0 -242
  132. package/src/lib/sip.js/core/transactions/server-transaction.ts +0 -47
  133. package/src/lib/sip.js/core/transactions/transaction-state.ts +0 -13
  134. package/src/lib/sip.js/core/transactions/transaction-user.ts +0 -82
  135. package/src/lib/sip.js/core/transactions/transaction.ts +0 -149
  136. package/src/lib/sip.js/core/transport.ts +0 -32
  137. package/src/lib/sip.js/core/user-agent-core/allowed-methods.ts +0 -19
  138. package/src/lib/sip.js/core/user-agent-core/index.ts +0 -3
  139. package/src/lib/sip.js/core/user-agent-core/user-agent-core-configuration.ts +0 -111
  140. package/src/lib/sip.js/core/user-agent-core/user-agent-core-delegate.ts +0 -50
  141. package/src/lib/sip.js/core/user-agent-core/user-agent-core.ts +0 -905
  142. package/src/lib/sip.js/core/user-agents/bye-user-agent-client.ts +0 -16
  143. package/src/lib/sip.js/core/user-agents/bye-user-agent-server.ts +0 -14
  144. package/src/lib/sip.js/core/user-agents/cancel-user-agent-client.ts +0 -14
  145. package/src/lib/sip.js/core/user-agents/index.ts +0 -26
  146. package/src/lib/sip.js/core/user-agents/info-user-agent-client.ts +0 -15
  147. package/src/lib/sip.js/core/user-agents/info-user-agent-server.ts +0 -14
  148. package/src/lib/sip.js/core/user-agents/invite-user-agent-client.ts +0 -406
  149. package/src/lib/sip.js/core/user-agents/invite-user-agent-server.ts +0 -269
  150. package/src/lib/sip.js/core/user-agents/message-user-agent-client.ts +0 -14
  151. package/src/lib/sip.js/core/user-agents/message-user-agent-server.ts +0 -14
  152. package/src/lib/sip.js/core/user-agents/notify-user-agent-client.ts +0 -15
  153. package/src/lib/sip.js/core/user-agents/notify-user-agent-server.ts +0 -30
  154. package/src/lib/sip.js/core/user-agents/prack-user-agent-client.ts +0 -16
  155. package/src/lib/sip.js/core/user-agents/prack-user-agent-server.ts +0 -37
  156. package/src/lib/sip.js/core/user-agents/publish-user-agent-client.ts +0 -14
  157. package/src/lib/sip.js/core/user-agents/re-invite-user-agent-client.ts +0 -128
  158. package/src/lib/sip.js/core/user-agents/re-invite-user-agent-server.ts +0 -109
  159. package/src/lib/sip.js/core/user-agents/re-subscribe-user-agent-client.ts +0 -78
  160. package/src/lib/sip.js/core/user-agents/re-subscribe-user-agent-server.ts +0 -14
  161. package/src/lib/sip.js/core/user-agents/refer-user-agent-client.ts +0 -15
  162. package/src/lib/sip.js/core/user-agents/refer-user-agent-server.ts +0 -30
  163. package/src/lib/sip.js/core/user-agents/register-user-agent-client.ts +0 -14
  164. package/src/lib/sip.js/core/user-agents/register-user-agent-server.ts +0 -14
  165. package/src/lib/sip.js/core/user-agents/subscribe-user-agent-client.ts +0 -342
  166. package/src/lib/sip.js/core/user-agents/subscribe-user-agent-server.ts +0 -14
  167. package/src/lib/sip.js/core/user-agents/user-agent-client.ts +0 -378
  168. package/src/lib/sip.js/core/user-agents/user-agent-server.ts +0 -276
  169. package/src/lib/sip.js/grammar/grammar.ts +0 -55
  170. package/src/lib/sip.js/grammar/index.ts +0 -4
  171. package/src/lib/sip.js/grammar/name-addr-header.ts +0 -58
  172. package/src/lib/sip.js/grammar/parameters.ts +0 -45
  173. package/src/lib/sip.js/grammar/pegjs/README.md +0 -9
  174. package/src/lib/sip.js/grammar/pegjs/dist/grammar.ts +0 -1557
  175. package/src/lib/sip.js/grammar/pegjs/src/grammar.pegjs +0 -1009
  176. package/src/lib/sip.js/grammar/uri.ts +0 -370
  177. package/src/lib/sip.js/index.ts +0 -20
  178. package/src/lib/sip.js/platform/react/README.md +0 -1
  179. package/src/lib/sip.js/platform/web/index.ts +0 -4
  180. package/src/lib/sip.js/platform/web/modifiers/index.ts +0 -5
  181. package/src/lib/sip.js/platform/web/modifiers/modifiers.ts +0 -180
  182. package/src/lib/sip.js/platform/web/session-description-handler/api-extractor.json +0 -350
  183. package/src/lib/sip.js/platform/web/session-description-handler/index.ts +0 -14
  184. package/src/lib/sip.js/platform/web/session-description-handler/media-stream-factory-default.ts +0 -22
  185. package/src/lib/sip.js/platform/web/session-description-handler/media-stream-factory.ts +0 -10
  186. package/src/lib/sip.js/platform/web/session-description-handler/peer-connection-configuration-default.ts +0 -17
  187. package/src/lib/sip.js/platform/web/session-description-handler/peer-connection-delegate.ts +0 -72
  188. package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-configuration.ts +0 -17
  189. package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-default.ts +0 -45
  190. package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory-options.ts +0 -10
  191. package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-factory.ts +0 -17
  192. package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler-options.ts +0 -56
  193. package/src/lib/sip.js/platform/web/session-description-handler/session-description-handler.ts +0 -938
  194. package/src/lib/sip.js/platform/web/simple-user/api-extractor.json +0 -350
  195. package/src/lib/sip.js/platform/web/simple-user/index.ts +0 -7
  196. package/src/lib/sip.js/platform/web/simple-user/simple-user-delegate.ts +0 -82
  197. package/src/lib/sip.js/platform/web/simple-user/simple-user-options.ts +0 -102
  198. package/src/lib/sip.js/platform/web/simple-user/simple-user.ts +0 -1099
  199. package/src/lib/sip.js/platform/web/transport/api-extractor.json +0 -350
  200. package/src/lib/sip.js/platform/web/transport/index.ts +0 -6
  201. package/src/lib/sip.js/platform/web/transport/transport-options.ts +0 -34
  202. package/src/lib/sip.js/platform/web/transport/transport.ts +0 -743
  203. package/src/lib/sip.js/version.ts +0 -1
  204. package/src/lib/socket.io.esm.min.js +0 -7
  205. package/src/webrtc/webrtc-method.ts +0 -49
  206. package/src/webrtc/webrtc.ts +0 -350
  207. package/tsconfig.json +0 -21
@@ -1,12 +0,0 @@
1
- import { OutgoingRequestDelegate, RequestOptions } from "../core";
2
-
3
- /**
4
- * Options for {@link Session.bye}.
5
- * @public
6
- */
7
- export interface SessionByeOptions {
8
- /** See `core` API. */
9
- requestDelegate?: OutgoingRequestDelegate;
10
- /** See `core` API. */
11
- requestOptions?: RequestOptions;
12
- }
@@ -1,87 +0,0 @@
1
- import { IncomingRequestMessage } from "../core";
2
- import { Ack } from "./ack";
3
- import { Bye } from "./bye";
4
- import { Info } from "./info";
5
- import { Message } from "./message";
6
- import { Notification } from "./notification";
7
- import { Referral } from "./referral";
8
- import { SessionDescriptionHandler } from "./session-description-handler";
9
-
10
- /**
11
- * Delegate for {@link Session}.
12
- * @public
13
- */
14
- export interface SessionDelegate {
15
- /**
16
- * Called upon receiving an incoming in dialog ACK request.
17
- * @param ack - The ack.
18
- */
19
- onAck?(ack: Ack): void;
20
-
21
- /**
22
- * Called upon receiving an incoming in dialog BYE request.
23
- * @param bye - The bye.
24
- */
25
- onBye?(bye: Bye): void;
26
-
27
- /**
28
- * Called upon receiving an incoming in dialog INFO request.
29
- * @param info - The info.
30
- */
31
- onInfo?(info: Info): void;
32
-
33
- /**
34
- * Called upon receiving an incoming in dialog INVITE request.
35
- * @param invite - The invite.
36
- */
37
- onInvite?(request: IncomingRequestMessage, response: string, statusCode: number): void;
38
-
39
- /**
40
- * Called upon receiving an incoming in dialog MESSAGE request.
41
- * @param message - The message.
42
- */
43
- onMessage?(message: Message): void;
44
-
45
- /**
46
- * Called upon receiving an incoming in dialog NOTIFY request.
47
- *
48
- * @remarks
49
- * If a refer is in progress notifications are delivered to the referrers delegate.
50
- *
51
- * @param notification - The notification.
52
- */
53
- onNotify?(notification: Notification): void;
54
-
55
- /**
56
- * Called upon receiving an incoming in dialog REFER request.
57
- * @param referral - The referral.
58
- */
59
- onRefer?(referral: Referral): void;
60
-
61
- /**
62
- * Called upon creating a SessionDescriptionHandler.
63
- *
64
- * @remarks
65
- * It's recommended that the SessionDescriptionHandler be accessed via the `Session.sessionDescriptionHandler` property.
66
- * However there are use cases where one needs access immediately after it is constructed and before it is utilized.
67
- * Thus this callback.
68
- *
69
- * In most scenarios a single SessionDescriptionHandler will be created per Session
70
- * in which case this callback will be called at most once and `provisional` will be `false`.
71
- *
72
- * However if reliable provisional responses are being supported and an INVITE is sent without SDP,
73
- * one or more session description handlers will be created if remote offers are received in reliable provisional responses.
74
- * When remote offers are received in reliable provisional responses, the `provisional` parameter will be `true`.
75
- * When the `provisional` paramter is `true`, this callback may (or may not) be called again.
76
- * If the session is ultimately established using a SessionDescriptionHandler which was not created provisionally,
77
- * this callback will be called again and the `provisional` parameter will be `false`.
78
- * If the session is ultimately established using a SessionDescriptionHandler which was created provisionally,
79
- * this callback will not be called again.
80
- * Note that if the session is ultimately established using a SessionDescriptionHandler which was created provisionally,
81
- * the provisional SessionDescriptionHandler being utilized will be available via the `Session.sessionDescriptionHandler` property.
82
- *
83
- * @param sessionDescriptionHandler - The handler.
84
- * @param provisional - True if created provisionally.
85
- */
86
- onSessionDescriptionHandler?(sessionDescriptionHandler: SessionDescriptionHandler, provisional: boolean): void;
87
- }
@@ -1,16 +0,0 @@
1
- import { Session } from "./session";
2
- import { SessionDescriptionHandler } from "./session-description-handler";
3
-
4
- /**
5
- * Factory for {@link SessionDescriptionHandler}.
6
- * @public
7
- */
8
- export interface SessionDescriptionHandlerFactory {
9
- /**
10
- * SessionDescriptionHandler factory function.
11
- * @remarks
12
- * The `options` are provided as part of the UserAgent configuration
13
- * and passed through on every call to SessionDescriptionHandlerFactory's constructor.
14
- */
15
- (session: Session, options?: object): SessionDescriptionHandler;
16
- }
@@ -1,89 +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
- /**
12
- * Gets the local description from the underlying media implementation.
13
- * @param options - Options object to be used by getDescription.
14
- * @param modifiers - Array with one time use description modifiers.
15
- * @returns Promise that resolves with the local description to be used for the session.
16
- * Rejects with `ClosedSessionDescriptionHandlerError` when this method
17
- * is called after close or when close occurs before complete.
18
- */
19
- getDescription(
20
- options?: SessionDescriptionHandlerOptions,
21
- modifiers?: Array<SessionDescriptionHandlerModifier>
22
- ): Promise<BodyAndContentType>;
23
-
24
- /**
25
- * Returns true if the Session Description Handler can handle the Content-Type described by a SIP message.
26
- * @param contentType - The content type that is in the SIP Message.
27
- * @returns True if the content type is handled by this session description handler. False otherwise.
28
- */
29
- hasDescription(contentType: string): boolean;
30
-
31
- /**
32
- * Rolls back the current local/remote offer to the prior stable state.
33
- */
34
- rollbackDescription?(): Promise<void>;
35
-
36
- /**
37
- * Sets the remote description to the underlying media implementation.
38
- * @param sessionDescription - The description provided by a SIP message to be set on the media implementation.
39
- * @param options - Options object to be used by setDescription.
40
- * @param modifiers - Array with one time use description modifiers.
41
- * @returns Promise that resolves once the description is set.
42
- * Rejects with `ClosedSessionDescriptionHandlerError` when this method
43
- * is called after close or when close occurs before complete.
44
- */
45
- setDescription(
46
- sdp: string,
47
- options?: SessionDescriptionHandlerOptions,
48
- modifiers?: Array<SessionDescriptionHandlerModifier>
49
- ): Promise<void>;
50
-
51
- /**
52
- * Send DTMF via RTP (RFC 4733).
53
- * Returns true if DTMF send is successful, false otherwise.
54
- * @param tones - A string containing DTMF digits.
55
- * @param options - Options object to be used by sendDtmf.
56
- * @returns True if DTMF send is successful, false otherwise.
57
- */
58
- sendDtmf(tones: string, options?: unknown): boolean;
59
- }
60
-
61
- /**
62
- * Modifier for {@link SessionDescriptionHandler} offer/answer.
63
- * @public
64
- */
65
- export interface SessionDescriptionHandlerModifier {
66
- (sessionDescription: RTCSessionDescriptionInit): Promise<RTCSessionDescriptionInit>;
67
- }
68
-
69
- /**
70
- * Options for {@link SessionDescriptionHandler} methods.
71
- * @remarks
72
- * These options are provided to various UserAgent methods (invite() for example)
73
- * and passed through on calls to getDescription() and setDescription().
74
- * @public
75
- */
76
- export interface SessionDescriptionHandlerOptions {
77
- constraints?: object;
78
- }
79
-
80
- /**
81
- * Message body content and type.
82
- * @public
83
- */
84
- export interface BodyAndContentType {
85
- /** Message body content. */
86
- body: string;
87
- /** Message body content type. */
88
- contentType: string;
89
- }
@@ -1,12 +0,0 @@
1
- import { OutgoingRequestDelegate, RequestOptions } from "../core";
2
-
3
- /**
4
- * Options for {@link Session.info}.
5
- * @public
6
- */
7
- export interface SessionInfoOptions {
8
- /** See `core` API. */
9
- requestDelegate?: OutgoingRequestDelegate;
10
- /** See `core` API. */
11
- requestOptions?: RequestOptions;
12
- }
@@ -1,29 +0,0 @@
1
- import { OutgoingRequestDelegate, RequestOptions } from "../core";
2
- import { SessionDescriptionHandlerModifier, SessionDescriptionHandlerOptions } from "./session-description-handler";
3
-
4
- /**
5
- * Options for {@link Session.invite}.
6
- * @public
7
- */
8
- export interface SessionInviteOptions {
9
- /**
10
- * See `core` API.
11
- */
12
- requestDelegate?: OutgoingRequestDelegate;
13
- /**
14
- * See `core` API.
15
- */
16
- requestOptions?: RequestOptions;
17
- /**
18
- * Modifiers to pass to SessionDescriptionHandler during re-INVITE transaction.
19
- */
20
- sessionDescriptionHandlerModifiers?: Array<SessionDescriptionHandlerModifier>;
21
- /**
22
- * Options to pass to SessionDescriptionHandler during re-INVITE transaction.
23
- */
24
- sessionDescriptionHandlerOptions?: SessionDescriptionHandlerOptions;
25
- /**
26
- * If true, send INVITE without SDP. Default is false.
27
- */
28
- withoutSdp?: boolean;
29
- }
@@ -1,12 +0,0 @@
1
- import { OutgoingRequestDelegate, RequestOptions } from "../core";
2
-
3
- /**
4
- * Options for {@link Session.message}.
5
- * @public
6
- */
7
- export interface SessionMessageOptions {
8
- /** See `core` API. */
9
- requestDelegate?: OutgoingRequestDelegate;
10
- /** See `core` API. */
11
- requestOptions?: RequestOptions;
12
- }
@@ -1,8 +0,0 @@
1
- import { SessionDelegate } from "./session-delegate";
2
- /**
3
- * Options for {@link Session} constructor.
4
- * @public
5
- */
6
- export interface SessionOptions {
7
- delegate?: SessionDelegate;
8
- }
@@ -1,15 +0,0 @@
1
- import { OutgoingRequestDelegate, RequestOptions } from "../core";
2
- import { Notification } from "./notification";
3
-
4
- /**
5
- * Options for {@link Session.refer}.
6
- * @public
7
- */
8
- export interface SessionReferOptions {
9
- /** Called upon receiving an incoming NOTIFY associated with a REFER. */
10
- onNotify?: (notification: Notification) => void;
11
- /** See `core` API. */
12
- requestDelegate?: OutgoingRequestDelegate;
13
- /** See `core` API. */
14
- requestOptions?: RequestOptions;
15
- }
@@ -1,45 +0,0 @@
1
- /**
2
- * {@link Session} state.
3
- *
4
- * @remarks
5
- * The {@link Session} behaves in a deterministic manner according to the following
6
- * Finite State Machine (FSM).
7
- * ```txt
8
- * ___________________________________________________________
9
- * | ____________________________________________ |
10
- * | | ____________________________ | |
11
- * Session | | | v v v
12
- * Constructed -> Initial -> Establishing -> Established -> Terminating -> Terminated
13
- * | |___________________________^ ^
14
- * |_______________________________________________|
15
- * ```
16
- * @public
17
- */
18
- export enum SessionState {
19
- /**
20
- * If `Inviter`, INVITE not sent yet.
21
- * If `Invitation`, received INVITE (but no final response sent yet).
22
- */
23
- Initial = "Initial",
24
- /**
25
- * If `Inviter`, sent INVITE and waiting for a final response.
26
- * If `Invitation`, received INVITE and attempting to send 200 final response (but has not sent it yet).
27
- */
28
- Establishing = "Establishing",
29
- /**
30
- * If `Inviter`, sent INVITE and received 200 final response and sent ACK.
31
- * If `Invitation`, received INVITE and sent 200 final response.
32
- */
33
- Established = "Established",
34
- /**
35
- * If `Inviter`, sent INVITE, sent CANCEL and now waiting for 487 final response to ACK (or 200 to ACK & BYE).
36
- * If `Invitation`, received INVITE, sent 200 final response and now waiting on ACK and upon receipt will attempt BYE
37
- * (as the protocol specification requires, before sending a BYE we must receive the ACK - so we are waiting).
38
- */
39
- Terminating = "Terminating",
40
- /**
41
- * If `Inviter`, sent INVITE and received non-200 final response (or sent/received BYE after receiving 200).
42
- * If `Invitation`, received INVITE and sent non-200 final response (or sent/received BYE after sending 200).
43
- */
44
- Terminated = "Terminated"
45
- }