Media/WebRTC/SIPCCMessaging: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
 
Line 5: Line 5:
* Add the new API to the abstract <code>CC_Call</code> interface in: <code>media/webrtc/signaling/include/CC_Call.h</code>.  
* Add the new API to the abstract <code>CC_Call</code> interface in: <code>media/webrtc/signaling/include/CC_Call.h</code>.  
   virtual void setPeerConnection(const std::string& handle) = 0;
   virtual void setPeerConnection(const std::string& handle) = 0;


* Add the new API to the the concrete <code>CC_SIPCall</code> implementation in: <code>media/webrtc/signaling/src/softphonewrapper/CC_SIPCCCall.h</code>:
* Add the new API to the the concrete <code>CC_SIPCall</code> implementation in: <code>media/webrtc/signaling/src/softphonewrapper/CC_SIPCCCall.h</code>:
Line 19: Line 18:
     CCAPI_SetPeerConnection(callHandle, handle.c_str());
     CCAPI_SetPeerConnection(callHandle, handle.c_str());
   }
   }


* Add the new <code>CCAPI_*</code> wrapper to: <code>media/webrtc/signaling/src/sipcc/include/ccapi_call.h</code>
* Add the new <code>CCAPI_*</code> wrapper to: <code>media/webrtc/signaling/src/sipcc/include/ccapi_call.h</code>


   cc_return_t CCAPI_SetPeerConnection(cc_call_handle_t handle, cc_peerconnection_t pc);
   cc_return_t CCAPI_SetPeerConnection(cc_call_handle_t handle, cc_peerconnection_t pc);


* The implementation goes in: <code>media/webrtc/signaling/src/sipcc/core/ccapp/ccapi_call.c</code>. In this case this is a wrapper around a feature set:
* The implementation goes in: <code>media/webrtc/signaling/src/sipcc/core/ccapp/ccapi_call.c</code>. In this case this is a wrapper around a feature set:
Line 52: Line 48:


   cc_return_t CC_CallFeature_SetPeerConnection(cc_call_handle_t call_handle, cc_peerconnection_t pc);
   cc_return_t CC_CallFeature_SetPeerConnection(cc_call_handle_t call_handle, cc_peerconnection_t pc);


* The implementation goes in <code>media/webrtc/signaling/src/sipcc/core/ccapp/cc_call_feature.c</code>. Note that we have defined a CC_FEATURE_SETPEERCONNECTION. The net effect of this is to send a msg across the message queue.
* The implementation goes in <code>media/webrtc/signaling/src/sipcc/core/ccapp/cc_call_feature.c</code>. Note that we have defined a CC_FEATURE_SETPEERCONNECTION. The net effect of this is to send a msg across the message queue.
Confirmed users
69

edits

Navigation menu