title: Making a call programmatically from iPhone app and returning back to the app after ending the call
body: <p>I am trying to initiate a call from my iphone app,and I did it the following way..</p>
  
  <pre><code>-(IBAction) call:(id)sender
  {
  
      UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Call Besito" message:@"\n\n\n"
                                                     delegate:self cancelButtonTitle:@"Cancel"  otherButtonTitles:@"Submit", nil];
  
  
      [alert show];
      [alert release];
  }
  
  - (void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex
  {
      if (buttonIndex != [alertView cancelButtonIndex])
      {
        NSString *phone_number = @"0911234567"; // assing dynamically from your code
          [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString    stringWithFormat:@"tel:%@", phone_number]]]; 
           NSString *phone_number = @"09008934848";
          NSString *phoneStr = [[NSString alloc] initWithFormat:@"tel:%@",phone_number];
          NSURL *phoneURL = [[NSURL alloc] initWithString:phoneStr];
          [[UIApplication sharedApplication] openURL:phoneURL];
          [phoneURL release];
          [phoneStr release];
      }
  }
  </code></pre>
  
  <p>by the above code..<strong>I am able to successfully make a call..but when I end a call,I'm not able to return to my app</strong></p>
  
  <p>So, I want to know how to achieve,that..also please tell me how we can initiate a call using webview...</p>