CN110351224A - A kind of dissemination method and device of SIP status service - Google Patents
A kind of dissemination method and device of SIP status service Download PDFInfo
- Publication number
- CN110351224A CN110351224A CN201810285813.8A CN201810285813A CN110351224A CN 110351224 A CN110351224 A CN 110351224A CN 201810285813 A CN201810285813 A CN 201810285813A CN 110351224 A CN110351224 A CN 110351224A
- Authority
- CN
- China
- Prior art keywords
- sip
- state
- terminal
- message
- terminals
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1101—Session protocols
- H04L65/1104—Session initiation protocol [SIP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Telephonic Communication Services (AREA)
Abstract
This application provides a kind of dissemination methods of SIP status service, are applied on sip server, this method comprises: sending confirmation 200OK message to sip terminal when receiving the SUBSCRIBE message of sip terminal transmission;The newest SIP state for obtaining all terminals of sip terminal subscription, carries in transmission control protocol TCP message, is sent to the sip terminal.Based on same inventive concept, the application also proposes a kind of distributing device of SIP status service, can be improved the information capacity of message, reduces the interacting message of server side and terminal side, simplifies the process flow of sip server SIP state publication.
Description
Technical field
The present invention relates to field of communication technology, in particular to a kind of session initiation protocol (Session Initiation
Protocol, SIP) status service dissemination method and device.
Background technique
Sip server is the primary clustering of IP PBX, is responsible for establishing and safeguarding SIP phone call all in network.It
Major function have SIP registration, SIP business processing, SIP state publication etc..
It is issued for SIP state, simple SIP state has the online and offline state of sip terminal, complicated SIP state
There is service condition, such as the activation of group and the point of idle state, sip terminal exhale state, SIP video posting status.
Referring to Fig. 1, Fig. 1 is SIP state subscription and publication flow diagram in existing realization.Sip terminal passes through in Fig. 1
SIP signaling subscribes to (SUBSCRIBE) message to sip server subscription status, and sip server passes through SIP signaling confirmation (200OK)
Message adds their confirmation, while signaling (NOTIFY) message according to certain regular to sip terminal issued state, SIP by SIP
Terminal replies SIP signaling 200OK message adds their confirmation.
Since Session Initiation Protocol uses text message, and every message is it is not recommended that be greater than 2048 bytes, therefore can in message
The SIP state capacity for including is small.If the SIP state that sip terminal is subscribed to is more, need to send multiple messages.
Message, which is greater than 2048 bytes, to cause subpackage to close the consumption of packet in transport layer subpackage;A plurality of sip message,
So that terminal side and server side both sides handle very complicated, inefficiency.
Summary of the invention
In view of this, the application provides the dissemination method and device of a kind of SIP status service, to solve sip message capacity
Small problem.
In order to solve the above technical problems, the technical solution of the application is achieved in that
A kind of dissemination method of SIP status service is applied on sip server, this method comprises:
When receiving the subscription SUBSCRIBE message of sip terminal transmission, 200OK message is sent to sip terminal;
The newest SIP state for obtaining all terminals of sip terminal subscription, carries in TCP message, is sent to the SIP
Terminal.
A kind of distributing device of SIP status service is applied on sip server, which includes: receiving unit, first
Transmission unit, acquiring unit and the second transmission unit;
The receiving unit subscribes to SUBSCRIBE message for receiving;
First transmission unit, for receiving the SUBSCRIBE message of sip terminal transmission when the receiving unit
When, confirmation 200OK message is sent to sip terminal;
The acquiring unit obtains when for receiving the SUBSCRIBE message of sip terminal transmission when the receiving unit
The newest SIP state for all terminals for taking the sip terminal to subscribe to carries in TCP message;
Second transmission unit, for the TCP message in the acquiring unit to be sent to the sip terminal.
As can be seen from the above technical solution, pass through transmission control protocol (Transmission Control in the application
Protocol, TCP) message come replace sip message publication sip terminal subscribe to SIP state, can be improved message information hold
Amount reduces the interacting message of server side and terminal side, simplifies the process flow of sip server SIP state publication.
Detailed description of the invention
Fig. 1 is SIP state subscription and publication flow diagram in existing realization;
Fig. 2 is that SIP status service issues flow diagram in the embodiment of the present application;
Fig. 3 is the flow diagram that the SIP state that notice sip terminal is subscribed in the embodiment of the present application updates;
Fig. 4 is the apparatus structure schematic diagram for being applied to above-mentioned technology in the embodiment of the present application.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and examples,
Technical solution of the present invention is described in detail.
A kind of dissemination method of SIP status service is provided in the embodiment of the present application, sip message is replaced by TCP message
The SIP state that sip terminal is subscribed to is issued, can be improved the information capacity of message, the message for reducing server side and terminal side is handed over
Mutually, the process flow of sip server SIP state publication is simplified.
There are the online and offline state of sip terminal, complicated SIP state in the embodiment of the present application for simple SIP state
There is service condition, such as the activation of group and the point of idle state, sip terminal exhale state, SIP video posting status, the application
Can according to actual needs in embodiment, the SIP state issued required for being issued using state distribution scheme provided by the present application.
With reference to the accompanying drawing, the issuing process that SIP status service is realized in the embodiment of the present application is described in detail.
In the embodiment of the present application sip server stored in SIP state cache area all sip terminals in a network produce
Raw state.
When the state of any sip terminal changes, the state after corresponding sip terminal variation is updated to SIP state
In buffer area.
Referring to fig. 2, Fig. 2 is that SIP status service issues flow diagram in the embodiment of the present application.Specific steps are as follows:
Step 201, it when sip server receives the SUBSCRIBE message of sip terminal transmission, is sent to sip terminal
200OK message.
The specific implementation process of this step sends SUBSCRIBE message request SIP state compared with realization, sip terminal, with
And server is completed using Session Initiation Protocol for the response of the SUBSCRIBE message.
Step 202, sip server obtains the newest SIP state of all terminals of sip terminal subscription, and carrying disappears in TCP
In breath, it is sent to the sip terminal.
When obtaining all SIP states that corresponding sip terminal is subscribed in this step, obtained from SIP state cache area.
The SIP state that sip terminal is subscribed to is sent to sip terminal by a TCP message in this step.
After sip terminal receives TCP message, all SIP states of current subscription are obtained from the TCP message.
With reference to the accompanying drawing, how detailed description SIP state notifies to subscribe to the sip terminal of corresponding states after updating.
It is the flow diagram for the SIP state update that notice sip terminal is subscribed in the embodiment of the present application referring to Fig. 3, Fig. 3.
Step 301, sip server, which periodically acquires, is subscribed to by all sip terminals in SIP state cache area, and with it is upper
One period compared the SIP state that state changes, and carried in a TCP message.
For how to determine the SIP state of which sip terminal in this week interim implementation to change in this step
It is not limited, such as can increase update mark while any SIP state updates;And occur in current period SIP state
After the SIP state of change is sent to sip terminal, update mark is deleted;
The SIP state in two periods can also be safeguarded simultaneously, relatively determine the SIP state of variation.
Step 302, which is sent to all sip terminals for subscribing to SIP state for the TCP message, makes to correspond to
Sip terminal obtains ordered SIP state according to local subscription list.
Each sip terminal is according to the sip terminal list oneself subscribed to, the SIP state required for taking out it in message.
Sip server is packaged with all subscribed SIP states in the present embodiment, in sip server over-assemble
At a large and complete TCP message, the sip terminal of all subscription status is issued, required for filtering it by sip terminal oneself
SIP state.The interaction of message between sip server and sip terminal can be greatly reduced.
The SIP state subscribed to is sent to a terminal using TCP message in the embodiment of the present application, or is sent out to multiple terminals
When the subscribed SIP state that cloth updates, two TCP message mark-on will fields can be distinguished, can not also be distinguished, by connecing
The sip terminal received obtains the SIP state needed according to local subscription list.
Based on same inventive concept, the application also proposes a kind of distributing device of SIP status service, is applied to SIP and takes
It is engaged on device.Referring to fig. 4, Fig. 4 is the apparatus structure schematic diagram for being applied to above-mentioned technology in the embodiment of the present application.The device includes:
Receiving unit 401, the first transmission unit 402, acquiring unit 403 and the second transmission unit 404;
Receiving unit 401, for receiving SUBSCRIBE message;
First transmission unit 402, when for receiving the SUBSCRIBE message of sip terminal transmission when receiving unit 401,
Confirmation 200OK message is sent to sip terminal;
Acquiring unit 403 obtains when for receiving the SUBSCRIBE message of sip terminal transmission when receiving unit 401
The newest SIP state for all terminals that the sip terminal is subscribed to carries in transmission control protocol TCP message;
Second transmission unit 404 is sent to the sip terminal for will acquire the TCP message in unit 403.
Preferably, the device further comprises: storage unit 405;
Storage unit 405, for by sip server the state that generates of all sip terminals in a network be stored in SIP shape
In state buffer area.
Preferably,
Storage unit 405 is further used for when the state of any sip terminal changes, by corresponding sip terminal variation
State afterwards is updated into SIP state cache area.
Preferably,
Acquiring unit 403 is further used for periodically acquiring in the SIP state cache area in storage unit 405 and be owned
What sip terminal was subscribed to, and the SIP state that state changes compared with a upper period, and carry in a TCP message;
Second transmission unit 404 is further used for will acquire the TCP message in unit 403 and is sent to all subscription SIP shapes
The sip terminal of state makes corresponding sip terminal obtain ordered SIP state according to local subscription list.
Preferably,
Acquiring unit 403 is subscribed to specifically for obtaining the sip terminal from the SIP state cache area in storage unit 405
All terminals newest SIP state.
The unit of above-described embodiment can integrate in one, can also be deployed separately;It can be merged into a unit, it can also
To be further split into multiple subelements.
In conclusion the SIP state that the application replaces sip message publication sip terminal to subscribe to by TCP message, it can
The information capacity of message is improved, the interacting message of server side and terminal side is reduced, simplifies the publication of sip server SIP state
Process flow.
The extensive publication solution of SIP status service provided by the embodiments of the present application, by the state buffer of sip terminal
Mechanism is from O (n2) complexity be reduced to O (n), greatly reduce the message distribution amount inside sip server, simplify SIP clothes
The process flow of device SIP state of being engaged in publication.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (10)
1. a kind of dissemination method of session initiation protocol SIP status service is applied on sip server, which is characterized in that the party
Method includes:
When receiving the subscription SUBSCRIBE message of sip terminal transmission, confirmation 200OK message is sent to sip terminal;
The newest SIP state for obtaining all terminals of sip terminal subscription, carries in transmission control protocol TCP message, sends
Give the sip terminal.
2. the method according to claim 1, wherein the method further includes:
By in the state deposit SIP state cache area that generates of all sip terminals in a network.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
When the state of any sip terminal changes, the state after corresponding sip terminal variation is updated to SIP state cache
Qu Zhong.
4. according to the method in claim 2 or 3, which is characterized in that the method further includes:
It periodically acquired and is subscribed in SIP state cache area by all sip terminals, and compared with a upper period state changes
SIP state, and carry in a TCP message, be sent to all sip terminals for subscribing to SIP states, make corresponding sip terminal
Ordered SIP state is obtained according to local subscription list.
5. according to the method in claim 2 or 3, which is characterized in that all terminals for obtaining sip terminal subscription
Newest SIP state, comprising:
The newest SIP state of all terminals of sip terminal subscription is obtained from SIP state cache area.
6. a kind of distributing device of session initiation protocol SIP status service is applied on sip server, which is characterized in that the dress
Set includes: receiving unit, the first transmission unit, acquiring unit and the second transmission unit;
The receiving unit subscribes to SUBSCRIBE message for receiving;
First transmission unit, when for receiving the SUBSCRIBE message of sip terminal transmission when the receiving unit, to
Sip terminal sends confirmation 200OK message;
The acquiring unit, when for receiving the SUBSCRIBE message of sip terminal transmission when the receiving unit, obtaining should
The newest SIP state for all terminals that sip terminal is subscribed to carries in transmission control protocol TCP message;
Second transmission unit, for the TCP message in the acquiring unit to be sent to the sip terminal.
7. device according to claim 6, which is characterized in that described device further comprises: storage unit;
The storage unit, for by sip server the state that generates of all sip terminals in a network be stored in SIP state
In buffer area.
8. device according to claim 7, which is characterized in that
The storage unit is further used for when the state of any sip terminal changes, after corresponding sip terminal variation
State update into SIP state cache area.
9. device according to claim 7 or 8, which is characterized in that the acquiring unit is further used for periodically acquiring
It was subscribed to, and the SIP state that state changes compared with a upper period, and takes by all sip terminals in SIP state cache area
Band is in a TCP message;
Second transmission unit is further used for for the TCP message in the acquiring unit being sent to all subscription SIP states
Sip terminal, so that corresponding sip terminal is obtained ordered SIP state according to local subscription list.
10. device according to claim 7 or 8, which is characterized in that
The acquiring unit, specifically for obtaining sip terminal subscription from the SIP state cache area in the storage unit
The newest SIP state of all terminals.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810285813.8A CN110351224A (en) | 2018-04-03 | 2018-04-03 | A kind of dissemination method and device of SIP status service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810285813.8A CN110351224A (en) | 2018-04-03 | 2018-04-03 | A kind of dissemination method and device of SIP status service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110351224A true CN110351224A (en) | 2019-10-18 |
Family
ID=68172427
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810285813.8A Pending CN110351224A (en) | 2018-04-03 | 2018-04-03 | A kind of dissemination method and device of SIP status service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110351224A (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101251860A (en) * | 2008-03-10 | 2008-08-27 | 北京航空航天大学 | Web information publish administrating system and method |
CN101369904A (en) * | 2007-08-17 | 2009-02-18 | 华为技术有限公司 | Method and system for transmitting service discovering information, and service discovering function entity |
CN101414950A (en) * | 2007-10-19 | 2009-04-22 | 阿尔卡特朗讯公司 | Method for address translation device traversal for sip signaling messages through temporary use of the TCP transport protocol |
CN101945141A (en) * | 2010-09-17 | 2011-01-12 | 北京神州泰岳软件股份有限公司 | TCP-based method and system for traversing NAT devices |
CN101998374A (en) * | 2009-08-31 | 2011-03-30 | 中兴通讯股份有限公司 | Presence information subscribing method and IP multimedia subsystem |
CN102056147A (en) * | 2009-10-29 | 2011-05-11 | 中兴通讯股份有限公司 | Method and system for subscribing service in IP (Internet Protocol) multimedia subsystem network |
CN103516723A (en) * | 2013-09-22 | 2014-01-15 | 大唐移动通信设备有限公司 | SIP message handling method and device |
CN104468556A (en) * | 2014-12-01 | 2015-03-25 | 华为技术有限公司 | Service push implementation method and device |
CN105813228A (en) * | 2016-03-14 | 2016-07-27 | 华为技术有限公司 | Communication method and related device based on SIP over TCP/TLS |
US20160380693A1 (en) * | 2015-06-24 | 2016-12-29 | The Boeing Company | Reducing Call Setup Delay in Geomobile Satellite Networks |
CN106936843A (en) * | 2017-03-31 | 2017-07-07 | 山东超越数控电子有限公司 | A kind of common protocol layer architecture structure and its management method for managing industrial automation system |
CN107517202A (en) * | 2017-07-28 | 2017-12-26 | 北京容联易通信息技术有限公司 | A kind of binarization method of sending and receiving of SIP signalings |
-
2018
- 2018-04-03 CN CN201810285813.8A patent/CN110351224A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369904A (en) * | 2007-08-17 | 2009-02-18 | 华为技术有限公司 | Method and system for transmitting service discovering information, and service discovering function entity |
CN101414950A (en) * | 2007-10-19 | 2009-04-22 | 阿尔卡特朗讯公司 | Method for address translation device traversal for sip signaling messages through temporary use of the TCP transport protocol |
CN101251860A (en) * | 2008-03-10 | 2008-08-27 | 北京航空航天大学 | Web information publish administrating system and method |
CN101998374A (en) * | 2009-08-31 | 2011-03-30 | 中兴通讯股份有限公司 | Presence information subscribing method and IP multimedia subsystem |
CN102056147A (en) * | 2009-10-29 | 2011-05-11 | 中兴通讯股份有限公司 | Method and system for subscribing service in IP (Internet Protocol) multimedia subsystem network |
CN101945141A (en) * | 2010-09-17 | 2011-01-12 | 北京神州泰岳软件股份有限公司 | TCP-based method and system for traversing NAT devices |
CN103516723A (en) * | 2013-09-22 | 2014-01-15 | 大唐移动通信设备有限公司 | SIP message handling method and device |
CN104468556A (en) * | 2014-12-01 | 2015-03-25 | 华为技术有限公司 | Service push implementation method and device |
US20160380693A1 (en) * | 2015-06-24 | 2016-12-29 | The Boeing Company | Reducing Call Setup Delay in Geomobile Satellite Networks |
CN105813228A (en) * | 2016-03-14 | 2016-07-27 | 华为技术有限公司 | Communication method and related device based on SIP over TCP/TLS |
CN106936843A (en) * | 2017-03-31 | 2017-07-07 | 山东超越数控电子有限公司 | A kind of common protocol layer architecture structure and its management method for managing industrial automation system |
CN107517202A (en) * | 2017-07-28 | 2017-12-26 | 北京容联易通信息技术有限公司 | A kind of binarization method of sending and receiving of SIP signalings |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9509837B2 (en) | System and method for providing telephone call notification and management in a network environment | |
CN101355797B (en) | Method for obtaining user terminal equipment information and communication service function entity | |
CN1971604B (en) | System and method for calendar presence retrieval | |
US20080288649A1 (en) | Using presence proxies to group presence notifications | |
US20070153709A1 (en) | Method of notifying the presence of a terminal in a communications system and a system therefor | |
US20100069092A1 (en) | Scalable Geo-location Event Processing | |
WO2006047161A2 (en) | System and method for initiating push-to-talk sessions between outside services and user equipment | |
CN108156069A (en) | A kind of integration message system and message treatment method | |
WO2006066485A1 (en) | A method for displaying calling information on called user terminal | |
EP1299844A1 (en) | Method and apparatus of presenting ticker information | |
US20110246581A1 (en) | Method and System for Group Event Communications | |
CN104580247A (en) | Information synchronization method and information synchronization device based on IMS multi-party calls | |
CN101467420A (en) | Method for providing early-media service based on session initiation protocol | |
CN101909062A (en) | Three network convergence-oriented service subscription, distribution and management system | |
WO2015027721A1 (en) | Terminal status subscription method, apparatus and system | |
CN104348700B (en) | Method and system for issuing microblog | |
CN110087227A (en) | A kind of system and method for the distributed presentation business based on IMS architecture | |
CN102378355B (en) | IMS multimedia conferencing terminal switching method and apparatus thereof | |
JP2009060608A (en) | METHOD OF PROCESSING CALL DURING PoC JOB AND PRESENCE INFORMATION RESERVED SUBSCRIPTION METHOD | |
CN107295203B (en) | Method for message transmission and device in a kind of multi-party call meeting | |
CN101159910A (en) | Synchronous present state method and cluster server and terminal for implementing the method | |
CN110351224A (en) | A kind of dissemination method and device of SIP status service | |
WO2013004089A1 (en) | Method, device and system for synchronizing contacts based on converged address book | |
US20040093433A1 (en) | Method for group call address of record compression | |
US8229454B1 (en) | Personal location information management |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191018 |