Brekeke PBX Version 2 IVR Script Developer s Guide Brekeke Software, Inc.



Similar documents
Brekeke PBX Web Service

Brekeke PBX Version 2 User Guide Brekeke Software, Inc.

Brekeke PBX Version 3 Web Service Developer s Guide Brekeke Software, Inc.

Net-PBX IVR/Auto Attendant How-to Guide

Brekeke SIP Server Version 3 Using a Third-Party Database Tutorial Brekeke Software, Inc.

Table of Contents GETTING STARTED Enter Password Dialog...3 Using Online Help...3 System Configuration Menu...4

Find Me Call Forwarding

ONcbx Feature Guide UC Desktop Client

Brekeke PBX Version 3 Administrator's Guide (Basic) Brekeke Software, Inc.

SIP Trunking using Optimum Business Sip Trunk Adaptor and the Zultys MX250 IP PBX

Routing a Call. Properly route calls

PBX Administrator Guide

The Customer Portal will allow you to administrate your Arch system via the Internet. From the portal you can:

CMG 7.5. Quick Guide InConference. Makes your extension a conference room. Rev A4

Brekeke PBX Version 3 Administrator's Guide (Basic) Brekeke Software, Inc.

Feith Rules Engine Version 8.1 Install Guide

Auto Fill Functionality

Feith Dashboard iq Server Version 8.1 Install Guide

OfficeServ 7100 IP-PBX. SIP Trunking using the Optimum Business Sip Trunk Adaptor and the Samsung

COMSPHERE 6700 SERIES NETWORK MANAGEMENT SYSTEM

Hermes.Net IVR Designer Page 2 36

Cisco Unified Communications Manager Auto-Attendant

OmniTouch 8400 Instant Communications Suite. My Instant Communicator Desktop User guide. Release 6.7

Virtual Contact Center

Accounts Payable Workflow Guide. Version 12.0

Application Note. Receiving Analog In-Band CPID with the Dialogic 1000 Media Gateway Series

Creating IBM Cognos Controller Databases using Microsoft SQL Server

Contents LOGIN. Order an Official Transcript National Student Clearinghouse Tutorial Page 1 of 9

SonicWALL SSL VPN 3.5: Virtual Assist

Mobile Merchant Reference Guide

Compuprint 4247 Serial Matrix Printers

Litigation Support connector installation and integration guide for Summation

A Guide to Connecting to FreePBX

Intel NetMerge Call Processing Software Introduction

ERFECT PBX. Admin Training Guide

Accounts Payable Workflow Guide. Version 11.2

Tech Bulletin IPitomy AccessLine SIP Provider Configuration

Emerald. Cisco IVR - Prepaid Voice Version 1.1. Emerald Management Suite IEA Software, Inc.

PBX Manager Portal v2.0

Electronic Call Answer Services

Reading an sent with Voltage Secur . Using the Voltage Secur Zero Download Messenger (ZDM)

Creating a Google Play Account

StarWind iscsi SAN Software: Installing StarWind on Windows Server 2008 R2 Server Core

Configuring Shared Line Appearances over Analog Trunks

Advanced Client Phone Training

Dramatically simplifying voice and data networking. IVR Editor HOW-TO Guide

How To Install The Sipura Spa 2000

Enterprise Toolbar User s Guide. Revised March 2015

Using ProjectWise Explorer for File Transfer

January 23, 2010 McAfee SaaS Continuity User Guide

IPOne Phone System User Interface Guide

Mediatrix 3000 with Asterisk June 22, 2011

ProxySG TechBrief Downloading & Configuring Web Filter

InfoPrint 4247 Serial Matrix Printers. Remote Printer Management Utility For InfoPrint Serial Matrix Printers

Feith Document Database Version 8.1 Install Guide

Wire Transfer Services, Interactive Voice Response System

SmartOffice Configuration Guide for Microsoft Windows XP Service Pack 2

Enswitch Administrator Guide

