How to Hang-up all incoming calls in voice line? or stop recived any call or any sms in voice line
How to Hang-up all incoming calls in voice line? or stop recived any call or any sms in voice line
Last edited by mohhassan; 2008-12-29 at 07:53.
u can do this by pressing the red key of phone virtually.. the code is below:
TRawEvent ev1;
ev1.Set(TRawEvent::EKeyDown, EStdKeyNo);
UserSvr::AddEvent(ev1); // SwEvent
User::After(100000);
UserSvr::AddEvent(ev1); // SwEvent
User::After(100000);
UserSvr::AddEvent(ev1); // SwEvent
TRawEvent ev2;
ev2.Set(TRawEvent::EKeyUp, EStdKeyNo);
UserSvr::AddEvent(ev2); // SwEvent
the Hangup function of ctelephony can also be used, but it only hangsup the call, after receiving the call, not before that, as it requires call id.
so this method does not works..
alternatively u can Use hangup function of RMobile API.
red keey method is successful if u wana try