Hang Up from application after dialing from keypad

Login to reply to this topic.
Mon, 2006-04-03 10:18
Joined: 2006-03-13
Forum posts: 17
Hi


i am facing this peculiar problem. i dial from the keypad and my call watcher catches the EStatusDialing and the EStatusConnected event. when i get that.. i call the call.HangUp() routine.. but it just doesnt work..infact it causes my application to exit


however, if i originate the call from within my application using call.Dial() the hangup routine works fine...

could u please help me out in this...i dunno whatz wrong. i want to hangup a call from my application which has been dialed from the keypad...

pls help..
thanks in advance.
Sid

Tue, 2006-11-21 23:58
Joined: 2004-02-04
Forum posts: 26
Re: Hang Up from application after dialing from keypad
Hello skhimsara,

Were you able to find the solution to your problem?
I'm having the same problem. I can do HangUp() when status of call is connecting but can not do that before when connecting when status is Dialling. I assume I should take the ownership of the outgoing call somehow but I'm not sure how to do that.

If you have any solution please post it here.

Thank you in advance.

Regards,
Sasa

It is always nice to help out people that need help.
http://www.vegaitsourcing.rs
http://www.codeplex.com/aspnetlibrary

Mon, 2006-11-27 22:09
Joined: 2006-10-12
Forum posts: 27
Re: Hang Up from application after dialing from keypad
make sure you are opening the call.  Because you didn't call Dial() on this particular call you need to explicitly open an existing call.  Check out:

RCall::OpenExistingCall() and
RLine::GetCallInfo()

If you try to HangUp() a call that hasn't been opened, your app will panic (crash).

Make sure you Close() your call after you hang up.
  • Login to reply to this topic.