|Ismerje meg, hogyan tudja beállítani és használni a legkorszerűbb mobil, VoIP, SMS és web funkciókat.|
In the Call command an API extension calls a number and once the phone is picked up, a CallConnected request will be sent to the specified URL. In response to this request a set of commands in OzML format can be provided regarding this call (Figure 1). There are OzML examples on the bottom half of the page.
Figure 1 - Call Application/XML example
|Parameter name||Value||Description||Default value||Mandatory|
|command||string value, Call||Specifies the type of the HTTP API command.||(None)||Yes|
|The phone number you want to call.||(None)||Yes|
|The phone number of the API extension which makes the call.||(None)||Yes|
|The phone number the callee sees as the caller.||ApiExtension parameter value||No|
|The displayed name of the caller.||ApiExtension parameter value||No|
|The URL the OzML response is downloaded from. This is where the CallConnected notification is sent to. If it is empty or the URL can't be downloaded then the call will be hung up.||(None)||Yes|
|This URL is requested if any errors occur during the call.||(None)||No|
|These parameters are only required if office user authentication is set in the HTTP API:|
|This is the username of an Ozeki Phone System XE office user.|
|This is the password belonging to the username.|
(200, 300, 301, 302, 303, 401, 402)
|Returns the status code of the response. For more infromation go to the status code reference page|
e.g. Command successfully executed
|Returns the description of the response code. For more infromation go to the status code reference page|
After the target party picks the phone up it delays for 1 second then says: "Congratulations, this is your first OzML Response command." Then it delays 1 more second and says: "Have a nice day!" Then it plays testsound.wav from the local C drive. Finally the call will be hung up.
After the target party picks the phone up it delays 1 second then says: "Hello, you will be transferred to another extension. Goodbye!" Then it blind transfers the target party to extension 101. If it can't be blind transfered the next command will execute which says: "Sorry, but blind transfer failed. Please setup extension number 101 in the system." and the call will be hung up.
After the target party picks the phone up it delays 1 second then says: "Hello, a test SMS will be sent." Then it tries to send an SMS to recipient 45026467 with this content: "Hello from Ozeki Phone System XE!" After that it delays 1 more second and the call will be hung up.
This speaks the 4 sentences between the <InitialCommands></InitialCommands> nodes repeatedly with a 10 second delay and scans the pressed numbers at the same time.
By pressing 1 an SMS will be sent to 45026467 containing: "Hello from Ozeki Phone System XE!"
By pressing 2 this sentence will be read by the speak engine: "You pressed button 2. You did nothing."
By pressing 3, you will be blind transferred to number 101. If the transfer was unsuccessfull it says: "Sorry, but blind transfer failed to extension 101."