This repository was archived by the owner on Jan 15, 2022. It is now read-only.
forked from ethanhugg/ikran
-
Notifications
You must be signed in to change notification settings - Fork 3
JavaScript API Reference
emannion edited this page Oct 3, 2011
·
20 revisions
- window.navigator.service.call
For example - "let ikran = window.navigator.service.call". If the variable "ikran" is then null, Firefox was unable to load the add-on.
- setProperty(name, value)
setProperty is used to change an internal variable from its default value. Current property names are:
- LocalVoipPort - default 5060
- RemoteVoipPort - default 5060
- startP2PMode(dn, callback)
Starts listening for incoming call by binding on port 5060 (changeable by setProperty of LocalVoipPort). Prepares system for placeP2PCall(). "dn" is an identifier for the call, like "1001", and will be used by the other peer in the call to placeP2PCall().
- placeP2PCall(dn, ip, ctx, callback)
Initiates a call to a peer listening with startP2PMode(). "dn" is the identifier used by peer, and "ip" is address of peer.
- registerUser(devicename, dn, password, proxyip, callback)
- placeCall(dn, ctx, callback)
- answerCall(ctx, callback)
You must be on an active call to send DTMF digits. Can send 1 or many digits using sendDigits.
- sendDigits('123#')
- hangupCall()
- unregisterUser()