[Sofaswitch-svn] [commit] r231 - sofaswitch/trunk/sofa/src
Author: derek Date: Thu Jan 11 21:53:19 2007 New Revision: 231 Modified: sofaswitch/trunk/sofa/src/messages.cxx Log: Add handling of the message, "reporttome", so any controller can ask any sofa node to send all messages to a new controlling entity. Modified: sofaswitch/trunk/sofa/src/messages.cxx ============================================================================== --- sofaswitch/trunk/sofa/src/messages.cxx (original) +++ sofaswitch/trunk/sofa/src/messages.cxx Thu Jan 11 21:53:19 2007 @@ -106,10 +106,12 @@ availableCommands += PString(/* 14 */ "REQUESTNEWID"); availableCommands += PString(/* 15 */ "SETRECEIVEDMSGFILE"); availableCommands += PString(/* 16 */ "SETANNOUNCEMENTFILE"); + availableCommands += PString(/* 17 */ "REPORTTOME"); #ifdef PMEMORY_CHECK - availableCommands += PString(/* 17 */ "DUMPMEM"); + availableCommands += PString(/* 18 */ "DUMPMEM"); #endif + WORD localPort = preferredPort; for (; preferredPort != 0;) { if (audioSocket.Listen(INADDR_ANY, 0, localPort)) { @@ -577,8 +579,14 @@ return; } -#ifdef PMEMORY_CHECK if (cmds[0] *= availableCommands[17]) { + PTRACE(2, "ReportToMe " << cmds[0]); + SetRemoteController(sender); + return; + } + +#ifdef PMEMORY_CHECK + if (cmds[0] *= availableCommands[18]) { PTRACE(2, "ProcessMemoryDump " << cmds[0]); ProcessMemoryDump(cmds, sender); return;
participants (1)
-
SofaSWITCH SVN