Evo Voice

<back to all web services

QueueNodeWaitCallback

The following routes are available for this service:
All Verbs/nodes/queue/wait-callback
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.Nodes.CallCenter
Imports Voice.Api.Twilio
Imports Voice.Api.Nodes.Messaging

Namespace Global

    Namespace Voice.Api.Nodes.CallCenter

        Public Partial Class QueueNodeWaitCallback
            Inherits TwilioRequestBase
            Public Sub New()
                WaitMusic = New List(Of QueueWaitMusic)
            End Sub

            Public Overridable Property WaitMusic As List(Of QueueWaitMusic)
            Public Overridable Property QueueName As String
            Public Overridable Property AccountId As String
            Public Overridable Property SessionId As String
            Public Overridable Property RecordingReady As String
            Public Overridable Property RecordCall As Boolean
            Public Overridable Property RecordedFile As String
            Public Overridable Property RecordedFileUrl As String
        End Class

        Public Partial Class QueueWaitMusic
            Public Overridable Property Mode As QueueWaitMusicModes
            Public Overridable Property AudioFile As String
            Public Overridable Property Text As String
            Public Overridable Property TextVoice As SayVoices
            Public Overridable Property NumTimes As Integer
        End Class

        Public Enum QueueWaitMusicModes
            Audio
            Text
        End Enum
    End Namespace

    Namespace Voice.Api.Nodes.Messaging

        Public Enum SayVoices
            Man
            Woman
            Polly_Mads_Danish_Male
            Polly_Naja_Danish_Female
            Polly_Lotte_Dutch_Female
            Polly_Ruben_Dutch_Male
            Polly_Nicole_Australian_Female
            Polly_Russell_Australian_Male
            Polly_Amy_British_Female
            Polly_Brian_British_Male
            Polly_Emma_British_Female
            Polly_Raveena_Indian_Female
            Polly_Ivy_US_Female
            Polly_Joanna_US_Female
            Polly_Joey_US_Male
            Polly_Justin_US_Male
            Polly_Kendra_US_Female
            Polly_Kimberly_US_Female
            Polly_Matthew_US_Male
            Polly_Salli_US_Female
            Polly_Geraint_Welsh_Male
            Polly_Celine_French_Female
            Polly_Mathieu_French_Male
            Polly_Chantal_French_Canadian_Female
            Polly_Hans_German_Male
            Polly_Marlene_German_Female
            Polly_Vicki_German_Female
            Polly_Dora_Iceland_Female
            Polly_Karl_Iceland_Male
            Polly_Carla_Italian_Female
            Polly_Giorgio_Italian_Male
            Polly_Mizuki_Japanese_Female
            Polly_Takumi_Japanese_Male
            Polly_Liv_Norwegian_Female
            Polly_Jacek_Polish_Male
            Polly_Jan_Polish_Female
            Polly_Ewa_Polish_Female
            Polly_Maja_Polish_Female
            Polly_Ricardo_Portuguese_Male
            Polly_Vitoria_Portuguese_Female
            Polly_Cristiano_Portuguese_Male
            Polly_Inese_Portuguese_Female
            Polly_Carmen_Romanian_Female
            Polly_Maxim_Russian_Male
            Polly_Tatyana_Russian_Female
            Polly_Conchita_Spanish_Female
            Polly_Enrique_Spanish_Male
            Polly_Miguel_Latin_American_Male
            Polly_Penelope_Latina_American_Female
            Polly_Astrid_Swedish_Female
            Polly_Filiz_Turkish_Male
            Polly_Gwyneth_Welsh_Female
        End Enum
    End Namespace

    Namespace Voice.Api.Twilio

        Public Partial Class TwilioRequestBase
            Implements IPost
            Public Overridable Property CallSid As String
            Public Overridable Property AccountSid As String
            Public Overridable Property From As String
            Public Overridable Property To As String
            Public Overridable Property CallStatus As String
            Public Overridable Property ApiVersion As String
            Public Overridable Property Direction As String
            Public Overridable Property ForwardedFrom As String
            Public Overridable Property CallerName As String
            Public Overridable Property ParentCallSid As String
            Public Overridable Property StirVerstat As String
            Public Overridable Property Called As String
            Public Overridable Property CalledZip As String
            Public Overridable Property CalledCity As String
            Public Overridable Property CalledState As String
            Public Overridable Property CalledCountry As String
            Public Overridable Property Caller As String
            Public Overridable Property CallerCity As String
            Public Overridable Property CallerState As String
            Public Overridable Property CallerZip As String
            Public Overridable Property CallerCountry As String
            Public Overridable Property FromCity As String
            Public Overridable Property FromState As String
            Public Overridable Property FromZip As String
            Public Overridable Property FromCountry As String
            Public Overridable Property ToCity As String
            Public Overridable Property ToState As String
            Public Overridable Property ToZip As String
            Public Overridable Property ToCountry As String
            Public Overridable Property MessageSid As String
            Public Overridable Property SmsId As String
            Public Overridable Property MessagingServiceSid As String
            Public Overridable Property Body As String
            Public Overridable Property NumMedia As Integer
            Public Overridable Property MediaContentType0 As String
            Public Overridable Property MediaUrl0 As String
            Public Overridable Property MediaContentType1 As String
            Public Overridable Property MediaUrl1 As String
            Public Overridable Property MediaContentType2 As String
            Public Overridable Property MediaUrl2 As String
            Public Overridable Property Index As Integer
            Public Overridable Property InstanceSid As String
            Public Overridable Property EventType As String
            Public Overridable Property ChannelSid As String
            Public Overridable Property Attributes As String
            Public Overridable Property ClientIdentity As String
            Public Overridable Property MediaContentType As String
            Public Overridable Property MediaSid As String
            Public Overridable Property Identity As String
            Public Overridable Property Digits As String
            Public Overridable Property SpeechResult As String
            Public Overridable Property Confidence As Double
            Public Overridable Property CallDuration As Integer
            Public Overridable Property RecordingUrl As String
            Public Overridable Property RecordingSid As String
            Public Overridable Property RecordingDuration As Integer
            Public Overridable Property RecordingStatus As String
            Public Overridable Property TranscriptionSid As String
            Public Overridable Property TranscriptionText As String
            Public Overridable Property TranscriptionUrl As String
            Public Overridable Property TranscriptionStatus As String
            Public Overridable Property DialCallStatus As String
            Public Overridable Property DialCallSid As String
            Public Overridable Property DialCallDuration As Double
            Public Overridable Property DialBridged As Boolean
            Public Overridable Property QueueResult As String
            Public Overridable Property QueueSid As String
            Public Overridable Property QueueTime As Integer
            Public Overridable Property ConferenceSid As String
            Public Overridable Property FriendlyName As String
            Public Overridable Property StatusCallbackEvent As String
            Public Overridable Property Muted As Boolean
            Public Overridable Property Hold As Boolean
            Public Overridable Property EndConferenceOnExit As Boolean
            Public Overridable Property StartConferenceOnEnter As Boolean
            Public Overridable Property EventName As String
            Public Overridable Property AssistantSid As String
            Public Overridable Property DialogueSid As String
            Public Overridable Property UserIdentifier As String
            Public Overridable Property CurrentInput As String
            Public Overridable Property CurrentTask As String
            Public Overridable Property DialoguePayloadUrl As String
            Public Overridable Property Memory As String
            Public Overridable Property Channel As String
            Public Overridable Property FaxSid As String
            Public Overridable Property FaxStatus As String
            Public Overridable Property NumPages As Integer
            Public Overridable Property MediaUrl As String
            Public Overridable Property ErrorCode As String
            Public Overridable Property ErrorMessage As String
        End Class
    End Namespace
