CN102148814A - SIP (session initiation protocol) registration method and registration server - Google Patents

SIP (session initiation protocol) registration method and registration server Download PDF

Info

Publication number
CN102148814A
CN102148814A CN2010105231324A CN201010523132A CN102148814A CN 102148814 A CN102148814 A CN 102148814A CN 2010105231324 A CN2010105231324 A CN 2010105231324A CN 201010523132 A CN201010523132 A CN 201010523132A CN 102148814 A CN102148814 A CN 102148814A
Authority
CN
China
Prior art keywords
sip
user name
request message
login request
registration
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
CN2010105231324A
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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN2010105231324A priority Critical patent/CN102148814A/en
Publication of CN102148814A publication Critical patent/CN102148814A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides an SIP (session initiation protocol) registration method and a registration server. The method comprises the steps as follows: SIP registration request information from a UA (unit address) is obtained; the SIP registration request information does not comprise the user name of the UA; a user name is allocated to the UA; and the allocated user name is sent to the UA. The embodiment can allocate one user name to the UA by obtaining the SIP registration request information from the UA which does not comprise the user name of the UA, avoids registration failure caused by that the UA cannot obtain the user name of the UA, and the registration success rate of the UA is improved.

Description

SIP register method and registrar
Technical field
The embodiment of the invention relates to mobile communication technology, relates in particular to a kind of SIP register method and registrar.
Background technology
At complete conversation initialized protocol (Session Initiation Protocol, abbreviation SIP) in the system, all sip terminals are as user agent (User Agent, be called for short UA) all should be to SIP registrar server (Registration Server) registration, to inform its positional information, session ability information, call policy etc.When sip terminal is the UA starting up or Configuration Management Officer when carrying out the registration operation, just, comprise the user name of UA and the address information of UA in this SIP login request message to registrar transmission register requirement (REGISTER) message.After registrar receives above-mentioned SIP login request message, if succeed in registration, then send the 200OK message of the address information of the user name that comprises above-mentioned UA and UA to UA.
In the above-mentioned prior art, because UA can't be known the user name of this UA, therefore, the user name that does not comprise UA in the SIP login request message that registrar obtained from UA, registrar thinks that then above-mentioned SIP login request message refuse to register for illegal registration, thereby caused the failure of UA registration, reduced the success rate of UA registration.
Summary of the invention
The embodiment of the invention provides a kind of SIP register method and registrar, in order to improve the success rate of UA registration.
The embodiment of the invention provides a kind of SIP register method, comprising:
Obtain SIP login request message, do not comprise the user name of described UA in the described SIP login request message from UA;
For described UA distributes a user name;
Send a described user name of distributing to described UA.
The embodiment of the invention also provides a kind of registrar, comprising:
Receiver module is used to obtain the SIP login request message from UA, does not comprise the user name of described UA in the described SIP login request message;
Distribution module is used to described UA to distribute a user name;
Sending module is used for sending a described user name of distributing to described UA.
As shown from the above technical solution, the embodiment of the invention is by obtaining the SIP login request message from the user name that does not comprise this UA of UA, can distribute a user name for above-mentioned UA, avoided because UA can't be known the registration failure that user name caused of this UA, improved the success rate of UA registration.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the SIP register method that Fig. 1 provides for the embodiment of the invention one;
The schematic flow sheet of the SIP register method that Fig. 2 provides for the embodiment of the invention two;
The schematic flow sheet of the SIP register method that Fig. 3 provides for the embodiment of the invention three;
The structural representation of the registrar that Fig. 4 provides for the embodiment of the invention four.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The schematic flow sheet of the SIP register method that Fig. 1 provides for the embodiment of the invention one, as shown in Figure 1, the SIP register method of present embodiment can may further comprise the steps:
Step 101, registrar obtain the SIP login request message from UA, do not comprise the user name of above-mentioned UA in the above-mentioned SIP login request message;
Particularly, present embodiment realizes that the user name that does not comprise UA in the above-mentioned SIP login request message can include but not limited to following mode:
The username field that comprises in the contact of A, SIP login request message (contact) header field can be sky, for example: Contact:<sip:@192.168.2.100:6050〉etc.;
The username field that comprises in the contact header field of B, SIP login request message can be for being used to ask the identification information of distributing user name, for example: Contact:<sip:null@192.168.2.100:6050 〉, Contact:<sip:anonymous@192.168.2.100:6050, Contact:<sip:nouser@192.168.2.100:6050 etc.
Step 102, above-mentioned registrar are that above-mentioned UA distributes a user name;
Particularly, registrar can be selected a user name at random from the user name pond of this locality configuration, distribute to above-mentioned UA, perhaps can also select a user name according to certain strategy from the user name pond of this locality configuration, distributes to above-mentioned UA.
Step 103, above-mentioned registrar send an above-mentioned user name of distributing to above-mentioned UA.
In the present embodiment, when registrar gets access to SIP login request message from the user name that does not comprise this UA of UA, can avoid because UA can't be known the registration failure that user name caused of this UA for above-mentioned UA distributes a user name, improved the success rate of UA registration.
The schematic flow sheet of the SIP register method that Fig. 2 provides for the embodiment of the invention two, present embodiment is the specific embodiment of the invention described above embodiment one, as shown in Figure 2, the SIP register method of present embodiment can may further comprise the steps:
Step 201, UA send the SIP login request message to registrar, comprise username field and address field in the contact header field of above-mentioned SIP login request message, and username field is empty, address field is the address information of this UA, for example: Contact:<sip:@192.168.2.100:6050 〉;
Alternatively, comprise username field and address field in the contact header field of above-mentioned SIP login request message, and username field can comprise the identification information that is used to ask the distributing user name, for example: Contact:<sip:null@192.168.2.100:6050 〉, Contact:<sip:anonymous@192.168.2.100:6050, Contact:<sip:nouser@192.168.2.100:6050 etc.
Step 202, registrar are that UA distributes a user name, for example: 800;
Step 203, registrar send SIP response (200OK) message that succeeds in registration to UA, above-mentioned SIP succeeds in registration and is included as above-mentioned user name that this UA distributes and the address information of this UA in the contact header field of response message, for example: Contact:<sip:800@192.168.2.100:6050 〉.
In the present embodiment, when registrar gets access to SIP login request message from UA, be empty or be the identification information that is used to ask the distributing user name by the username field that is comprised in the contact header field of discerning this SIP login request message, know that the SIP login request message does not comprise the user name of this UA, thereby can distribute a user name for above-mentioned UA, so that the succeeding in registration of above-mentioned UA, avoided because UA can't be known the registration failure that user name caused of this UA, improved the success rate of UA registration.
The schematic flow sheet of the SIP register method that Fig. 3 provides for the embodiment of the invention three, present embodiment is another specific embodiment of the invention described above embodiment one, as shown in Figure 3, the SIP register method of present embodiment can may further comprise the steps:
Step 301, UA send the SIP login request message to registrar, comprise username field and address field in the contact header field of above-mentioned SIP login request message, and username field is empty, address field is the address information of this UA, for example: Contact:<sip:@192.168.2.100:6050 〉;
Alternatively, comprise username field and address field in the contact header field of above-mentioned SIP login request message, and username field can comprise the identification information that is used to ask the distributing user name, for example: Contact:<sip:null@192.168.2.100:6050 〉, Contact:<sip:anonymous@192.168.2.100:6050, Contact:<sip:nouser@192.168.2.100:6050 etc.
Step 302, registrar are that UA distributes a user name, for example: 800;
Step 303, registrar send SIP to UA and register not Authentication Response (401UNAUTHORIZED) message, above-mentioned SIP registers and is included as above-mentioned user name that this UA distributes and the address information of this UA in the contact header field of authentication response message not, for example: Contact:<sip:800@192.168.2.100:6050 〉;
Step 304, UA and registrar carry out alternately, and an above-mentioned user name of utilizing authentication information and the registrar that obtains to distribute is carried out the SIP registration.
In the present embodiment, when registrar gets access to SIP login request message from UA, be empty or be the identification information that is used to ask the distributing user name by the username field that is comprised in the contact header field of discerning this SIP login request message, know that the SIP login request message does not comprise the user name of this UA, thereby can distribute a user name for above-mentioned UA, so that above-mentioned UA can utilize this user name to carry out the SIP registration, avoided because UA can't be known the registration failure that user name caused of this UA, improved the success rate of UA registration.
Further, in the invention described above embodiment two and the embodiment of the invention three, in above-mentioned steps 201 or step 301, the SIP login request message that UA sends to registrar can also further comprise the identification information of this UA, for example: product ID, media interviews control (Media AccessControl is called for short MAC) address etc.Registrar gets access to after the above-mentioned SIP login request message, at first carry out legitimate verification according to the identification information of the UA that comprises in this SIP login request message, if by above-mentioned legitimate verification, just carry out above-mentioned steps 202 or step 302 and distribute a user name for above-mentioned UA, if not by above-mentioned legitimate verification, then send registration failure response (403FORBIDDEN) message to UA.
Need to prove: for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that describes in detail among certain embodiment, can be referring to the associated description of other embodiment.
The structural representation of the registrar that Fig. 4 provides for the embodiment of the invention four, as shown in Figure 4, the registrar of present embodiment can comprise receiver module 41, distribution module 42 and sending module 43.Wherein, receiver module 41 obtains the SIP login request message from UA, the user name that does not comprise above-mentioned UA in the above-mentioned SIP login request message, distribution module 42 are that above-mentioned UA distributes a user name, and sending module 43 sends an above-mentioned user name of distributing to above-mentioned UA.
The function of registrar all can be realized by the registrar that the embodiment of the invention provides in the invention described above embodiment one, the embodiment of the invention two, the embodiment of the invention three.
Particularly, receiver module 41 in the present embodiment specifically can obtain the SIP login request message from UA, the username field that comprises in the contact header field of above-mentioned SIP login request message is for empty, perhaps can also obtain the SIP login request message from UA, the username field that comprises in the contact header field of above-mentioned SIP login request message is the identification information that is used to ask the distributing user name.
Further, the identification information that can also further comprise above-mentioned UA in the above-mentioned SIP login request message that the receiver module 41 in the present embodiment is obtained, correspondingly, distribution module 42 specifically can be according to the identification information of above-mentioned UA, carry out legitimate verification, if by above-mentioned legitimate verification, for above-mentioned UA distributes a user name.
Particularly, sending module 43 in the present embodiment specifically can send the SIP response message that succeeds in registration to above-mentioned UA, above-mentioned SIP succeeds in registration and comprises an above-mentioned user name of distribution in the response message, perhaps can also send SIP and register not authentication response message to above-mentioned UA, above-mentioned SIP registers an above-mentioned user name that comprises distribution in the authentication response message not, so that above-mentioned UA utilizes an above-mentioned user name of authentication information and distribution to carry out the SIP registration.
In the present embodiment, when registrar gets access to SIP login request message from the user name that does not comprise this UA of UA when receiver module, distribution module 42 can be distributed a user name for above-mentioned UA, avoided because UA can't be known the registration failure that user name caused of this UA, improved the success rate of UA registration.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (8)

