CN103188250A - Terminal device state notification and control method based on session initiation protocol (SIP) - Google Patents
Terminal device state notification and control method based on session initiation protocol (SIP) Download PDFInfo
- Publication number
- CN103188250A CN103188250A CN2011104606464A CN201110460646A CN103188250A CN 103188250 A CN103188250 A CN 103188250A CN 2011104606464 A CN2011104606464 A CN 2011104606464A CN 201110460646 A CN201110460646 A CN 201110460646A CN 103188250 A CN103188250 A CN 103188250A
- Authority
- CN
- China
- Prior art keywords
- message
- terminal equipment
- state
- control end
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a terminal device state notification and control method based on the session initiation protocol (SIP). The terminal device state notification and control method based on the SIP comprises the following steps: a control terminal sends subscription information to a terminal device; the terminal device sends subscription success information to the control terminal; if the state of the terminal device changes, state information is sent and reported to the control terminal; if no changes occur, then whether the control terminal wants to change the state of the terminal device or not is judged; if the control terminal wants to change the state of the terminal device, the control terminal sends control command information to the terminal device, and the terminal device changes the state according to the control command after receiving the control command information; and if the control terminal does not want to change the state of the terminal device, the then step that whether the state of the terminal device changes or not is judged is returned to. On the basis of the SIP, the terminal device state notification and control method based on the SIP expands the protocol, and therefore monitor and control management of the terminal device can be achieved without developing a new communication protocol. The terminal device state notification and control method based on the SIP is good in compatibility and subsequent function expansion is easy.
Description
Technical field
The present invention relates to a kind of terminal unit status notice and control method based on Session Initiation Protocol, belong to communication technique field.
Background technology
Session Initiation Protocol (Session Initiation Protocol) is the signaling control protocol of a session layer, is used for creating, revising and discharge one or more participants' session.
In actual applications, the phone control end, often need each terminal equipment (as IP phone) is exercised supervision and control and management such as the IP call center based on Session Initiation Protocol, need to understand the correlation behavior information of each terminal equipment this moment, such as dislodging machine state, on-state, conversation opposite end number etc., and according to these state informations terminal equipment is controlled.Because Session Initiation Protocol only is used for managing the session of carrying out on the above-mentioned terminal equipment, and the management of terminal equipment is not had any regulation, so for the terminal equipment based on Session Initiation Protocol, this agreement can't satisfy actual needs, be necessary it is carried out certain expansion, to increase following function:
1, the notice of terminal equipment physical state
Be the relevant information that control end can obtain its physical state from terminal equipment, such as device identification, off hook state, hook state etc.
2, the notice of terminal equipment talking state
Be the relevant information that control end can obtain its talking state from terminal equipment, such as incoming call, dialing, connection, callback, transfering state etc.
3, control end is to the control of terminal equipment
Be that control end can send control command to terminal equipment, to change the talking state of terminal equipment.
Summary of the invention
Because above-mentioned reason, the object of the present invention is to provide a kind ofly based on Session Initiation Protocol, and Session Initiation Protocol extended to terminal unit status notice and the control method that can realize each terminal unit status of control end Supervised Control.
For achieving the above object, the present invention is by the following technical solutions:
A kind of terminal unit status notice and control method based on Session Initiation Protocol may further comprise the steps:
10) control end sends subscribe message to terminal equipment;
20) this terminal equipment sends to this control end and subscribes to success message;
30) whether the state of judging this terminal equipment changes, if execution in step 31 then), execution in step 40 then if not);
31) this terminal equipment sends uploaded state message to this control end;
40) this control end whether desire change the state of this terminal equipment, if execution in step 41 then), then return step 30 if not);
41) this control end sends control command message to this terminal equipment;
42) this terminal equipment changes state according to the control command of receiving.
Further:
Described step 20) also can may further comprise the steps afterwards:
A) described control end sends STATUS ENQUIRY message to described terminal equipment;
B) described terminal equipment returns described uploaded state message to described control end.
Further comprising the steps of after the described step 10):
11) described terminal equipment sends authentication request message to described control end;
12) described control end sends the subscribe message of carrying authentication information to described terminal equipment.
The SUBSCRIBE/NOTIFY mechanism based on Session Initiation Protocol is used in communication between described control end and the described terminal equipment.
Described subscribe message, described uploaded state message, described control command message, described STATUS ENQUIRY message, described authentication request message and described subscribe message of carrying authentication information, the content of those message all is recorded in the message body of sip message to be transmitted, and message content all adopts the plain text pattern.
The invention has the advantages that:
1, on the basis of Session Initiation Protocol it is expanded, need not to develop again the basic communication mechanism of a cover, plaintext message also is conducive to control end analysis simultaneously;
2, need not to open new TCP or UDP passage, the NAT passage of before getting through also can continue to use;
3, compatible good, though sip terminal equipment do not realize this function or realized partial function, also can normally use; If do not support, just use by common sip terminal; If part support is just used its partial function;
4, utilize the message body of sip message to carry relevant communication message, be conducive to follow-up function expansion.
Description of drawings
Fig. 1 is the topological diagram of control end among the present invention and terminal equipment;
Fig. 2 is process chart of the present invention;
Fig. 3 is the signal flow graph of one embodiment of the invention.
Embodiment
The present invention is further detailed explanation below in conjunction with drawings and Examples.
Fig. 1 is the topological diagram of control end among the present invention and terminal equipment.As shown in the figure, terminal equipment A and terminal equipment B are in the session of carrying out based on Session Initiation Protocol, control end wishes can get access at any time the various state informations of terminal equipment A, and according to these state informations it is controlled, to realize supervision and the control and management to terminal equipment A.The present invention subscribes to terminal equipment A earlier by control end, in case the state of terminal equipment A changes and just sends uploaded state message to control end afterwards, control end can send the method realization of control command message to supervision and the control of terminal equipment A to terminal equipment A simultaneously.
Fig. 2 is process chart of the present invention.As shown in the figure, concrete steps of the present invention are:
10: control end sends subscribe message to terminal equipment;
20: this terminal equipment sends to control end and subscribes to success message;
If terminal equipment do not have response, or response do not support this function, thinks that then this terminal equipment is general sip terminal equipment, no longer carries out following flow process;
30: whether the state of this terminal equipment changes, if execution in step 31 then, execution in step 40 then if not;
31: this terminal equipment sends uploaded state message to this control end;
40: this control end whether desire changes the state of this terminal equipment, if execution in step 41 is then then returned step 30 if not;
41: control end sends control command message to this terminal equipment;
42: terminal equipment changes state according to the control command of receiving.
Wherein, after control end was subscribed to successfully to terminal equipment, even the state of terminal equipment does not change, control end also can be by sending the current state that STATUS ENQUIRY message obtains terminal equipment to terminal equipment; Terminal equipment returns acknowledge message earlier after receiving this STATUS ENQUIRY message, returns its current state to control end with described uploaded state message then.
The present invention also can be similar to communication between the server and client side who compares in the computer network to the supervision of terminal equipment and control procedure, wherein server is equivalent to terminal equipment, client is equivalent to control end, need to connect earlier before the server and client side communicates, client can be as required to the server request resource afterwards.
Fig. 3 is the signal flow graph of one embodiment of the invention.In the present embodiment, control end can be the application program of a management office IP phone of moving on the computer of control centre, terminal equipment can be one as the IP phone of office with extension set, the SUBSCRIBE/NOTIFY mechanism based on Session Initiation Protocol is used in signaling communication between the two, and its message specification is followed the definition of RFC3265.During use, the Event header field is defined as line-status, concrete type of message, message semantic definition and device identification etc. all are recorded in the message body of sip message, and message content adopts the plain text pattern, and namely the Content-Type field value is text/plain.
As shown in Figure 3, when control end need connect terminal equipment, earlier send subscribe message to terminal equipment, i.e. SUBSCRIBE message, terminal equipment returns acknowledge message 200OK to control end.Wherein, control end to the message body form of the subscribe message of terminal equipment transmission is:
Wherein, the type field is represented type of message, and its value is subscribe message for subscribe represents this message; The Subscribe field is represented the type of subscribing to, such as requesting terminal equipment uploaded state etc.
After terminal equipment is received this subscribe message, also need further to authenticate to control end, step is:
1) terminal equipment requires to authenticate to control end transmission authentication request message 401, is carrying the WWW-Authenticate header field in this authentication request message, requires md5 authentication;
2) control end sends the subscribe message of carrying authentication information to terminal equipment, and this authentication information is included in the Authorization header field, and content is the MD5 value that calculates according to the username and password (being 1001 as username and password) that pre-sets.This message body of subscribe message of carrying authentication information is identical with the message body of the subscribe message of not carrying authentication information.
Terminal equipment authenticates after receiving this subscribe message of carrying authentication information, returns behind the authentication success and subscribes to success message 200OK.
After subscribing to successfully, when the state of terminal equipment changes, this terminal equipment can initiatively send uploaded state message to control end, this uploaded state message is to carry the NOTIFY that changes the back state, the state that reports comprises physical state and the talking state of terminal equipment, wherein, physical state can comprise off-hook, on-hook, device identification etc., talking state can comprise incoming call, ring, dialing, callback, connection, maintenance, quiet, hang up, shift etc.
As figure, after control end is subscribed to successfully to terminal equipment, even the state of terminal equipment does not report control end because changing, control end also can be by sending the current state that STATUS ENQUIRY message obtains terminal equipment, and this STATUS ENQUIRY message is the NOTIFY that is carrying querying command information; Terminal equipment returns acknowledge message 200OK earlier after receiving this STATUS ENQUIRY message, and state that terminal equipment is current sends to control end with the form of described uploaded state message then.
Such as, control end is desired the line status of first via circuit on the inquiry terminal equipment, just sends STATUS ENQUIRY message to terminal equipment, and the message body form of this STATUS ENQUIRY message is:
Wherein, the type field value is that query represents that this message is STATUS ENQUIRY message; The Device-UID field is represented the device identification of terminal equipment; The Line-ID field value be 1 expression inquiry be the correlation behavior of first via circuit; The Query field is represented the Status Type inquired about, and what its value was represented to inquire about for line-status is line status.So this message represents that namely control end desires the line status of first via circuit on the terminal equipment that query facility is designated 00-01-02-03-04-05.
Terminal equipment returns acknowledge message 200OK earlier after receiving this STATUS ENQUIRY message; If this terminal equipment is in hook state, just send the uploaded state message of carrying hook state information to control end, the message body form of this uploaded state message is:
Wherein, the type field value is that status represents that this message is uploaded state message; The status field value is that hangup represents that namely first via circuit is hook state on current this terminal equipment.
Transmission acknowledge message 200OK received successfully with the expression state after control end was received above-mentioned uploaded state message; Demonstrating this IP phone in the application program of described management office IP phone then is idle condition.
As Fig. 3, when the control end desire is controlled the state of certain terminal equipment, can after subscribing to successfully to terminal equipment, control end send control command message to this terminal equipment, and this control command message is to carry the NOTIFY of control command information; Terminal equipment returns acknowledge message 200OK after receiving this control command message, changes corresponding state according to the control command of receiving then.Wherein, but the dislodging machine of control end control terminal, reply, refuse, keep, go bail for and hold, quiet, quiet, the preceding commentaries on classics of cancellation, call out states such as transfer.
Such as, terminal equipment A and terminal equipment B in Fig. 1 converse, and control end just sends the control command message of carrying the on-hook order to terminal equipment A when wishing terminal equipment A on-hook, and its message body form is:
Wherein, the type field value is that command represents that this message is control command message; The Command field value is that huangup is expressed as the on-hook order.
Terminal equipment A returns acknowledge message 200OK earlier after receiving this control command message, carries out the on-hook action then, the end of conversation of terminal equipment A and terminal equipment B.
The value of each field and implication be only for illustrating in the above message body, but not be used for restriction the present invention, in the practical application, can expand according to actual needs.
The present invention is directed to the terminal equipment based on Session Initiation Protocol, send subscribe message by control end to terminal equipment, after success is subscribed to, terminal equipment can initiatively report to control end when state changes also can be to the control end uploaded state after receiving STATUS ENQUIRY message, the state that reports according to terminal equipment, control end can send control command message with its state of control break to terminal equipment, has realized supervision and control and management to sip terminal equipment thus.The present invention expands this agreement on the basis of Session Initiation Protocol, thereby need not to develop new communication protocol and just can realize supervision and control and management to terminal equipment, and compatible good, is easy to follow-up function expansion.
The above is preferred embodiment of the present invention and the know-why used thereof; for a person skilled in the art; under the situation that does not deviate from the spirit and scope of the present invention; any based on apparent changes such as the equivalent transformation on the technical solution of the present invention basis, simple replacements, all belong within the protection range of the present invention.
Claims (5)
1. the terminal unit status based on Session Initiation Protocol is notified and control method, it is characterized in that this method may further comprise the steps:
10) control end sends subscribe message to terminal equipment;
20) this terminal equipment sends to this control end and subscribes to success message;
30) whether the state of judging this terminal equipment changes, if execution in step 31 then), execution in step 40 then if not);
31) this terminal equipment sends uploaded state message to this control end;
40) this control end whether desire change the state of this terminal equipment, if execution in step 41 then), then return step 30 if not);
41) this control end sends control command message to this terminal equipment;
42) this terminal equipment changes state according to the control command of receiving.
2. terminal unit status notice and control method based on Session Initiation Protocol as claimed in claim 1 is characterized in that described step 20) also can may further comprise the steps afterwards:
A) described control end sends STATUS ENQUIRY message to described terminal equipment;
B) described terminal equipment returns described uploaded state message to described control end.
3. terminal unit status notice and control method based on Session Initiation Protocol as claimed in claim 2 is characterized in that, and be further comprising the steps of after the described step 10):
11) described terminal equipment sends authentication request message to described control end;
12) described control end sends the subscribe message of carrying authentication information to described terminal equipment.
4. terminal unit status notice and control method based on Session Initiation Protocol as claimed in claim 3 is characterized in that the SUBSCRIBE/NOTIFY mechanism based on Session Initiation Protocol is used in the communication between described control end and the described terminal equipment.
5. the terminal unit status based on Session Initiation Protocol as claimed in claim 4 is notified and control method, it is characterized in that, described subscribe message, described uploaded state message, described control command message, described STATUS ENQUIRY message, described authentication request message and described subscribe message of carrying authentication information, the content of those message all is recorded in the message body of sip message to be transmitted, and message content all adopts the plain text pattern.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104606464A CN103188250A (en) | 2011-12-31 | 2011-12-31 | Terminal device state notification and control method based on session initiation protocol (SIP) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104606464A CN103188250A (en) | 2011-12-31 | 2011-12-31 | Terminal device state notification and control method based on session initiation protocol (SIP) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103188250A true CN103188250A (en) | 2013-07-03 |
Family
ID=48679219
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011104606464A Pending CN103188250A (en) | 2011-12-31 | 2011-12-31 | Terminal device state notification and control method based on session initiation protocol (SIP) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103188250A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104935764A (en) * | 2015-05-26 | 2015-09-23 | 北京京东尚科信息技术有限公司 | System, device and method for controlling voice-over-Internet-protocol terminal |
CN105049648A (en) * | 2015-06-30 | 2015-11-11 | 百度在线网络技术(北京)有限公司 | Phone callback method, callback platform and communication operator server |
WO2016107270A1 (en) * | 2014-12-31 | 2016-07-07 | 华为技术有限公司 | Device managing method, device and device managing controller |
CN105812333A (en) * | 2014-12-31 | 2016-07-27 | 北京大唐高鸿数据网络技术有限公司 | SIP equipment and non-SIP equipment communication method |
CN106331386A (en) * | 2015-07-02 | 2017-01-11 | 华为技术有限公司 | Terminal state synchronization method, related device and system |
CN108600295A (en) * | 2018-02-28 | 2018-09-28 | 青岛海尔科技有限公司 | A kind of method, equipment and medium for realizing status information of equipment notice |
CN109756351A (en) * | 2017-11-01 | 2019-05-14 | 中国石油化工股份有限公司 | A kind of automatic notice and response system for system unit state change |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020073208A1 (en) * | 2000-10-17 | 2002-06-13 | Lawrence Wilcock | Contact center |
CN1655553A (en) * | 2004-02-11 | 2005-08-17 | 微软公司 | System and method for facilitating third-party call and device control |
CN101478617A (en) * | 2008-12-31 | 2009-07-08 | 中国电信股份有限公司 | Method, system, household gateway and USB wireless device for implementing VOIP voice |
CN101656645A (en) * | 2008-08-20 | 2010-02-24 | 华为技术有限公司 | Method, equipment and system for communication between external equipment and internal equipment of home network |
CN101677327A (en) * | 2008-09-16 | 2010-03-24 | 华为技术有限公司 | Method, system and device of subscribing position-related information |
-
2011
- 2011-12-31 CN CN2011104606464A patent/CN103188250A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020073208A1 (en) * | 2000-10-17 | 2002-06-13 | Lawrence Wilcock | Contact center |
CN1655553A (en) * | 2004-02-11 | 2005-08-17 | 微软公司 | System and method for facilitating third-party call and device control |
CN101656645A (en) * | 2008-08-20 | 2010-02-24 | 华为技术有限公司 | Method, equipment and system for communication between external equipment and internal equipment of home network |
CN101677327A (en) * | 2008-09-16 | 2010-03-24 | 华为技术有限公司 | Method, system and device of subscribing position-related information |
CN101478617A (en) * | 2008-12-31 | 2009-07-08 | 中国电信股份有限公司 | Method, system, household gateway and USB wireless device for implementing VOIP voice |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016107270A1 (en) * | 2014-12-31 | 2016-07-07 | 华为技术有限公司 | Device managing method, device and device managing controller |
CN105812333A (en) * | 2014-12-31 | 2016-07-27 | 北京大唐高鸿数据网络技术有限公司 | SIP equipment and non-SIP equipment communication method |
CN105808407A (en) * | 2014-12-31 | 2016-07-27 | 华为技术有限公司 | Equipment management method, equipment and equipment management controller |
EP3193475A4 (en) * | 2014-12-31 | 2017-09-13 | Huawei Technologies Co., Ltd. | Device managing method, device and device managing controller |
US10042583B2 (en) | 2014-12-31 | 2018-08-07 | Huawei Technologies Co., Ltd. | Device management method, device, and device management controller |
CN105808407B (en) * | 2014-12-31 | 2019-09-13 | 华为技术有限公司 | Method, equipment and the equipment management controller of management equipment |
CN104935764A (en) * | 2015-05-26 | 2015-09-23 | 北京京东尚科信息技术有限公司 | System, device and method for controlling voice-over-Internet-protocol terminal |
CN105049648A (en) * | 2015-06-30 | 2015-11-11 | 百度在线网络技术(北京)有限公司 | Phone callback method, callback platform and communication operator server |
CN106331386A (en) * | 2015-07-02 | 2017-01-11 | 华为技术有限公司 | Terminal state synchronization method, related device and system |
CN106331386B (en) * | 2015-07-02 | 2019-10-15 | 华为技术有限公司 | SOT state of termination synchronous method, relevant apparatus and system |
CN109756351A (en) * | 2017-11-01 | 2019-05-14 | 中国石油化工股份有限公司 | A kind of automatic notice and response system for system unit state change |
CN108600295A (en) * | 2018-02-28 | 2018-09-28 | 青岛海尔科技有限公司 | A kind of method, equipment and medium for realizing status information of equipment notice |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103188250A (en) | Terminal device state notification and control method based on session initiation protocol (SIP) | |
CN107070849B (en) | System and method for implementing control transfer of collaborative sessions using SIP protocol | |
EP1676399B1 (en) | System and method for presence-based routing of communication requests over a network | |
CN101647255B (en) | Method and apparatus for management of an application ensemble | |
CN102185728B (en) | Communication system and method with unified management platform | |
KR20100053688A (en) | Centralized call log for synchronized call protocol information | |
US20100185787A1 (en) | Dynamic call handling from multiple attached devices | |
CN105282730A (en) | Method and system for acquiring terminal communication state in IMS (IP multimedia subsystem) and application server | |
KR20190033589A (en) | Method, apparatus and system for notification | |
CN101938498A (en) | Method, device and system for instant communication between digital TV terminals | |
JP2002247617A (en) | Network application distribution executing system | |
CN101771769B (en) | Method, device and system for call control | |
CN103024687A (en) | Method and equipment for establishing instant messaging | |
CN100450024C (en) | Method for monitoring multi-medium sub-system domain | |
EP2797285B1 (en) | Method and apparatus for network communication | |
EP2178247B1 (en) | Sharing status information across a pluarlity of communication networks | |
US20130230158A1 (en) | Data communication | |
CN110418299A (en) | Call transferring method and system | |
JP2005203926A (en) | Network control apparatus, communication terminal, communication connection method, and connection registration method to network | |
KR100734871B1 (en) | Apparatus for emergency rescue using user presence information in next generation communication environment and method thereof | |
WO2012052710A1 (en) | Concurrent voice and data communication | |
JP2012530304A (en) | Method and device for controlling presence information of a user terminal | |
KR101975507B1 (en) | Method and system for forwarding push-based video call to another user in same group | |
CN101141272A (en) | Calling system and method thereof | |
CN101448223B (en) | Method for realizing call holding and call recover of circuit switched domain accessed IP multimedia subsystem |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130703 |