×
Namespaces

Variants
Actions

Archived:Telephony in m

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: 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
Symbian
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.
37 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×