iVoiceCallSource.h
78 virtual void updateSourceStatus(const std::string& sourceid, const dpyVoicecall::SourceStatus& status) = 0;
86 virtual void processCallStatusEvent(const std::string& sourceid,const std::string& callid, const dpyVoicecall::CallStatus& status) = 0;
116 void notifySourceStatusUpdate(const std::string& sourceid, const dpyVoicecall::SourceStatus& status);
117 void notifyCallStatusEvent(const std::string& sourceid,const std::string& callid, const dpyVoicecall::CallStatus& status);
180 virtual boost::system::error_code getCallInfo(const std::string& callid, dpyVoicecall::CallInformation& info) = 0;
188 virtual boost::system::error_code makeCall(const std::string& destination, std::string& callid) = 0;
221 virtual boost::system::error_code setCallConfigParameter(const dpyVoicecall::CallParameter& param,const std::string& value) = 0;
virtual boost::system::error_code finishCall(const std::string &callid)=0
Finish an active call.
@ MICRO_ADC_GAIN
Amplification of the microphone. ADC Gain.
Definition: iVoiceCallSource.h:48
dpyVoicecall::SourceStatus getSourceStatus()
Retrieve source status from the voice call source.
virtual std::map< dpyVoicecall::CallParameter, std::string > getCallConfigParameters()=0
Get call configuration parameters.
@ VOLUME_RINGTONE
Volume of ring tone,varies from low to high.
Definition: iVoiceCallSource.h:46
boost::system::error_code subscribe(VoiceCallSourceObserver *observer)
Subscribe to the different voice call source events.
@ NUM_OF_RINGS
Number of rings before automatic answer if it is enabled.
Definition: iVoiceCallSource.h:42
virtual boost::system::error_code answerCall(const std::string &callid)=0
Answer a incoming call.
@ AUDIO_FILTER_MODULES
Baresip audio filter modules.
Definition: iVoiceCallSource.h:60
virtual boost::system::error_code muteCall(const std::string &callid, const bool &mute)=0
Mute or unmute an active call.
Defines the structure containing voice call source information.
Definition: iVoiceCallSource.h:33
void setSourceStatus(dpyVoicecall::SourceStatus status)
set source status of the voice call source
CallParameter
Defines the Voice Call Configuration parameters that can be configured.
Definition: iVoiceCallSource.h:40
virtual ~VoiceCallSourceObserver()
Destructor.
Definition: iVoiceCallSource.h:91
virtual std::list< boost::shared_ptr< ICall > > getCallList()=0
Retrieve call list from the voice call source.
virtual boost::system::error_code getCallInfo(const std::string &callid, dpyVoicecall::CallInformation &info)=0
Retrieve call related information.
virtual void updateSourceStatus(const std::string &sourceid, const dpyVoicecall::SourceStatus &status)=0
Method called with source status state change.
virtual boost::system::error_code redialLastNumber()=0
Redial the number that is associated with the last voice call.
@ NUM_OF_RETRIES
Maximum retries number.
Definition: iVoiceCallSource.h:50
Deepsy Voicecall namespace that includes the different enums, structs or method signatures that shoul...
virtual boost::system::error_code setCallConfigParameter(const dpyVoicecall::CallParameter ¶m, const std::string &value)=0
Set call configuration for a specific parameter.
CallStatus
Defines the possible call status that a sim can report.
Definition: iCall.h:22
@ RTP_LOCAL_PORT_RANGE
Local RTP ports.
Definition: iVoiceCallSource.h:53
virtual void processCallStatusEvent(const std::string &sourceid, const std::string &callid, const dpyVoicecall::CallStatus &status)=0
Method called with call status state change.
virtual dpyVoicecall::SourceType getVoiceCallSourceType()=0
Get source type.
@ MICRO_MULT_FACTOR
Amplification of the microphone. Multiplication factor.
Definition: iVoiceCallSource.h:49
SourceType type
Voice Call Source type.
Definition: iVoiceCallSource.h:36
virtual boost::system::error_code getCallStatus(dpyVoicecall::CallStatus &status)=0
Retrieve call status from the voice call source.
boost::system::error_code unsubscribe(VoiceCallSourceObserver *observer)
Unsubscribe from the different voice call source events.
virtual boost::system::error_code makeCall(const std::string &destination, std::string &callid)=0
Performs a call to a specified phone number.