Posted by itserich on April 8, 2011 at 10:32pm
I need a way to route callers for a small office setting to pre recorded information.
It would be "to hear about X press 1, to hear about y press 2" type of call for now.
It seems this would be simple with VOIP Drupal but I do not know how to create the script.
If anyone has worked on this, would like to work on it together, or has other ideas let me know.
Comments
Re: Small Office Phone Routing
Hello itserich,
Sorry for taking so long to get back to you. I was waiting for the version 6.x-1.x-beta3 of the API to be released. It makes the creation of scripts like yours very easy. Here's an example:
$script = new VoipScript('voipscript_small_office_ivr');
// NOTE: you don't need to declare the line above if you're creating your script directly from the browser, via voipscriptui.module
$script->addSay(t('Welcome to our office hot line. '));
$script->addLabel('office_menu');
$options_menu = t('For sales, dial 1. For customer support, dial 2. For hours of operation, dial 3. To hang up, dial the star key. ');
$input_options = array(
'1' => 'sales',
'2' => 'customer support',
'3' => 'hours',
'*' => 'hang up',
'i' => 'hang up',
't' => 'hang up'
);
$invalid_msg = t('Invalid option selected.');
$script->addRunIvrMenu($options_menu, $input_options, $invalid_msg);
$script->addGoto('%ivr_option_selected');
$script->addLabel('sales');
$script->addSay('Sales department');
$script->addGoto('hang up');
$script->addLabel('customer support');
$script->addSay(t('Customer support department'));
$script->addGoto('hang up');
$script->addLabel('hours');
$script->addSay(t('Our office is open Monday to Friday from 9am to 5pm.'));
$script->addGoto('office_menu');
$script->addLabel('hang up');
$script->addSay(t('Thanks so much for calling our office. Bye bye.'));
$script->addHangup();
BTW, I've just included the above script as an example in the voipscriptsamples.module. It's now available in the 6.x-1.x branch. Let me know if you have any questions, ok?
Leo
Thanks Leo. I hope to get
Thanks Leo. I hope to get more interactive eventually such as the "status" of nodes, which for us represents a unique item. This could represent a shipment for a retailer, and so on.
Looking forward to the May 12 webinar.
Thanks for this.