60 #ifndef __voice_hal_H__
61 #define __voice_hal_H__
65 #include <sys/socket.h>
66 #include <netinet/in.h>
92 #define RETURN_ERROR (-1)
96 #define RDK_SUCCESS (0)
98 #define RDK_FAILURE (-1)
99 #define RDK_ERROR_PARAM (-2)
100 #define RDK_ERROR_RANGE (-3)
101 #define RDK_ERROR_OOM (-4)
103 #undef VOICE_UNSUPPORTED_PARAMS
208 bool ResetStatistics;
209 uint32_t PacketsSent;
210 uint32_t PacketsReceived;
212 uint32_t BytesReceived;
213 uint32_t PacketsLost;
214 uint32_t IncomingCallsReceived;
215 uint32_t IncomingCallsAnswered;
216 uint32_t IncomingCallsConnected;
217 uint32_t IncomingCallsFailed;
218 uint32_t OutgoingCallsAttempted;
219 uint32_t OutgoingCallsAnswered;
220 uint32_t OutgoingCallsConnected;
221 uint32_t OutgoingCallsFailed;
223 uint32_t CallsDropped;
224 uint32_t TotalCallTime;
225 uint32_t ServerDownTime;
227 uint32_t ReceivePacketLossRate;
228 uint32_t FarEndPacketLossRate;
229 uint32_t ReceiveInterarrivalJitter;
230 uint32_t FarEndInterarrivalJitter;
231 uint32_t RoundTripDelay;
232 uint32_t AverageReceiveInterarrivalJitter;
233 uint32_t AverageFarEndInterarrivalJitter;
234 uint32_t AverageRoundTripDelay;
251 #define VOICE_HAL_USERNAME_LENGTH (40)
252 #define VOICE_HAL_PASSWORD_LENGTH (40)
670 char *testState, uint32_t *pLength);
709 int32_t
voice_hal_getTestResult(uint32_t service, uint32_t phy_interface,
char *test_result, uint32_t *pLength);
1238 int32_t
voice_hal_getLogServer(uint32_t service, uint32_t profile,
char *logServerName, uint32_t *puiLength);
1417 #ifdef VOICE_UNSUPPORTED_PARAMS
1434 int32_t voice_hal_setProfileRegion(uint32_t service, uint32_t profile,
const char *region);
1453 int32_t voice_hal_getProfileRegion(uint32_t service, uint32_t profile,
char *region, uint32_t *pLength);
1470 int32_t voice_hal_setTelUriFeatureCode(uint32_t service, uint32_t profile,
bool enable);
1487 int32_t voice_hal_getTelUriFeatureCode(uint32_t service, uint32_t profile,
bool *enable);
1504 int32_t voice_hal_setEnableEmergencySipUriUserParm(uint32_t service, uint32_t profile,
bool enable);
1521 int32_t voice_hal_getEnableEmergencySipUriUserParm(uint32_t service, uint32_t profile,
bool *enable);
1538 int32_t voice_hal_setLocalCodecPriority(uint32_t service, uint32_t profile, uint8_t localCodecPriority);
1555 int32_t voice_hal_setMaxPreferredCodecs(uint32_t service, uint32_t profile, uint32_t maxPrefCodecs);
1572 int32_t voice_hal_getMaxPreferredCodecs(uint32_t service, uint32_t profile, uint32_t *maxPrefCodecs);
1781 #ifdef VOICE_UNSUPPORTED_PARAMS
1797 int32_t voice_hal_setConferencingOption(uint32_t service, uint32_t profile,
const char *option);
1815 int32_t voice_hal_getConferencingOption(uint32_t service, uint32_t profile,
char *option, uint32_t *pLength);
1832 int32_t voice_hal_setEnableEuroFlashCallWaiting(uint32_t service, uint32_t profile,
bool enable);
1849 int32_t voice_hal_getEnableEuroFlashCallWaiting(uint32_t service, uint32_t profile,
bool *enable);
1866 int32_t voice_hal_setEnableSipSubscribe(uint32_t service, uint32_t profile,
bool enable);
1883 int32_t voice_hal_getEnableSipSubscribe(uint32_t service, uint32_t profile,
bool *enable);
1900 int32_t voice_hal_setSessionExpires(uint32_t service, uint32_t profile, uint32_t timeout);
1917 int32_t voice_hal_getSessionExpires(uint32_t service, uint32_t profile, uint32_t *timeout);
1934 int32_t voice_hal_setMinSessionExpires(uint32_t service, uint32_t profile, uint32_t timeout);
1951 int32_t voice_hal_sgetMinSessionExpires(uint32_t service, uint32_t profile, uint32_t *timeout);
1968 int32_t voice_hal_setHoldModeInactive(uint32_t service, uint32_t profile,
bool enable);
1985 int32_t voice_hal_getHoldModeInactive(uint32_t service, uint32_t profile,
bool *enable);
2421 int32_t
voice_hal_getSipURI(uint32_t service, uint32_t profile, uint32_t line,
char *pSipUri, uint32_t *pLength);
2448 int32_t
voice_hal_setSipUri(uint32_t service, uint32_t profile, uint32_t line,
const char *buffer);