title: Building channels/trunks between two Asterisk servers with PJSIP
body: <p>the new asterisk versions (>13) use the PJSIP module instead of chan_sip.
  What I'm missing so far are practical examples how to use the PJSIP lib properly with asterisk.</p>
  
  <p>What I want to do is the following:</p>
  
  <ul>
  <li>I have two, three or more asterisk servers on different sites which
  are all connected by IP</li>
  <li>end-devices like IP-phones are connected to the asterisk servers on the sides and they use PJSIP (Asterisk&lt;==>IP-Phone works so far)</li>
  <li>Now I want to connect all the asterisk servers with each other in order to build a communication network with a proper dialplan where every end-device can communicate with another phone on the other sites</li>
  </ul>
  
  <p>like that: [end-device&lt;==>Asterisk1&lt;========>Asterisk2&lt;==>end-device]</p>
  
  <p>Up to now I only found tutorials how to do this with chan_sip or with IAX2, but not with PJSIP. There are also several tutorials availible that bind an asterisk server to an external provider, but thats not what I want to do.</p>
  
  <p>Please help me, at least with a links to rich tutorials or information websites on that topic!</p>
  
  <p>Thank you</p>