首頁>>廠商>>IVR系統(tǒng)平臺廠商>>Pronexus

[英文]多線程IVR開發(fā)
Multithreading in IVR Development

Fouad Jennawi 2010/10/29

Multithreading is one of the very interesting subjects of programming; end users know it as the reason that keeps their computers highly responsive, and developers use it as one of the techniques to improve the performance of the products that they are developing.


Pronexus VBVoice™ Interactive Voice Response (IVR) software is multi-threaded by design. It separates, on one hand, processing channels from each other and, on the other hand, from the application code. However, the IVR application code is usually done on one thread; the thread that instantiated the VBVoice controls which is called the main thread. This same thread also instantiates and handles the GUI (Graphical User Interface) code.

As application developers started doing more asynchronous coding using multithreading, Pronexus was asked to simplify this process. This is when the WorkerThread control was added to the VBVoice’s collection of controls. WorkerThread not only offers management of a pool of user threads but it also synchronizes them with both the main thread (the thread that all application code is executing) and the particular channel thread.

Simplicity is the key here; the IVR solution developer wraps his code to be executed in a worker thread in a class that implements IVBVRunnable interface. During a call, in the WorkerThread Enter event, the application creates an object that contains the set of parameters to be passed to the worker thread and an instance of wrapper class. VBVoice will kick in the worker thread with the custom code while playing music to the caller and listening to actions, such as hanging up or keying in digits. Later, when the custom code is done, the control exits by firing its Exit event and providing any results from the worker thread plus some useful flags.

The key benefits of the WorkerThread control are:

1.IVR developers don't need to have extensive knowledge of multithreading programming and sophisticated thread synchronization which can get tricky.
2.WorkerThread suggests the recommended way of writing custom thread code which saves time.
3.It offers the best synchronization to telephony functionality.
4.It simplifies debugging, as you only have to set the WorkerThread timeout to a high value and put a break point in your custom code.
5.It is extensible, as application developers can add more threads if they need to and implement other ways of synchronization to the worker thread as well as the main thread.

Responses to “Multithreading in IVR Development”
1.Sean says:
October 28, 2010 at 1:17 pm
In my experience, IVR programmers should consider multithreading for example for any applications which will do database lookups. In particular with high-density IVR systems, channel stability can be impacted by blocking the main thread. In a telephony platform, milliseconds count, and delays on the main thread cause instability. A multithread approach in application design will ensure you have the foundation of a robust IVR.

2.KO says:
October 28, 2010 at 2:34 pm
There is a case study that talks to some of the benefits that you mention. Check out http://tinyurl.com/callcenter-casestudy. To give you an idea, a large call center was able to reduce code lines (and therefore time and costs) by 50% using multithreading to develop their dialer application.

CTI論壇報(bào)道



相關(guān)閱讀:
Pronexus推出VBVoice7 免費(fèi)提供IVR開發(fā)工具包 2010-09-08
Pronexus推出IVR解決方案定位器 2010-08-17
Vocantas采用VBVoice為大型公共事業(yè)機(jī)構(gòu)開發(fā)IVR 2010-03-16
CabCALL采用支持HMP的VBVoice開發(fā)IVR訂車方案 2010-03-15
VBVoice 5.6構(gòu)建強(qiáng)有力的電話和語音解決方案 2010-01-27

分類信息:  CTI文摘_與_IVR技術(shù)
寿阳县| 谷城县| 红桥区| 运城市| 灵台县| 克什克腾旗| 贺兰县| 广安市| 临漳县| 钟山县| 年辖:市辖区| 白银市| 乐平市| 万源市| 平安县| 灵武市| 库车县| 永年县| 岱山县| 定边县| 根河市| 英吉沙县| 阿图什市| 上蔡县| 蒙山县| 于都县| 前郭尔| 三河市| 洞头县| 新田县| 桂平市| 教育| 永福县| 益阳市| 浠水县| 建水县| 临湘市| 恩施市| 松阳县| 景洪市| 永城市|