Call ended trigger

Post your questions and help other users.

Moderator: Martin

Post Reply
eldron
Posts: 45
Joined: 27 Apr 2015 08:21

Call ended trigger

Post by eldron » 14 Oct 2015 21:38

Hi,
I am using a flow that starts when i answer or start a call and ends when the call ends.
The flow works fine, but when I call my provider to check my balance the flow starts but does not stop.
It´s not a real call, but a ussd code that´s sent and I then get an on screen message with my balance.
The trouble is that this "call" does not really end, so the flow does not end.
Is there any way to solve this by either not registering the call as a call or by ending it when the on screen message pops up?
I tried the "notification on screen" trigger, but that did not seem to work.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Call ended trigger

Post by Martin » 16 Oct 2015 19:11

Hi,

You could use a condition Call State to check if the call is still in state Off-hook immediately after the trigger or after an action Sleep: 1s.
Alternatively you could use a condition to check if it's a special number that needs not to be handled by the call flow, something like condition Expression: startsWith(called_number, "#") could work.

Regards,
Martin

eldron
Posts: 45
Joined: 27 Apr 2015 08:21

Re: Call ended trigger

Post by eldron » 17 Oct 2015 16:32

Went for the "call state" condition and it works like a charm.
Thanks again for your help.

Post Reply