Created
          September 28, 2017 14:58 
        
      - 
      
 - 
        
Save TheBeachMaster/c93972910b62149e0370948b19749e17 to your computer and use it in GitHub Desktop.  
    Africa's Talking Voice Examples
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- When your app is hit,this is the response --> | |
| <Response> | |
| <GetDigits timeout="5" numDigits="1"> <!--Give the user 5 secons to respond...When Key 1 is pressed do something...--> | |
| <Play url="https://someURLwhereYourMP3Resides/media/file.wav/orfile.mp3"> <!--Play some music as we wait --> | |
| </Play> | |
| </GetDigits> | |
| <Redirect> | |
| https://toSomeOtherUrlThatcanHandletheirRequest.com/stuff | |
| </Redirect> | |
| <GetDigits timeout="5" numDigits="2"> <!--Give the user 5 secons to respond...When Key 2 is pressed do something...--> | |
| <Play url="https://someURLwhereYourMP3Resides/media/file2.wav/orfile2.mp3"> <!--Play some music as we wait --> | |
| </Play> | |
| </GetDigits> | |
| <Redirect> | |
| https://toSomeOtherUrlThatcanHandletheirSecondRequest.com/stuff/redirectFile | |
| </Redirect> | |
| <!-- ...etc ...--> | |
| </Response> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- Redirected--> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- In this section we're handling your redirect request --> | |
| <!-- Here we're gonna call a bunch of numbers if one fails we'll try the next including our sip phone (if we have it) we'll play some music as we wait to connect,we'll record the session as well--> | |
| <Response> | |
| <Dial phoneNumbers="+2547XXXXXXXXX,+2547XXXXXXXXX,+2507XXXXXXXXX,[email protected]" ringbackTone="https://someUrltoPlay.com/file.wav/file.mp3" record="true" sequential="true" /> | |
| <!-- If all lines are busy we'll let our caller know --> | |
| <Say> | |
| All our lines are currently busy.Please hold as we connect you to next available agent. | |
| </Say> | |
| </Response> | |
| <!-- Or we can handle a call with one number --> | |
| <Response> | |
| <Dial phoneNumbers="+2547xxxxxxx" /> | |
| <Say> | |
| Hold as we connect to our agent | |
| </Say> | |
| <Enqueue holdMusic="http://someAwesomeMusicforOurCaller/mediaSomewhere/file.mp3/waveMusic.wav" /> | |
| </Response> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment