Intelメーカー05-2342-002の使用説明書/サービス説明書
ページ先へ移動 of 36
V oice API f or Linu x Demo Guide June 2005 05-2342-00 2.
Voice API for Linux D emo Guide – June 2005 INFORMA TION IN THIS DO CUMENT IS PRO VIDED IN CONNECTION WITH INTEL® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED , BY EST OPPEL OR OTHER WISE, TO ANY INTELLECTU AL PROPER TY RIGHTS IS GRANTED BY THIS DOCUMENT .
Voice API for Linux Demo Guide – June 2005 3 Contents Revision H istory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 About This Publication . . . . . . . . . . . . . . .
Voice API for Linux Demo Guide — June 2005 4 Re vision Histor y This re vision history summarizes the changes made in each published vers ion of this document. Document No. Publication Date Description of Revisions 05-2342-002 June 2005 Demo Descriptions chapter : Added custser v , dpddemo , and d4 0demo .
Voice API for Linux Demo Guide — June 2005 5 About This Pub lication The following topics provide info rmation about t he V oice API for Linux Demo Guide : • Purpose • Applicability • Intended.
6 Voice API for Linux Demo Guide — June 2005 About This Public ation How to Use This Pub lication This publication assumes that you understand co mputer telephony terms and concept s, and are familiar with the Linux operating system and the C programming languag e.
Voice API for Linux Demo Guide — June 2005 7 1 1 . Demo Descriptions This chapter pro vides a brief descripti on of the voice demonstration programs . The following demonstration programs ar e provid ed with the vo ice software. These demos are supported on Springware boards on ly .
8 Voice API for Linux Demo Guide — June 2005 Demo Descriptions.
Voice API for Linux Demo Guide — June 2005 9 2 2 . System Requirements The requirements for runn ing the voice demos are described in the following sections: • Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10 Voice API for Linux Demo Guide — June 2005 System Requireme nts.
Voice API for Linux Demo Guide — June 2005 11 3 3 . Preparing to Run the Demos This chapter provides in formation on preparations to follow before running a voice demo. Before you run a voice demo prog ram, ensure that you h av e performed the following: 1.
12 Voice API for Linux Demo Guide — June 2005 Preparing to Run the Demos.
Voice API for Linux Demo Guide — June 2005 13 4 4 . Running the Demos This chapter describes how to run the voice demos. T opics include: • Starting the Demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14 Voice API for Linux Demo Guide — June 2005 Running the Demos 4.1.2 Starting the pansr demo T o run the pansr demo, follo w these instructions: 1. Open a command prompt window and go to the directory where the demo is located.
Voice API for Linux Demo Guide — June 2005 15 Running the Demo s Note: On Linux, the demo name is case-sens iti ve and must be entered as shown. The demo option s are described in T able 1, “V oice Demo Options” , on page 15. If you don’t specify an option, defau lt options are assumed.
16 Voice API for Linux Demo Guide — June 2005 Running the Demos Examples T o run the cbansr demo on a D/41JCT -LS board, specify the following: . /cbansr -d1 -n4 -fAnalog T o run the pansr demo on a D/120JCT -LS board using four channels, specify the following: .
Voice API for Linux Demo Guide — June 2005 17 Running the Demo s 7. Hang up the teleph one. 8. Press Ctrl-C to terminate the demo. Note: If you do not terminate the demo using Ctrl-C, the driver for the demo does not unload after quitting the program, necessi tating a reboot before another demo can be loaded.
18 Voice API for Linux Demo Guide — June 2005 Running the Demos 5. Press Ctrl-C to term inate the demo. Note: If you do not terminate the demo using Ctrl -C, the dri ver for the demo does not unload after quitting the prog ram, necessitating a reb oot before another demo can be loaded.
Voice API for Linux Demo Guide — June 2005 19 Running the Demo s 4.4 Stopping the Demo Press Ctrl-C at any time to e xit a voice demo. All channels and files a r e properly closed by the demo.
20 Voice API for Linux Demo Guide — June 2005 Running the Demos.
Voice API for Linux Demo Guide — June 2005 21 5 5 . Demo Details This chapter provides more detail about the voice demos. Y ou do not need this inf ormation to run the demos successfully . • Files Used b y cbansr and pansr . . . . . . . . . . . . .
22 Voice API for Linux Demo Guide — June 2005 Demo Details 5.3 Files Used b y dpddemo T able 4 lists the files that are used by the dpddemo. 5.4 Files Used b y d40demo T able 5 lists the files that are used by the d40demo. T able 3. Files U sed by the custs erv File Name Purpose custserv Exec utable file custserv .
Voice API for Linux Demo Guide — June 2005 23 Demo Details 5.5 Supplementary Information f or d40demo Supplementary information on the d40demo is giv en in the following topics: • Source Code Overvie w • Global V ariables • Initialization Routine • Menu System Routine • Messaging System Routine 5.
24 Voice API for Linux Demo Guide — June 2005 Demo Details Since d40demo is al so a working order entry syst em, the source code contains nonsystem routines that are specific to the or d er entry application. The d40demo .c module contains th e routines that manage a simple database, which are cal led the application specific routines.
Voice API for Linux Demo Guide — June 2005 25 Demo Details if (rc = = 0) { close( 0); . . The code that follo ws the close( ) function call w ithin the if statement is only executed in the child process. The parent process f ails the (rc == 0) comparison and loops back to the while statement.
26 Voice API for Linux Demo Guide — June 2005 Demo Details When input is recei ved from the cal ler , four things can happen: cont rol is passed to another menu; an action is performed; an action is performed and control is passed to another menu; an error message is played (in v alid input).
Voice API for Linux Demo Guide — June 2005 27 Demo Details that can be used, DL_PREV and DL_CURR. DL _PREV returns the caller to the previous menu, and DL_CURR return s the caller to the current menu. me_validfnc V alidation Functi on - Pointer to the function that validates the caller's response.
28 Voice API for Linux Demo Guide — June 2005 Demo Details menu are implemented as a NULL-terminated ar ray of DL_MNUOPTS structures. An array of DL_MNUOPTS structures allows a menu to have an arbitrary amount of options.
Voice API for Linux Demo Guide — June 2005 29 Demo Details DL_D A T A Data Structure The DL_D A T A structure defines the termination conditions for gett ing the response to the menu options. It holds the values for se veral fields that map to corresponding D V_TPT elem ents used when getting a caller's response.
30 Voice API for Linux Demo Guide — June 2005 Demo Details */ rspent ry=(DL_MNUO PTS *)gt_data( digbuf,cur_ menu->me_valid fnc,cur_men u->me_prompt, cur_menu ->me_retry, cur_menu->me_ er.
Voice API for Linux Demo Guide — June 2005 31 Demo Details menu_engine( ) then transfers control to the next menu indicated in the mo_nxtmenu field. If the v alue of the f ield is NULL, control is passed to the default menu, specified in the me_defmenu field.
32 Voice API for Linux Demo Guide — June 2005 Demo Details } /* Not a valid res ponse */ playmsg (retry); } while ( --numretry) ; /* * No val id response within max. # of retries , so call fata l error * handle r for this menu, if any p rovided, an d then hang up and go idl e.
Voice API for Linux Demo Guide — June 2005 33 Demo Details check_term( ) uses ATDX_TERMMSK( ) attribute to check t he termination t ype. If the I/O function was terminated for an y of the cases, the function calls a longjmp( ) and returns to idlestate.
34 Voice API for Linux Demo Guide — June 2005 Demo Details The message system uses the DL_MSGS and DL_M SGTBL structures to store the information needed for a DX_IOTT structure.
Voice API for Linux Demo Guide — June 2005 35 Inde x A A7 answer.h 21 , 22 asynchronous callback programming model 7 asynchronous polled programming model 7 C cbansr demo command line options 15 description 7 exiting 17 files used 21 , 22 running 16 starting 13 cbansr executable fil e 21 cbansr.
36 Voice API for Linux Demo Guide — June 2005 pansr.exe 21 prerequisites fo running the demo 11 prompt.h 22 PROMPT.VOX 23 S software requirements 9 Springware boards 7 stopping a demo 19 system requirements 9 T toolkit 7 d4xtools.
デバイスIntel 05-2342-002の購入後に(又は購入する前であっても)重要なポイントは、説明書をよく読むことです。その単純な理由はいくつかあります:
Intel 05-2342-002をまだ購入していないなら、この製品の基本情報を理解する良い機会です。まずは上にある説明書の最初のページをご覧ください。そこにはIntel 05-2342-002の技術情報の概要が記載されているはずです。デバイスがあなたのニーズを満たすかどうかは、ここで確認しましょう。Intel 05-2342-002の取扱説明書の次のページをよく読むことにより、製品の全機能やその取り扱いに関する情報を知ることができます。Intel 05-2342-002で得られた情報は、きっとあなたの購入の決断を手助けしてくれることでしょう。
Intel 05-2342-002を既にお持ちだが、まだ読んでいない場合は、上記の理由によりそれを行うべきです。そうすることにより機能を適切に使用しているか、又はIntel 05-2342-002の不適切な取り扱いによりその寿命を短くする危険を犯していないかどうかを知ることができます。
ですが、ユーザガイドが果たす重要な役割の一つは、Intel 05-2342-002に関する問題の解決を支援することです。そこにはほとんどの場合、トラブルシューティング、すなわちIntel 05-2342-002デバイスで最もよく起こりうる故障・不良とそれらの対処法についてのアドバイスを見つけることができるはずです。たとえ問題を解決できなかった場合でも、説明書にはカスタマー・サービスセンター又は最寄りのサービスセンターへの問い合わせ先等、次の対処法についての指示があるはずです。