Buat autodialer untuk OzekiPhone


OzML Autodialer

This guide presents how to build an Autodialer in your Ozeki Phone System XE using an OzML script. Below you can see an OzML script that makes it possible to dial several telephone numbers simultaneously.

1. Create the Autodialer script in OzML

  1. <Response>
  2. <UserInput Timeout="5" Repeat="true">
  3. <InitialCommands>
  4. <Play>welcome.wav</Play>
  5. <Speak>
  6. Your customer account number is 454565. Press 1 to send it as an
  7. SMS to your mobile, press 2 if you have recorded it and you
  8. don't wish to receive it as an SMS
  9. </Speak>
  10. </InitialCommands>
  11. <Inputs>
  12. <Input Key="1">
  13. <SendSms Recipient="+062554670">
  14. Your customer account number is 454565.
  15. </SendSms>
  16. <Speak>We sent you the SMS. Good bye!</Speak>
  17. </Input>
  18. <Input Key="2">
  19. <Speak>Good bye!</Speak>
  20. </Input>
  21. </Inputs>
  22. </UserInput>
  23. </Response>
This code plays a .wav audio file welcome messeage with the <Play> OzML command. And it speaks the 2 sentences (using speak engine) between the <InitialCommands> </InitialCommands> nodes repeatedly (Repeat="true") with a 5 second delay (Timeout=”5”) and scans the pressed numbers at the same time.
By pressing 1 the system will send you an SMS with your customer account number in it. The <SendSms>command implements the sms sending functionality, you only need to set your phone number and the message of the sms. After the send ypu will hear a sentence: „We sent you the SMS. Good bye!”.
If you pressed the button 2 that means you have recorded your customer account number, so you will hear a good bye sentence between the <Speak></Speak> nodes. You can find more command descriptions and more things to know about the OzML language on our OzML reference book page.

2. Host the script

Option 1: Use your database
By using SQL OzML Extension you have a great opportunity to manage your calls through your database. You can insert call parameters into a table, and the SQL OzML Extension will create the calls automatically with the given call parameters in the records. Learn more
Figure 1 - SQL OzML

Popular posts from this blog

Dunia Aplikasi OpenSource

Mengenal Fungsi Dan Komponen Panel Listrik

Membangun Ruang Server (1)