So I'm stuck on running a third party call control scenario using SIPp.
The error that I get is:

 

"get_peer_addr: Peer [string] not found."

 

The [string] being referenced is declared in this part of the xml
script:

 

<sendCmd dest="[string]">

 

 

If the dest parameter is left out then the following error message is
displayed:

 

"You must specify a 'dest' for sendCmd with extended 3pcc mode."

 

I found a switch statement in the source that is supposed to determine
which mode SIPp is in based on the xml file that is loaded at runtime.

 

Since the program thinks I'm in extended mode when I am not perhaps
there is an error in the switch statement logic?

 

Why have an elaborate switch statement for extended mode anyway?  Why
not just check for the -slave_cfg parameter?

 

I've extracted the switch statement for easier perusal.

 

void computeSippMode()
{
  bool isRecvCmdFound = false;
  bool isSendCmdFound = false;
  bool isFirstMessageFound = true;
 
  toolMode = -1;
  for(int i=0; i<scenario_len; i++)
    { 
      switch(scenario[i] -> M_type)
        {
        case MSG_TYPE_PAUSE:
        case MSG_TYPE_NOP:
          /* Allow pauses or nops to go first. */
          continue;
        case MSG_TYPE_SEND: 
          if(isFirstMessageFound)
            toolMode  = MODE_CLIENT;
          isFirstMessageFound = false;
          break;
 
        case MSG_TYPE_RECV:
          if(isFirstMessageFound)
            toolMode  = MODE_SERVER;
          isFirstMessageFound = false;
          break;
#ifdef __3PCC__
        case MSG_TYPE_SENDCMD:
          isSendCmdFound = true;
          if(!isRecvCmdFound) {
            if (false == isFirstMessageFound && toolMode == MODE_SERVER)
{
              /*
               * If it is a server already, then start it in
               * 3PCC A passive mode
               */
               if(twinSippMode){
              toolMode = MODE_3PCC_A_PASSIVE;
               }else if (extendedTwinSippMode){
                 toolMode = MODE_MASTER_PASSIVE;
               }
            } else {
                if(twinSippMode){
              toolMode = MODE_3PCC_CONTROLLER_A;
                 }else if (extendedTwinSippMode){
                   toolMode = MODE_MASTER;
                 } 
 
            }
            if((toolMode == MODE_MASTER_PASSIVE || toolMode ==
MODE_MASTER) && !master_name){
              ERROR("Inconsistency between command line and scenario:
master scenario but -master option not set\n");
            }
            if(!twinSippMode && !extendedTwinSippMode)
              ERROR("sendCmd message found in scenario but no twin sipp"
                    " address has been passed! Use -3pcc option or 3pcc
extended mode.\n");
            return;
          }
          isFirstMessageFound = false;
          break;
 
        case MSG_TYPE_RECVCMD:
          isRecvCmdFound = true;
          if(!isSendCmdFound)
            {
              if(twinSippMode){
              toolMode  = MODE_3PCC_CONTROLLER_B;
              } else if(extendedTwinSippMode){
                 toolMode = MODE_SLAVE;
                 if(!slave_number) {
                    ERROR("Inconsistency between command line and
scenario: slave scenario but -slave option not set\n");
                   }else{
                    toolMode = MODE_SLAVE;
                   } 
              }
              if(!twinSippMode && !extendedTwinSippMode)
                ERROR("sendCmd message found in scenario but no "
                      "twin sipp address has been passed! Use "
                      "-3pcc option\n");
              return;
            }
          isFirstMessageFound = false;
          break;
#endif // __3PCC__
        default:
          break;
        }
    }
    if(toolMode == -1)
      ERROR("Unable to determine mode of the tool (server, "
            "client, 3PCC controller A, 3PCC controller B).\n");
} 
--------------------------------------------------------


This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

--------------------------------------------------------
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to