"On the phone" status should be set when connected not when ringing
A difference should be made between incoming and outgoing calls:
For outgoing calls you are "on the phone" when the remote phone is ringing even if the remote party did not yet answer.
For incoming calls this could be different, i.e. setting the "on the phone" status not until the remote party has answered the call.