Class Dial.Builder

    • Constructor Detail

      • Builder

        public Builder​(String number)
        Create a <Dial> with number
      • Builder

        public Builder()
        Create a <Dial> with child elements
    • Method Detail

      • hangupOnStar

        public Dial.Builder hangupOnStar​(Boolean hangupOnStar)
        Hangup call on star press
      • recordingStatusCallback

        public Dial.Builder recordingStatusCallback​(URI recordingStatusCallback)
        Recording status callback URL
      • recordingStatusCallback

        public Dial.Builder recordingStatusCallback​(String recordingStatusCallback)
        Recording status callback URL
      • recordingStatusCallbackMethod

        public Dial.Builder recordingStatusCallbackMethod​(HttpMethod recordingStatusCallbackMethod)
        Recording status callback URL method
      • recordingStatusCallbackEvents

        public Dial.Builder recordingStatusCallbackEvents​(List<Dial.RecordingEvent> recordingStatusCallbackEvent)
        Recording status callback events
      • recordingStatusCallbackEvents

        public Dial.Builder recordingStatusCallbackEvents​(Dial.RecordingEvent recordingStatusCallbackEvent)
        Recording status callback events
      • answerOnBridge

        public Dial.Builder answerOnBridge​(Boolean answerOnBridge)
        Preserve the ringing behavior of the inbound call until the Dialed call picks up
      • ringTone

        public Dial.Builder ringTone​(Dial.RingTone ringTone)
        Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial
      • sequential

        public Dial.Builder sequential​(Boolean sequential)
        Used to determine if child TwiML nouns should be dialed in order, one after the other (sequential) or dial all at once (parallel). Default is false, parallel
      • referUrl

        public Dial.Builder referUrl​(URI referUrl)
        Webhook that will receive future SIP REFER requests
      • referUrl

        public Dial.Builder referUrl​(String referUrl)
        Webhook that will receive future SIP REFER requests
      • referMethod

        public Dial.Builder referMethod​(HttpMethod referMethod)
        The HTTP method to use for the refer Webhook
      • build

        public Dial build()
        Create and return resulting <Dial> element