1. a SIP register method is characterized in that, comprising:
Obtain SIP login request message, do not comprise the user name of described UA in the described SIP login request message from UA;
For described UA distributes a user name;
Send a described user name of distributing to described UA.
2. method according to claim 1 is characterized in that, the described SIP login request message of obtaining from UA, and the user name that does not comprise described UA in the described SIP login request message comprises:
Obtain the SIP login request message from UA, the username field that comprises in the contact header field of described SIP login request message is for empty; Perhaps
Obtain the SIP login request message from UA, the username field that comprises in the contact header field of described SIP login request message is the identification information that is used to ask the distributing user name.
3. method according to claim 1 is characterized in that, comprises the identification information of described UA in the described SIP login request message, and described is that described UA distributes a user name specifically to comprise:
According to the identification information of described UA, carry out legitimate verification;
If by described legitimate verification, for described UA distributes a user name.
4. according to the described method of the arbitrary claim of claim 1 to 3, it is characterized in that a described described user name of distributing to described UA transmission comprises:
Send the SIP response message that succeeds in registration to described UA, described SIP succeeds in registration and comprises a described user name of distribution in the response message; Perhaps
Send SIP to described UA and register not authentication response message, described SIP registers a described user name that comprises distribution in the authentication response message not, so that described UA utilizes a described user name of authentication information and distribution to carry out the SIP registration.
5. a registrar is characterized in that, comprising:
Receiver module is used to obtain the SIP login request message from UA, does not comprise the user name of described UA in the described SIP login request message;
Distribution module is used to described UA to distribute a user name;
Sending module is used for sending a described user name of distributing to described UA.
6. registrar according to claim 5 is characterized in that described receiver module specifically is used for
Obtain the SIP login request message from UA, the username field that comprises in the contact header field of described SIP login request message is for empty; Perhaps
Obtain the SIP login request message from UA, the username field that comprises in the contact header field of described SIP login request message is the identification information that is used to ask the distributing user name.
7. registrar according to claim 5 is characterized in that, comprises the identification information of described UA in the described SIP login request message that described receiver module obtains, and described distribution module specifically is used for
According to the identification information of described UA, carry out legitimate verification;
If by described legitimate verification, for described UA distributes a user name.
8. according to the described registrar of the arbitrary claim of claim 5 to 7, it is characterized in that described sending module specifically is used for
Send the SIP response message that succeeds in registration to described UA, described SIP succeeds in registration and comprises a described user name of distribution in the response message; Perhaps
Send SIP to described UA and register not authentication response message, described SIP registers a described user name that comprises distribution in the authentication response message not, so that described UA utilizes a described user name of authentication information and distribution to carry out the SIP registration.
CN2010105231324A 2010-10-22 2010-10-22 SIP (session initiation protocol) registration method and registration server Pending CN102148814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105231324A CN102148814A (en) 2010-10-22 2010-10-22 SIP (session initiation protocol) registration method and registration server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105231324A CN102148814A (en) 2010-10-22 2010-10-22 SIP (session initiation protocol) registration method and registration server

