Documentation

voximplant.infocall.startwithsound

Scope: catalog Permissions to execute: for all

Makes a call to the specified number with playback of .mp3 format file by URL. This method is accessible to the user with granted access permission for the Outbound call - Action - Any.

To obtain access to the method, application should request the access permission for the Call. The right is specified during registration of the application.

Function parameters

ParameterDescription
FROM_LINE ID of the line, from which the call will be made. List of available lines can be received by the voximplant.line.get method.
TO_NUMBER Number to be called.
URLAddress of .mp3-recording for playback.

Example

BX24.callMethod(
	'voximplant.infocall.startwithsound',
	{
		"FROM_LINE": "reg1332",
		"TO_NUMBER": "7911xxxxxxx",
		"URL": "http://your.domain/path/file.mp3",
	},
	function(result)
	{
		if(result.error())
			console.error(result.error());
		else
			console.info(result.data());
	}
);


© «Bitrix24», 2001-2024
Up