By using the Aculab site, you agree with our use of cookies.
right  Talk To Us!

simple connect Sample

A simple inbound or outbound application that connects an answered inbound or outbound call to a new outbound call.
Some audio (holdmusic.wav) is played to the original call until the new call is answered. When answered it is played a message and then connected to the original call.

This sample requires one Extra Channel. Please configure your service accordingly.
It also requires the wav file holdmusic.wav to be available in the cloud media store.

Uses actions: Connect, Play

    • {
          "actions" :
          [
              {
                  "connect":
                  {
                      "destinations" :
                      [
                          "443069990123"
                      ],
                      "call_from" : "443069999876",
                      "hold_media":
                      {
                          "play" :
                          {
                              "play_list" :
                              [
                                  {
                                      "file_to_play" : "holdmusic.wav"
                                  }
                              ]
                          }
                      },
                      "secondary_call" :
                      {
                          "first_page" :
                          {
                              "url" : "ConnectFirst"
                          }
                      },
                      "next_page" :
                      {
                          "url" : "ConnectNext"
                      }
                  }
              },
              {
                  "play" :
                  {
                      "play_list" :
                      [
                          {
                              "text_to_say" : "Sorry, I could not connect your call. Goodbye."
                          }
                      ]
                  }
              }
          ],
          "token" : "my connect instance id",
          "api_version": "2.0"
      }