Publications (1)

Publication Number Publication Date
CN102148814A true CN102148814A (en) 2011-08-10

Family

ID=44422811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105231324A Pending CN102148814A (en) 2010-10-22 2010-10-22 SIP (session initiation protocol) registration method and registration server

Country Status (1)

Country Link
CN (1) CN102148814A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200200A (en) * 2013-04-15 2013-07-10 广东天波信息技术股份有限公司 Illegal dialing prevention method of SIP terminal and SIP server
CN110912959A (en) * 2018-09-18 2020-03-24 深圳市鸿合创新信息技术有限责任公司 Device access method and device, management and control system and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543167A (en) * 2002-12-02 2004-11-03 ���ǵ�����ʽ���� Terminal registration method using session initiation protocol

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543167A (en) * 2002-12-02 2004-11-03 ���ǵ�����ʽ���� Terminal registration method using session initiation protocol

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200200A (en) * 2013-04-15 2013-07-10 广东天波信息技术股份有限公司 Illegal dialing prevention method of SIP terminal and SIP server
CN110912959A (en) * 2018-09-18 2020-03-24 深圳市鸿合创新信息技术有限责任公司 Device access method and device, management and control system and electronic device
CN110912959B (en) * 2018-09-18 2023-05-30 深圳市鸿合创新信息技术有限责任公司 Equipment access method and device, management and control system and electronic equipment

