Ejemplo n.º 1
0
OsMsg* CpMultiStringMessage::createCopy(void) const
{
        return (new CpMultiStringMessage(getMsgSubType(),
        mString1Data.data(), mString2Data.data(),
        mString3Data.data(), mString4Data.data(),
        mString5Data.data(),
                mInt1, mInt2,mInt3, mInt4, mInt5, mInt6, mInt7));
}
Ejemplo n.º 2
0
// Get the sample data for this message
UtlBoolean StreamQueueMsg::getSamples(int16_t* pSamples) const
{
   UtlBoolean bRC = FALSE ;

   if (getMsgSubType() == AudioFrame)
   {
      memcpy(pSamples, mSamples, sizeof(mSamples)) ;
      bRC = TRUE ;
   }

   return bRC ;
}
Ejemplo n.º 3
0
ACDAgentMsg::ACDAgentMsg(const ACDAgentMsg& rACDAgentMsg)
: OsMsg(rACDAgentMsg)
{
   switch(getMsgSubType())
   {
      case UPDATE_STATE:
         mPresenceStateType = rACDAgentMsg.mPresenceStateType;
         mPresenceState     = rACDAgentMsg.mPresenceState;
         break ;
      case DROP_CALL:
         mRna = rACDAgentMsg.mRna;
         break ;
   }
}
Ejemplo n.º 4
0
ACDCallMsg::ACDCallMsg(const ACDCallMsg& rACDCallMsg)
: OsMsg(rACDCallMsg)
{
   mhCallHandle = SIPX_CALL_NULL;
   mCallEvent   = 0;
   mCallCause   = 0;
   mpRequestingQueue = NULL;
   mConnectionScheme = 0;
   mTimeout = 0;

   if (getMsgSubType() == SET_QUEUE) {
      mpRequestingQueue = rACDCallMsg.mpRequestingQueue;
      mTimeout          = rACDCallMsg.mTimeout;
   }
   else if (getMsgSubType() == UPDATE_STATE) {
      mhCallHandle = rACDCallMsg.mhCallHandle;
      mCallEvent   = rACDCallMsg.mCallEvent;
      mCallCause   = rACDCallMsg.mCallCause;
   }
   else if (getMsgSubType() == ROUTE_CALL) {
      mConnectionScheme = rACDCallMsg.mConnectionScheme;
      mTimeout          = rACDCallMsg.mTimeout;
      // Make a copy of the UtlSList
      UtlSListIterator listIterator(rACDCallMsg.mTargetAgentList);
      UtlContainable* pElement;
      while ((pElement = listIterator()) != NULL) {
         mTargetAgentList.append(pElement);
      }
   }
   else if (getMsgSubType() == ROUTE_ADD) {
      mpTargetAgent = rACDCallMsg.mpTargetAgent;
   }
   else if (getMsgSubType() == ANSWER_CALL) {
      mAudio1  = rACDCallMsg.mAudio1;
      mBargeIn = rACDCallMsg.mBargeIn;
   }
   else if (getMsgSubType() == PLAY_AUDIO) {
      mAudio1  = rACDCallMsg.mAudio1;
      mTimeout = rACDCallMsg.mTimeout;
      mAudio2  = rACDCallMsg.mAudio2;
   }
   else if (getMsgSubType() == DROP_CALL) {
      mTimeout = rACDCallMsg.mTimeout;
      mAudio1  = rACDCallMsg.mAudio1;
   }
}
Ejemplo n.º 5
0
OsMsg* CpStringMessage::createCopy(void) const
{
        return(new CpStringMessage(getMsgSubType(), stringData.data()));
}
Ejemplo n.º 6
0
OsMsg* CpIntMessage::createCopy(void) const
{
        return(new CpIntMessage(getMsgSubType(), mIntData));
}