mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-20 04:44:49 -04:00
removed debug msgs and compilation warnings. Added missing include
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5488 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5d4901c3c5
commit
afca515165
3 changed files with 21 additions and 9 deletions
|
@ -166,7 +166,9 @@ p3VoRS::p3VoRS(RsPluginHandler *handler,PluginNotifier *notifier)
|
|||
|
||||
int p3VoRS::tick()
|
||||
{
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "ticking p3VoRS" << std::endl;
|
||||
#endif
|
||||
|
||||
processIncoming();
|
||||
sendPackets();
|
||||
|
@ -236,7 +238,9 @@ int p3VoRS::sendVoipRinging(const std::string& peer_id)
|
|||
|
||||
int p3VoRS::sendVoipData(const std::string& peer_id,const RsVoipDataChunk& chunk)
|
||||
{
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "Sending " << chunk.size << " bytes of voip data." << std::endl;
|
||||
#endif
|
||||
|
||||
RsVoipDataItem *item = new RsVoipDataItem ;
|
||||
|
||||
|
@ -314,19 +318,27 @@ void p3VoRS::handleProtocol(RsVoipProtocolItem *item)
|
|||
|
||||
switch(item->protocol)
|
||||
{
|
||||
case RsVoipProtocolItem::VoipProtocol_Ring: std::cerr << "p3VoRS::handleProtocol(): Received protocol ring item." << std::endl;
|
||||
mNotify->notifyReceivedVoipInvite(item->PeerId());
|
||||
case RsVoipProtocolItem::VoipProtocol_Ring: mNotify->notifyReceivedVoipInvite(item->PeerId());
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "p3VoRS::handleProtocol(): Received protocol ring item." << std::endl;
|
||||
#endif
|
||||
break ;
|
||||
|
||||
case RsVoipProtocolItem::VoipProtocol_Ackn: std::cerr << "p3VoRS::handleProtocol(): Received protocol accept call" << std::endl;
|
||||
mNotify->notifyReceivedVoipAccept(item->PeerId());
|
||||
case RsVoipProtocolItem::VoipProtocol_Ackn: mNotify->notifyReceivedVoipAccept(item->PeerId());
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "p3VoRS::handleProtocol(): Received protocol accept call" << std::endl;
|
||||
#endif
|
||||
break ;
|
||||
|
||||
case RsVoipProtocolItem::VoipProtocol_Close: std::cerr << "p3VoRS::handleProtocol(): Received protocol Close call." << std::endl;
|
||||
mNotify->notifyReceivedVoipHangUp(item->PeerId());
|
||||
case RsVoipProtocolItem::VoipProtocol_Close: mNotify->notifyReceivedVoipHangUp(item->PeerId());
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "p3VoRS::handleProtocol(): Received protocol Close call." << std::endl;
|
||||
#endif
|
||||
break ;
|
||||
default:
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "p3VoRS::handleProtocol(): Received protocol item # " << item->protocol << ": not handled yet ! Sorry" << std::endl;
|
||||
#endif
|
||||
break ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue