title: How to handle RTP session in Xamarin forms for Android and IOS?
body: <p>I am trying make an application that will allow a registered client to make an audio call to another registered client using Wi-Fi(It doesn't require internet). </p>
  
  <p>I was able to successfully register and make call using SIP. </p>
  
  <p>After the call is picked up, I don't know how to handle the RTP stream and connect it with the microphone and speaker of the phone(Android and IOS) to perform normal calling functionality. </p>
  
  <p>I am using Xamarin and SIP Sorcery library. I am new to Xamarin and mobile application development. </p>
  
  <p>Below is a part of code to explain myself a little better:</p>
  
  <pre><code>    async Task Call()
      {
          Console.WriteLine("Start of Calling section");
  
          rtpSession = new RTPMediaSession((int)SDPMediaFormatsEnum.PCMU, AddressFamily.InterNetwork);
  
          // May be somthing like this to connect audio devices to RTP session.
          //get microphone
          //get speaker
          //ConnectAudioDevicesToRtp(rtpSession, microphone, speaker);
  
          // Place the call and wait for the result.
          bool callResult = await userAgent.Call(DESTINATION, ssid, userName, registerPassword, domainHost, rtpSession);
  
          if (callResult)
          {
              Console.WriteLine("Call attempt successful. Start talking");
              //I am reaching to this point and need help with how to move forward from here to support audio calling functionality for both Android and IOS
          }
          else
          {
              Console.WriteLine("Call attempt failed.");
          }
  
      }
  </code></pre>
  
  <p>Any help or direction would be appreciated. Thank you.</p>