blob: f1e9428b35e773527e466dfe0a1bc358513283cf [file] [log] [blame]
Alexandre Lision064e1e02013-10-01 16:18:42 -04001package org.sflphone.service;
Emeric Vigier6119d782012-09-21 18:04:14 -04002
Alexandre Lision064e1e02013-10-01 16:18:42 -04003import org.sflphone.model.SipCall;
4import org.sflphone.model.Conference;
alision5f899632013-04-22 17:26:56 -04005
Emeric Vigier6119d782012-09-21 18:04:14 -04006interface ISipService {
Alexandre Lision6711ab22013-09-16 15:15:38 -04007
8 Map getCallDetails(in String callID);
alisionfde875f2013-05-28 17:01:54 -04009 void placeCall(in SipCall call);
Emeric Vigier6119d782012-09-21 18:04:14 -040010 void refuse(in String callID);
11 void accept(in String callID);
12 void hangUp(in String callID);
Alexandre Savarde9dc8992012-10-26 12:12:27 -040013 void hold(in String callID);
14 void unhold(in String callID);
alision7f18fc82013-05-01 09:37:33 -040015
Alexandre Savard6b85e7e2012-09-27 15:43:14 -040016 List getAccountList();
Alexandre Savard46036572012-10-05 13:56:49 -040017 String addAccount(in Map accountDetails);
18 void removeAccount(in String accoundId);
Alexandre Savard713a34d2012-09-26 15:50:41 -040019 Map getAccountDetails(in String accountID);
Alexandre Savard8b7d4332012-09-30 20:02:11 -040020 void setAccountDetails(in String accountId, in Map accountDetails);
Alexandre Savard6b85e7e2012-09-27 15:43:14 -040021 void setAudioPlugin(in String callID);
Alexandre Savard31d27c62012-10-04 16:05:08 -040022 String getCurrentAudioOutputPlugin();
alisiond295ec22013-05-17 10:12:13 -040023 List getAudioCodecList(in String accountID);
Alexandre Lisionafd40e42013-10-15 13:48:37 -040024 Map getRingtoneList();
alision04a00182013-05-10 17:05:29 -040025
26 /* History */
alisione2a38e12013-04-25 14:20:20 -040027 List getHistory();
alision7f18fc82013-05-01 09:37:33 -040028
alision2cb99562013-05-30 17:02:20 -040029 /* Notification */
30 void createNotification();
31 void destroyNotification();
32
33
alision04a00182013-05-10 17:05:29 -040034 /* Recording */
35 void setRecordPath(in String path);
36 String getRecordPath();
Alexandre Lisiona764c682013-09-09 10:02:07 -040037 boolean toggleRecordingCall(in String id);
alision50fa0722013-06-25 17:29:44 -040038 boolean startRecordedFilePlayback(in String filepath);
39 void stopRecordedFilePlayback(in String filepath);
alisiondf1dac92013-06-27 17:35:53 -040040 boolean isRecording(in String id);
Alexandre Lision64dc8c02013-09-25 15:32:25 -040041
42 /* DTMF */
43 void playDtmf(in String key);
alision04a00182013-05-10 17:05:29 -040044
45 /* IM */
46 void sendTextMessage(in String callID, in String message, in String from);
alision84813a12013-05-27 17:40:39 -040047
alision7f18fc82013-05-01 09:37:33 -040048 void transfer(in String callID, in String to);
49 void attendedTransfer(in String transferID, in String targetID);
50
alision43a9b362013-05-01 16:30:15 -040051 /* Conference related methods */
alision907bde72013-06-20 14:40:37 -040052
alision43a9b362013-05-01 16:30:15 -040053 void removeConference(in String confID);
alision7f18fc82013-05-01 09:37:33 -040054 void joinParticipant(in String sel_callID, in String drag_callID);
alision907bde72013-06-20 14:40:37 -040055
alision806e18e2013-06-21 15:30:17 -040056 void addParticipant(in SipCall call, in String confID);
alision7f18fc82013-05-01 09:37:33 -040057 void addMainParticipant(in String confID);
58 void detachParticipant(in String callID);
59 void joinConference(in String sel_confID, in String drag_confID);
60 void hangUpConference(in String confID);
61 void holdConference(in String confID);
62 void unholdConference(in String confID);
alisioncd8fb912013-06-28 14:43:51 -040063 boolean isConferenceParticipant(in String callID);
alisiondf1dac92013-06-27 17:35:53 -040064 Map getConferenceList();
alisionfde875f2013-05-28 17:01:54 -040065 Map getCallList();
alision7f18fc82013-05-01 09:37:33 -040066 List getParticipantList(in String confID);
67 String getConferenceId(in String callID);
alision806e18e2013-06-21 15:30:17 -040068 String getConferenceDetails(in String callID);
alision85704182013-05-29 15:23:03 -040069
alisiondf1dac92013-06-27 17:35:53 -040070 Conference getCurrentCall();
Alexandre Lision6ae652d2013-09-26 16:39:20 -040071 List getConcurrentCalls();
alisiondf1dac92013-06-27 17:35:53 -040072
alision85704182013-05-29 15:23:03 -040073
74 /* */
75
76 SipCall getCall(String callID);
Alexandre Savardc1b08fe2012-09-25 16:24:47 -040077}