WE VoIP User Guide For OfficeServ 7000 Series

DocuSign for Salesforce Administrator Guide v6.1.1 Rev A Published: July 16, 2015

Positron G-320 Business Phone System Setup Guide

Creating Database Tables in Microsoft SQL Server

BCM Rls 6.0. Feature Codes. Task Based Guide

Auto Attendant Setup & Operation

StarWind iscsi SAN Software: Tape Drives Using StarWind and Symantec Backup Exec

CLIENT APPLICATION USER GUIDE

Wildix W04FXO Whitepaper

RiOffice Users Manual

Windows XP Chinese Character Support Installation Instruction

CWOPA Broadband Users. Windows Operating System

Auto Attendant or IVR Setup Guide DigiCloud IP PBX Solution

INTRODUCTION 3 XYZ EXAMPLE 3 CONNECTING THE FAXFINDER TO THE IP OFFICE SWITCH 4 CONFIGURING THE FAXFINDER FOR INTER-OPERATION -- THE XYZ EXAMPLE 4

Signatures. Advanced User s Guide. Version 2.0

Application Note. IP8000 Conference Phone Configuration Guide. Table of Contents. Overview. Requirements. ST October 25, 2007

Corporate Telephony Toolbar User Guide

Virtual Contact Center

MyReports Recommended Browser Settings MYR-200a

Desktop Configurations For General Ledger and Financial Reports. User Guide

Configuration guide for Switchvox and Cbeyond.

Brekeke PBX Version 3 Administrator's Guide (Advanced) Brekeke Software, Inc.

SYMETRIX SOLUTIONS: TECH TIP February 2014

Easy Manage Helpdesk Guide version 5.4

TIBCO ActiveMatrix BusinessWorks Plug-in for Big Data User s Guide

Vonage Business Solutions for Android User Guide

Basic Smart Fax. For Support: (800) Support Hours: M-F 8:30 am 9:00 pm Sat-Sun: 10:00 am 3:00 pm

ReadySHARE Printer. Easy to Set Up: Instructions. 350 East Plumeria Drive San Jose, CA USA

UX Mail Fax Features. Empowered by Innovation. P/N Rev 1, September 15, 2008 Printed in U.S.A. V4.21

VoIP Service Reference

1. Login to with your User ID and password. Select Virtual Receptionist from the Basic Services tab.

DOCUMENTATION MICROSOFT SQL BACKUP & RESTORE OPERATIONS

Reference Guide for Inter-Operation with Avaya IP Office INTRODUCTION 3 XYZ EXAMPLE 3 CONNECTING THE FAXFINDER TO THE IP OFFICE SWITCH 4

Tech Bulletin IPitomy Paetec SIP Provider Configuration

Digium IP-PBX. SIP Trunking using the Optimum Business SIP Trunk Adaptor and the Digium IP-PBX

