Call Flow Tree Over View


Call Flow Tree for Score Query System


Every mission has a user defined call flow tree. A call flow tree defines a whole interactive response flow between the start and the end of a call.It guide the action of the mission. It is made up of many phase node.A phase is a session doing a certain single type of thing in a call flow tree. There are following kinds of phases:

Phase Type Action Son Phases
Drop Drop the call None
Idle Do nothing None
Jump Jump to another phase None
Play Play wave files, TTS or send sms messages OnFinished
Record Record sound into a wave file. OnFinished , OnTimeout
Monitor Digit Monitor Digit in the call,once a defined digit found,the flow enter corresponding son phase. OnTimeout, ...OnDigitDetected(x)
Gather Digits Gather a number of digits from the call. OnFinished, OnTimeout
Generate Digits Generate a number of digits in the call. OnFinished
Send Fax Send fax pages in .tif,.doc or .xls files OnFinished, OnError

Receive Fax

Receive Fax pages into tiff file. OnFinished, OnError
Execute Code Execute user defined code to access data. OnFinished, OnError, OnNewPhase
Transfer Transfer calls. OnConnected, OnTimeout

Start point of the call flow tree

Flow can be started from following start points.

Start point Description
Connected This can be caused by answering an incoming call or dialing a call
FaxToneDetected Fax tone is detected after dialing
SmsReceived Sms message is received. System varible CurTelNum will be the number who send the message. The message content will be in smsContent varible.

 

Call flow tree is made up of many phase node.Except Drop,Idle and Jump phase,each phase node has its own son phase nodes,and the son nodes has their own son nodes,this flow continues until a Drop,Idle or Jump phase is met.
Changing a phase node to another type of phase node will cause the son phase nodes of the the orignal phase node to be cut from the flow tree.And the new phase node bring his own son nodes here in the flow tree. Thus the structure of a flow tree can be changed by changing a phase node to another type of phase node.

A phase can be configured to do what you expected.For example in the configuration dialog of a play sound phase,you can select or record an wave file for voice prompt. In the configuration dialog of a monitor digit phase,you can set digits to monitor,each digits will bring a corresponding son phase to the monitor digit phase.

When the mission is run,the call session flows along the flow tree from one phase node to one of its son phase node according to the actual situation at the moment. This tour stoped when the flow enters a Drop phase node or a Idle phase node.In case of drop phase node,it simply drop the call,and the call flow finish its tour. If it reach an Idle phase node,it will do nothing,and wait the other party to disconnected the call. What ever type of phase node the flow is in,once the call is disconnected,it will immediately drop the call and quit from the flow tree. When the call flow is terminated,whether in the case it enter the tail node of the tree or the case the other party disconnect the call,it will prepare for another call.If it is an outbound call mission,it will continue to dial next number,if it is an incoming call mission,it will wait another incoming call.

After the flow tree has been modified,you can save the flow tree by click menu Mission->Save. If you intend to ignore the change,just quit the program without saving.