The content of the invention
The technical problem to be solved in the present invention is to provide a kind of method and industry for realizing video interactive voice response business
Be engaged in control point, solve SCE exploitations service period it is longer, the problem of do not possess durability and transplantability.
In order to solve the above technical problems, a kind of method for realizing video interactive voice response business of the present invention, including:
Service control point obtains URL (URL), serial number is added after the URL after traffic incoming call,
HTTP (HTTP) server is sent to, and suffix data is generated for the URL, suffix data is inserted into institute
State in URL address suffix tables of the serial number for index;
The HTTP server inquires about the URL addresses after the URL and serial number is received according to the serial number
Suffix table, obtains corresponding suffix data, and video is played to calling subscribe according to the URL and suffix data.
Further, the suffix data includes the session number and calling number of the traffic;
It is described that video is played to calling subscribe according to the URL and suffix data, including:The HTTP server is described
Traffic application resource, the traffic is identified using the session number, video is obtained according to the URL, according to the calling number
The video got is played to the calling subscribe.
Further, in addition to:
The suffix data is also comprising enabling red-black list mark, and the HTTP server is for the traffic application resource
Before, enable red-black list mark according to described and judge whether the calling number belongs to Red List or blacklist, if belonged to red
List, then perform the operation for traffic application resource;If belonging to blacklist, terminate traffic.
Further, in addition to:
The HTTP server receives the input of calling subscribe, when calling subscribe selection exchanges class function, to institute
State service control point and send business request information, type of message and command code are carried in the business request information;
Whether the service control point judges the business request information by the HTTP service according to the type of message
Device is sent, and performs corresponding exchange class function according to the command code.
Further, in addition to:
The service control point is after corresponding exchange class function is performed, and being obtained according to implementing result needs to calling subscribe
The corresponding URL of video of broadcasting, session number and video type mark are added after the URL, the HTTP server is sent to;
The HTTP server according to receive URL and video type mark obtain video, according to the session number to
The calling subscribe plays the video got.
Further, in addition to:
Client's brand is also carried in the business request information, the service control point is according to client's brand pair
The calling subscribe carries out differentiation processing;
When the command code indicates to perform call forwarding function, call forwarding automatic service class is also carried in the business request information
Type, the service control point is according to the call forwarding automatic service type call forwarding to corresponding automatic service;
When the command code indicates to perform queuing capability, subservice key, institute are also carried in the business request information
State and ranked under attending a banquet of the service control point according to the subservice key to corresponding technical ability group, and according to subservice key record day
Will.
Further, in addition to:
The HTTP server at the end of this side, sends to service control point in the traffic and indicates to hang comprising command code
Machine or the abnormal business request information of HTTP server, and discharge resource;The service control point receives the service request
After message, resource release is carried out;Or,
At the end of this side, message is sent to the HTTP server in the traffic for the service control point, configures institute
The action type of message is stated to delete, session number is carried in the message, and discharge resource;The HTTP server receives described
After message, judge that action type, for deletion, the resource that calling subscribe takes is discharged according to session number.
Further, a kind of service control point, including:General automatic service processing module and information sending module, wherein:
The general automatic service processing module, for after traffic incoming call, obtaining URL (URL),
Serial number is added after the URL, and suffix data is generated for the URL, suffix data is inserted into using the serial number as rope
In the URL address suffix tables drawn;
Described information sending module, for the URL for adding serial number to be sent into HTTP (HTTP) service
Device.
Further, the general automatic service processing module, is additionally operable to receive the business that the HTTP server is sent
Whether request message, judge the business request information by described according to the type of message carried in the business request information
HTTP server is sent, and performs corresponding exchange class function according to the command code, and being obtained according to implementing result needs to master
The corresponding URL of video for making user play, adds session number and video type mark after the URL, is sent to the HTTP clothes
Business device.
Further, a kind of hypertext transfer protocol server, including:Webpage (WEB) application processing module and information are received
Module is sent out, wherein:
Described information transceiver module, URL (URL) and serial number for receiving service control point transmission;
The WEB application processing module, for inquiring about the URL address suffix table according to the serial number, obtains correspondence
Suffix data, video is played to calling subscribe according to the URL and suffix data.
Further, the suffix data includes the session number and calling number of traffic;
The WEB application processing module, specifically for for the traffic application resource, being identified using the session number described
Traffic, video is obtained according to the URL, plays the video got to the calling subscribe according to the calling number.
Further, the WEB application processing module, is additionally operable to receive the input of calling subscribe, in the calling subscribe
When selection exchanges class function, business request information is sent to the service control point, carries and disappears in the business request information
Cease type and command code.
In summary, the present invention provides a set of simple and convenient development environment for video traffic developer, and video traffic is opened
Originator, which need to only pay close attention to video menu flow, need not understand intelligent network knowledge;The less demanding business of WEB exploitation introductions is easily promoted;Compared with
Traditional SCE video traffics WEB exploitations business image quality more preferably, picture and text expression is more enriched.
Embodiment
In view of using webpage (WEB) application and development player function and the function that collects the digits more quick compared with SCE, and can profit
With the power of WEB application IDE, single-step debug, debugging breakpoints are carried out, the real-time of variable can be checked at any time
Value, can both improve development efficiency, can bring convenience, therefore, pass through in present embodiment to programmer's debugging business again
SCE business is responsible for user's access and handles all kinds of exchange events, outgoing call and queue up to turn the exchange class function such as artificial;WEB application is born
Blame menu and various video playbacks;When requirements of process queuing turns artificial or outgoing call, WEB application assembling data pass through
BCSM (Basic Call State Model BCSM) event issues intelligent network, and intelligent network, which is received, notifies corresponding service conversation, business after event
Session is parsed after receiving to data, is then completed subsequent operation according to WEB application instruction, is realized putting in video IVR flows
Sound function and the function that collects the digits are separated from SCE exploitations, in the way of WEB application develops video traffic.
Intelligent network is that each traffic incoming call defines a unique numbering, referred to as session number, and session number uniquely determines one
Individual traffic incoming call, external program can pass through session number and traffic incoming communications;Intelligent network also needs to define a BCSM event,
WEB application is registered on intelligent network, can pass through BCSM events and SCE service communications;SCE business trigger WEB application when
Waiting needs to take session number behind URL addresses, can be with because signaling limitation URL can not carry all information to WEB application
Pass through the mode delivery data such as tables of data;So service menu flow is realized in WEB application, the outgoing call of SCE business realizings, queuing
Upper seat and fax etc. exchange class function;The operation such as seat, fax in outgoing call, queuing is made module by SCE business, and according to behaviour
Make the good calling interface of number definition and make a general automatic service, WEB application can just call the function of needs as needed
Module, in this way, need not understand intelligent network knowledge using this method exploitation video traffic, need only develop the video menu page with WEB.
In present embodiment, player function and the function that collects the digits in intelligent network video IVR are realized using WEB application, are passed through
The general automatic service of SCE exploitations only needs to realize queuing capability, message-leaving function, facsimile function and call forwarding function etc..
As shown in figure 1, each traffic incoming call enter on the service control point in the intelligent network in IVR system it is general from
Dynamic Service Processing Module, general automatic service processing module needs to complete leading process (such as:Obtain systematic parameter etc.), then
Application is set up and is connected with the resource of the WEB application processing module on HTTP (HTTP) server, in number after success
URL URL address configuration tables are preserved in the URL (URL) for needing to send according to being read in storehouse, present embodiment
(VC_URL_config) structure is as shown in table 1:
Table 1
Field name |
Field type |
Can be extremely |
Field description |
name |
varchar2(30) |
Not null |
The title of URL addresses |
URL |
varchar2(100) |
Not null |
URL addresses |
remark |
varchar2(256) |
null |
The detailed description of URL addresses |
When sending URL addresses to WEB application processing module first in call, general automatic service processing module is needed
Some parameters (such as calling number) are passed into WEB application processing module, these parameters are used for WEB application processing module pair
This calling carries out differentiation processing.Due to the limitation of agreement, the URL length of transmission is no more than 128, if by all need
The parameter to be transmitted all is added behind URL, and its length certainly will be more than 128, therefore use another mechanism:In data
The URL address suffix table (VC_URL_TAIL) that a table is used to preserve URL suffix is set up in storehouse, URL address suffix table is to flow
Water number is index, as shown in table 2 below:
Table 2
Field name |
Field type |
Can be extremely |
Field description |
flowno |
varchar2(20) |
Not null |
Serial number |
URL_tail_value |
varchar2(512) |
Not null |
URL address suffix part |
remark |
varchar2(256) |
null |
The detailed description of suffix part |
Serial number is that general automatic service processing module is obtained from SCP, and with uniqueness, serial number is added into head
It is secondary to be sent to behind the URL addresses of WEB application processing module, and insert the serial number and corresponding in Table V C_URL_TAIL
Suffix.Suffix portion general format is as follows:Session number ^ calling numbers ^ enables red-black list mark, wherein:
Session number is generated by general automatic service processing module, with uniqueness, is used as general automatic service processing module
The mark of interaction between WEB application processing module, general automatic service processing module is subsequently sent to WEB application processing module
URL addresses in be required to containing session number, WEB application processing module creates memory field with this, cache this time calling in number
According to and perform corresponding operation.
Calling number is used for WEB application processing module and obtains user profile from related allocation list.
When enabling red-black list mark, WEB application processing module can carry out red-black list to user and judge, and according to knot
Fruit plays different videos to user.
Suffix data part can modify according to different demands.
Complete after aforesaid operations, general automatic service processing module sends URL by SIB to WEB application processing module.
WEB application processing module is parsed after receiving, and is judged whether containing serial number, if containing from VC_URL_TAIL
The corresponding suffix data of the serial number is inquired about, and is parsed, corresponding video is then played to user according to analysis result.From
This, flow enters WEB application processing module.
As described above, queuing capability, message-leaving function, facsimile function, call forwarding function etc. are needed in the processing of general automatic service
Realized in module.Therefore when user selects function above in WEB application processing module, video IVR requirementss of process should from WEB
Returned to processing module in general automatic service processing module.WEB application processing module is by SCP at general automatic service
Manage module and send business request information, general automatic service processing module gets service request by event reception operation and disappeared
Breath, and parsed, corresponding function is realized according to the content parsed.
WEB application processing module is generally by the SCP message formats for being sent to general automatic service processing module:
WEBtoauto^OP=command code ^SK=subservice key ^BR=client's brand ^CT=call forwarding automatic service types.
" WEBtoauto " is type of message, judges that the service request received disappears for general automatic service processing module
Whether breath is to be sent by WEB application processing module.
Command code is used to guide general automatic service processing module to carry out different function treatments, and command code is enumerated as follows:
000- on-hooks
001- queues up first
002- records message video
003- queues up after failure, and user's selection again queue up by selection
004- call forwardings
005- faxes
006-WEB applications are abnormal, notify general automatic service processing module forcible aborting resource
WEB application processing module discharge resource when, general automatic service processing module be perceive less than, WEB application
Processing module needs the general automatic service processing module of message informing sent comprising command code equal to 000 to release before release resource
Put resource.
Queuing capability need in general automatic service processing module complete, and user select first queue up when, it is general
Automatic service processing module is needed to assign initial value to queuing parameter, therefore WEB application processing module is needed to general automatic service
Processing module is sent comprising message command code equal to 001.
Recording message video capability needs to complete in general automatic service processing module, if user's selection recording is regarded
Frequently, WEB application processing module needs to send the message for being equal to 002 comprising command code to general automatic service processing module.
If user selects to queue up again after failure of queuing up first, now need to carry out assignment (such as to some special parameters
Queuing number of times), thus WEB application processing module need to general automatic service processing module send comprising command code be equal to 003
Message.
Call forwarding automatic service function needs to complete in general automatic service processing module, if user selects the function,
WEB application processing module needs to send the message for being equal to 004 comprising command code to general automatic service processing module.
Facsimile function needs to complete in general automatic service processing module, if user's selection fax, WEB application processing
Module needs to send the message for being equal to 005 comprising command code to general automatic service processing module.
If calling occurs exception in WEB application processing module side, general automatic service processing module needs to discharge Shen
Resource please, therefore WEB application processing module needs to send to general automatic service processing module and is equal to 006 comprising command code
Message.
Type on command code can be modified according to demand.
Subservice key is used to guiding general automatic service processing module to ranking under the attending a banquet of corresponding technical ability group, and
Used during general automatic service processing module log.
Client's brand is used in general automatic service processing module carry out differentiation processing to user.
Call forwarding automatic service type is used to guide the general corresponding automatic service of automatic service processing module call forwarding, command code
For 004 when it is effective.
When completion queue function, message-leaving function, facsimile function, call forwarding function etc. in general automatic service processing module
Afterwards, if necessary to return to WEB application processing module, then corresponding URL addresses are obtained from Table V C_URL_config, because this
When WEB application processing module got the information of user, so need not be transmitted across to WEB application processing module it is many after
Sew data, also avoid the need for the interpolation data into Table V C_URL_TAIL, it is only necessary to send session number and video type mark i.e.
Can, these data are directly appended to behind URL addresses, using the SIB in general automatic service processing module at WEB application
Module is managed to send.
When the call is ended, general automatic service processing module and WEB application processing module are required for discharging what is applied
Resource.When calling is that at the end of WEB application processing module side, WEB application processing module is needed to general before release resource
Automatic service processing module sends message, and command code is 000 or 006, and general automatic service processing module is getting this behaviour
Make that resource release can be carried out after code.
When calling is that at the end of general automatic service processing module side, general automatic service processing module is in release resource
Preceding to send message to SCP using WINTTCP agreements by SIB, message content includes:
Field name |
Field type |
Field description |
Operate |
varchar2(20) |
Action type |
dialogid |
varchar2(20) |
Session number |
Wherein action type is entered as " delete ", session number is above to get.SCP utilizes the message
WINTTCP agreements are sent to WEB application processing module, and WEB application processing module is parsed after getting, and judges action type
Whether it is " delete ", the resource that if it is session number is occupied in release message.
Fig. 2 is the method for realizing video IVR business of present embodiment, including:
Step 201:Using the general automatic service processing module of SCE too developments, and by general automatic service processing module
It is loaded on SCP;
Step 202:WEB application processing module is developed, WEB application processing module is loaded on HTTP server, and with
SCP sets up connection;
Step 203:Initialize URL address configurations table (VC_URL_config);
Step 204:The preposition flow of general automatic service processing module is entered after traffic incoming call IVR system, system is obtained
System parameter, obtains URL addresses, and serial number is added behind URL addresses, suffix data is generated, to URL address suffix tables (VC_
URL_TAIL insertion suffix data in);
Step 205:General automatic service processing module sends URL using specific SIB to WEB application processing module
Location;
Step 206:The URL addresses that the parsing of WEB application processing module is received, judge whether containing serial number, if so,
The corresponding suffix data then inquired about according to serial number in VC_URL_TAIL, parses suffix data, systematic parameter is obtained, to caller
Number is handled, and according to session number application resource, is then applied according to different systems and calling number type is broadcast to user
Put video;
Step 207:If user's selection queuing capability, message-leaving function, facsimile function or call forwarding function, WEB application processing
Module sends business request information to general automatic service processing module by SCP;
Step 208:General automatic service processing module is received to be parsed after message, is carried out according to command code corresponding
Processing, if also needing to return to WEB application in follow-up process, obtains corresponding URL addresses from VC_URL_config,
Addition session number and video type mark, WEB application processing module is sent to by specific SIB below;
Step 209:WEB application processing module is received behind URL addresses, is parsed, according to session number and video type
Mark, true directional user plays the video of respective type;
Step 210:Calling is at the end of WEB application processing module side, WEB application processing module release resource forward universal
Automatic service processing module sends message informing, and it discharges resource.
Calling passes through at the end of general automatic service processing module side before general automatic service processing module release resource
Specific SIB sends message informing to WEB application processing module, and it discharges resource, and the content of message includes action type and session
Number.
Using example 1:
Below by way of the example of an exploitation video IVR business, illustrate the method for present embodiment, this example needs to realize
Welcome video is played into menu stream Cheng Qian, menu flow there are two buttons, and button 1 reports preset video, and 2 turns of button is artificial
Service
Following video, 1.3gp are needed to use in this example:" welcoming using Video service hot line ";2.3gp:" 3G business bodies
Test please by 1, manual service is please by 2 ";3.3gp is preset 3G business experience videos;4.3gp:" continue queuing please by 1, otherwise
It please hang up.”;5.3gp:" sorry, your queuing number of times is excessive, welcomes use next time, goodbye.”.
Step one:General automatic service processing module is loaded on SCP, access code is configured in SMAP;
The access code set in present case is 10000.
Step 2:WEB application processing module is set up with SCP and is connected;
Step 3:Data in Run Script file, initialization data storehouse;
Memory database is used in this example as Row control database.
Following table is URL address configuration tables:
Step 4:General automatic service processing module obtains the corresponding URL addresses of welcome, and adds this calling
Serial number, amended URL addresses are:http://10.9.133.89:8080/shcm/video/welcome.jsp
Flowno=2010071413230000130, generates suffix data 96^13980000016^1, is inserted into Table V C_URL_TAIL
Enter serial number and suffix data;
flowno |
URL_tail_value |
remark |
2010071413230000130 |
96^13980000016^1 |
|
Step 5:URL addresses are sent to by WEB application processing module by specific SIB;
Step 6:WEB application processing module obtains serial number from URL addresses:2010071413230000130, according to
The serial number gets suffix data 96^13980000016^1 from Table V C_URL_TAIL, is the application resource of session number 96,1 table
Show unlatching Red List, calling number 13980000016 judged, played if Red List table is belonged to video 1.3gp and
2.3gp;Terminate calling if being not belonging to;
Step 7:After 2.3gp is played, user is by 2 selection manual services, WEB application generation business request information
WEBtoauto^OP=001^SK=10001^BR=1^CT=0, and the message is sent at general automatic service by SCP
Manage module;
Step 8:General automatic service processing module is received to be parsed after message, judges command code for 001, according to
Subservice key 10001 obtains processing of being ranked after corresponding technical ability number, if failure is queued up first, now and not less than queuing
Maximum times (queuing maximum times are 2 in this example), general automatic service processing module is obtained from Table V C_URL_config
The corresponding URL addresses of toManualError:http://10.9.133.89:8080/shcm/video/
toManualError.jspURL addresses are changed into after dialogid=, addition session number and video type mark:http://
10.9.133.89:8080/shcm/video/toManualError.jspDialogid=96&errorPoint=1, passes through
The URL addresses are sent to WEB application processing module by specific SIB;
Step 9:WEB application processing module is received behind URL addresses, is parsed, according to session number 96 and errorPoint
=1 determines to play video 4.3gp to calling number 13980000016;
If user is continued to queue up by 1 selection, WEB application processing module generation message:WEBtoauto^OP=003^SK
=10001^BR=1^CT=0, and the message is sent to general automatic service processing module by SCP.Pass through automatic service
Processing module is parsed after receiving the message, judges command code for 003, according to subservice key after the queuing number of times that adds up
10001 obtain processing of being ranked after corresponding technical ability number.If queuing still fails, queuing maximum times are now exceeded,
General automatic service processing module obtains the corresponding URL addresses of toManualError from Table V C_URL_config:http://
10.9.133.89:8080/shcm/video/toManualError.jspDialogid=, addition session number and sign are played
URL addresses are changed into after the data of video type:http://10.9.133.89:8080/shcm/video/
toManualError.jspThe URL addresses, are sent to by dialogid=96&errorPoint=2 by specific SIB
WEB application processing module.WEB application processing module is received behind the URL addresses, is parsed, according to the He of session number 96
ErrorPoint=2 determines to play video 5.3gp to calling number 13980000016.
Step 10:If calling terminates in WEB application processing module side, WEB application processing module is to general automatic service
Processing module is sent comprising message command code equal to 000 or 006, then discharges resource, general automatic service processing module connects
Receive after the message, carry out resource release.
If calling terminates in general automatic service processing module side, general automatic service processing module is sent out to WEB application
Message is sent, wherein Operate=" delete ", dialogid=" 96 " then discharge resource, WEB application processing module is received
After the message, parsed, judge that Operate is equal to after " delete " and calling number is discharged according to dialogid
13980000016 resources taken.
Fig. 3 show the service control point of present embodiment, including:General automatic service processing module and information send mould
Block, wherein:
General automatic service processing module, for after traffic incoming call, URL (URL) being obtained, after URL
Serial number is added, and suffix data is generated for URL, suffix data is inserted into the URL address suffix tables using serial number as index
In;
Information sending module, for the URL for adding serial number to be sent into HTTP (HTTP) server.
General automatic service processing module, is additionally operable to receive the business request information that HTTP server is sent, according to business
The type of message carried in request message judges whether business request information is sent by HTTP server, and is performed according to command code
It is corresponding to exchange class function, the corresponding URL of video for needing to play to calling subscribe is obtained according to implementing result, after the URL
Session number and video type mark are added, HTTP server is sent to.
Fig. 4 show the hypertext transfer protocol server of present embodiment, including:WEB application processing module and information
Transceiver module, wherein:
Signal dispatcher module, URL (URL) and serial number for receiving service control point transmission;
WEB application processing module, for inquiring about URL address suffix tables according to serial number, obtains corresponding suffix data, root
According to URL and suffix data video is played to calling subscribe.
Suffix data includes the session number and calling number of traffic incoming call;
WEB application processing module, specifically for for traffic incoming call application resource, traffic incoming call, root are identified using session number
Video is obtained according to URL, the video got is played to calling subscribe according to calling number.
WEB application processing module, is additionally operable to receive the input of calling subscribe, when calling subscribe's selection exchanges class function,
Business request information is sent to service control point, type of message and command code are carried in business request information.
The video IVR flows in the system are completed by above step, compared with traditional SCE exploitation video IVR flows,
Exploitation video IVR flows have main steps that design queuing capability, message-leaving function, facsimile function, call forwarding work(in the system of the present invention
It can wait, and without paying close attention to player function and the function that collects the digits, and by changing the URL addresses in allocation list VC_URL_config
The exploitation and modification of video IVR flows can be quickly realized, therefore the efficiency of business development greatly improved, reduces and develops into
This, it is portable good.