Alexandre Lision | 064e1e0 | 2013-10-01 16:18:42 -0400 | [diff] [blame] | 1 | package org.sflphone.service; |
Emeric Vigier | 6119d78 | 2012-09-21 18:04:14 -0400 | [diff] [blame] | 2 | |
Alexandre Lision | 064e1e0 | 2013-10-01 16:18:42 -0400 | [diff] [blame] | 3 | import org.sflphone.model.SipCall; |
| 4 | import org.sflphone.model.Conference; |
Alexandre Lision | d568603 | 2013-10-29 11:09:21 -0400 | [diff] [blame] | 5 | import org.sflphone.model.SipMessage; |
alision | 5f89963 | 2013-04-22 17:26:56 -0400 | [diff] [blame] | 6 | |
Emeric Vigier | 6119d78 | 2012-09-21 18:04:14 -0400 | [diff] [blame] | 7 | interface ISipService { |
Alexandre Lision | 6711ab2 | 2013-09-16 15:15:38 -0400 | [diff] [blame] | 8 | |
| 9 | Map getCallDetails(in String callID); |
alision | fde875f | 2013-05-28 17:01:54 -0400 | [diff] [blame] | 10 | void placeCall(in SipCall call); |
Emeric Vigier | 6119d78 | 2012-09-21 18:04:14 -0400 | [diff] [blame] | 11 | void refuse(in String callID); |
| 12 | void accept(in String callID); |
| 13 | void hangUp(in String callID); |
Alexandre Savard | e9dc899 | 2012-10-26 12:12:27 -0400 | [diff] [blame] | 14 | void hold(in String callID); |
| 15 | void unhold(in String callID); |
alision | 7f18fc8 | 2013-05-01 09:37:33 -0400 | [diff] [blame] | 16 | |
Alexandre Savard | 6b85e7e | 2012-09-27 15:43:14 -0400 | [diff] [blame] | 17 | List getAccountList(); |
Alexandre Savard | 4603657 | 2012-10-05 13:56:49 -0400 | [diff] [blame] | 18 | String addAccount(in Map accountDetails); |
| 19 | void removeAccount(in String accoundId); |
Alexandre Lision | 4cf7870 | 2013-10-16 13:43:23 -0400 | [diff] [blame] | 20 | void setAccountOrder(in String order); |
Alexandre Savard | 713a34d | 2012-09-26 15:50:41 -0400 | [diff] [blame] | 21 | Map getAccountDetails(in String accountID); |
Alexandre Lision | 451f2a8 | 2013-11-12 12:55:55 -0500 | [diff] [blame] | 22 | Map getAccountTemplate(); |
Alexandre Lision | 3e2a1d0 | 2013-11-19 17:23:00 -0500 | [diff] [blame] | 23 | void registerAllAccounts(); |
Alexandre Savard | 8b7d433 | 2012-09-30 20:02:11 -0400 | [diff] [blame] | 24 | void setAccountDetails(in String accountId, in Map accountDetails); |
Alexandre Lision | 3b7148e | 2013-11-13 17:23:06 -0500 | [diff] [blame] | 25 | List getCredentials(in String accountID); |
| 26 | void setCredentials(in String accountID, in List creds); |
Alexandre Savard | 6b85e7e | 2012-09-27 15:43:14 -0400 | [diff] [blame] | 27 | void setAudioPlugin(in String callID); |
Alexandre Savard | 31d27c6 | 2012-10-04 16:05:08 -0400 | [diff] [blame] | 28 | String getCurrentAudioOutputPlugin(); |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 29 | List getAudioCodecList(in String accountID); |
Alexandre Lision | 4fb2262 | 2013-10-21 16:26:33 -0400 | [diff] [blame] | 30 | String getCurrentAudioCodecName(in String callID); |
Alexandre Lision | 4cf7870 | 2013-10-16 13:43:23 -0400 | [diff] [blame] | 31 | void setActiveCodecList(in List codecs, in String accountID); |
Alexandre Lision | afd40e4 | 2013-10-15 13:48:37 -0400 | [diff] [blame] | 32 | Map getRingtoneList(); |
alision | 04a0018 | 2013-05-10 17:05:29 -0400 | [diff] [blame] | 33 | |
Alexandre Lision | 5f733bc | 2013-12-04 13:10:30 -0500 | [diff] [blame] | 34 | |
| 35 | // FIXME |
Alexandre Lision | 3557713 | 2013-12-06 15:21:15 -0500 | [diff] [blame] | 36 | void toggleSpeakerPhone(in boolean toggle); |
Alexandre Lision | aad014e | 2014-01-14 17:45:49 -0500 | [diff] [blame] | 37 | |
alision | 2cb9956 | 2013-05-30 17:02:20 -0400 | [diff] [blame] | 38 | /* Notification */ |
| 39 | void createNotification(); |
| 40 | void destroyNotification(); |
Alexandre Lision | aad014e | 2014-01-14 17:45:49 -0500 | [diff] [blame] | 41 | |
alision | 04a0018 | 2013-05-10 17:05:29 -0400 | [diff] [blame] | 42 | /* Recording */ |
| 43 | void setRecordPath(in String path); |
| 44 | String getRecordPath(); |
Alexandre Lision | a764c68 | 2013-09-09 10:02:07 -0400 | [diff] [blame] | 45 | boolean toggleRecordingCall(in String id); |
alision | 50fa072 | 2013-06-25 17:29:44 -0400 | [diff] [blame] | 46 | boolean startRecordedFilePlayback(in String filepath); |
| 47 | void stopRecordedFilePlayback(in String filepath); |
Alexandre Lision | 64dc8c0 | 2013-09-25 15:32:25 -0400 | [diff] [blame] | 48 | |
Alexandre Lision | 31e3090 | 2013-11-08 15:16:59 -0500 | [diff] [blame] | 49 | /* Mute */ |
| 50 | void setMuted(boolean mute); |
| 51 | boolean isCaptureMuted(); |
Alexandre Lision | 48b49eb | 2014-02-11 13:37:33 -0500 | [diff] [blame] | 52 | |
| 53 | /* Security */ |
| 54 | void confirmSAS(in String callID); |
| 55 | |
Alexandre Lision | 64dc8c0 | 2013-09-25 15:32:25 -0400 | [diff] [blame] | 56 | /* DTMF */ |
| 57 | void playDtmf(in String key); |
alision | 04a0018 | 2013-05-10 17:05:29 -0400 | [diff] [blame] | 58 | |
| 59 | /* IM */ |
Alexandre Lision | d568603 | 2013-10-29 11:09:21 -0400 | [diff] [blame] | 60 | void sendTextMessage(in String callID, in SipMessage message); |
alision | 84813a1 | 2013-05-27 17:40:39 -0400 | [diff] [blame] | 61 | |
alision | 7f18fc8 | 2013-05-01 09:37:33 -0400 | [diff] [blame] | 62 | void transfer(in String callID, in String to); |
| 63 | void attendedTransfer(in String transferID, in String targetID); |
| 64 | |
alision | 43a9b36 | 2013-05-01 16:30:15 -0400 | [diff] [blame] | 65 | /* Conference related methods */ |
alision | 907bde7 | 2013-06-20 14:40:37 -0400 | [diff] [blame] | 66 | |
alision | 43a9b36 | 2013-05-01 16:30:15 -0400 | [diff] [blame] | 67 | void removeConference(in String confID); |
alision | 7f18fc8 | 2013-05-01 09:37:33 -0400 | [diff] [blame] | 68 | void joinParticipant(in String sel_callID, in String drag_callID); |
alision | 907bde7 | 2013-06-20 14:40:37 -0400 | [diff] [blame] | 69 | |
alision | 806e18e | 2013-06-21 15:30:17 -0400 | [diff] [blame] | 70 | void addParticipant(in SipCall call, in String confID); |
alision | 7f18fc8 | 2013-05-01 09:37:33 -0400 | [diff] [blame] | 71 | void addMainParticipant(in String confID); |
| 72 | void detachParticipant(in String callID); |
| 73 | void joinConference(in String sel_confID, in String drag_confID); |
| 74 | void hangUpConference(in String confID); |
| 75 | void holdConference(in String confID); |
| 76 | void unholdConference(in String confID); |
alision | cd8fb91 | 2013-06-28 14:43:51 -0400 | [diff] [blame] | 77 | boolean isConferenceParticipant(in String callID); |
alision | df1dac9 | 2013-06-27 17:35:53 -0400 | [diff] [blame] | 78 | Map getConferenceList(); |
alision | 7f18fc8 | 2013-05-01 09:37:33 -0400 | [diff] [blame] | 79 | List getParticipantList(in String confID); |
| 80 | String getConferenceId(in String callID); |
alision | 806e18e | 2013-06-21 15:30:17 -0400 | [diff] [blame] | 81 | String getConferenceDetails(in String callID); |
alision | 8570418 | 2013-05-29 15:23:03 -0400 | [diff] [blame] | 82 | |
alision | df1dac9 | 2013-06-27 17:35:53 -0400 | [diff] [blame] | 83 | Conference getCurrentCall(); |
Alexandre Lision | 6ae652d | 2013-09-26 16:39:20 -0400 | [diff] [blame] | 84 | List getConcurrentCalls(); |
Alexandre Lision | a9ee4eb | 2014-01-15 16:20:35 -0500 | [diff] [blame] | 85 | |
| 86 | Conference getConference(in String id); |
| 87 | |
Alexandre Savard | c1b08fe | 2012-09-25 16:24:47 -0400 | [diff] [blame] | 88 | } |