CN101754428A - SIP-based add-friend implementation method of instant messaging system - Google Patents

SIP-based add-friend implementation method of instant messaging system Download PDF

Info

Publication number
CN101754428A
CN101754428A CN200910259697A CN200910259697A CN101754428A CN 101754428 A CN101754428 A CN 101754428A CN 200910259697 A CN200910259697 A CN 200910259697A CN 200910259697 A CN200910259697 A CN 200910259697A CN 101754428 A CN101754428 A CN 101754428A
Authority
CN
China
Prior art keywords
message
sip
good friend
buddy list
xcap
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
Application number
CN200910259697A
Other languages
Chinese (zh)
Inventor
黄妮丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN200910259697A priority Critical patent/CN101754428A/en
Publication of CN101754428A publication Critical patent/CN101754428A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a SIP-based add-friend implementation method of an instant messaging system, which includes the following procedures: A10, when a transmitter terminal transmits an invitation, the message body of the invitation message contains the transmitter terminal information; A20, when a receiver terminal receives the invitation, the receiver terminal acquires the transmitter terminal information in the message body, and encapsulates the receiver terminal information, acceptance or rejection verification results in the message body of the verification message and transmits the verification message to the transmitter terminal; A30, the transmitter terminal receives the verification message and acquires the receiver terminal information in the message body of the verification message and makes acceptance or rejection responses. The SIP-based add-friend implementation method adds verification mechanism, guarantees the certain security in the SIP instant messaging system and proposes a solution for sharing friend lists among different user terminals.

Description

