iSim.h
192 virtual void updateCallSourceStatus(const std::string& simId, const dpyModem::CallSourceStatus& sourceStatus) = 0;
199 virtual void processVoiceCallEvent(const std::string& simId, const dpyModem::CallStatus& callStatus) = 0;
222 void notifyCallSourceStatusUpdate(const std::string& simId, const dpyModem::CallSourceStatus& sourceStatus);
223 void notifyVoiceCallEvent(const std::string& simId, const dpyModem::CallStatus& callStatusEvent);
@ MODE_DATA_VOICE
Voice followed by data, data mode (only in connection with single numbering scheme AT+CSNS)
Definition: iSim.h:122
boost::system::error_code unsubscribe(SimObserver *observer)
Unsubscribe from the different sim events.
@ MPTY_ACTIVE
Call is one of multiparty (conference) call parties.
Definition: iSim.h:132
@ SIM_LOCKED_PUK
Sim card is blocked and PUK code must be entered.
Definition: iSim.h:55
@ TYPE_INTERNATIONAL_CODE
Dialing string number includes international access code character '+'.
Definition: iSim.h:146
@ SIM_INVALID_OR_UNSUPPORTED
Sim card cannot be read or it is not correctly inserted.
Definition: iSim.h:51
boost::system::error_code subscribe(SimObserver *observer)
Subscribe to the different sim events.
@ TRAFFIC_CHANNEL_NOT_ASSIGNED
No traffic channel assigned. Transmission of DTMF tones not possible.
Definition: iSim.h:138
virtual dpyModem::CallSourceStatus getCallSourceStatus() const =0
Used to retrieve last call information.
AccessPointNetwork apn_information
Sim APN information.
Definition: iSim.h:65
std::string password
Password used to access the network.
Definition: iSim.h:44
@ FINISHED
The call is not active anymore, but inband information is still available.
Definition: iSim.h:108
@ STAT_DROPPED
The call has been suspended by the network, but may resumed later.
Definition: iSim.h:88
@ SIM_LOCKED
Sim card is blocked, it may be needed to introduce some PIN or PUK code.
Definition: iSim.h:52
@ SIM_NOT_INSERTED
Sim card is not present in the device, or Sim status Unknown.
Definition: iSim.h:50
CallTrafficChannel trafficChannel
Traffic channel.
Definition: iSim.h:160
CallType type
type of address octet. 161 -> National number
Definition: iSim.h:162
virtual void updateSimStatus(const std::string &simId, const dpyModem::SimStatus &status)=0
Method that will be called on sim status changes.
@ TRAFFIC_CHANNEL_ASSIGNED
Traffic channel is assigned and the progress indicator IE has been received(call setup) or a voice co...
Definition: iSim.h:139
Definition: iSim.h:40
@ SIM_LOCKED_PIN
Sim card is blocked and PIN code must be entered.
Definition: iSim.h:53
bool apn_forced
Flag that indicates if the apn is forced by the user or retrieved from the list.
Definition: iSim.h:66
virtual void processVoiceCallEvent(const std::string &simId, const dpyModem::CallStatus &callStatus)=0
Method that will be called on Sim events.
CallSourceStatus
Defines the possible status that a voice call source can report regarding calls.
Definition: iSim.h:92
@ MPTY_INACTIVE
Call is not one of multiparty (conference) call parties.
Definition: iSim.h:131
@ DROPPED
The call has been suspended by the network, but may resumed later.
Definition: iSim.h:110
@ MODE_VOICE_DATA
Voice followed by data, voice mode (only in connection with single numbering scheme AT+CSNS)
Definition: iSim.h:119
int duration_seconds
Duration of the call, expressed in seconds.
Definition: iSim.h:163
Deepsy Modem namespace that includes the different enums, structs or method signatures that should be...
@ RINGING
Incoming call being received (Mobile Terminated Call)
Definition: iSim.h:104
std::string APN
Access point network (url form)
Definition: iSim.h:42
@ TYPE_SUPPLEM_SERVICE_CODE
Dialing string number contains "*", "#" characters for Supplementary Services codes....
Definition: iSim.h:148
@ MODE_VOICE_ALT_DATA
Alternating voice/data, voice mode (only in connection with single numbering scheme AT+CSNS)
Definition: iSim.h:120
virtual boost::system::error_code getApn(dpyModem::AccessPointNetwork &apn, bool &forced)=0
Retrieve the sim APN.
@ MODE_VOICE_ALT_FAX
Alternating voice/fax, voice mode (only in connection with single numbering scheme AT+CSNS)
Definition: iSim.h:121
SimStatus
Defines the possible states in which SIM card may be.
Definition: iSim.h:48
virtual dpyModem::CallInfo getLastCallInfo() const =0
Used to retrieve last call information.
virtual boost::system::error_code getSimInfo(dpyModem::SimInfo &sim_info)=0
Retrieve sim related information.
virtual void updateCallSourceStatus(const std::string &simId, const dpyModem::CallSourceStatus &sourceStatus)=0
Method that will be called on Sim events.
@ MODE_DATA_ALT_VOICE
Alternating voice/data, data mode (only in connection with single numbering scheme AT+CSNS)
Definition: iSim.h:123
@ MODE_FAX_ALT_VOICE
Alternating voice/fax, fax mode (only in connection with single numbering scheme AT+CSNS)
Definition: iSim.h:124
@ SIM_LOCKED_PIN2
Sim card is blocked and PIN2 code must be entered.
Definition: iSim.h:54
std::string user
User used to access the network.
Definition: iSim.h:43
@ STAT_TERMINATING
The call is not active anymore, but inband information is still available.
Definition: iSim.h:87