|
|
@@ -2648,6 +2648,58 @@ void CSIPPhoneSession::Handle_StopVideoRender(SpOnewayCallContext<PhoneService_S
|
|
|
DbgToBeidou(ctx->link, __FUNCTION__)();
|
|
|
}
|
|
|
|
|
|
+/** for fixing compiled error Gifur@202422]*/
|
|
|
+void CSIPPhoneSession::Handle_GetHandfreeInVolume(SpReqAnsContext<PhoneService_GetHandfreeInVolume_Req, PhoneService_GetHandfreeInVolume_Ans>::Pointer ctx)
|
|
|
+{
|
|
|
+ DbgToBeidou(ctx->link, __FUNCTION__)();
|
|
|
+ ctx->Ans.Volume = m_pEntity->m_kept_volume_in[DEV_HANDFREE];
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("get hand free in volume is %d.", ctx->Ans.Volume);
|
|
|
+ ctx->Answer(Error_Succeed);
|
|
|
+}
|
|
|
+
|
|
|
+void CSIPPhoneSession::Handle_SetHandfreeInVolume(SpReqAnsContext<PhoneService_SetHandfreeInVolume_Req, PhoneService_SetHandfreeInVolume_Ans>::Pointer ctx)
|
|
|
+{
|
|
|
+ DbgToBeidou(ctx->link, __FUNCTION__)();
|
|
|
+ int iVolume = ctx->Req.Volume;
|
|
|
+ if (iVolume > 100) {
|
|
|
+ iVolume = 100;
|
|
|
+ }
|
|
|
+ if (iVolume < 0) {
|
|
|
+ iVolume = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ //m_pEntity->SetHandfreeInVolume(iVolume);
|
|
|
+ ctx->Answer(Error_NotImpl);
|
|
|
+}
|
|
|
+
|
|
|
+void CSIPPhoneSession::Handle_SetPickupInVolume(SpReqAnsContext<PhoneService_SetPickupInVolume_Req, PhoneService_SetPickupInVolume_Ans>::Pointer ctx)
|
|
|
+{
|
|
|
+ DbgToBeidou(ctx->link, __FUNCTION__)();
|
|
|
+ if (eStand2sType == m_pEntity->m_eDeviceType || eStand1SPlusType == m_pEntity->m_eDeviceType) {
|
|
|
+ int iVolume = ctx->Req.Volume;
|
|
|
+ if (iVolume > 100) {
|
|
|
+ iVolume = 100;
|
|
|
+ }
|
|
|
+ if (iVolume < 0) {
|
|
|
+ iVolume = 0;
|
|
|
+ }
|
|
|
+ //m_pEntity->SetPickupInVolume(iVolume);
|
|
|
+ }
|
|
|
+ ctx->Answer(Error_NotImpl);
|
|
|
+}
|
|
|
+
|
|
|
+void CSIPPhoneSession::Handle_GetPickupInVolume(SpReqAnsContext<PhoneService_GetPickupInVolume_Req, PhoneService_GetPickupInVolume_Ans>::Pointer ctx)
|
|
|
+{
|
|
|
+ DbgToBeidou(ctx->link, __FUNCTION__)();
|
|
|
+ if (eStand2sType == m_pEntity->m_eDeviceType || eStand1SPlusType == m_pEntity->m_eDeviceType) {
|
|
|
+ ctx->Ans.Volume = m_pEntity->m_kept_volume_in[DEV_PICKUP];
|
|
|
+ } else {
|
|
|
+ ctx->Ans.Volume = 0;
|
|
|
+ }
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("get pick up in volume is %d.", ctx->Ans.Volume);
|
|
|
+ ctx->Answer(Error_NotImpl);
|
|
|
+}
|
|
|
+
|
|
|
void CSIPPhoneSession::Handle_BeginState( SpSubscribeContext<PhoneService_BeginState_Sub, PhoneService_PhoneState_Info>::Pointer ctx )
|
|
|
{
|
|
|
m_spCallbackContext = ctx;
|