This site is no longer updated.Go to new Conversational Cloud docs

Call routing


When configuring telephony, it is possible to create multiple connections that will use different logins, but the same host/protocol/port, active registration and allowed inbound calls.

Routing is performed for such connections. Calls to numbers specified in the login are distributed to the corresponding SIP trunks and then to different bot channels.

Transferring a call from a bot script to another SIP trunk

When transferring a call from a bot script to an agent, you can specify the transferChannel optional field:

$response.replies.push({
      type:"switch",
      closeChatPhrases: "Reset the agent",
      firstMessage: "",
      phoneNumber: "79216665544",
      transferChannel : "237-test-237-VDQ-28334674"        // botId
      });

Set the transferChannel parameter to the bot’s botId. You can copy the botId value from the interface: go to the project > click Channels in the control panel > copy botId under the channel name.

If the transferChannel: "botId" field is specified, the call is transferred via the SIP trunk for this channel. Parameters of the connected SIP trunk are applied.

If an incorrect botId is specified or the field is not specified, the call is transferred through the SIP trunk where the phone call was established.