Implementation method based on the interpolation good friend in the instant communicating system of SIP
Technical field
The present invention relates to the instant communicating system of SIP, be specifically related to implementation method based on the interpolation good friend in the instant communicating system of SIP.
Background technology
At present, IM such as mobile communication, instant messaging (instant messaging) network communications technology has obtained large-scale application, about the discussion of VOIP, instant messaging and the network integration from theoretic discussion gradually to the actual life, or be about to become main flow based on the instant communicating system of SIP.SIP has become communicate by letter with other real-time media main agreement of (media communication) of VoIP on the packet networks.
At first, SIP is considered to a kind of agreement of the design of IP network of being from the beginning.This agreement is set up by IETF, and is to set up on the basis of some other agreement of having developed for the IP field.SIP is a kind of text based agreement, the compatible network field based on the SGML distributed application program.Its uses the address identical with the Internet and uses the assembly of many Internet architecture (as dns server etc.) at work.This just makes, and Session Initiation Protocol is easier to be integrated in the application program of making according to the computing platform and the operating system of standard, promotes the fusion of network.
The second, SIP is a kind of extendible agreement, can work with the very wide application program of range of operation with multiple media formats and load.Session Initiation Protocol has been formulated some standards for application programs such as instant message, resource management, Media Stream (video) and good friend's online managements.This autgmentability can be created the new application program of innovation.SIP is applicable to enterprise application and the very large operator of retractility application program.This agreement is applicable to wired and wireless network, can utilize the safety of network and the advantage of AAA assets.
The 3rd, Session Initiation Protocol has been the part of the infrastructure in most of end points, particularly desktop operating system now.This just makes the developer can make application program based on Session Initiation Protocol easily.The same with many communication standards, interoperability is crucial, and SIP has guaranteed that all main execution works can be compatible well.
But, at present as the most basic good friend's management function in the instant communicating system based on SIP---add the good friend, also good without comparison implementation in existing communication system.
Summary of the invention
At the problems referred to above, the object of the present invention is to provide a kind of implementation method based on the interpolation good friend in the instant communicating system of SIP, add the good friend and must the other side verify by just being added in the buddy list of oneself, to satisfy the requirement of user to fail safe.Buddy list among the present invention simultaneously is stored on the XDMS, has satisfied dissimilar communication terminals and has realized sharing of buddy list, strengthens user experience.
The present invention includes following steps:
A10, make a start when send inviting, carry the pet name of making a start in the message body of invitation message, the SIP number of the account is invited the packet ID and the additional information of adding to;
After A20, receiving end are received above-mentioned invitation, from invitation message, obtain the pet name of making a start, the SIP number of the account, grouping that invitation is added to and additional information are invited the pet name of receiving end, SIP number of the account, invited party the checking result of the packet ID of adding to and acceptance or refusal to be encapsulated in then to send in the message body of checking message and are made a start; Invite if receiving end is accepted this, then send instruction to XDMS and add in the buddy list of oneself making a start by XCAP message, otherwise, send refusal and reply;
A30, make a start and receive checking message, from the message body of checking message, obtain receiving end the pet name, SIP number of the account, ownly invite the packet ID of adding to and verify the result, if receiving end is accepted the invitation, then add receiving end to oneself to XDMS transmission instruction and invite the grouping of adding to by XCAP message, otherwise, prompting is made a start, addressee refuses good friend's invitation.
In the such scheme, good friend's invitation and good friend for off-line invite the checking message stores at the IM application server, after treating that the other side reaches the standard grade, be forwarded to SIP Proxy, send registration message to SIP Proxy when concrete steps are reached the standard grade for the user, SIP Proxy is forwarded to the IM server with this registration message, after the IM server is received this user's registration message, the good friend of the off-line of storage is invited or the good friend invites checking message by SIPProxy, be forwarded to this user.
The XDM server is preserved buddy list, and terminal can send instruction by XCAP message and carry out the management of buddy list, comprises the management to user in buddy list management of packets and the buddy list,
Described buddy list management of packets may further comprise the steps:
A grouping of buddy list is created in B10, the operation of the PUT by XCAP;
The title of buddy list grouping is revised in B20, the operation of the PUT by XCAP;
B30, the operation of the DELETE by XCAP, the grouping of deletion buddy list;
User's management may further comprise the steps in the buddy list:
The grouping of good friend to buddy list added in C10, the operation of the PUT by XCAP;
A good friend's remarks are revised in C20, the operation of the PUT by XCAP;
A good friend is deleted in C30, the operation of the DELETE by XCAP.
Provided by the invention based on the method for adding the good friend in the instant communicating system of SIP, increased authentication mechanism, for the fail safe in the SIP instant communicating system provides certain guarantee, for sharing the solution of buddy list between the different user terminals, user's buddy list is stored on the XDMS with the form of XML document, any type of client, as long as through authentication and authorization, can obtain these data from XDMS by the XCAP agreement, this shares a kind of reliable and effective solution is provided for carry out buddy list between different user terminals.
Description of drawings
Fig. 1 is a realization networking schematic diagram of the present invention;
Fig. 2 is interpolation good friend of the present invention, and the other side agrees the flow chart of inviting, and the forwarding process of SIP Proxy has been omitted in the centre;
Fig. 3 is interpolation good friend of the present invention, the flow chart that addressee refuses is invited, and the forwarding process of SIP Proxy has been omitted in the centre.
Embodiment
Below in conjunction with accompanying drawing the present invention is made detailed explanation, need to prove, embodiment described herein is only in order to explain the present invention, is not used for limiting the present invention.
Fig. 1 is a realization networking schematic diagram of the present invention, wherein, the IM application server provides the IM service based on SIP, and SIP Proxy is responsible for the forwarding of sip message, the XDM server is used to preserve buddy list, and terminal can send instruction by XCAP message and carry out the management of buddy list.Fig. 2 is interpolation good friend of the present invention, the other side agrees the flow chart of inviting, Fig. 3 is interpolation good friend of the present invention, the flow chart that addressee refuses is invited, the forwarding process of SIP Proxy has been omitted in the centre, as Fig. 2, shown in Figure 3, the implementation method based on the interpolation good friend in the instant communicating system of SIP provided by the invention may further comprise the steps:
When A10, the UA1 that makes a start send invitation by IM Server, in the message body of invitation message, carry the pet name of making a start, the SIP number of the account, packet ID that invitation is added to and additional information, additional information are used for telling some information by invited party oneself, as name, identity etc., invitation message is as follows:
The good friend invites (making a start 995282)
MESSAGE?sip:995446@10.90.5.122SIP/2.0
Via:SIP/2.0/UDP10.96.5.128;branch=z9hG4bK776sgdkse
User-Agent:IKu1.0
Max-Forwards:70
From:sip:995282@10.90.5.122;tag=49583
To:sip:995446@10.90.5.122
Call-ID:asd88asd77a@1.2.3.4
CSeq:1MESSAGE
Content-Type:message/friend-invite // expansion
Content-Length:…
<friend-invite>
<user-dispname>lily</user-dispname>
<user-uri>sip:995282@10.90.5.122</user-uri>
<added-listID>oma_buddylist</added-listID>
<remark〉I be lily</remark
</friend-invite>
After A20, receiving end UA2 receive above-mentioned invitation from IM Server, from invitation message, obtain the pet name of making a start, the SIP number of the account, grouping that invitation is added to and additional information are invited the pet name of receiving end, SIP number of the account, invited party the checking result of the packet ID of adding to and acceptance or refusal to be encapsulated in then to send in the message body of checking message and are made a start; Invite if receiving end is accepted this, then send instruction to XDMS and add in the buddy list of oneself, reply otherwise send refusal with making a start by XCAP message.
Invite checking message as follows:
The good friend invites checking (receiving end 995446)
MESSAGE?sip:995282@10.90.5.122SIP/2.0
Via:SIP/2.0/UDP?10.96.5.128;branch=z9hG4bK776sgdkbb
User-Agent:IKu1.0
Max-Forwards:70
From:sip:995446@10.90.5.122;tag=98786
To:sip:995282@10.90.5.122
Call-ID:asd89asd77cc@1.2.3.4
CSeq:1MESSAGE
Content-Type:message/friend-invite-notify // expansion
Content-Length:…
<friend-invite-notify>
<invite-user-dispname>Tom</invite-user-dispname>
<invite-user-uri>sip:995446@10.90.5.122</invite-user-uri>
<listID>oma_buddylist</listID>
<option>yes</option>
</friend-invite-notify>
The implementation of adding " test group " in the buddy list (receiving end add make a start, " test group " packet ID is ext_mylist_yenuib) on XDMS with making a start in " test group " grouping is as follows:
PUT
/resource-lists/users/sip:995446@10.90.5.122/index/~~/resource-lists/list%
5b@name=%22ext_mylist_yenuib%22%5d/entry%5b@uri=%22
sip:995282@10.90.5.122%22%5d?HTTP/1.1
Content-Type:application/xcap-el+xml
X-3GPP-Asserted-Identity:sip:995446@10.90.5.122
User-Agent:XDM-client/OMA2.0
Content-Length:74
<entry?uri=″sip:995282@10.90.5.122″>
<display-name>Lily</display-name>
</entry>
If refusal is invited, change message body option field into " no ", as follows:
<friend-invite-notify>
<invite-user-dispname>Tom</invite-user-dispname>
<invite-user-uri>sip:995446@10.90.5.122</invite-user-uri>
<listID>oma_buddylist</listID>
<option>no</option>
</friend-invite-notify>
A30, make a start and receive checking message, from the message body of checking message, obtain receiving end the pet name, SIP number of the account, ownly invite the packet ID of adding to and verify the result, if receiving end is accepted the invitation, then add receiving end to oneself to XDMS transmission instruction and invite the grouping of adding to by XCAP message, otherwise, prompting is made a start, addressee refuses good friend's invitation.
The implementation of receiving end being added to " my good friend " (make a start and add receiving end in " my good friend " grouping, " my good friend " packet ID is oma_buddylist) in the buddy list on XDMS is as follows:
PUT
/resource-lists/users/sip:995282@10.90.5.122/index/~~/resource-lists/list%
5b@name=%22oma_buddylist%22%5d/entry%5b@uri=%22?sip:995446@10.90.5.122%22%5d
HTTP/1.1
Content-Type:application/xcap-el+xml
X-3GPP-Asserted-Identity:sip:995282@10.90.5.122
User-Agent:XDM-client/OMA2.0
Content-Length:74
<entry?uri=″sip:995446@10.90.5.122″>
<display-name>Tom</display-name>
</entry>
Realized adding the good friend by above step through checking.
In the said method, the good friend that SIP Proxy is used for making a start invites and the good friend invites the checking forwards to the IM server, and will invite the checking forwards to receiving end from the good friend's invitation and the good friend of IM server, finish the forwarding that good friend's invitation and good friend invite checking message.The IM application server is used for online good friend is invited and the good friend invites the checking forwards to SIP Proxy, and the good friend of off-line invited and the good friend invites and verifies that message stores, after treating that the other side reaches the standard grade, be forwarded to SIP Proxy, finish storage and forwarding that good friend's invitation and good friend invite checking message.Concrete steps: the user sends registration message to SIP Proxy, SIPProxy can be forwarded to this registration message the IM server, the IM server just knows that this user has reached the standard grade like this, the good friend of the off-line of storage can be invited or the good friend invites checking message by SIP Proxy, is forwarded to this user.
The XDM server is used to preserve buddy list, and terminal can send instruction by XCAP message and carry out the management of buddy list, comprises the management to user in buddy list management of packets and the buddy list.
The buddy list management of packets may further comprise the steps:
A grouping of buddy list is created in B10, the operation of the PUT by XCAP;
The title of buddy list grouping is revised in B20, the operation of the PUT by XCAP;
B30, the operation of the DELETE by XCAP, the grouping of deletion buddy list;
User's management may further comprise the steps in the buddy list:
The grouping of good friend to buddy list added in C10, the operation of the PUT by XCAP;
A good friend's remarks are revised in C20, the operation of the PUT by XCAP;
A good friend is deleted in C30, the operation of the DELETE by XCAP.
Below be each message instance of good friend management:
(1), creates a grouping of buddy list.
PUT/resource-lists/users/sip:995282@10.90.5.122/
ext_mylist_yenuib?HTTP/1.1
Content-Type:application/resource-lists+xml
Accept:*/*
Host:10.90.5.80
Connection:Close
X-3GPP-Intended-Identity:sip:995282@10.90.5.122
User-Agent:XDM-client/OMA2.0
Cont?ent-Length:244
<?xml?version=″1.0″encoding=″UTF-8″?><resource-lists
xmlns=″urn:ietf:params:xml:ns:resource-lists″
xmlns:oau=″urn:oma:xml:xdm:resource-list:appusage″><list
Name=" ext_mylist_yenuib "〉<display-name〉the test group
</display-name></list></resource-lists>
(2), revise the title of buddy list grouping.
PUT/resource-lists/users/sip:995282@10.90.5.122/
ext_mylist_bbbeiu/~~/resource-lists/list%5b@name=%22ext_mylist_bbbeiu%22%5d/disp
lay-name%5b1%5d?HTTP/1.1
Content-Type:application/xcap-el+xml
Accept:*/*
Host:10.90.5.80
Connection:Close
X-3GPP-Intended-Identity:sip:995282@10.90.5.122
User-Agent:XDM-client/OMA2.0
Content-Length:35
<display-name〉the test modifications group name</display-name 〉
(3), the grouping of deletion buddy list.
DELETE/resource-lists/users/sip:995282@10.90.5.122/
index/~~/resource-lists/list%5b@name=%22oma_allcontacts%22%5d/external%5b@anchor
=%22http://xdms1.fhims.com.cn/services/resource-lists/users/sip:995282@10.90.5.1
22/ext_mylist_bbbeiu/~~/resource-lists/list%5B@name=%22ext_mylist_bbbeiu%22%5D%2
2%5d?HTTP/1.1
Accept:*/*
Host:10.90.5.80
Connection:Close
X-3GPP-Intended-Identity:sip:995282@10.90.5.122
User-Agent:XDM-client/OMA2.0
(4), add the grouping of good friend to buddy list.
PUT/resource-lists/users/sip:995282@10.90.5.122/
oma_buddylist/~~/resource-lists/list%5b@name=%22oma_buddylist%22%5d/entry%5b@uri
=%22sip:995446@10.90.5.122%22%5d?HTTP/1.1
Content-Type:application/xcap-el+xml
Accept:*/*
Host:10.90.5.80
Connection:Close
X-3GPP-Intended-Identity:sip:995282@10.90.5.122
User-Agent:XDM-client/OMA2.0
Content-Length:89
<entry?uri=″sip:995446@10.90.5.122″><display-name>Tom
</display-name></entry>
(5), revise a good friend's remarks.
PUT/resource-lists/users/sip:995282@10.90.5.122/
oma_buddylist/~~/resource-lists/list%5b@name=%22oma_buddylist%22%5d/entry%5b@uri
=%22sip:995446@10.90.5.122%22%5d?HTTP/1.1
Content-Type:application/xcap-el+xml
Accept:*/*
Host:10.90.5.80
Connection:Close
X-3GPP-Intended-Identity:sip:995282@10.90.5.122
User-Agent:XDM-client/OMA2.0
Content-Length:84
<entry?uri=″sip:995446@10.90.5.122″><display-name>test
</display-name></entry>
(6), good friend of deletion.
DELETE/resource-lists/users/sip:995282@10.90.5.122/
oma_buddylist/~~/resource-lists/list%5b@name=%22oma_buddylist%22%5d/entry%5b@uri
=%22sip:995446@10.90.5.122%22%5d?HTTP/1.1
Accept:*/*
Host:10.90.5.80
Connection:Close
X-3GPP-Intended-Identity:sip:995282@10.90.5.122
User-Agent:XDM-client/OMA2.0
The present invention is not limited to above-mentioned preferred forms, and anyone should learn the structural change of making under enlightenment of the present invention, and every have identical or close technical scheme with the present invention, all falls within protection scope of the present invention.

