How can my program understand that a call is received...

thanks...