# gsmCall

Make a GSM call on the Android emulator. Valid actions: 'call', 'accept', 'cancel', 'hold'.

> **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.

## Usage[​](#usage "Direct link to Usage")

```
await browser.gsmCall(phoneNumber, action)
```

## Parameters[​](#parameters "Direct link to Parameters")

| Name          | Type     | Details                                                    |
| ------------- | -------- | ---------------------------------------------------------- |
| `phoneNumber` | `string` | The phone number to use for the GSM call simulation        |
| `action`      | `string` | The action to perform ('call', 'accept', 'cancel', 'hold') |

## Example[​](#example "Direct link to Example")

gsmCall.js

```
it('should simulate a GSM call', async () => {
    // Simulate an incoming call
    await browser.gsmCall('+15551234567', 'call')
    // Accept the call
    await browser.gsmCall('+15551234567', 'accept')
})
```

## Support[​](#support "Direct link to Support")

![Support for android](/assets/images/android-d941e94d5839760141de31c8446b67ce.svg)

**Supported platforms:** Android

note

Refer to the official [Appium driver documentation](https://appium.io/docs/en/latest/ecosystem/) to see which driver versions support this command.