Claims (3)

1. based on the method for adding the good friend in the instant communicating system of SIP, it is characterized in that may further comprise the steps:
A10, make a start when send inviting, carry the pet name of making a start in the message body of invitation message, the SIP number of the account is invited the packet ID and the additional information of adding to;
After A20, receiving end are received above-mentioned invitation, from invitation message, obtain the pet name of making a start, the SIP number of the account, grouping that invitation is added to and additional information are invited the pet name of receiving end, SIP number of the account, invited party the checking result of the packet ID of adding to and acceptance or refusal to be encapsulated in then to send in the message body of checking message and are made a start; Invite if receiving end is accepted this, then send instruction to XDMS and add in the buddy list of oneself making a start by XCAP message, otherwise, send refusal and reply;
A30, make a start and receive checking message, from the message body of checking message, obtain receiving end the pet name, SIP number of the account, ownly invite the packet ID of adding to and verify the result, if receiving end is accepted the invitation, then add receiving end to oneself to XDMS transmission instruction and invite the grouping of adding to by XCAP message, otherwise, prompting is made a start, addressee refuses good friend's invitation.
2. as claimed in claim 1 based on the method for adding the good friend in the instant communicating system of SIP, it is characterized in that inviting the checking message stores at the IM application server for the good friend's invitation and the good friend of off-line, after treating that the other side reaches the standard grade, be forwarded to SIP Proxy, when reaching the standard grade for the user, concrete steps send registration message to SIP Proxy, SIP Proxy is forwarded to the IM server with this registration message, after the IM server is received this user's registration message, the good friend of the off-line of storage is invited or the good friend invites checking message by SIP Proxy, be forwarded to this user.
3. as claimed in claim 1 or 2 based on the method for adding the good friend in the instant communicating system of SIP, it is characterized in that XDM server preservation buddy list, terminal can send instruction by XCAP message and carry out the management of buddy list, comprise management to user in buddy list management of packets and the buddy list
Described buddy list management of packets may further comprise the steps:
A grouping of buddy list is created in B10, the operation of the PUT by XCAP;
The title of buddy list grouping is revised in B20, the operation of the PUT by XCAP;
B30, the operation of the DELETE by XCAP, the grouping of deletion buddy list;
User's management may further comprise the steps in the buddy list:
The grouping of good friend to buddy list added in C10, the operation of the PUT by XCAP;
A good friend's remarks are revised in C20, the operation of the PUT by XCAP;
A good friend is deleted in C30, the operation of the DELETE by XCAP.
CN200910259697A 2009-12-23 2009-12-23 SIP-based add-friend implementation method of instant messaging system Pending CN101754428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910259697A CN101754428A (en) 2009-12-23 2009-12-23 SIP-based add-friend implementation method of instant messaging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910259697A CN101754428A (en) 2009-12-23 2009-12-23 SIP-based add-friend implementation method of instant messaging system

