Methods
| placeCall | (s: accountID, s: callID, s: to) | → | nothing | |
| placeCallFirstAccount | (s: callID, s: to) | → | nothing | |
| refuse | (s: callID) | → | nothing | |
| accept | (s: callID) | → | nothing | |
| hangUp | (s: callID) | → | nothing | |
| hangUpConference | (s: confID) | → | nothing | |
| hold | (s: callID) | → | nothing | |
| unhold | (s: callID) | → | nothing | |
| transfert | (s: callID, s: to) | → | nothing | |
| playDTMF | (s: key) | → | nothing | |
| startTone | (i: start, i: type) | → | nothing | |
| setVolume | (s: device, d: value) | → | nothing | |
| getVolume | (s: device) | → | d: value | |
| joinParticipant | (s: sel_callID, s: drag_callID) | → | nothing | |
| addParticipant | (s: callID, s: confID) | → | nothing | |
| addMainParticipant | (s: confID) | → | nothing | |
| detachParticipant | (s: callID) | → | nothing | |
| joinConference | (s: sel_confID, s: drag_confID) | → | nothing | |
| getConferenceDetails | (s: callID) | → | a{ss}: infos | |
| getConferenceList | () | → | as: list | |
| setRecording | (s: callID) | → | nothing | |
| getIsRecording | (s: callID) | → | b: isRecording | |
| getCallDetails | (s: callID) | → | a{ss}: infos | |
| getCallList | () | → | as: list | |
| getCurrentCallID | () | → | s: callID | |
| getCurrentCodecName | (s: callID) | → | s: codecName | |
| getParticipantList | (s: confID) | → | as: list | |
| holdConference | (s: confID) | → | nothing | |
| unholdConference | (s: confID) | → | nothing | |
| setSASVerified | (s: callID) | → | nothing | |
| resetSASVerified | (s: callID) | → | nothing | |
| setConfirmGoClear | (s: callID) | → | nothing | |
| requestGoClear | (s: callID) | → | nothing | |
| acceptEnrollment | (s: callID, b: accepted) | → | nothing | |
| setPBXEnrollment | (s: callID, b: yesNo) | → | nothing |
Signals
| currentSelectedCodec | (s: callID, s: codecName) | |
| incomingCall | (s: accountID, s: callID, s: from) | |
| incomingMessage | (s: accountID, s: message) | |
| callStateChanged | (s: callID, s: state) | |
| conferenceChanged | (s: confID, s: state) | |
| conferenceCreated | (s: confID) | |
| conferenceRemoved | (s: confID) | |
| sipCallStateChanged | (s: callID, s: state, i: code) | |
| registrationStateChanged | (s: accountID, s: state, i: code) | |
| voiceMailNotify | (s: accountID, i: count) | |
| volumeChanged | (s: device, d: value) | |
| transferSucceded | () | |
| transferFailed | () | |
| secureSdesOn | (s: callID) | |
| secureSdesOff | (s: callID) | |
| secureZrtpOn | (s: callID, s: cipher) | |
| secureZrtpOff | (s: callID) | |
| confirmGoClear | (s: callID) | |
| zrtpNegotiationFailed | (s: callID, s: reason, s: severity) | |
| zrtpNotSuppOther | (s: callID) | |
| showSAS | (s: callID, s: sas, b: verified) |
Description
The CallManager interface is used to manage any call related actions.
Since SFLphone-daemon support multiple incoming/outgoing calls, any actions involving a specific call must address the method by the means of a unique callID. SFLphone-clients is responsible to generate the callID on outgoing call. On the other hand, SFLphone-daemon will generate a unique callID on incoming calls.
Methods
placeCall (s: accountID, s: callID, s: to) → nothing
Parameters
- accountID — s
- callID — s
- to — s
This is the main method in order to place a new call. The call is registered to the daemon using this method.
placeCallFirstAccount (s: callID, s: to) → nothing
Parameters
- callID — s
- to — s
accept (s: callID) → nothing
Parameters
- callID — s
hangUp (s: callID) → nothing
Parameters
- callID — s
hangUpConference (s: confID) → nothing
Parameters
- confID — s
unhold (s: callID) → nothing
Parameters
- callID — s
transfert (s: callID, s: to) → nothing
Parameters
- callID — s
- to — s
playDTMF (s: key) → nothing
Parameters
- key — s
startTone (i: start, i: type) → nothing
Parameters
- start — i
- type — i
setVolume (s: device, d: value) → nothing
Parameters
- device — s
- value — d
Sets the volume using a linear scale [0,100].
getVolume (s: device) → d: value
Parameters
- device — s
Returns
- value — d
Return the volume value of the given device on a linear scale [0,100].
joinParticipant (s: sel_callID, s: drag_callID) → nothing
Parameters
- sel_callID — s
- drag_callID — s
Join two participants together to create a 3-way conference including the current client.
addParticipant (s: callID, s: confID) → nothing
Parameters
- callID — s
- confID — s
Join a new particiant to an existing conference.
addMainParticipant (s: confID) → nothing
Parameters
- confID — s
As the core can handle multiple calls an conferences, it may happens that the client's user leave a conference to answer an incoming call or send new ones. This method is used to reintroduce SFLphone-client's user into the conference.
It put the current call on state HOLD or detach SFLphone-client's user from the another conference.
detachParticipant (s: callID) → nothing
Parameters
- callID — s
joinConference (s: sel_confID, s: drag_confID) → nothing
Parameters
- sel_confID — s
- drag_confID — s
getConferenceDetails (s: callID) → a{ss}: infos
Parameters
- callID — s
Returns
- infos — a{ss}
getConferenceList () → as: list
Returns
- list — as
setRecording (s: callID) → nothing
Parameters
- callID — s
getIsRecording (s: callID) → b: isRecording
Parameters
- callID — s
Returns
- isRecording — b
getCallDetails (s: callID) → a{ss}: infos
Parameters
- callID — s
Returns
- infos — a{ss} (String_String_Map)
- ACCOUNTID
- PEER_NUMBER
- PEER_NAME
- DISPLAY_NAME
- CALL_STATE
- CALL_TYPE
A map containing the call details:
getCallList () → as: list
Returns
- list — as
getCurrentCallID () → s: callID
Returns
- callID — s
getCurrentCodecName (s: callID) → s: codecName
Parameters
- callID — s
Returns
- codecName — s
getParticipantList (s: confID) → as: list
Parameters
- confID — s
Returns
- list — as
holdConference (s: confID) → nothing
Parameters
- confID — s
unholdConference (s: confID) → nothing
Parameters
- confID — s
acceptEnrollment (s: callID, b: accepted) → nothing
Parameters
- callID — s
- accepted — b
setPBXEnrollment (s: callID, b: yesNo) → nothing
Parameters
- callID — s
- yesNo — b
Signals
incomingCall (s: accountID, s: callID, s: from)
Parameters
- accountID — s
- callID — s
- from — s
Notify an incoming call.
The callID generated by the daemon and must be stored by the clients in order to address other action for this call.
callStateChanged (s: callID, s: state)
Parameters
- callID — s
- state — s
- INCOMING: Initial state of incoming calls
- RINGING: Initial state of received outgoing call
- CURRENT: The normal active state of an answered call
- HUNGUP: Notify that the call has been hungup by peer
- BUSY
- FAILURE: Error when processing a call
- HOLD
- UNHOLD_CURRENT
- UNHOLD_RECORD
Notify of a change in a call state.
The client must subscribe to this signal.
conferenceChanged (s: confID, s: state)
Parameters
- confID — s
- state — s
- ACTIVE_ATTACHED
- ACTIVE_DETACHED
- HOLD
conferenceCreated (s: confID)
Parameters
- confID — s
conferenceRemoved (s: confID)
Parameters
- confID — s
sipCallStateChanged (s: callID, s: state, i: code)
Parameters
- callID — s
- state — s
- code — i
registrationStateChanged (s: accountID, s: state, i: code)
Parameters
- accountID — s
- state — s
- code — i
The state of an account has changed.
The clients have to subscribe to this signal to use accounts.
voiceMailNotify (s: accountID, i: count)
Parameters
- accountID — s
- count — i
volumeChanged (s: device, d: value)
Parameters
- device — s
- value — d
zrtpNegotiationFailed (s: callID, s: reason, s: severity)
Parameters
- callID — s
- reason — s
- severity — s
showSAS (s: callID, s: sas, b: verified)
Parameters
- callID — s
- sas — s
- verified — b