title: Building MicroSIP 3.19.18: "PJRPID_ACTIVITY_ON_THE_PHONE" not defined
body: <p>I am trying to build a custom modified version of the
  <a href="https://www.microsip.org/" rel="nofollow noreferrer">MicroSIP softphone</a>.</p>
  
  <p>Before any modifications, I can't build the version 3.19.18 using VisualStudio 2017.</p>
  
  <p>I am able to compile successfully the previous minor version: 3.18.5</p>
  
  <p>The error is:</p>
  
  <pre><code>1&gt;c:\users\xxxxxxxxx\microsip\maindlg.cpp(1038): error C2065: 'PJRPID_ACTIVITY_ON_THE_PHONE': undeclared identifier
  </code></pre>
  
  <p>If I look at the code that uses that identifier I come across this, that is new in 3.19:</p>
  
  <pre><code>                case PJSUA_BUDDY_STATUS_ONLINE:
                  if (buddy_info.rpid.activity == PJRPID_ACTIVITY_ON_THE_PHONE) {
                      image = MSIP_CONTACT_ICON_ON_THE_PHONE;
                      if (PjToStr(&amp;buddy_info.status_text).Left(4) == _T("Ring")) {
                          ringing = true;
  </code></pre>
  
  <p>If I look at the type of "buddy_info.rpid.activity" it's of type "pjrpid_activity" That is defined in "rpid.h" from the SIP library "pjsip" :</p>
  
  <pre><code>typedef enum pjrpid_activity
  {
  /** Activity is unknown. The activity would then be conceived
   *  in the "note" field.
   */
  PJRPID_ACTIVITY_UNKNOWN,
  
  /** The person is away */
  PJRPID_ACTIVITY_AWAY,
  
  /** The person is busy */
  PJRPID_ACTIVITY_BUSY
  
  } pjrpid_activity;
  </code></pre>
  
  <p>No 'PJRPID_ACTIVITY_ON_THE_PHONE' defined here. And that string can't be found anywhere else on that project.</p>
  
  <p>This enum is part of the Open Source project <a href="https://www.pjsip.org/" rel="nofollow noreferrer">pjsip</a> which is currently on version 2.9.</p>
  
  <p>I tried to look back into earlier versions to find out if that enum evolved and had the correct elements. No luck.</p>
  
  <p>It looks like they are using a modified version of the pjsip library, but I can't find a link, a mention or anything that would help me to find out what is that missing dependency.</p>
  
  <p>More than that, MicroSIP.org will charge you $95 to obtain a customized version including "source code and assistance with compilation if needed".</p>
  
  <p>Of course it is needed if they keep secret the dependencies.</p>
  
  <p>Anyway, MicroSIP is statically linked to the unknown pjsip library variant.
   Microsip and PJSIP are both licensed under the GPLv2.</p>
  
  <p>My question is: How to find out my missing dependency?</p>
  
  <p>Are they required to disclose that information?</p>
  
  <p>Does anyone know about a fork of pjsip that would be the one I am looking for?</p>
  
  <p>Better, Has anyone been able to somehow compile MicroSIP, ver >= 3.19.0?</p>