Solved

J2me code to terminat phone call

Posted on 2004-04-25
6
622 Views
Last Modified: 2012-08-13
Does anyone know of an api/code for disconnecting a phone conversation?

I developed a midlet (with iden - midp2.0) that is activated by a push registry. The push registry will also activate it if there is a socket connection during a phone call (atleast it worked on the emulator...).
I want the midlet to then terminate that phone conversation.

I hope my explanation is clear. I'll really appreciate some example code since rather new at wireless programing.

Thank you.
0
Comment
Question by:bhnv9
  • 2
6 Comments
 
LVL 15

Expert Comment

by:jimmack
ID: 10917563
You can't manage calls from within a MIDlet (unless you have some specific proprietary libraries).
0
 

Author Comment

by:bhnv9
ID: 10936542
Hi-

What do you mean by "specific proprietary libraries".



0
 
LVL 15

Accepted Solution

by:
jimmack earned 100 total points
ID: 10936767
There are some (a very limited number) of devices that provide libraries (APIs) that allow control of the device outside of the normal security sandbox.

As SimonTay is usually quite keen to point out ;-)...

" With the Siemens API for the TC45, you can use any of the modules AT commands, so you can do it there.

www.tdc.co.uk/gprs/tc45.htm"

(http://www.experts-exchange.com/Programming/Wireless_Programming/Q_20963204.html)

If you can send AT commands, then (I assume) you could do something like ATH to hang up a call.  However, on a more standard mobile phone, I doubt that you will be able to get hold of any APIs that allow this kind of access.  The only place you *might* be able to find something like this would be from the developers area of the handset manufacturers site (eg. Nokia - http://forum.nokia.com or Motorola - http://www.motocoder.com).

One other thing to consider is the way in which your socket "push" is intended to work.  On a live network (as opposed to within the emulator) mobile devices don't have fixed IP addresses, so pushing to a socket that is based on an IP address can't work at the moment.  As far as I can tell, the only practical push method that should work at the moment is SMS.

I would be interested to see any other opinions on this last point.
0
 
LVL 4

Expert Comment

by:SimonTay
ID: 11058765
Yep - ATH should do it! (or maybe dropping DTR if it's connected via a serial port).

Simon
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

MAC Filtering: MAC filtering is like handing a list of names to a doorman. If someone comes to the door and mentions a name, this name is checked by the doorman on his list and granted or denied access by this. This means that if someone menti…
DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now