Similar Documents

Publication Publication Date Title
CN110958218B (en) Data transmission method based on multi-network communication and related equipment
CN105516962B (en) Account-opening method and system based on eUICC
CN106162574A (en) Group system is applied universal retrieval method, server and terminal
CN102711049A (en) Peer-to-peer group with renegotiation of group owner
CN103856389B (en) Method for creating instant messaging discussion group, system, clients and server
CN103188270A (en) Method, device and system for accessing recommended server to IP address
CN113535343A (en) Computing power sharing method based on network scheduling and related product
CN110390525A (en) The direct access method and block chain node of block chain world state
CN101552945A (en) A method and system for implementing media content sharing
CN103716772A (en) Service processing method, device and communication system
CN104427496B (en) TD-LTE trunked communication systems encrypted transmission method, device and system
CN102724209A (en) Session initialization protocol (SIP)-based file transmission method, terminal and application server
CN102387478B (en) Method of handling service group ownership transfer in a communication system and related communication device
CN102186257A (en) Communication method of wireless terminal and host equipment, wireless terminal and host equipment
CN108156424A (en) Multicast group port management method, device and video management server
CN114780465A (en) Method and device for creating sharable remote direct data access link
CN102148814A (en) SIP (session initiation protocol) registration method and registration server
CN106255074A (en) A kind of group's method for building up and device
CN102769844B (en) Data transmission method and system based on mobile terminal and mobile terminal
US20100138650A1 (en) Secure communication system, gateway apparatus and its operating method
CN104202309A (en) Data transmission control method and apparatus
CN101729995A (en) Method and device for controlling speaking right in cluster calling
CN107197535A (en) A kind of cluster the whole network call control method and apparatus
CN106357493A (en) Method and device for binding household appliance and smart terminal
CN105634931A (en) Messaging service processing method and instant messaging server

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: 20110810