I making some scripts that Phone A calls to Phone B and phone B should answer the call and after 20sec it hangup.
My problem is phone b never answer the incoming call.
temp = int(callstate)
if temp == 3:
if temp == 6:
def main(action, num):
if action == 'dial':
elif action == 'wait':
the ideia of my code is when call state is 3 (EStatusRinging) wait incoming call then answer it. Am i using telefone.incoming badly?
if i put "telefone.incoming_call()" after "elif action == 'wait'" it just ignore the code and execute the next line.
perhaps iam missing something or i miss understand the code on how to use incoming_call. Could somebody explain how it works?