title: How to redirect audio to speakers in the AppRTC iOS example?
body: <p>I'm trying to redirect audio to speakers in the <a href="https://webrtc.googlecode.com/svn-history/r4318/trunk/talk/examples/ios/AppRTCDemo/">AppRTC iOS example</a>.</p>
  
  <p>I tried:</p>
  
  <pre><code>AVAudioSession* session = [AVAudioSession sharedInstance];
  
  //error handling
  BOOL success;
  NSError* error;
  
  //set the audioSession category. 
  //Needs to be Record or PlayAndRecord to use audioRouteOverride:  
  
  success = [session setCategory:AVAudioSessionCategoryPlayAndRecord
                           error:&amp;error];
  
  if (!success)  NSLog(@"AVAudioSession error setting category:%@",error);
  
  //set the audioSession override
  success = [session overrideOutputAudioPort:AVAudioSessionPortOverrideSpeaker
                                        error:&amp;error];
  if (!success)  NSLog(@"AVAudioSession error overrideOutputAudioPort:%@",error);
  
  //activate the audio session
  success = [session setActive:YES error:&amp;error];
  if (!success) NSLog(@"AVAudioSession error activating: %@",error);
  else NSLog(@"audioSession active");
  </code></pre>
  
  <p>There are no errors, but it doesn't work. How can I fix this?</p>