End Namespace

VB.NET QueueNodeWaitCallback DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /nodes/queue/wait-callback HTTP/1.1 
Host: evovoice.io 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"waitMusic":[{"mode":"Audio","audioFile":"String","text":"String","textVoice":"Man","numTimes":0}],"queueName":"String","accountId":"String","sessionId":"String","recordingReady":"String","recordCall":false,"recordedFile":"String","recordedFileUrl":"String","callSid":"String","accountSid":"String","from":"String","to":"String","callStatus":"String","apiVersion":"String","direction":"String","forwardedFrom":"String","callerName":"String","parentCallSid":"String","stirVerstat":"String","called":"String","calledZip":"String","calledCity":"String","calledState":"String","calledCountry":"String","caller":"String","callerCity":"String","callerState":"String","callerZip":"String","callerCountry":"String","fromCity":"String","fromState":"String","fromZip":"String","fromCountry":"String","toCity":"String","toState":"String","toZip":"String","toCountry":"String","messageSid":"String","smsId":"String","messagingServiceSid":"String","body":"String","numMedia":0,"mediaContentType0":"String","mediaUrl0":"String","mediaContentType1":"String","mediaUrl1":"String","mediaContentType2":"String","mediaUrl2":"String","index":0,"instanceSid":"String","eventType":"String","channelSid":"String","attributes":"String","clientIdentity":"String","mediaContentType":"String","mediaSid":"String","identity":"String","digits":"String","speechResult":"String","confidence":0,"callDuration":0,"recordingUrl":"String","recordingSid":"String","recordingDuration":0,"recordingStatus":"String","transcriptionSid":"String","transcriptionText":"String","transcriptionUrl":"String","transcriptionStatus":"String","dialCallStatus":"String","dialCallSid":"String","dialCallDuration":0,"dialBridged":false,"queueResult":"String","queueSid":"String","queueTime":0,"conferenceSid":"String","friendlyName":"String","statusCallbackEvent":"String","muted":false,"hold":false,"endConferenceOnExit":false,"startConferenceOnEnter":false,"eventName":"String","assistantSid":"String","dialogueSid":"String","userIdentifier":"String","currentInput":"String","currentTask":"String","dialoguePayloadUrl":"String","memory":"String","channel":"String","faxSid":"String","faxStatus":"String","numPages":0,"mediaUrl":"String","errorCode":"String","errorMessage":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

(string)