type: meya.twilio.voice.component.reject
class: TwilioVoiceRejectComponent
path: /meya/twilio/voice/component/reject.py
signature: -
Reject
Rejects an incoming call to your Twilio number without billing you.
Parameters:
reason: Tells Twilio what message to play when rejecting a cal
- rejected
- busy
Fields
field | signature | required | type | default | description |
---|---|---|---|---|---|
spec | ○ | ○ | Spec | null | Override the original spec for this element |
context | ○ | ○ | dict | {} | Send context data with this component's event |
sensitive | ○ | ○ | bool | false | Mark this component's event as sensitive |
triggers | ○ | ○ | list | [] | Activate these dynamic triggers when the component runs |
reason | ○ | ◉ | RejectReason |
Examples
Basic
triggers:
- keyword: meya.twilio.voice.component.reject
steps:
- type: meya.twilio.voice.component.reject
reason: busy|rejected
Full
triggers:
- keyword: meya.twilio.voice.component.reject
steps:
- type: meya.twilio.voice.component.reject
spec:
type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
context:
STRING: ANY
sensitive: false
triggers:
- type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
reason: busy|rejected