|Ismerje meg, hogyan tudja beállítani és használni a legkorszerűbb mobil, VoIP, SMS és web funkciókat.|
The Play command plays an audio file (local or downloaded from URL) when an API extension call is in progress. It is also used to play sound to chosen parties of the conversation (caller, callee or all).
It is widely used in IVR-s playing pre-recorded sounds or when a client's call is transferred and the company plays music to the client till the phone is picked up by the support staff. It is also used to play a sound file during a conversation for example if one of the parties are low in telephone credits it could say: 'You have 1 dollar left in your phone account. Please recharge it as soon as possible!'
Note: CallId is only considered in case of third party call controlling. Party is only considered for third party call control, but in this case it is mandatory.
(caller, callee or all)
|The destination party to play the sound to.||No|
|The call ID of the call you want to run the Play command on. Defaultly it is known from the CallChanged notification.||No|
(URL or localhost addresse)
|The destination of the audio file. When a relative path is provided, it will be relative to ContentStorage/Static directory in Ozeki Phone System XE install directory. It can be HTTP URL as well where it's downloaded from and cached (based on the webserver settings). This parameter can be provided between the command nodes.||Yes|
(true or false)
|If you want to repeat the file set it to true else set it to false. It's default value is false.||No|
<?xml version="1.0"?> <Response> <Play Repeat="true">hello.wav</Play> </Response>
<?xml version="1.0"?> <Response> <Play>hello.wav</Play> <Delay>5</Delay> <Hangup></Hangup> </Response>
<?xml version="1.0"?> <Response> <Play Party="all">hello.wav</Play> </Response>
1st it plays hello.wav from ContentStorage/Static directory in Ozeki Phone System XE install directory to all participants of the phone call. Then says to all participants: "The callee will be transfered to number 1001." Then it transfers the callee to 1001.
<?xml version="1.0"?> <Response> <Play Party="all">hello.wav</Play> <Speak Party="all">The callee will be transfered to number 1001.</Speak> <BlindTransfer TransferorParty="callee" Target="1001"></BlindTransfer> </Response>