sysapps / telephony

API to manage telephony calls
16 stars 12 forks source link

Invoking dial() twice should result in an AbortError #191

Closed marcoscaceres closed 11 years ago

marcoscaceres commented 11 years ago

In the dial() method, the spec says:

If calls array already contains a TelephonyCall object with identical remoteParty attribute, then an InvalidModificationError exception.

The InvalidModificationError seems a bit illogical here, as the developer doesn't know that some internal array is being modified in an invalid way.

This should really be an "AbortError" IMO ("The operation was aborted.").

zolkis commented 11 years ago

OK.

marcoscaceres commented 11 years ago

It should be possible for a use to place a call to the same number through different telephony services, no? Kinda silly, but possible.

zolkis commented 11 years ago

Yes, I agree, one could call a number with GSM, and with Skype Out, the latter will signal busy. The API should not stop this behaviour.