ZDK's main entry point.
More...
#import <ZDKContext.h>
◆ addProto:col:
- (id< ZDKResult >) addProto: |
|
(ZDKProtocolType) |
proto |
col: |
|
(int) |
port |
|
|
| |
Creates a call manager instance for a protocol.
Creates a call manager instance for a specific protocol.
Protocol MUST be added before creating accounts using it!
Will be automatically destroyed by stopContext.
Some call managers are automatically created by startContext. SIP cannot be created by this function.
- Parameters
-
[in] | proto | Protocol |
[in] | port | Port at which to bind the main socket, or 0 for random port to be used |
- Returns
- Result of the addition
- See also
- ProtocolType, ZDKResult
◆ forceNativeCrash:
- (void) forceNativeCrash: |
|
(unsigned int) |
delayMs |
|
Force native crash.
Forces a native crash to take place.
- Parameters
-
[in] | delayMs | Delay in milliseconds. If 0 - crashes immediately! |
◆ handlesDescription
- (NSString *) handlesDescription |
|
|
|
◆ networkChanged
Notify the ZDK for changed network event.
Handles the network change event - resets the DNS, re-register users, refreshes active calls, etc.
Each invocation restarts a timer delaying the execution of the handling with 500ms from the last received event - if invoked more then once in the delay period, the handling will happen 500ms after the last call.
- Returns
- Result of the invocation
- See also
- ZDKResult
◆ setStatusListener:
Configures the context event listener.
The set listener will be notified for each event.
- Parameters
-
[in] | value | The context event listener to be added |
- See also
- ZDKContextEventsHandler
◆ startContext
Initialize the ZDK.
Create all internal structures, protocol stacks, network transports and event queues. It will test the available audio devices. It will spawn necessary processing threads. You must call stopContext to close the network transports, stop all threads and free all structures.
Do not call this function more than once in a row - use stopContext to clean up and then you can call startContext again.
- Returns
- Result of the initialization
- See also
- - stopContext, ZDKResult
◆ stopContext
Destroys the ZDK.
Closes network transports, terminates worker threads and frees all structures. You can call startContext after this to re-open the library.
This is a blocking call and will always take some time to finish but has a hard-limit of 2 seconds for IAX and 4 seconds for SIP which in the worst case means 6-7 seconds with some additional time for thread synchronisation.
- Returns
- Result of the initialization
- See also
- - startContext, ZDKResult
◆ accountProvider
Gets the account information and control provider.
Manages creation and destruction of user accounts and provides information regarding them.
- Returns
- The account provider
- See also
- ZDKAccountProvider
◆ activation
Gets the ZDK's Activation process handler.
- Returns
- The activation handler
- See also
- ZDKActivation
◆ audioControls
Gets the audio endpoint's main entry point.
Entry point for controlling the audio endpoint
- Returns
- The audio endpoint control
- See also
- ZDKAudioEndpointControl
◆ banafoManager
Gets the ZDK's Banafo manager.
- Returns
- The ZDK's Banafo manager instance
- See also
- ZDKBanafoManager
◆ callsProvider
Gets the active calls information provider.
- Returns
- The calls provider
- See also
- ZDKCallsProvider
◆ conferenceProvider
◆ configuration
◆ contextRunning
Returnes whether the context is running and functional.
- Returns
- Context's running state
◆ dnsRequestProvider
Gets the DNS resolving requests provider.
- Returns
- The DNS resolving requests provider
- See also
- ZDKDNSRequestProvider
◆ encryptionConfiguration
◆ libraryVersion
- (NSString*) libraryVersion |
|
readnonatomicassign |
Get the ZDK version.
Get the revision of the ZDK's source last commit.
- Returns
- The revision as an ASCII string.
◆ logger
Gets the ZDK's debug logging facility instance.
Only a single instance of the debug logging facility is created and returned during the life time of the library.
- Returns
- The ZDK's debug logging facility instance
- See also
- ZDKLog
◆ proxyManager
Gets the ZDK's proxy manager.
- Returns
- The ZDK's proxy manager instance
- See also
- ZDKProxyManager
◆ ringback
Ringback tone's main entry point.
Entry point for controlling the ringback tone heard by the user when the remote peer starts ringing
- Returns
- The ringback tone control
- See also
- ZDKRingBackToneControl
◆ videoControls
Gets the video endpoint's main entry point.
Entry point for controlling the video endpoint
- Returns
- The video endpoint control
- See also
- ZDKVideoEndpointControl
The documentation for this protocol was generated from the following file: