IPCortex.PBX Object
This is the top level container for PBX API methods.
Call history related
Kind: static method of
IPCortex.PBXReturns:
Bool
- Success/Failure indication.
A top-level switch to enable
History functionality. It is still necessary to enable history on each individual
Device as well as calling this method. This method specifies to the API the callback to use for new History events.
Parameter |
Type |
Description |
callback |
Function |
Callback for each new History object created. Function(History, Bool initial) . The initial flag indicates data being returned from the saved history cache when this function is enabled. |
options |
Object |
(Optional) Currently, the only supported option is {bulk: true} 6.4.7+ |
If bulk: true
mode is enabled, then the initial callback will be an Array
of saved history entries, rather than individual entries. Subsequent history entries will be delivered as normal.
Kind: static method of
IPCortex.PBXReturns:
Bool
- Success/Failure indication.
Disable
History functionality and stop callbacks.
Kind: static method of
IPCortex.PBXReturns:
Bool
- Success/Failure indication.
Request that the current call history is saved to backing-store. This store is automatically loaded if
History is enabled in a future session. eg. After a reload.