Background technology
Development along with conventional communication networks, the Internet and mobile communications network, it is inexorable trend that each network merges mutually, next generation network (Next Generation Network, be called for short " NGN ") be exactly with Internet protocol (Internet Protocol, abbreviation " IP ") packet switching network is a core net, and control separates with carrying, and various access technologies are also deposited, merge the new generation network of existing diverse network, can satisfy the demand of following wideband multimedia communication.Packet switching network and based between Circuit-switched conventional communication networks by having the gateway device of across a network call proceeding ability, for example has MGCF (Media Gateway Control Function, be called for short " MGCF ") Tandem Gateway, have AGCF (Access Gateway Control Function, abbreviation " AGCF ") IADs etc. are realized intercommunication.
(the International TelecommunicationUnion-Telecommunication Standardization Sector of ITU Telecommunication Standardization Sector, be called for short " ITU-T ") and (the European Telecommunications Standards Institute of ETSI, be called for short " ETSI ") current third generation partner program (the 3rd Generation Partnership Project that all adopts, abbreviation " 3GPP ") IP Multimedia System of normal structure definition (IP Multimedia Subsystem is called for short " IMS ") framework is as the core net of NGN.
Along with the continuous maturation of group technology, using Session initiation Protocol (Session InitiationProtocol is called for short " SIP ") then is one of current technology trends as the call control signalling of packet switching network.SIP is the Internet engineering duty group (Internet Engineering Task Force, abbreviation " IETF ") important protocol among the NGN that formulates, be considered to one of core protocol of IMS, and 3GPP has also determined to adopt the multimedia domain, MMD session control protocol of SIP as 3G (Third Generation) Moblie (The Third Generation is called for short " 3G ") the all-IP stage.
As the part of ietf standard process, the exploitation purpose of SIP is a senior telephone service of crossing over internet (Internet) with helping to provide, is used for setting up, change and stops calling between the user of IP based network.It is at simple message transfer protocol (SMTP) (Simple Mail Transfer Protocol, be called for short " SMTP ") and HTTP Internet such as (Hypertext Transfer Protocol are called for short " HTTP ") on set up on the agreement basis of extensive use.
SIP relies on plurality of advantages such as it is simple, be easy to expand, be convenient to realize more and more to obtain the favor of industry, occurs increasing client software and the intelligent multimedia terminal of supporting Session Initiation Protocol on market, and server and the switching equipment realized with SIP.The branch that client-server specifically, is arranged among the SIP: client computer is meant the application program that connects with server in order to send request to server; Server is the application program that is used for providing to the request that client computer is sent service and return response.
Wherein, SIP has four class base server: user agent's (User Agent is called for short " UA ") server, and its contact user when receiving the SIP request, and representative of consumer is returned response; On behalf of other client computer, acting server initiate request, has not only served as server but also has served as the media program of client computer, and before the request of transmitting, it can rewrite the content in the former request message; Redirect Server, it receives the SIP request, and the raw address in the request is mapped to zero or a plurality of new address, returns to client computer; Registrar, the register requirement of its subscribing client is finished the registration of station address.
The user terminal program often needs to comprise UA client computer and UA server, and acting server, Redirect Server and registrar are the webservers of public character.
Sip message is used for the foundation and the modification of session connection, and the form of its form and http protocol is similar, is divided into request (REQUEST) and response (RESPONSE) two classes.Wherein, RESPONSE message has multiple coding, the concrete response that indication session reciever is made.And REQUEST message has 6 kinds of fundamental types, is respectively: make a call (INVITE), give a response (ACK) to replying, remove the ability (OPTIONS) that connects (BYE), cancellation (CANCLE) midway, inquiry the other side and register (REGISTER).In addition, the enactor of Session Initiation Protocol is also defining new type as required.Specifically, INVITE and ACK are used for setting up calling, finish three-way handshake, change session attribute after perhaps being used to set up; BYE is in order to end session; OPTIONS is used for the querying server ability; CANCEL is used to cancel the request of having sent but finally having finished; REGISTER is used for the client and goes out to message such as registrar registered user positions.
Though this new sip user terminal will progressively replace traditional terminal phone, it also is the packet switching network developing tendency in future, but operator is in the process of construction of packet switching network, need progressively to (the Public Switched Telephone Network of the public switched telephone network in the conventional communication networks, be called for short " PSTN ")/integrated services digital network (Integrated Services Digital Network, be called for short " ISDN ") carry out the network rebuilding, realize the smooth evolution of existing PSTN/ISDN network to NGN.This inevitable requirement existing P STN/ISDN core network is after using packet switching network to replace it, and the terminal, User Network Interface, professional experience etc. that can keep existing PSTN/ISDN network are constant.This packet switching network is applied to the transformation of PSTN/ISDN core net and the application scenarios of replacement is also referred to as PSTN/ISDN emulation (PSTN/ISDN Emulation) sometimes.
In PSTN/ISDN Emulation Subsystem (PSTN/ISDN Emulation Subsystem is called for short " PES "), also adopt the network architecture based on IMS.Therefore all set up relevant standards project in business that merges in ITU-T and ETSI subordinate's telecommunications that is used for earlier nearly network and internet and agreement (Telecommunications andInternet converged Services and Protocols for Advanced Networking is called for short " the TISPAN ") normal structure and carried out the research work of this respect.
At TISPAN draft standard ETSI TS 02030 V<1.2.7〉(2005-12) " TISPANFunctional Architecture; PSTN/ISDN Emulation Subsystem; IMS-basedfunctional architecture (TISPAN function framework; PES; Function framework based on IMS) " provided function structure definition in based on the PES of IMS, its function structure as shown in Figure 1, used AGCF and media gateway (Media Gateway, be called for short " MG ") to wait functional entity to realize that the traditional PSTN terminal arrives the access of IMS network adaptive, simultaneously in the application server that moves on to the IMS network in the control of PSTN service logic (Application Server is called for short " AS ").At TISPAN draft standard ETSI TS 183 043 V<0.1.8〉(2006-02) give some idiographic flow definition that realize PSTN simulation services based on IMS in " TISPAN NGN IMS-basedPSTN/ISDN Emulation Call Control Protocols 3 (TISPAN NGN is based on the PSTN/ISDN emulation call control protocol stages 3 of IMS) of Stage ".
In the PES based on IMS of TISPAN definition, do business logic processing by AGCF.For example, AGCF subscribes to the dialing tone management document to PES AS, wherein, comprises the indication of standard signal sound or message index signal sound etc., when AGCF receives message indication incident bag, will be according to this dialing tone management document default dialing tone that the index signal sound is set to behind user's off-hook tin of leave a message; Again for example, the user registers the unconditioned call connection business, register successfully after, PES AS sends NOTIFY to AGCF, AGCF resolves the incident bag that carries in this NOTIFY, is set to the default dialing tone listened behind user's off-hook according to this dialing tone management document special dial tone again; Again for example, after AGCF receives user's hooking (flash-hook) signal, need to analyze current call state, specifically, these states have: a party call state, stable two party call state, have the stable two party call state of maintenance/wait side etc.And then play dialing tone accordingly, collect number, send processing such as number.
In actual applications, there is following problem in such scheme: the business logic processing complexity on the AGCF does not meet the core concept based on the PES development of IMS.
Cause the main cause of this situation to be, according to existing actual embodiment, business logic processing complexity on the AGCF, yet in the PES based on IMS, a core concept is to move on on the PES AS in the control of PSTN service logic, also be, simplify the processing of AGCF, the thought of the business of focusing on PES AS, therefore, present embodiment does not meet the requirement of the core concept of PES.For example, in Conference, receive user's hooking signal after, if its other party user listens meeting call voice notice, then the business logic processing on the AGCF will be complicated more.
In addition, in TISPAN, also defined PSTN/ISDN analog service (PSTN/ISDNSimulation Services), its same IMS framework that adopts, analog service with PSTN/ISDN supplementary service feature is provided for sip terminal, in fact most Simulation analog service and Emulation artificial service are similar, as caller ID display/CLIR service, at TISPAN draft standard ETSI TS 183 043 V mentioned above<0.1.8〉(2006-02) in the appendix, provide the execution of this business, as interim reservation OIR business need PES AS its receive from the invite message of AGCF in insert the Privacy header field, and insert the operation of anonymous keyword before in the From header field.And in the Simulation analog service, also there is sign demonstration/source, similar source sign to show limit service, the operation of above-mentioned PES AS is that Simulation analog service AS does not have (with reference to TISPAN draft standard ETSI TS 183 007), and this operation can be finished by sip terminal oneself.Obviously, concerning user's experience, these two kinds of business are identical, and according to the current implementation of above-mentioned TISPAN, though business all is based on the IMS network, but network still needs to dispose the AS of two class business, causes the waste of investment.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method for controlling service of communication equipment and system thereof, makes the business logic processing of communication equipment simplify.
Further aim of the present invention is network is reused the application server equipment of analog service control is provided, and saves investment.
For achieving the above object, the invention provides a kind of method for controlling service of communication equipment, comprise following steps:
Described communication equipment obtains user's configuration file, wherein comprises Action Events and corresponding actions;
Described communication equipment detects the Action Events that this user carries out, if detect the Action Events in the described configuration file, then carries out business logic processing according to the corresponding actions in this configuration file.
Wherein, described communication equipment obtains described user's configuration file from the configuration delivery server of network side.
In this external described method, the step that described communication equipment obtains user's configuration file also comprises following substep:
Described communication equipment is registered the back described user and is subscribed to this user's configuration file to described configuration delivery server;
Described configuration delivery server sends the message of carrying this configuration file to this communication equipment when the subscribe message that the configuration file to the user of receiving described communication equipment transmission is subscribed to; After this, when this user's service application environment changed, this configuration delivery server generated new user profile according to the current service application environment of this user, and notifies described communication equipment;
Described communication equipment makes an explanation to the current user profile of receiving.
In this external described method, when user's service application environment changed, described configuration delivery server was notified the part that changes in this configuration file after the last notice of described communication equipment.
In this external described method, when user's service application environment changed, described configuration delivery server was notified described communication equipment with newly-generated user profile.
In addition, described method is applied to public switched telephone network/integrated services digital network simulation subsystem; Wherein, described communication equipment is a sip user agent.
In this external described method, the Action Events in the described configuration file comprises one of following or its combination in any:
Off-hook event, dialer event, hookflash event, onhook event or timer expiry incident;
The corresponding actions of described Action Events comprises one of following or its combination in any:
Send message, send index signal, timer setting to network side to the user.
In this external described method, the described index signal that sends to the user comprises one of following or its combination in any:
Send sound, issue antipole or Polarity-reversing pulse signal, shows signal, maintenance, recovery to the user to the user.
In this external described method, described communication equipment sends message by SIP or HTML (Hypertext Markup Language) to network side, wherein, by SIP to the message that network side sends is:
" Invite " message, " Refer " message, " subscribe " message, " BYE " message.
In this external described method, described business comprises:
Hot line service, subscriber arrearage off-hook listen that arrearage sound, user have after the newer message that off-hook listens that message index signal sound, abbreviated dialing, group user off-hook go out that group dialing listens that secondary dial tone, hooking are handled, PSTN/ISDN artificial service or PSTN/ISDN analog service.
In this external described method, described configuration file is described described Action Events and corresponding actions by Extensible Markup Language.
The present invention also provides a kind of communication equipment service control system, comprises configuration delivery server and communication equipment;
Described configuration delivery server is used to provide this user's configuration file, wherein comprises Action Events and corresponding actions;
Described communication equipment, be used for obtaining user's configuration file from described configuration delivery server, detect the Action Events that this user carries out,, then carry out business logic processing according to the corresponding actions in this configuration file if detect the Action Events in the described configuration file.
Wherein, the described configuration delivery server configuration file that provides this user according to described user's subscription data and service application environment.
In this external described system, described communication equipment is a sip user agent.
In this external described system, described sip user agent is access device or the SIP integrated access equipment with AGCF.
By relatively finding, the main distinction of technical scheme of the present invention and prior art is, communication equipments such as SIPUA obtain user's configuration file from configuration delivery server network entities such as (profile delivery server), and detect the Action Events that this user carries out according to this configuration file, if detect the Action Events in this configuration file, then carry out business logic processing according to the corresponding actions in this configuration file.Thisly carry out the method for corresponding actions, greatly reduce the processing complexity of SIP UA by the Action Events of coupling in the configuration file.
Simultaneously, SIP UA is by the coupling configuration file, the action that it is sent to network, can be in full accord with the action that sip terminal equipment execution same line of business sends, thereby make SIP UA when handling same line of business, can reuse the application server equipment of network processes analog service, promptly the application server equipment of treatment of simulated business also can have been saved network investment for public switched telephone network/integrated services digital network simulation subsystem service.
Upgrade current user profile by the configuration delivery server according to the variation of service environment, and notice has been subscribed to the new configuration file of the SIP UA of this configuration file or has only been notified the change part of this configuration file, make the processing of SIP UA obtain simplifying, and can adapt to the variation of service environment.
Configuration file adopts XML language description Action Events and corresponding actions, and professional extensibility is strong.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
The present invention is by the configuration delivery server service application environment current according to the user, provide the possible various operations of user, and these operations the logical description of the network-side acts that may cause, and this logical description passed to communication equipment as a kind of configuration file.After communication equipment is received user's Action Events, utilize this configuration file to mate, obtain the corresponding actions described in the configuration file, and directly carry out this action.Wherein, communication equipment can be to possess the equipment as SIP UA such as the access device of AGCF or SIP IAD, and the configuration delivery server can be PES AS.
Specifically, the possible Action Events from the user received of SIP UA comprises off-hook event, hookflash event, onhook event and dialer event.In addition, also overtime incident may take place, when promptly network side was waited for user's next Action Events after the user finishes an Action Events, if the user does not carry out next one operation at the appointed time, then network side can generate an overtime incident.For example, network side will be waited for subscriber dialing behind user's off-hook, start timer (as 10 seconds timers) simultaneously, if do not receive any Action Events of user in the timing of this timer, then network side will generate overtime incident, and start timeout treatment.As the protection to session, the overtime incident and the pack processing thereof that are triggered by timer are contained in each Action Events and respective handling action thereof from the user.Therefore, setting comprises the action of timer duration and timeout treatment is set to timer.Wherein, timeout treatment action can send message, SIP UA to network side and self timer is provided with etc. for SIP UA issues indication, SIP UA to the user.
Obviously, the Action Events from the user is limited.Behind the Action Events that the user carries out, the service application environment current according to the user, the action that SIP UA may carry out also will be fixed: for user's Action Events, SIP UA issues indication to the user (can not issue any indication, also can issue a plurality of indications simultaneously), for example audition indication, anti-polar signal indication, demonstration indication etc.; SIP UA sends message (can not send any message, also can send a plurality of message simultaneously) to network side; SIP UA is to the setting of self timer.
Specifically, the performed action of the Action Events from the user received of SIP UA is as described below respectively.
The processing item of off-hook event correspondence comprises: antipole or Polarity-reversing pulse processing item, signal tone or verbal announcement processing item, hot line number or instant hot line number processing item etc.Wherein, the action of antipole or Polarity-reversing pulse processing item correspondence is that SIP UA issues antipole or Polarity-reversing pulse signal to the user; The action of signal tone or verbal announcement processing item correspondence is that SIP UA mail call or verbal announcement or SIP UA under the user make a call to the designated tone resource; The action of hot line number or instant hot line number processing item correspondence makes a call for SIP UA, for example sends the SIP INVITE.
The processing item of hookflash event correspondence also comprises signal tone or verbal announcement processing item, also comprises and keeps processing item, recovers processing item etc.Wherein, keeping the action of processing item correspondence is that SIP UA issues Session Description Protocol (Session Description Protocol to the user, be called for short " SDP ") issue action or send the maintenance action of SDP for what keep for keeping to the opposite end, for example, send SIP re-INVITE (making a call again) message; The action that recovers the processing item correspondence is that SIP UA issues SDP to the user and issues action or send the recovery action of SDP for recovering to the opposite end for what recover, and is same, for example sends SIP re-INVITE message.
The processing item of onhook event correspondence comprises: discharge processing item, transfer processing item etc.Wherein, the action that discharges the processing item correspondence is a SIP UA call release, for example, sends BYE message; The action of transfer processing item correspondence will be a calling with user-dependent two calling transfer for SIP UA, for example, send SIPREFER (reference) message.
And the configuration item of dialer event correspondence comprises: dialing normal form processing item.This processing item is made up of signal tone or verbal announcement processing item, number rule configuration item etc. again.Wherein, the action of number rule configuration item correspondence is the collecting number calling action of back initiation entirely that SIP UA dials the user.This action is more special, after both can be complete with collecting number that the user dialled, number is passed to PES AS by the calling action of initiating, carry out corresponding service processing according to this number, also can directly handle accordingly by SIP UA according to the number of being dialled by PES AS.Wherein, these business comprise call business, supplementary service activation, supplementary service data operation etc.For example, what dial the number expression is the operation of supplementary service activation or supplementary service data, then the action of number rule configuration item correspondence also comprises and subscribes to action (as sending SIP SUBSCRIBE message), data manipulation action (as sending HTTP/XCAP message), release movement, maintenance action, recovers action etc.Therefore, it is feasible generating configuration file according to user's Action Events and corresponding processing action.Through a large amount of experimental summary and checking, the present invention has provided the XML Schema file that meets foregoing description, adopts this XML Schema file can define the structure of configuration file, the content of constraint configuration file.The XMLSchema file content is as follows:
<?xml version="1.0"encodinq="UTF-8"?>
<xs:schema xmlns="urn:ietf:params:xml:profile"xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="urn:ietf:params:xml:profile"elementFormDefault="qualified"attributeFormDefault="unqualified"> <xs:element name="profile"> <xs:complexType> <xs:sequence> <xs:element ref="offhook"/> <xs:element ref="hooking"/> <xs:element ref="dial"/> <xs:element ref="onhook"/> </xs:sequence> <xs:attribute name="version"type="xs:nonNegativeInteger"use="required"/> <xs:attribute name="state"use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="full"/> <xs:enumeration value="partial"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> <xs:element name="offhook"type="processor"/> <xs:element name="hooking"type="processor"/> <xs:element name="onhook"type="processor"/> <xs:complexType name="processor"> <xs:sequence> <xs:element ref="to-network"minOccurs="0"maxOccurs="unbounded"/> <xs:element ref="to-user"minOccurs="0"maxOccurs="unbounded"/> <xs:element name="timer"minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="timerlength"type="xs:integer"minOccurs="0"/> <xs:element ref="timeoutaction"minOccurs="0"/> </xs:sequence> <xs:attribute name="startup"type="xs:boolean"use="required"/> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="allow"type="xs:boclean"use="required"/> </xs:complexType> <xs:element name="dial"> <xs:complexType> <xs:choice> <xs:element ref="dial-pattern"/> <xs:element name="overlap"type="processor"/> </xs:cho1ce> <xs:attribute name="allow"type="xs:boolean"use="required"/> </xs:complexType> </xs:element> <xs:element name="timeoutaction"> <xs:complexType> <xs:sequence> <xs:element ref="to-user"/> <xs:element ref="to-network"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="to-network"> <xs:complexType> <xs:attribute name="needed"type="xs:boolean"use="required"/> <xs:attribute name="method"use="optional"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="invite"/> <xs:enumeration value="infomation"/> <xs:enumeration value="message"/> <xs:enumeration value="notify"/> <xs:enumeration value="publish"/> <xs:enumeration value="bye"/>
<xs:enumeration value="update"/> <xs:enumeration value="refer"/> <xs:enumeration value="http"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="requestURI"type="xs:anyURI"use="optional"/> <xs:attribute name="message"type="xs:string"use="optional"/> </xs:complexType> </xs:element> <xs:element name="to-user"> <xs:complexType> <xs:attribute name="needed"type="xs:boolean"use="required"/> <xs:attribute name="type"use="optional"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="tone"/> <xs:enumeration value="FSK"/> <xs:enumeration value="xal-las"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="tonetype"type="xs:string"use="optional"/> <xs:attribute name="FSKbody"type="xs:string"use="optional"/> <xs:attribute name="timelengh"type="xs:integer"use="optional"/> </xs:complexType> </xs:element> <xs:element name="dial-pattern"> <xs:complexType> <xs:sequence> <xs:element name="flush"minOccurs="0"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType> </xs:element> <xs:element name="regex"maxOccurs="unbounded"> <xs:complexType mixed="true"> <xs:choice> <xs:element name="pre"minOccurs="0"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType> </xs:element> <xs:any namespace="##other"/> </xs:choice> <xs:attribute name="cleanup"type="xs:boolean"use="optional"/> <xs:attribute name="method"use="optional"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="invite"/> <xs:enumeration value="infomation"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="tone"type="xs:string"use="optional"/> <xs:attribute name="newRequestURI"type="xs:anyURI"use="optional"/> <xs:attribute name="tag"type="xs:string"use="optional"/> <xs:attribute name="special"type="xs:string"use="optional"/> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="persist"use="opticnal"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="one-shot"/>
<xs:enumeration value="persist"/> <xs:enumeration value="single-notify"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="interdigittimer"type="xs:integer"use="optional"/> <xs:attribute name="criticaldigittimer"type="xs:integer"use="optional"/> <xs:attribute name="extradigittimer"type="xs:integer"use="optional"/> <xs:attribute name="long"type="xs:integer"use="optional"/> <xs:attribute name="longrepeat"type="xs:boolean"use="optional"/> <xs:attribute name="nopartial"type="xs:boolean"use="optional"/> <xs:attribute name="enterkey"type="xs:string"use="optional"/> </xs:complexType> </xs:element></xs:schema>
The method for controlling service of communication equipment of first embodiment of the invention as shown in Figure 2, wherein, communication equipment is SIP UA, the user is traditional terminal use.
In step 201, after user's registration, the configuration file of SIP UA under this user's current business environment of configuration delivery server transmission SIPSUBSCRIBE message subscribing wherein comprises Action Events and corresponding actions.
In step 202, the configuration delivery server returns the affirmation information of subscription, and the configuration file that generates this user according to this user's subscription data and current business applied environment.In this configuration file, describe SIPUA and under user's current business applied environment, handle this user's off-hook, hooking, dialing and on-hook network operating side processing action.Wherein, the off-hook action is treated to the user send dialing tone, collects the digits by given dialing normal form.
In step 203, the configuration delivery server carries this user profile by NOTIFY, and this message is sent to SIP UA.
In step 204, SIP UA returns the affirmation information of receiving NOTIFY.
In step 205, user's off-hook, off-hook event is reported to SIP UA.
In step 206, detected this user's of SIP UA off-hook event, according to off-hook event, the coupling configuration file, and play dialing tone according to matching result to the user and move.Thisly carry out the method for corresponding actions, greatly reduce the processing complexity of SIP UA by the Action Events of coupling in the configuration file.
In step 207, the user listen behind the dialing tone, can dial.This dialer event is also given SIP UA by terminal to report.
In step 208, SIP UA collects the digits by given dialing normal form according to configuration file, when the dialing normal form is mated in subscriber dialing fully, after SIP UA mates fully by the dialing normal form of describing in the configuration file, according to dialer event, carries out and invites.
In step 209, SIP UA sends message according to the indication of configuration file to network side, wherein comprise type of message and message destination address, for example the type of message is that SIP INVITE, message destination address are hot line AS address, and SIP UA promptly sends the SIP INVITE of registration hot line to hot line AS.
In step 210, PES AS returns the response message of registration hot line success to SIP UA.
After this, if user's current business applied environment changes, then dispose delivery server and will generate new configuration file.
In step 211, the configuration delivery server is according to the subscription of SIP UA to this user profile, to the NOTIFY of SIP UA transmission incident change, and by this message, active user's configuration file passed to SIP UA.For example, the performed action of current SIP UA process user off-hook event is described for to send dialing tone to the user in new configuration file, and start 5 seconds timers, if the user does not dial in this timing, then stop to send sound to the user, and send the SIP INVITE to the hot line number of being registered, for example, the hot line number of being registered is 86-10-88886666.
In step 212, SIP UA returns confirmation to the Notification of Changes of receiving.
In step 213, the user carries out the off-hook operation once more, and this Action Events reports SIP UA equally.
In step 214, SIP UA carries out the coupling of Action Events according to the configuration file after upgrading, and according to matching result, playing dialing tone and start duration to the user is 5 seconds timer.
In step 215, if the timer expiry user does not dial yet, according to configuration file, then SIP UA stops to send sound to the user automatically, and will enable hot line service, to the hot line number that the user registered, for example is that the 86-10-88886666 that is registered makes a call.
The method for controlling service of communication equipment of second embodiment of the invention as shown in Figure 3,
In step 301, the user has the message indication, and therefore, user's current business applied environment changes, and the configuration delivery server will upgrade current this user's configuration file.Subscription according to SIP UA to this configuration file, the configuration delivery server sends the NOTIFY of incident to SIP UA, and carry the part that this configuration file changes, for example, under the current business applied environment, the pairing SIP UA action of user's off-hook event is for sending message index signal sound to the user.
Upgrade current user profile by the configuration delivery server according to the variation of service environment, and notice has been subscribed to the new configuration file of the SIP UA of this configuration file or has only been notified the change part of this configuration file, make the processing of SIP UA obtain simplifying, and can adapt to the variation of service environment.
In step 302, SIP UA returns the affirmation information of receiving NOTIFY to the configuration delivery server.
In step 303, user's off-hook, off-hook event is reported to SIP UA.
In step 304, SIP UA mates configuration file, describes according to the processing of off-hook event in the configuration file, directly send message index signal sound to the user.
The method for controlling service of communication equipment of above-mentioned execution mode is applied to PES, wherein, SIP UA can send message to network side by SIP or HTTP, and comprises SIPINVITE message, SIP REFER message, SIP SUBSCRIBE message etc. by SIP to the message that network side sends.
The communication equipment service control system structure of third embodiment of the invention wherein, comprises user, configuration delivery server and SIP UA as shown in Figure 4.
Specifically, the configuration delivery server wherein comprises Action Events and corresponding actions according to the configuration file that user's subscription data and service application environment provides the user.
SIP UA then is used for obtaining from the configuration delivery server user's configuration file, detects the Action Events that this user carries out, if detect the Action Events in the configuration file, then carries out business logic processing according to the corresponding actions in this configuration file.
According to above-mentioned implementation method and system, the business that realizes by configuration file comprises: off-hook listened message index signal sound, abbreviated dialing, group user off-hook to go out group dialing and listen secondary dial tone, hooking processing etc. after hot line service, subscriber arrearage off-hook listened arrearage sound, user that newer message is arranged.
For the instant hot line business that the user contracts, for example, the hot line number is " abcd@home.com ", and the configuration file that adopts XML to describe is:
<?xml version="1.0"encoding="UTF-8"?><profile xmlns="urn:ietf:params:xml:profile"version="0"state="full"> <offhook allow="true"> <to-network needed="true"method="invite"requestURI="abcd@home.com"/> <to-user needed="false"/> <timer startup="false"/> </offhook> <hooking allow="false"/> <dial allow="false"/> <onhook allow="false"/></profile>
What this section XML described is configured to: SIP UA the user only can process user before the off-hook the off-hook operation, after user's off-hook, send the SIP INVITE at once to the address " abcd@home.com ".
SIP UA initiatively passes through the configuration file (profile) of SIP SUBSCRIBE message to configuration delivery server booking reader when receiving the affirmation message of user registration success.The configuration delivery server is according to user's subscription data, the current instant hot line business of having contracted of inquiring user, the hot line number is " abcd@home.com ", generate above-mentioned configuration file, perhaps the user is after the success of registration hot line service, variation has taken place in its service application environment, and the configuration delivery server carries this configuration file in the NOTIFY that sends to SIP UA.
In this configuration file, as " profile " the MIME medium type for expanding of " configuration identifier ", this MIME medium type can be defined as follows:
Media?type?name:application
Media?subtype?name:profile+xml
Required?parameters:none
Encoding?scheme:XML
Expansion incident bag " profile " in this definition is used for giving the user (Subscriber) who subscribes in the NOTIFY translation profile.The name that this expansion incident bag is expressed the meaning (event-package token name) is: " profile ", undefined other parameter in the incident bag of this expansion.
In this expansion incident bag, subscribe to the SIP SUBSCRIBE message Event header field of configuration or carry the NOTIFY Event header field of configuration as follows:
Event:profile;
For subscriber arrearage, off-hook is listened the arrearage sound, and the business that does not allow this user to breathe out, and the configuration file that adopts XML to describe is:
<?xml version="1.0"encoding="UTF-8"?><profile xmlns="urn:ietf:params:xml:profile"version="0"state="full"> <offhook allow="true"> <to-network needed="true"method="invite"requestURI="arrearage-toneMRFC@example.com"/> <to-user needed="false"/> <timer startup="true"> <timerlength>30000</timerlength> <timeoutaction> <to-network needed="true"method="bye"requestURI="arrearage-toneMRFP@example.com"/> <to-user needed="true"type="tone"tonetype="busy-tone"/> <timer startup="true"> <timerlength>60000</timerlength> <timeoutaction> <to-network needed="false"/> <to-user needed="true"type="tone"tonetype="howling-tone"/> </timeoutaction></timer> </timeoutaction> </timer> </offhook> <hooking allow="false"/> <dial allow="false"/> <onhook allow="false"/></profile>
What this section XML described is configured to: when user's off-hook, SIP UA should send the SIP INVITE to medium control resource bid arrearage sound resource, and " request-URI " of SIP INVITE is the arrearage sound resource identification " arrearage-toneMRFC@example.com " of appointment.Then, SIP UA plays the arrearage sound to the user, and when not having other operation as if the user in 30 seconds, SIP UA sends BYE message unlocking noise resource to medium control resource, changes by user terminal and puts busy tone to the user.Putting the busy tone duration is 60 seconds, and overtime changing put howler tone.After user's off-hook was listened the arrearage sound, the configuration delivery server sent configuration file after upgrading for SIP UA by NOTIFY, wherein, and when listening the arrearage sound, if user's on-hook discharges being described below of arrearage sound resource:
<?xml version="1.0"encoding="UTF-8"?><profile xmlns="urn:ietf:params:xml:profile"version="0"state="full"> <offhook allow="false"/> <hooking allow="false"/> <dial allow="false"/> <onhook allow="true"> <to-network needed="true"method="bye"requestURI="arrearage-toneMRFP@example.com"/> <to-user needed="false"/>
<timer startup="false"/> </onhook></profile>
For group (Centrex) user's calling service, in the group user can call group in other users, also can go out groupcall, but the dialing rule difference.For example, user in the customer call group, dialing rule is four item sign indicating numbers of 7 beginnings, and goes out groupcall, outgoing prefix is 0, dials 0 and send secondary dial tone, and delete this prefix; The user dials " # " and represents that then number dialled; The user does not have other business, and off-hook is listened normal dialing tone.The configuration file that adopts XML to describe is:
<?xml version="l.0"encoding="UTF-8"?><profile xmlns="urn:ietf:params:xml:profile"version="0"state="full"> <offhook allow="true"> <to-network needed="false"/> <to-user needed="true"type="tone"tonetype="dial-tone"/> <timer startup="true"> <timerlength>60000</timerlength> <timeoutaction> <to-network needed="false"/> <to-user needed="true"type="tone"tonetype="busy-tone"/> <timer startup="true"> <timerlength>60000</timerlength> <timeoutaction> <to-network needed="false"/> <to-user needed="true"type="tone"tonetype="howling-tone"/> </timeoutaction> </timer> </timeoutaction> </timer> </offhook> <hooking allow="false"/> <dial allow="true"> <dial-pattern enterkey="#"> <regex tone="second-dial-tone"tag="centrexout">0</regex> <regex method="invite"tag="centrexin">7[x][x][x]</regex> </dial-pattern> </dial> <onhook allow="false"/></profile>
Wherein, at label<offhook〉in, the action of carrying out when current SIP UA handles off-hook event is described, attribute allow=" true " describes current permission and handles the off-hook action; Label<to-user〉describe current action and send sound (type=" tone ") to the user, sending the sound type is dialing tone (tonetype=" dial-tone "), send 60000ms (<timerlength〉60000</timerlength); At label<dial〉in, the action of carrying out when current SIP UA handles dialer event is described, attribute allow=" true " describes current permission and handles dial action; Label<dial-pattern〉the dialing normal form that current permission is dialled is described, attribute enterkey=" # " expression has been dialled when the user dials " # " interval scale number, and the user can dial 0 and the group, also can dial number in 7 four groups that start.When the user transfers to group prefix 0, send secondary dial tone (tone=" second-dial-tone ") to the user, and in the user has dialled four groups of 7 beginnings during number, use SIP INVITE (method=" invite ") message sends this number to service call session control function entity.
Registered the call business of abbreviated dialing for the user, for example, during customer call " mary@example.com ", only needed dial condense number " * * 11 ".The configuration delivery server can carry relevant information in the dialing normal form of the configuration file of giving the user: when using abbreviated dialing service, when calling out * * 11, SIP UA is according to the automatic call request of initiating " mary@example.com " of dialing normal form in the configuration file.The configuration file that adopts XML to describe is:
<?xml version="1.0"encoding="UTF-8"?><profile xmlns="urn:ietf:params:xml:profile"version="0"state="full"> <offhook allow="true"> <to-network needed="false"/> <to-user needed="true"type="tone"tonetype="dial-tone"/> <timer startup="true"> <timerlength>60000</timerlength> <timeoutaction> <to-network needed="false"/> <to-user needed="true"type="tone"tonetype="busy-tone"/> <timer startup="true"> <timerlength>60000</timerlength> <timeoutaction> <to-network needed="false"/> <to-user needed="true"type="tone"tonetype="howling-tone"/> </timeoutaction> </timer> </timeoutaction> </timer> </offhook> <hooking allow="false"/> <dial allow="true"> <dial-pattern> <regex method="invite"tag="local">287[x][x][x][x][x]</regex> <regex method="invite"newRequestURI="mary@example.com"tag="abbs">**11</regex> </dial-pattern> </dial> <onhook allow="false"/></profile>
Wherein, label<offhook〉in relevant off-hook event with the description of off-hook event in above-mentioned group (Centrex) user's the calling service, repeat no more: at label<dial herein〉in the dialing normal form of current permission has been described, the user can call out the local number of 8 bit digital of 287 beginnings, also can use abbreviated dialing service, call out " * * 11 ".When " * * 11 " called out in subscriber dialing, SIP UA was initiated to the SIP INVITE that attribute is newRequestURI=" mary@example.com " (method=" inVite ") message according to configuration file dialing normal form.
Be in hookflash event under the session status for the user, for example, active user " abcd@home.com " and another user " mary@example.com " are in the session, and the user can initiate new calling by the hooking operation.After the user carried out the hooking operation, SIP UA need give opposite end feed signals sound, send special dial tone to local terminal.The configuration file that adopts XML to describe is:
<?xml version="1.0"encoding="UTF-8"?><profile xmlns="urn:ietf:params:xml:profile"version="0"state="full"> <offhook allow="false"/> <hooking allow="true"> <to-network needed="true"method="update"requestURI="mary@example.com"message="a=inactive"/> <to-user needed="true"type="tone"tonetype="special-dial-tone"/> <timer startup="true"> <timerlength>60000</timerlength> <timeoutaction> <to-network needed="true"method="update"requestURI="mary@example.com"message="a=sendrecieve"/> <to-user needed="false"/> </timeoutaction> </timer> </hooking> <dial allow="false"/> <onhook allow="true"> <to-network needed="true"method="bye"requestURI="mary@example.com"/> <to-user needed="false"/> </onhook></profile>
Wherein, at label<hooking〉in, the action of carrying out when current SIP UA handles hookflash event has been described, attribute allow=" true " has described current permission and has handled the hooking action; Label<to-network〉describe behind the current hooking SIP UA to network-side acts for sending UPDATE message (method=" update "), and keep (hold) opposite end (message=" a=inactive "); Label<to-user〉described to the user and sent sound (type=" tone ") action, sending the sound type is special dial tone (tonetype=" special-dial-tone "), send 60000ms (<timerlength〉60000</timerlength).Do not receive still that as if overtime the user carries out the action of call recovery, send the conversation of UPDATE message recovery to the opposite end; And label<onhook carrying out the hooking operation if described the user, SIP UA sends BYE message to end subscriber, finishes current sessions.
After user's hooking operation, send UPDATE message (or re-INVITE) to the opposite end and keep the opposite end, the configuration delivery server uses NOTIFY to upgrade configuration file to the user, wherein described current if the user again hooking then carry out the call recovery action.New calling is initiated in subscriber dialing.The configuration file that adopts XML to describe is:
<?xml version="1.0"encoding="UTF-8"?><profile xmlns="urn:ietf:params:xml:profile"version="0"state="full"> <offhook allow="false"/> <hooking allow="true"> <to-network needed="true"method="update"requestURI="mary@example.com"message="a=sendrecieve"/> <to-user needed="false"/> <timer startup="false"/> </hooking> <dial allow="true"> <dial-pattern enterkey="#"> <regex method="invite"tag="local">287[x][x][x][x][x]</regex>
</dial-pattern> </dial> <onhook allow="true"> <to-network needed="true"method="bye"requestURI="mary@example.com"/> <to-user needed="false"/> </onhook></profile>
Wherein, at label<hooking〉in, described the action that recovers conversation when current SIP UA handles dialer event: SIP UA sends UPDATE message to end subscriber, recovers conversation; At label<dial〉in, the action of carrying out when current SIP UA handles dialer event is described, attribute allow=" true " describes current permission and handles dial action; Label<dial-pattem〉the dialing normal form that current permission is dialled is described, attribute enterkey=" # " expression is if the user dials " # " and then represents number to dial.Allow the user to dial 8 item sign indicating numbers of 287 beginnings,, then use SIPINVITE (method=" invite ") message to be initiated to the calling of this number if the user dials this class number.
Use interim reservation CLIR service for the user, user's off-hook is dialled " * 62 called numbers ", user's AGCF is dialled the number and the configuration file that has obtained mates, dialing normal form according to dialer event in the configuration file is handled description, obtain the action that to carry out, send the invite request message by this requirement, in the invite request message user being dialled " called number " inserts among the Request-URI (request-unified resource sign) with the form of tel URL, carry the Privacy header field, be set to " header ", the preceding anonymous keyword of inserting in the From header field.
AGCF sends this invite message to network, concerning network, this invite message just likes sip terminal equipment and is using the simulation analog service, and therefore can reuse the application server of handling the simulation analog service is the service of PES subsystem, invests thereby save.
The configuration file that adopts XML to describe is:
<?xml version="1.0"encoding="UTF-8"?><profile xmlns="urn:ietf:params:xml:profile"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="urn:ietf:params:xml:profile:\XML\profile\ppptest.xsd"state="full"version="0"> <offhook allow="true"> <to-network needed="false"/> <to-user needed="true"tonetype="DialTone"timelengh="60000"/> <timer startup="false"/> </offhook> <hooking allow="false"/> <dial allow="true"> <dial-pattern> <regex method="invite"special="Pravicy:header;From:"Anonymous"<sip:anonvmous@anonymous.invalid>"cleanup="true"tag="temp-OIR">*62</regex>
</dial-pattern> </dial> <onhook allow="false"/></profile>
Wherein, the dialing normal form that provides is " * 62 ", when the user dials " * 62 ", " * 62 " are disposed (cleanup=" true ") from the number buffering area, continue to accept user's dialing, in the calling of user's initiation, insert header field Pravicy:header and From: " Anonymous "<sip:anonymous@anonymous.invalid (special=" Pravicy:header; From:﹠amp; Quot; Anonymous﹠amp; Quot; ﹠amp; Lt; Sip:anonymous@anonymous.invalid﹠amp; Gt; ", wherein, additional character<" use escape character (ESC) to replace) to invite (method=" in the invite ") request.
Above-mentioned each professional configuration file adopts XML to describe, because the extensibility of XML makes that professional extensibility is strong.It is readily appreciated by a person skilled in the art that each professional configuration file can also adopt other Languages to be described, can explain operations such as laggard behaviour part coupling and action execution to the configuration file of receiving by SIP UA, its spirit does not depart from scope of the present invention.
Though pass through with reference to some of the preferred embodiment of the invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.