172
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
interface Telephony : EventTarget { | interface Telephony : EventTarget { | ||
TelephonySession newSession(DOMString number); // Multiple number call?? | TelephonySession newSession(DOMString number); // Multiple number call?? | ||
readonly attribute TelephonySession liveSession; | readonly attribute TelephonySession liveSession; | ||
attribute Function onincoming; | attribute Function onincoming; | ||
} | } | ||
Line 14: | Line 12: | ||
readonly attribute DOMString originNumber; | readonly attribute DOMString originNumber; | ||
readonly attribute DOMString number; | readonly attribute DOMString number; | ||
// Do the call | // Do the call | ||
void call(); | void call(); | ||
Line 24: | Line 21: | ||
[optional] unsigned long toneDuration, | [optional] unsigned long toneDuration, | ||
[optional] unsigned long intervalDuration); | [optional] unsigned long intervalDuration); | ||
readonly attribute DOMString readyState; // "calling", "incomming", "connected", "closed", "busy" | readonly attribute DOMString readyState; // "calling", "incomming", "connected", "closed", "busy" | ||
// Can we get info on when a call goes from "trying to place call" to "calling"? | // Can we get info on when a call goes from "trying to place call" to "calling"? | ||
Line 30: | Line 26: | ||
attribute Function ondisconnect; | attribute Function ondisconnect; | ||
attribute Function onbusy; | attribute Function onbusy; | ||
void answer(); // Should this make the session the active one? | void answer(); // Should this make the session the active one? | ||
void hangUp(); | void hangUp(); |
edits