u/atrifleamused

Calls not waiting for a state change

Calls not waiting for a state change

Afternoon,

I'm trying to set up a simple loop to call a competition line, pass a few key strokes and then hang up the call.

The loop isn't working as I thought it would. It makes a call, but I think it's happening too fast for the phone state to have changed.... So only one of the 3 calls is placed.

If an active call is running outside the application, then the phone state is detected and the delay works until the call is competed... At which point it makes 3 calls instantly and 1 succeeds.

Any help is appreciated

J

u/atrifleamused — 12 days ago