How To Configure A Linksys Pap2T With Virtualbpx On A Cell Phone On A Pc Or Ipad Or Ipa (For Ipa) On A Ipa Or Ip2T On A Sim Sim (For Sim Sims

Transcription:

Brekeke PBX Version 2 IVR Script Developer s Guide Brekeke Software, Inc.

Version Brekeke PBX Version 2 IVR Script Developer s Guide Revised: February 2010 Copyright This document is copyrighted by Brekeke Software, Inc. Copyright 2010 Brekeke Software, Inc. This document may not be copied, reproduced, reprinted, translated, rewritten or readdressed in whole or part without expressed, written consent from Brekeke Software, Inc. Disclaimer Brekeke Software, Inc. reserves the right to change any information found in this document without any written notice to the user. 1 Brekeke PBX IVR Script Developer s Guide

1. INTRODUCTION... 4 2. SETTING UP IVR SCRIPT... 4 2.1. Creating Notes with JavaScript... 4 2.2. Setting up a user extension as IVR - Script... 4 2.3. Making a call... 5 3. IVR METHODS... 5 void answer()... 5 void canceltransfer()... 5 String cleardtmfbuffer()... 5 boolean connected()... 5 int countcallsinqueue()... 5 int countcallsinqueue( String queue )... 5 void dropcall()... 6 void exec( String note, String function, String param )... 6 String getlanguage()... 6 String getmynumber()... 6 String getothernumber()... 6 String getparameter()... 6 String getproperty( String key )... 6 String getuserproperty( String key )... 7 String play(string playlist)... 7 2 Brekeke PBX IVR Script Developer s Guide

String play(string playlist, boolean ignoredtmf)... 7 String playandinput(string playlist, int maxdtmflength, int timeout, String terminatedtmf )... 8 void record( String file, int timeout, String terminatedtmf )... 8 void response18x( int rescode )... 9 void response18x( int rescode, boolean bsdp )... 9 void setlanguage( String lang )... 9 boolean transfer( String number, int timeout )... 9 3 Brekeke PBX IVR Script Developer s Guide

1. Introduction This document explains configuration of Brekeke PBX feature IVR Script. With IVR Script feature, Brekeke PBX administrators can write JavaScript code to customize IVR behavior as they need. To use IVR Script feature, Java 6 and Brekeke PBX license with Script option are required. 2. Setting Up IVR Script The example below shows the steps on how to create extension 2020 as IVR-Script user and Brekeke PBX configurations to play customized voice prompt when there is a call to the extension 2020. The customized voice prompt is saved as.ul file. 2.1. Creating Notes with JavaScript 1) Go to Brekeke PBX > [Options] > [Notes], and create a Note named "test" 2) Put the following sample JavaScript in the text filed of Note "test" and save it. function f_1(ivr){ ivr.play("(c:\\<path_to_the_sound_file>\\<file_name>.ul)"); ivr.dropcall(); } 2.2. Setting up a user extension as IVR - Script In this part, an IVR-Script user extension is set up and calls the JavaScript code defined in Note "test" at step 2.1 1) Create a PBX user extension 2020 2) Select [IVR] field as Script 3) Click [OK] at popup window and save the settings, then the [Script Settings] fields will show at the bottom of User 2020 edit page 4) set [Script Settings] fields as following: Note: test (Note name which is created in 2.1) Function: f_1 (function name which is created in 2.1) Parameter: no settings for this example The value set in the field can be passed to function in Notes as the second parameter in function, such as function guidance( ivr, param ){ // actions} Auto Answer: yes (If set no, method answer() is needed in JavaScript) 4 Brekeke PBX IVR Script Developer s Guide

2.3. Making a call 1) Call to extension 2020 2) Brekeke PBX will look for the sound file at the location defined in ivr.play() in step 2.1 and play the file 3) Then drop the call. 3. IVR Methods void answer() Description: Answer the call This method is needed when [Auto Answer] field is set NO at IVR-Script user edit page. void canceltransfer() Description: Back to the conversation with the original party String cleardtmfbuffer() Description: Get DTMF signals from the signal buffer Return: DTMF characters boolean connected() Description: Check if the session is connected; Returns: Return true if the session has been established; Return false if disconnected. int countcallsinqueue() Description: Get the count of calls in the queue. This method can be called when this IVR works as a call queue Return: The number of calls in the queue int countcallsinqueue( String queue ) Description: Get the count of calls in the queue. queue: a string of queue name Return: The number of calls in the queue 5 Brekeke PBX IVR Script Developer s Guide

void dropcall() Description: Drop current call void exec( String note, String function, String param ) Description: Execute another JavaScript function in another note. note: Note name function: Function name param: Only one parameter String getlanguage() Description: Get a language code of the current language Return: Current language code "en" for English, "ja" for Japanese or another language code if you have custom String getmynumber() Description: Get phone number that is used for current call Return: The phone number String getothernumber() Description: Get phone number of the other party of current call Return: The other party s phone number String getparameter() Description: Get a parameter of this call Return: The parameter of the call in string String getproperty( String key ) Description: Retrieve a property value from Brekeke PBX. The parameters may set at [Options] > [Advanced] Key: a string of a property name Return: A string containing the property value. 6 Brekeke PBX IVR Script Developer s Guide

