Namespaces
Variants
Actions
(Redirected from Telephony in m)

Archived:Telephony in m

Jump to: navigation, search
Archived.png
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

M on Symbian is not maintained and may not run on current Symbian versions. All M articles have been archived.
Article Metadata

Tested with
Devices(s): Nokia N95, Nokia E90

Compatibility
Platform(s): S60 2nd Edition, S60 3rd Edition, S60 5th Edition

Platform Security
Capabilities: )

Article
Created: bogdan.galiceanu (03 May 2009)
Last edited: hamishwillee (09 May 2013)

Contents

Overview

This article shows how to handle calls in m.

Preconditions

On S60 3rd Edition an incoming call cannot be hung up without being answered first.

Source code

Dialing a number and displaying the call duration

use phone
 
 
//Dial the number
phone.dial("1234567890")
//Wait until the phone is in idle state, meaning the call has been hung up
phone.state(phone.idle)
//Show the duration of the call in milliseconds
print "Duration: " + phone.ms()

Answering a call from a certain number and hanging up

use phone
 
 
//Wait for an incoming call
call = phone.new()
if call["incoming"] = true then
//Check the caller's number
if call["number"] = "1234567890" then
//Answer the call
phone.answer();
//Wait 10 seconds
sleep(10000);
end;
//Hang up the call
phone.hangup()
end

Postconditions

The operations described are performed.

This page was last modified on 9 May 2013, at 05:53.
112 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved