CN103414715B - A kind of method that VOIP phone serves as SIP-Server - Google Patents

A kind of method that VOIP phone serves as SIP-Server Download PDF

Info

Publication number
CN103414715B
CN103414715B CN201310343562.1A CN201310343562A CN103414715B CN 103414715 B CN103414715 B CN 103414715B CN 201310343562 A CN201310343562 A CN 201310343562A CN 103414715 B CN103414715 B CN 103414715B
Authority
CN
China
Prior art keywords
phone
sip
username
server
bag
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.)
Expired - Fee Related
Application number
CN201310343562.1A
Other languages
Chinese (zh)
Other versions
CN103414715A (en
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.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network Technology 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 Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN201310343562.1A priority Critical patent/CN103414715B/en
Publication of CN103414715A publication Critical patent/CN103414715A/en
Application granted granted Critical
Publication of CN103414715B publication Critical patent/CN103414715B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The present invention provides a kind of method that VOIP phone serves as SIP Server, described VOIP phone is under SIP Server pattern, accept the registration of other VOIP phone, and the parsing of each registration packet is obtained username, and generate username IP mapping table, if after receiving de-registration bag, by entry deletion corresponding in username IP mapping table;If receiving request bag, then parse the username of to header field, and from described username IP mapping table, get corresponding IP, and request is forwarded a packet on the IP of correspondence;If receiving response bag, then parse the username of from header field, and from described username IP mapping table, check in corresponding IP, response is forwarded a packet on corresponding IP;Thus complete substantially to converse, switching, tripartite talks and the basic function of BLF.The present invention can be easy to maintenance as the SIP Server of small-scale VOIP telephone system, disposes simple, cost-effective.

Description

A kind of method that VOIP phone serves as SIP-Server
Technical field
The present invention relates to a kind of method that VOIP phone serves as SIP-Server.
Background technology
Current most of VOIP telephone systems use the standard combination of VOIP phone and SIP-Server, wherein SIP-Server use specialized server is to meet the requirement of big data exchange, but not all client is required for disposing substantial amounts of terminal and producing the exchange of substantial amounts of data.And the VOIP terminal of main flow has had more powerful performance now, can meet the performance requirement building easy SIP-Server, VOIP terminal can realize basic SIP-Server function by simple modification.
Main flow SIP-Server arranging scheme at present, needs to buy expensive server apparatus, and needs special messenger to safeguard, deployment and maintenance cost is high.Secondly, for most of terminal uses only by basic function, such as tripartite talks, transferring, BLF etc. can realize on the SIP-Server that phone serves as.
2010.9.5 disclosed, the Chinese invention of Publication No. CN101836406A discloses a kind of system for supporting simulation phone in IP telephony network, and it is the integrated voip phone of a kind of seamless integration POTS phone and IP phone.In one embodiment, integrated voip phone includes voip phone function present in session initiation protocol (SIP) logger, SIP session-orient E-Service (SBC), sip agent, SIP feature server, SIP-PSTN gateway, user interface and traditional voip phone.In one embodiment, integrated voip phone includes one or more simulation telephony adapter.Their own is registered to integrated voip phone by the VoIP entity of other such as FXS adapter via SIP/SBC.These other entity shows as the extension to integrated voip phone, and external network will only directly communicate with integrated voip phone.
This invention proposes to connect PSTN analog station by the way of adding adapter in VOIP phone, its function similar with SIP ATA(SIP Analog Telephone Adaptor) function be integrated on VOIP phone, rather than the partial function of SIP server is transplanted on phone.PSTN phone itself does not possess SIP ability, but is registered in SipServer by a VoIP phone, it is therefore desirable to VOIP phone connects PSTN phone by additional adapters;What VoIP phone forwarded transfers PSTN signal to RTP bag to liking and sends PSTN phone to;
2011.4.13 it is disclosed, the Chinese invention of Publication No. CN102017588A discloses a kind of method and apparatus of Interactive Call side's information service in communication network, this invention relates to the client in communication network with SIP ability, such as IPTV client, it is provided that the method and apparatus of caller information.There is the SIP communication customer end that the client of SIP ability is connected in home network, such as VoIP client.When another SIP communication customer end in communication network calls VoIP client, calling is forwarded to VoIP client and is forked to Caller ID application server.Owing to IPTV client has been registered to subscribe to the caller information relevant to the communication with the VoIP client in home network as destination, therefore, if VoIP client enables caller information function, then IPTV client is from the caller information of Caller ID application server retrieval SIP communication customer end.That in this invention, VOIP phone connects is the HDTV with SIP ability, does not connect other VOIP phone, and VOIP phone does not accept registration, is only forwarding registration packet.
Summary of the invention
The technical problem to be solved in the present invention, the method being to provide a kind of VOIP phone to serve as SIP-Server, can be easy to maintenance as the SIP-Server of small-scale VOIP telephone system, dispose simple, it is also possible to as the testing tool of phone basic function.
The present invention is achieved in that a kind of method that VOIP phone serves as SIP-Server, in the program possessing the VOIP phone resolving SIP bag and process SIP bag ability completely, add a SIP-Server pattern, make described VOIP phone support phone pattern and SIP-Server pattern;
Described VOIP phone is under SIP-Server pattern, accept the registration of other VOIP phone, and the parsing of each registration packet is obtained username, and generate username-IP mapping table, if after receiving de-registration bag, by entry deletion corresponding in username-IP mapping table;Receive same username, then update username-IP mapping table;
Described VOIP phone, under SIP-Server pattern, receives request bag or response bag, parses the username of to header field, and gets corresponding IP from described username-IP mapping table, and request bag or response are forwarded a packet on the IP of correspondence;Thus complete substantially to converse, switching, tripartite talks and the basic function of BLF;
In said process, for can not find username in described username-IP mapping table, then return 48x prompting.
Wherein, the process that implements adding a SIP-Server pattern in the program of described VOIP phone is: step 1, other VOIP phones described are registered to the phone serving as SIP-Server;The phone of the described SIP-Server of serving as sets up special session for managing phone registration;
Step 2, the bottom stack serving as SIP-Server phone accept registration, and return 200OK.The application layer program of phone sets up a chained list specially simultaneously, for preserving username Yu the IP address of registration phone;
Step 3, when SIP-Server phone receives request bag, resolve To header field or the username of From header field, search chained list with this and obtain the IP of opposite end phone, and forward;When SIP-Server phone receives response bag, parse the username of From header field, search chained list with this and obtain the IP of opposite end phone, and forward;Unregistered IP is not forwarded to request bag and response bag.
Present invention have the advantage that the inventive method to be possible not only to VOIP phone to use as SIP-Server within a small scale, save lower deployment cost, can simultaneously serve as the testing tool of VOIP phone, the basic function of inspection VOIP phone, to increase added value of product.
Accompanying drawing explanation
The present invention is further illustrated the most in conjunction with the embodiments.
Fig. 1 is the inventive method signaling process figure.
Fig. 2 is the schematic diagram of username-IP mapping table of the present invention.
Fig. 3 is a working state schematic representation of VOIP phone of the present invention.
Detailed description of the invention
The method that the VOIP phone of the present invention serves as SIP-Server, is to add SIP-Server pattern in the program possessing the VOIP phone resolving SIP bag and process SIP bag ability completely, makes described VOIP phone support phone pattern and SIP-Server pattern;
The process that implements adding SIP-Server pattern in the program of described VOIP phone is:
Step 1, other VOIP phones are registered to the phone serving as SIP-Server;The phone of the described SIP-Server of serving as sets up special session for managing phone registration;
Step 2, the bottom stack of the phone serving as SIP-Server accept registration, and return 200OK.The application layer program of phone sets up a chained list specially simultaneously, for preserving username Yu the IP address of registration phone.
Step 3, serve as the phone of SIP-Server and receive request bag or response bag, the most this is not responded by the logic further according to phone protocol stack, and be to look for chained list and obtain the IP of opposite end phone, and forward, when SIP-Server phone receives request bag, resolve To header field or the username of From header field, search chained list with this and obtain the IP of opposite end phone, and forward;When SIP-Server phone receives response bag, parse the username of From header field, search chained list with this and obtain the IP of opposite end phone, and forward;Such as: SIP-Server phone receives incoming call INVITE, directly notifying application layer after completing to resolve, by application layer by the IP obtaining opposite end phone that tables look-up, and notification protocol stack bottom forwards INVITE bag.Unregistered IP is not forwarded to request bag and response bag.
In the case of needs, account management interface can be added on the webpage of SIP-Server phone, and add authentication requirement when receiving registration packet, improve safety and ease for use.
As it is shown in figure 1, described VOIP phone is under SIP-Server pattern, accepts the registration of other VOIP phone, and the parsing of each registration packet is obtained username, and generate username-IP mapping table as shown in Figure 2.
If after receiving de-registration bag, by entry deletion corresponding in username-IP mapping table.If receiving request bag, then parse the username of to header field, and from described username-IP mapping table, get corresponding IP, and request is forwarded a packet on the IP of correspondence;If receiving response bag, then parse the username of from header field, and from described username-IP mapping table, check in corresponding IP, response is forwarded a packet on corresponding IP;Thus complete substantially to converse, switching, tripartite talks and the basic function of BLF;Wherein, registering, substantially converse, the basic function of BLF realizes the signaling process of process as shown in Figure 1.
During registration: other VOIP phone sends REGISTER and returns 200OK to the VOIP phone under SIP-Server pattern, the VOIP phone under SIP-Server pattern.
When substantially conversing: wherein a VOIP phone (being set to phone 1) transmission INVITE is to the VOIP phone under SIP-Server pattern, the VOIP phone under SIP-Server pattern be transmitted to another VOIP phone (being set to phone 2);Phone 2 returns 18X and 200OK and is transmitted to phone 1 via the VOIP phone under SIP-Server pattern, and phone 1 sends ACK and is transmitted to phone 2 via the VOIP phone under SIP-Server pattern.
BLF: wherein a VOIP phone (being set to phone 1) transmission SUBSCRIBE is to the VOIP phone under SIP-Server pattern, the VOIP phone under SIP-Server pattern be transmitted to another VOIP phone (being set to phone 2);Phone 2 returns 200OK and is transmitted to phone 1 via the VOIP phone under SIP-Server pattern, and phone 1 directly transmits NOTIFY, 200ok to phone 2.
In said process, for can not find username in described username-IP mapping table, then return 48x prompting.
VOIP phone is entirely different with phone MODE of operation method under SIP-Server pattern, and it focuses on searching IP and subcontracting.As it is shown on figure 3, VOIP phone A Yu B is registered to serve as the VOIP phone C of Sip-Server, when VOIP phone A dials VOIP phone B, can successful call B by the forwarding of VOIP phone C.
The inventive method is possible not only to use VOIP phone within a small scale as SIP-Server, saves lower deployment cost, can simultaneously serve as the testing tool of VOIP phone, and the basic function of inspection VOIP phone, to increase added value of product.
Although the foregoing describing the detailed description of the invention of the present invention; but those familiar with the art is to be understood that; we are merely exemplary described specific embodiment; rather than for the restriction to the scope of the present invention; those of ordinary skill in the art, in the equivalent modification made according to the spirit of the present invention and change, should be contained in the scope of the claimed protection of the present invention.

Claims (1)

1. the method that a VOIP phone serves as SIP-Server, it is characterized in that: in the program possessing the VOIP phone resolving SIP bag and process SIP bag ability completely, add a SIP-Server pattern, make described VOIP phone support phone pattern and SIP-Server pattern;
Described VOIP phone, under SIP-Server pattern, accepts the registration of other VOIP phone, and the parsing of each registration packet is obtained username, and generate username-IP mapping table;If after receiving de-registration bag, by entry deletion corresponding in username-IP mapping table;If receiving request bag, then parse the username of to header field, and from described username-IP mapping table, get corresponding IP, and request is forwarded a packet on the IP of correspondence;If receiving response bag, then parse the username of from header field, and from described username-IP mapping table, check in corresponding IP, response is forwarded a packet on corresponding IP;Thus complete substantially to converse, switching, tripartite talks and the basic function of BLF;
In said process, for can not find username in described username-IP mapping table, then return 48x prompting;
Wherein, the process that implements adding a SIP-Server pattern in the program of described VOIP phone is:
Step 1, other VOIP phone described are registered to the phone serving as SIP-Server;The phone of the described SIP-Server of serving as sets up special session for managing phone registration;
Step 2, the bottom stack serving as SIP-Server phone accept registration, and return 200OK, and the application layer program of phone sets up a chained list specially simultaneously, for preserving username Yu the IP address of registration phone;
Step 3, when SIP-Server phone receives request bag, resolve To header field or the username of From header field, search chained list with this and obtain the IP of opposite end phone, and forward;When SIP-Server phone receives response bag, parse the username of From header field, search chained list with this and obtain the IP of opposite end phone, and forward;Unregistered IP is not forwarded to request bag and response bag.
CN201310343562.1A 2013-08-08 2013-08-08 A kind of method that VOIP phone serves as SIP-Server Expired - Fee Related CN103414715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310343562.1A CN103414715B (en) 2013-08-08 2013-08-08 A kind of method that VOIP phone serves as SIP-Server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310343562.1A CN103414715B (en) 2013-08-08 2013-08-08 A kind of method that VOIP phone serves as SIP-Server

Publications (2)

Publication Number Publication Date
CN103414715A CN103414715A (en) 2013-11-27
CN103414715B true CN103414715B (en) 2016-09-28

Family

ID=49607701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310343562.1A Expired - Fee Related CN103414715B (en) 2013-08-08 2013-08-08 A kind of method that VOIP phone serves as SIP-Server

Country Status (1)

Country Link
CN (1) CN103414715B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070728B (en) * 2021-11-12 2024-04-09 上海华信长安网络科技有限公司 Method and device for grading configuration of telephone
CN114070729A (en) * 2021-11-12 2022-02-18 上海华信长安网络科技有限公司 Method and device for phone unified configuration management by using phone

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888454A (en) * 2010-07-22 2010-11-17 杭州华三通信技术有限公司 Calling method and device of network telephone

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4287363B2 (en) * 2004-12-24 2009-07-01 株式会社東芝 IP telephone system and communication control method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888454A (en) * 2010-07-22 2010-11-17 杭州华三通信技术有限公司 Calling method and device of network telephone

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"SIP服务器模型的设计与实现";樊瑞;《中国优秀硕士学位论文全文数据库 信息科技辑》;20090115;全文 *

Also Published As

Publication number Publication date
CN103414715A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
US10027620B2 (en) Call processing telecommunication system and methods thereof in a WiFi network
CN101132378B (en) Method and communication system for intercommunication among different networks
CN104717234A (en) Enterprise network communication device and communication method
CN103118347A (en) Method and system and query device of short number call between terminals
CN103841077A (en) Calling method and calling system of community subscribers, and community platform
CN103905393A (en) Method and equipment for realizing intercommunication of enterprise US system and IMS network
CN102045466A (en) Method for realizing enterprise voice over internet phone (VOIP) immediate call
CN103414715B (en) A kind of method that VOIP phone serves as SIP-Server
CN101945187A (en) Method and system for bonding fixed-line extension telephones and mobile terminals
CN104158989B (en) Fixed telephone roaming system and method
CN101448224A (en) Method for realizing special service call in IP multimedia subsystem and system thereof
CN111278082A (en) Terminal communication device, method, system, equipment and storage medium
CN103414721B (en) The method that WIFI user carries out VoIP calls
CN112752260B (en) Equipment and method for number-carrying network-transfer transmitting end inquiry
KR102118951B1 (en) Method for recording conversation data while the line is busy and the telecommunication system for the same
KR20140031650A (en) Mobile voip service relay apparatus, relay method, mobile and service method therefor
CN103581129A (en) Conversation processing method and device
CN101635774A (en) CTIEX, system and method for realizing transmission of channel associated data of seat and automatic service
CN103379234B (en) The communication means and system of network voice terminal
KR101773850B1 (en) Method and apparatus for relaying a call using a call-relay gateway
US20180227430A1 (en) Converged communication device
CN104754561A (en) Method and device for implementing called-fused one-number service
TWI429271B (en) A communication terminal reelizing communicating between network phones with different protocols and the method of commucating different network phones using the seme
CN102739499B (en) A kind of method for routing of signaling message, Apparatus and system
CN106161817B (en) Communication method and communication system based on VOIP platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160928