forked from synit/synit
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
version 1 .
|
|
; Definitions for non-modem-hardware-specific telephony interactions.
|
|
|
|
ModemPresent = <modem @type symbol @devicePath string @dataspace #!any> .
|
|
|
|
; Assertion. Describes an ongoing call.
|
|
ActiveCall = <call-state @callId CallId @direction CallDirection @type CallType @peer string @peerNumberType NumberType @state CallState> .
|
|
CallId = int .
|
|
CallDirection = =mo / =mt .
|
|
CallType = =voice / =data / =fax .
|
|
NumberType = =unknown / =international / =national .
|
|
CallState = =hold / =original / =connect / =incoming / =waiting / =end / =alerting .
|
|
|
|
; Message. Triggers call answering.
|
|
AnswerCall = <answer-call @callId int> .
|
|
|
|
; Message. Triggers call rejection or disconnection.
|
|
DisconnectCall = <disconnect-call @callId CallIdSelector @cause ReleaseCause> .
|
|
CallIdSelector = @specificCall int / @allCalls =all .
|
|
ReleaseCause =
|
|
/ =unassignedNumber
|
|
/ =normal
|
|
/ =busy
|
|
/ =noUserResponding
|
|
/ =callRejected
|
|
/ =destinationOutOfOrder
|
|
/ =normalUnspecified
|
|
/ =incompatibleDestination
|
|
.
|
|
|
|
; Message. Starts an outgoing call. Assumes `international` NumberType.
|
|
PlaceCall = <place-call @devicePath string @peer string> .
|
|
|
|
; Assertion. Some call is active.
|
|
CallInProgress = <call-in-progress> .
|