synit/protocols/schemas/telephony.prs

53 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-12-16 19:31:41 +00:00
version 1 .
2021-12-16 22:20:17 +00:00
; Definitions for non-modem-hardware-specific telephony interactions.
2021-12-16 19:31:41 +00:00
2021-12-16 22:20:17 +00:00
ModemPresent = <modem @type symbol @devicePath string @dataspace #!any> .
2022-01-04 13:41:56 +00:00
Address = <address @numberType NumberType @number string> .
2022-01-04 18:44:42 +00:00
NumberType = =unknown / =international / =national / =gsm0338 .
2022-01-04 13:41:56 +00:00
2021-12-16 22:20:17 +00:00
; Assertion. Describes an ongoing call.
2022-01-04 13:41:56 +00:00
ActiveCall = <call-state @callId CallId @direction CallDirection @type CallType @peer Address @state CallState> .
2021-12-17 23:26:00 +00:00
CallId = int .
2021-12-16 22:20:17 +00:00
CallDirection = =mo / =mt .
CallType = =voice / =data / =fax .
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
.
2021-12-17 23:26:00 +00:00
2022-01-04 13:41:56 +00:00
; Message. Starts an outgoing call.
PlaceCall = <place-call @devicePath string @peer Address> .
2021-12-17 23:26:00 +00:00
2022-01-04 13:41:56 +00:00
; Assertion. Some call is active - be it alerting, connected, ringing, etc.
2021-12-17 23:26:00 +00:00
CallInProgress = <call-in-progress> .
2022-01-04 13:41:56 +00:00
; Assertion. An incoming call is signalling the user, asking for a decision about answer/reject/ignore.
PhoneRinging = <phone-ringing> .
; Assertion. A remote party's phone should be ringing.
PeerRinging = <peer-ringing> .
; Message. An incoming SMS has been received.
2022-01-04 18:44:42 +00:00
SmsDelivery = <sms-delivery @smsc Address @peer Address @timestamp time.Stamp @body string> .
; Assertion. An outgoing SMS should be transmitted.
SmsTransmission = <sms-transmission @smsc Address @peer Address @body string @continuation #!=ok > .
2022-01-04 13:41:56 +00:00
; Assertion. Enable speakerphone mode, if available.
Speakerphone = <speakerphone> .