Publications (1)

Publication Number Publication Date
CN101754428A true CN101754428A (en) 2010-06-23

Family

ID=42480610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910259697A Pending CN101754428A (en) 2009-12-23 2009-12-23 SIP-based add-friend implementation method of instant messaging system

Country Status (1)

Country Link
CN (1) CN101754428A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082740A (en) * 2010-12-29 2011-06-01 北京开心人信息技术有限公司 Method and system for adding friends in invitation link mode
CN103023744A (en) * 2011-09-22 2013-04-03 北京神州泰岳软件股份有限公司 Method and system for information management in instant messaging tool
CN106161175A (en) * 2015-03-23 2016-11-23 腾讯科技(深圳)有限公司 Realize method, system and terminal device that social networks is paid close attention to
CN111726789A (en) * 2019-03-21 2020-09-29 上海博泰悦臻电子设备制造有限公司 First mobile terminal, friend adding method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082740A (en) * 2010-12-29 2011-06-01 北京开心人信息技术有限公司 Method and system for adding friends in invitation link mode
CN103023744A (en) * 2011-09-22 2013-04-03 北京神州泰岳软件股份有限公司 Method and system for information management in instant messaging tool
CN106161175A (en) * 2015-03-23 2016-11-23 腾讯科技(深圳)有限公司 Realize method, system and terminal device that social networks is paid close attention to
CN111726789A (en) * 2019-03-21 2020-09-29 上海博泰悦臻电子设备制造有限公司 First mobile terminal, friend adding method and system

