Hangup call using Automation in Iphone

I am planning to automate Call make break test in my iphone. I can establish call using Shortcut/Automation but not able to hangup call, there is no way I can do it. Can someone please suggest Hangup call using Automation in Iphone

iPhone 17, iOS 26

Posted on Jul 8, 2026 10:19 PM

Reply
3 replies

Jul 9, 2026 10:46 PM in response to mav_Iphone17

Unfortunately, iOS does not natively support hanging up an active call through the Shortcuts or Automation app. Apple has not exposed a "End Call" or "Hang Up" action in the Shortcuts framework, so there is no direct Shortcut action available for this.


However, there are a few approaches you can consider for call make/break testing:


1. Use the Phone app's accessibility features: If you are testing on a real device, you can use AssistiveTouch (Settings > Accessibility > Touch > AssistiveTouch) to create a custom gesture that taps the End Call button. This is manual but can be triggered quickly.


2. For automated call testing, consider using Apple's XCUITest framework via Xcode. XCUITest can interact with UI elements including the End Call button programmatically. This is the proper tool for automated iPhone call testing.


3. If you are testing in a controlled environment, you can use a second device to end the call from the other side, which you can automate via Shortcuts on that device using the "Call" action followed by a timed delay and then using the phone's hardware button.


4. Submit feedback to Apple at https://feedbackassistant.apple.com requesting a "End Call" Shortcut action — this is a commonly requested feature.


For true call automation testing on iOS, XCUITest is the most viable path.

Jul 9, 2026 10:52 PM in response to mav_Iphone17

VoIP apps (WhatsApp, Skype, etc.) may sometimes allow call control via their own integrations.


What Call? On an iPhone, you can make and receive various types of calls. Here are the different types:


  1. These are standard voice calls made over the cellular network. They utilize your carrier's voice network to connect you with other phone numbers. Allow phone calls on your iPad, iPod touch, and Mac
  2. FaceTime Audio allows you to make voice calls over Wi-Fi or cellular data using your internet connection. It provides higher audio quality compared to traditional cellular calls.
  3. FaceTime Video enables you to have video calls with other FaceTime users. It uses the front or rear camera on your iPhone to transmit live video during the call. Use FaceTime with your iPhone or iPad - Apple Support (IN)
  4. VoIP (Voice over Internet Protocol) calls use internet connectivity to make phone calls. Apps like Skype, WhatsApp, Viber, and Google Hangouts utilize this technology, allowing you to make voice and video calls over the Internet.
  5. Some carriers support Wi-Fi calling, which allows you to make and receive calls over a Wi-Fi network instead of relying solely on cellular coverage. This can be useful in areas with weak cellular reception. Make a call with Wi-Fi Calling - Apple Support (IN)
  6. The App Store offers numerous calling apps that utilize different technologies. These apps can provide additional features and options for making calls, such as international calling, call recording, and more.


It's important to note that the availability of certain call types may depend on your iPhone model, iOS version, and carrier.



Hangup call using Automation in Iphone

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.