twilio.voice.redirect

type: meya.twilio.voice.component.redirect
class: TwilioVoiceRedirectComponent
path: /meya/twilio/voice/component/redirect.py
signature: -

Redirect

Transfers control of a call to the TwiML at a different URL

Parameters:

url

method: GET/POST

Fields

fieldsignaturerequiredtypedefaultdescription               
specSpecnullOverride the original spec for this element
contextdict{}
Send context data with this component's event
sensitiveboolfalseMark this component's event as sensitive
triggerslist[]Activate these dynamic triggers when the component runs
urlstr
methodstr

Examples

Basic

triggers:
  - keyword: meya.twilio.voice.component.redirect
steps:
  - type: meya.twilio.voice.component.redirect
    url: STRING
    method: STRING

Full

triggers:
  - keyword: meya.twilio.voice.component.redirect
steps:
  - type: meya.twilio.voice.component.redirect
    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
    url: STRING
    method: STRING