title: How to implement mute functionality in a PJSIP call on iOS
body: <p>I wanted to implement Mute button in my call. I am working on a VOIP application for iPhone. Now when a call comes and user picks up, I want to display a Mute button so the user can mute the call or conference. I did the same through the PJSIP API.</p>
  
  <pre><code>-(int) mutethecall
  {
      pj_status_t status =   pjsua_conf_adjust_rx_level (0,0);
      status = pjsua_conf_adjust_tx_level (0,0);
      return (PJ_SUCCESS == status);
  }
  -(int) unmutethecall
  {
      pj_status_t status =   pjsua_conf_adjust_rx_level (0,1);
      status = pjsua_conf_adjust_tx_level (0,1);
      return (PJ_SUCCESS == status);
  }
  </code></pre>
  
  <p>The problem is that while this code is working for one to one call, it's not working for conference scenarios.</p>
  
  <p>I wonder if I could turn off the mic directly: could I implement the same using iOS bypassing the PJSIP API? </p>
  
  <p>Is this possible?</p>