String getuserproperty( String key ) Description: Retrieve a user property value. Key: a string of property name Return: A string containing the property value. String play(string playlist) Description: Play a sequence of sound files playlist = *play-resource play-resource = dtmf-character / prompt / voice-lib / ulaw-file dtmf-character = DIGIT / "A" / "B" / "C" / "D" / "*" / "#" prompt = "{" prompt-name "}" voice-lib = "{" voice-lib-name ":" voice-lib-param "}" voice-lib-name = "name" / "date" / "time" / "number" voice-lib-param = 1*(ALPHA / DIGIT) ulaw-file = "(" fullpath-ulaw-file ")" Returns: DTMF character if a button was pressed Example: ivr.play( {ring} ); Play the file named ring which is uploaded to Brekeke PBX from [VoicePrompts]>[System] ivr.play( {ring}1234 ); First play the file named ring which is uploaded to Brekeke PBX from [VoicePrompts]> [System], then play 1234 as DTMF. String play(string playlist, boolean ignoredtmf) Description: Play a sequence of sound files playlist = *play-resource play-resource = dtmf-character / prompt / voice-lib / ulaw-file dtmf-character = DIGIT / "A" / "B" / "C" / "D" / "*" / "#" prompt = "{" prompt-name "}" voice-lib = "{" voice-lib-name ":" voice-lib-param "}" voice-lib-name = "name" / "date" / "time" / "number" voice-lib-param = 1*(ALPHA / DIGIT) ulaw-file = "(" fullpath-ulaw-file ")" 7 Brekeke PBX IVR Script Developer s Guide

ignoredtmf = true or false; Stop playing with DTMF Returns: DTMF characters if button were pressed. Always empty if ignoredtmf is true. String playandinput(string playlist, int maxdtmflength, int timeout, String terminatedtmf ) Description: Play a sequence of sound files and retrieve DTMF signals. playlist = *play-resource play-resource = dtmf-character / prompt / voice-lib / ulaw-file dtmf-character = DIGIT / "A" / "B" / "C" / "D" / "*" / "#" prompt = "{" prompt-name "}" voice-lib = "{" voice-lib-name ":" voice-lib-param "}" voice-lib-name = "name" / "date" / "time" / "number" voice-lib-param = 1*(ALPHA / DIGIT) ulaw-file = "(" fullpath-ulaw-file ")" maxdtmflength: Maximum length of DTMF signals timeout: Length of time (milliseconds) for detecting DTMF signals terminatedtmf: DTMF characters used to terminate to retrieve DTMF input Returns: Detected DTMF signals Example: ivr.playandinput("{call}", 10, 5000, "#"); Play the file named call and detect DTMF input within 5000 millisecond (5s) after playing sound file. Input # at the end to terminate DTMF detection if the number of input digits is less than 10. void record( String file, int timeout, String terminatedtmf ) Description: Record sound data file: File name to store the recorded sound timeout: length of record time (millisecounds) terminatedtmf: DTMF characters input to terminate recording 8 Brekeke PBX IVR Script Developer s Guide

void response18x( int rescode ) Description: Send 18x response without SDP This method can be called before method answer() rescode: Response code. Set 180 or 183. void response18x( int rescode, boolean bsdp ) Description: Send 18x response. This method can be called before method answer() rescode: Response code. Set 180 or 183. bsdp: Add SDP or not to the 18x response void setlanguage( String lang ) Description: Set a language code for current language lang: Language code. such as "en", "ja" or another language code if you have custom boolean transfer( String number, int timeout ) Description: Start attended transfer number: Destination phone number timeout: the length of time to ring the transfer recipient destination (Milliseconds) Return: Return true if get connection for the transfer destination; otherwise, return false. 9 Brekeke PBX IVR Script Developer s Guide