title: Asterisk and automatic hangup
body: <p>I am having some problems with asterisk IP PBX ( FreePBX).</p>
  
  <p>I am having two clients and I want that all of the SIP and RTP traffic should go through proxy. SIP and RTP Traffic is going through the proxy machine currently but I changed the proxy implementation such that instead of routing the media or RTP traffic through asterisk , proxy automatically forwards it to the other client.
  If A and B represents client, P represents proxy  so in case of SIP traffic the flow is</p>
  
  <p>A  &lt;--> P &lt;--> PBX &lt;--> P &lt;--> B</p>
  
  <p>while in the case of RTP traffic the flow is</p>
  
  <p>A  &lt;-->  P &lt;--> B</p>
  
  <p>but now the problem that occurs is the Asterisk automatically issues a hangup request ( bye message) after some time.</p>
  
  <p>How can I solve this problem?</p>