title: Error while upgrading Asterisk to 14 - PJSIP undeclared
body: <p>I am trying to upgrade asterisk 11 to 14 on Debian (8.7) and I got the following error when I do make install.</p>
  
  <p>The error is as below</p>
  
  <pre><code>res_pjsip_transport_management.c: In function ‘monitored_transport_state_callback’:
  res_pjsip_transport_management.c:190:8: error: ‘PJSIP_TP_STATE_SHUTDOWN’ undeclared (first use in this function)
     case PJSIP_TP_STATE_SHUTDOWN:
          ^
  res_pjsip_transport_management.c:190:8: note: each undeclared identifier is reported only once for each function it appears in
  /root/asterisk-14.3.0/Makefile.rules:149: recipe for target 'res_pjsip_transport_management.o' failed
  make[1]: *** [res_pjsip_transport_management.o] Error 1
  Makefile:401: recipe for target 'res' failed
  make: *** [res] Error 2
  </code></pre>
  
  <p>The commands I used are as follow</p>
  
  <pre><code>tar -zxvf asterisk-14-current.tar.gz
  /etc/init.d/asterisk stop
  cd asterisk-14.3.0/
  ./configure
  rm -f /usr/lib/asterisk/modules/*
  make install
  </code></pre>
  
  <p>I tried some solutions from the internet and it didn't fix.... </p>