First you need 3 profiles to monitor the phone state:
Event: Phone Idle
Variable Clear %Phoning
Event: Phone Offhook
Variable Set, %Phoning, 1
Event: Phone Ringing
Variable Set, %Phoning, 1
Then you can use ‘If %Phoning Is Set‘ to see if you‘re phoning.
Is there a way to detect if call is in progress? Phone Event
原文:http://www.cnblogs.com/shangdawei/p/4511011.html