Similar Documents

Publication Publication Date Title
CN100499598C (en) Method and system of instant message user to use other immediate news system
CN101212719B (en) Method and system for implementing converged message service in radio communication network
CN102833698B (en) Use the data service technology that network is initiated to push the system and method for content to terminal
CN101714170B (en) XDMS-based group management system and method
US7526563B2 (en) Interworking gateway and method
US9204264B2 (en) Exchange of messages and sessions
US8171092B2 (en) Method for delivering CPM message and server thereof
KR101002842B1 (en) Group management method in interworking system of imps system and simple im system
US9288174B2 (en) Page-mode messaging
CN101325740A (en) Method, apparatus and system for implementing intercommunication of conversation initiating protocol message and short message
CN101754428A (en) SIP-based add-friend implementation method of instant messaging system
CN101834730A (en) Multimedia conferencing control method and system
CN101355533B (en) Communication interconnect method and apparatus
KR101498731B1 (en) Server and method for providing converged ip messaging service to interwork with non-converged ip messaging services and system therefor
CN106161201A (en) A kind of with Email Accounts for the mark participation method of group chat, equipment and system
Serik et al. Instant messaging application for Smartphone
CN101227432A (en) Method for message conversion, system, apparatus and method of access
US9444649B2 (en) Method for sending and receiving session history in a communications system
CN101778056A (en) Processing method and system for meeting history record fusing message business and
KR101524311B1 (en) Method for generating group messaging session in communication system and system therefor
CN101321135A (en) Method for processing call mode message and user proxy
KR20090058611A (en) System and method for presence service interconnect service in ims
KR100784225B1 (en) Method for providing service based on phone book address in presence system and the system thereof
CN101719909B (en) Method for realizing XCAP client terminal in home gateway
Alliance Instant Messaging using SIMPLE

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100623