Hi all,

I want to know the last event in log ; in other words , when I use this code below :

telephone.incoming_call() # waits for an incoming call
telephone.call_state(handle_call)

it calls the handle_call function when there is (Answering - Missed - Dialing - Ringing) events , and I need to know what is the last event (Missed - Out - In) , how can we do that ??

many thanks in advance.

Can't you return the needed value from telephone.incoming_call() function as return value?

Hi tonyjv,

I don't understand what you mean, can you explain it more.

Many thanks in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.