Voice Call C++
Namespaces | |
dpyVoicecall | |
Deepsy Voicecall namespace that includes the different enums, structs or method signatures that should be used. | |
Classes | |
class | IVoiceCallSource |
Voice Call Source interface. More... | |
class | VoiceCall |
Interacts with the voicecall service in order to manage calls. More... | |
class | ICall |
Represents a Call in the VoiceCall system. More... | |
class | VoiceCallSourceObserver |
VoiceCallSource Observer class. More... | |
Detailed Description
Voice Call API related documentation
A quick overview of basic VoiceCall capabilities and examples is given.
If you find VoiceCall API useful and would like to know more details, please check out further sections of the VoiceCall API documentation or contact the Deepsy platform team.
Examples
-
Creating a class object
#include <dpy/voiceCallApi.h>VoiceCall voicecall;
-
Obtaining info about a call
#include <dpy/voiceCallApi.h>VoiceCall voicecall;void voicecall_info_handler(boost::system::error_code error_code, s_CallInfo callinfo){if (error_code) {printf("VoiceCall info Error = %d, %s\n", error_code.value(), error_code.message().c_str());fflush (stdout);} else {std::cout << "id: " << callinfo.id << std::endl;std::cout << "dir: " << callinfo.dir << std::endl;std::cout << "state: " << callinfo.state << std::endl;std::cout << "mode: " << callinfo.mode << std::endl;std::cout << "mpty: " << callinfo.mpty << std::endl;std::cout << "trafic_channel_assigned: " << callinfo.traffic_channel_assigned << std::endl;std::cout << "number: " << callinfo.number << std::endl;std::cout << "type: " << callinfo.type << std::endl;}}voicecall.getVoiceCallInfo(voicecall_info_handler);