[go: up one dir, main page]

CN107222714A - A kind of building talkback method and device - Google Patents

A kind of building talkback method and device Download PDF

Info

Publication number
CN107222714A
CN107222714A CN201710453580.3A CN201710453580A CN107222714A CN 107222714 A CN107222714 A CN 107222714A CN 201710453580 A CN201710453580 A CN 201710453580A CN 107222714 A CN107222714 A CN 107222714A
Authority
CN
China
Prior art keywords
address
terminal
sip
door phone
request message
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
CN201710453580.3A
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201710453580.3A priority Critical patent/CN107222714A/en
Publication of CN107222714A publication Critical patent/CN107222714A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/183Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a single remote source
    • H04N7/186Video door telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of building talkback method, to solve the intercommunication terminal present in prior art in public network and the intercommunication terminal in the Intranet higher problem of cost when carrying out multi-medium data transmission.Methods described is specifically included:First doorway machine receives the sip request message for being used to ask to set up voice and video call with second intercommunication terminal that first intercommunication terminal is sent, wherein, the sip request message carries the address for sending the sip request message, the address for being used to send the sip request message belongs to public network address, then the address conversion for being used to send the sip request message in the sip request message is the internal address of first doorway machine, and is transmitted to second intercommunication terminal.

Description

Building intercom method and device
Technical Field
The invention relates to the technical field of data transmission, in particular to a building intercom method and device.
Background
In the mobile internet era, smart phones are widely used, and in order to facilitate the use of users, it has become a development trend to use smart phones to communicate with building interphones.
However, when the IP address of the building interphone and the IP address of the smart phone are in different network segments, that is, when the IP address of the smart phone is in the public network IP network segment and the IP address of the building interphone is in the intranet IP network segment, or when the IP address of the smart phone is in the intranet IP network segment and the IP address of the building interphone is in the public network IP network segment, the smart phone and the building interphone cannot directly transmit multimedia data such as audio and video. The intranet IP is an IP included in a local area network where the building intercom host is located, and the public network IP is an IP included in the internet.
In the prior art, in order to realize a multimedia data transmission function under the condition that the smart phone and the building interphone are in different networks, a common method is to realize multimedia data transmission between the smart phone and the building interphone through an end-to-end (english: peer-to-peer, abbreviated as P2P) server.
In the prior art, when the multimedia data is transmitted between the smart phone and the building interphone through the P2P server, the P2P server is relied on, and the P2P server is usually a payment service, so the method of transmitting the multimedia data between the smart phone and the building interphone through the P2P server is high in cost and generates a large amount of extra cost.
Disclosure of Invention
The embodiment of the invention provides a building talkback method and a building talkback device, which are used for solving the problem that the cost is higher when multimedia data transmission is carried out on a talkback terminal in a public network and a talkback terminal in an internal network in the prior art.
In a first aspect, an embodiment of the present invention provides a building intercom method, where the building includes: at least one door phone and a first talkback terminal and a second talkback terminal; the at least one door phone comprises a first door phone used for media forwarding service, and the address of the first door phone comprises a public network address and an internal network address; the address of the first talkback terminal belongs to a public network address, and the address of the second talkback terminal belongs to an internal network address; the method comprises the following steps:
and the first door phone receives an SIP request message which is sent by the first talkback terminal and used for requesting to establish a voice video call with the second talkback terminal.
Wherein the SIP request message carries an address for sending the SIP request message, and the address for sending the SIP request message belongs to a public network address.
And the first door phone converts the address used for sending the SIP request message in the SIP request message into the intranet address of the first door phone and forwards the intranet address to the second talkback terminal.
In the embodiment of the invention, after receiving an SIP request message sent by a first intercom terminal and used for requesting to establish a voice video call with a second intercom terminal, a first entrance machine converts an address used for sending the SIP request message in the SIP request message into an intranet address of the first entrance machine and forwards the intranet address to the second intercom terminal. Compared with the mode of realizing the transmission of the multimedia data between the talkback terminal and the doorway machine through the P2P server in the prior art, the communication mode based on the SIP between the local area network terminal and the public network terminal is supported in the embodiment of the invention, so that the P2P server is not needed, the cost is reduced, and a large amount of expenses are saved.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the method further includes:
and the first door phone receives an SIP response message which is sent by the second talkback terminal and used for agreeing to establish a voice video call with the first talkback terminal.
The SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to an intranet address.
And the first door phone converts the address used for sending the SIP response message in the SIP response message into the public network address of the first door phone and forwards the public network address to the first talkback terminal.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the method further includes:
and the first door phone receives an SIP request message which is sent by the second talkback terminal and used for requesting to establish a voice video call with the first talkback terminal.
The SIP request message carries an address used for sending the SIP request message, and the address used for sending the SIP request message belongs to an intranet address.
And the first door phone converts the address used for sending the SIP request message in the SIP request message into the public network address of the first door phone and forwards the public network address to the first talkback terminal.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the method further includes:
and the first door phone receives an SIP response message which is sent by the first talkback terminal and used for agreeing to establish a voice video call with the second talkback terminal.
Wherein the SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to a public network address.
And the first door phone converts the address used for sending the SIP response message in the SIP response message into the intranet address of the first door phone and forwards the intranet address to the second talkback terminal.
With reference to the first possible implementation manner or the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:
the first door phone receives first media data sent by the second talkback terminal through a port corresponding to the intranet address, and forwards the first media data to the first talkback terminal; or,
and the first door phone receives second media data sent by the first talkback terminal through a port corresponding to the public network address, and forwards the second media data to the second talkback terminal.
With reference to the first aspect, in a fifth possible implementation manner of the first aspect, the public network address of the first door phone is a port address of a port of a routing device connected to a public network, and a mapping relationship established in a universal plug and play Upnp protocol manner exists between the port address and a port address of one port of the first door phone.
In a second aspect, an embodiment of the present invention provides a building intercom device, where the building includes: at least one door phone and a first talkback terminal and a second talkback terminal; the at least one door phone comprises a first door phone used for media forwarding service, and the address of the first door phone comprises a public network address and an internal network address; the address of the first talkback terminal belongs to a public network address, and the address of the second talkback terminal belongs to an internal network address; the device is applied to the first doorway machine, and comprises:
and the first receiving module is used for receiving an SIP request message which is sent by the first talkback terminal and used for requesting to establish a voice video call with the second talkback terminal.
Wherein the SIP request message carries an address for sending the SIP request message, and the address for sending the SIP request message belongs to a public network address.
And the forwarding module is used for converting an address used for sending the SIP request message in the SIP request message received by the first receiving module into an intranet address of the first doorway machine and forwarding the intranet address to the second talkback terminal.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the first receiving module is further configured to receive an SIP response message sent by the second intercom terminal and used for agreeing to establish a voice-video call with the first intercom terminal;
the SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to an intranet address;
the forwarding module is further configured to convert an address used for sending the SIP response message in the SIP response message received by the first receiving module into a public network address of the first door phone, and forward the public network address to the first intercom terminal.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the first receiving module is further configured to receive an SIP request message that is sent by the second intercom terminal and used for requesting to establish a voice video call with the first intercom terminal;
the SIP request message carries an address used for sending the SIP request message, and the address used for sending the SIP request message belongs to an intranet address;
the forwarding module is further configured to convert an address used for sending the SIP request message in the SIP request message received by the first receiving module into a public network address of the first door phone, and forward the public network address to the first intercom terminal.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the first receiving module is further configured to receive an SIP response message, sent by the first intercom terminal, for agreeing to establish a voice-video call with the second intercom terminal;
the SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to a public network address;
the forwarding module is further configured to convert an address used for sending the SIP response message in the SIP response message received by the first receiving module into an intranet address of the first doorway machine, and forward the intranet address to the second intercom terminal.
With reference to the first possible implementation manner or the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the apparatus further includes a second receiving module;
the second receiving module is configured to receive, through a port corresponding to the intranet address, first media data sent by the second intercom terminal; the forwarding module is further configured to forward the first media data received by the second receiving module to the first intercom terminal;
or,
the second receiving module is configured to receive, through a port corresponding to the public network address, second media data sent by the first intercom terminal; the forwarding module is further configured to forward the second media data received by the second receiving module to the second intercom terminal.
With reference to the second aspect, in a fifth possible implementation manner of the second aspect, the public network address of the first door phone is a port address of a port of a routing device connected to a public network, and a mapping relationship established in a universal plug and play Upnp protocol manner exists between the port address and a port address of one port of the first door phone.
In the embodiment of the invention, after receiving an SIP request message sent by a first intercom terminal and used for requesting to establish a voice video call with a second intercom terminal, a first entrance machine converts an address used for sending the SIP request message in the SIP request message into an intranet address of the first entrance machine and forwards the intranet address to the second intercom terminal. Compared with the mode of realizing the transmission of the multimedia data between the talkback terminal and the doorway machine through the P2P server in the prior art, the communication mode based on the SIP between the local area network terminal and the public network terminal is supported in the embodiment of the invention, so that the P2P server is not needed, the cost is reduced, and a large amount of expenses are saved. .
Drawings
Fig. 1 is a flowchart of a building intercom method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a building according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a first intercom terminal and a second intercom terminal performing a voice video call according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a voice-video call between a calling intercom terminal and a called intercom terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a building intercom device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a building talkback method and a building talkback device, which are used for solving the problem that the cost is higher when multimedia data transmission is carried out on a talkback terminal in a public network and a talkback terminal in an internal network in the prior art. The method and the device are based on the same inventive concept, and because the principles of solving the problems of the method and the device are similar, the implementation of the device and the method can be mutually referred, and repeated parts are not repeated.
In order that the embodiments of the invention may be more readily understood, some of the descriptions set forth in the embodiments of the invention below are first presented and should not be taken as limiting the scope of the invention as claimed.
Session Initiation Protocol (SIP) is a point-to-point signaling Protocol used to initially establish, manage and terminate voice and video sessions in a network, and in particular to generate, modify and terminate sessions between one or more participants. In SIP communication, an SIP message conforms to a Session Description Protocol (SDP for short), and the SDP describes details of streaming media used by a Session, such as: the port address where the session is conducted, the codec employed, etc. The port address includes an Internet Protocol (IP) address and a port number of the port.
SIP defines six types of messages, namely request (INVITE), Acknowledgement (ACK), OPTIONS (OPTIONS), end (BYE), CANCEL (CANCEL) and REGISTER (REGISTER) messages, etc. Wherein, the INVITE message is used for initiating a session; the ACK message is used for completing the establishment of the session; the BYE message is used to end the session; the CANCEL message is used to CANCEL the session invitation; the OPTIONS message is used to query the capabilities of the server; the REGISTER message is used to send a registration request message. The message involved in the embodiment of the invention is a SIP message.
SIP devices are largely divided into SIP proxies and SIP servers.
The SIP proxy is an end user device, such as a mobile phone, a multimedia handheld device, a Personal Computer (PC), a Personal Digital Assistant (PDA), etc., for creating and managing an SIP session.
The SIP server includes a SIP registrar server and a SIP proxy server. The SIP registrar server is a database that contains address information for all SIP proxies within the administrative domain. In SIP communications, the SIP registrar server retrieves the IP address and other relevant information of the SIP proxy and sends the retrieved information to the SIP proxy server. And the SIP proxy server receives the INVITE message of the first SIP proxy machine, queries an SIP registration server and acquires the address information of the second SIP proxy machine corresponding to the INVITE message. The SIP proxy server then forwards the INVITE message directly to the second SIP proxy.
In the description of the embodiments of the invention, the terms "first," "second," and the like are used for descriptive purposes only and not for purposes of indicating or implying relative importance, nor for purposes of indicating or implying order.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a building intercom method according to an embodiment of the present invention is shown, where the method may be applied to a building, where the building includes at least one door phone and at least two intercom terminals. The at least one door phone comprises a first door phone used for media forwarding service, the first door phone is further used for executing functions of an SIP proxy, an SIP registration server and an SIP proxy server, and the intercom terminal is used for executing the functions of the SIP proxy.
As shown in fig. 2, a building structure is described by taking an example that a building includes a first indoor unit, a second indoor unit, a first outdoor unit, and a second outdoor unit, where the first indoor unit, the second indoor unit, the first outdoor unit, and the second outdoor unit are all used to execute functions of an SIP proxy, and the first outdoor unit is also used to execute functions of an SIP server.
The address of the first doorway machine comprises a public network address and an internal network address. The public network address of the first door phone is a port address of a port of a routing device connected with a public network, and a mapping relation established in a Universal Plug-and-Play (Upnp) protocol mode exists between the port address and the port address of one port of the first door phone, wherein the port address of the port of the routing device comprises an IP address and a port number of the routing device, and the port address of the port of the first door phone comprises the IP address and the port number of the first door phone.
Optionally, the first outdoor unit may forward the message and the media data through different ports when forwarding the message and the media data to the outside. The first door phone may thus include at least one SIP server port for forwarding SIP messages sent by the intercom terminal, and at least one media forwarding service external port for forwarding media data sent by the intercom terminal. When a mapping relationship is established between a port address of a port of the routing device and a port address of a port of the first door phone in an Upnp protocol manner, specifically, a mapping relationship between a port address of an SIP server port of the first door phone and a port address corresponding to one port of the routing device is configured in an Upnp protocol manner, and a mapping relationship between a port address of an external port of a media forwarding service of the first door phone and a port address corresponding to another port of the routing device is configured in an Upnp protocol manner.
The at least two talkback terminals comprise a first talkback terminal and a second talkback terminal, the address of the first talkback terminal belongs to a public network address, and the address of the second talkback terminal belongs to an internal network address.
In the embodiment of the present invention, the intercom terminal may be a door phone, an indoor phone, a mobile device, or other devices, and the embodiment of the present invention is not specifically limited herein.
The method may specifically comprise the following:
and S101, the first door phone receives an SIP request message which is sent by the first talkback terminal and used for requesting to establish a voice video call with the second talkback terminal.
Wherein the SIP request message carries an address for sending the SIP request message, and the address for sending the SIP request message belongs to a public network address.
Optionally, the SIP request message may be an INVITE message in an SIP message, where an SDP of the INVITE message carries an address used for sending the SIP request message, that is, a communication address of a first intercom terminal that sends the SIP request message. The communication address of the first intercom terminal comprises a port number used by the first intercom terminal for transceiving audio, video and other media data and an IP address of the first intercom terminal.
And S102, the first door phone converts the address used for sending the SIP request message in the SIP request message into the intranet address of the first door phone and forwards the intranet address to the second talkback terminal.
Optionally, after receiving the SIP request message sent by the first intercom terminal, the second intercom terminal sends an SIP response message for agreeing to establish the voice video call with the first intercom terminal to the first door phone.
And after receiving an SIP response message which is sent by the second talkback terminal and used for agreeing to establish the voice video call with the first talkback terminal, the first doorway machine converts an address which is used for sending the SIP response message in the SIP response message into a public network address of the first doorway machine and forwards the public network address to the first talkback terminal, so that the first talkback terminal and the second talkback terminal establish the voice video call.
The SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to an intranet address. For example, the SIP response message may be an ACK message in a SIP message. The address used for sending the SIP response message may be carried in the SDP of the ACK message.
In a possible implementation manner, after the first intercom terminal and the second intercom terminal establish a voice video call, the voice video call is performed in the following manner, specifically referring to fig. 3:
the first door phone receives first media data sent by the second talkback terminal through a port corresponding to the intranet address, and forwards the first media data to the first talkback terminal; or,
and the first door phone receives second media data sent by the first talkback terminal through a port corresponding to the public network address, and forwards the second media data to the second talkback terminal.
Optionally, the method further includes: and the first door phone receives an SIP request message which is sent by the second talkback terminal and used for requesting to establish a voice video call with the first talkback terminal, converts an address which is used for sending the SIP request message in the SIP request message into a public network address of the first door phone and forwards the public network address to the first talkback terminal.
The SIP request message carries an address used for sending the SIP request message, and the address used for sending the SIP request message belongs to an intranet address.
Optionally, the SIP request message may be an INVITE message in an SIP message, where an SDP of the INVITE message carries an address used for sending the SIP request message, that is, a communication address of a second intercom terminal that sends the SIP request message.
Optionally, after receiving the SIP request message sent by the second intercom terminal, the first intercom terminal sends an SIP response message for agreeing to establish the voice video call with the second intercom terminal to the first door phone.
After receiving an SIP response message which is sent by the first talkback terminal and used for agreeing to establish a voice video call with the second talkback terminal, the first doorway machine converts an address which is used for sending the SIP response message in the SIP response message into an intranet address of the first doorway machine and forwards the intranet address to the second talkback terminal, so that the first talkback terminal and the second talkback terminal establish the voice video call.
Wherein the SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to a public network address. For example, the SIP response message may be an ACK message in a SIP message. The address used for sending the SIP response message may be carried in the SDP of the ACK message.
In a possible implementation manner, after the first intercom terminal and the second intercom terminal establish a voice video call, the voice video call is performed in the following manner:
the first door phone receives first media data sent by the second talkback terminal through a port corresponding to the intranet address, and forwards the first media data to the first talkback terminal; or,
and the first door phone receives second media data sent by the first talkback terminal through a port corresponding to the public network address, and forwards the second media data to the second talkback terminal.
In order to better understand the embodiment of the present invention, a specific application scenario is given below, taking a building including a first door phone for media forwarding service, a calling intercom terminal, and a called intercom terminal as examples, and a process of establishing a voice-video call between the calling intercom terminal and the called intercom terminal is described in detail.
The addresses related in the embodiment of the invention comprise IP addresses and port numbers, the intranet addresses comprise intranet IP addresses and intranet port numbers, and the public network addresses comprise public network IP addresses and public network port numbers. The number of the internal network port numbers and the number of the public network port numbers can be multiple, and the first door phone can forward messages and media data through ports corresponding to different port numbers for different talkback terminals.
As shown in fig. 4, taking the SIP request message as the INVITE message in the SIP message and the SIP response message as the SIP200/ok answer in the SIP message as an example, the process of establishing the voice-video call between the calling intercom terminal and the called intercom terminal is specifically as follows:
s401, the calling talkback terminal sends an INVITE message for requesting to establish a voice video call with the called talkback terminal to the first gate phone. S402 is performed.
And the SDP in the INVITE message carries an address used for sending the INVITE message.
S402, after receiving the INVITE message, the first door phone judges whether the IP address of the calling talkback terminal and the IP address of the called talkback terminal are in the same network segment; if yes, go to step S407; if not, go to step S403.
And S403, setting a flag for the first entrance machine. S404 is performed.
Specifically, when the IP address of the calling intercom terminal and the IP address of the called intercom terminal are in the same network segment, that is, the IP address of the calling intercom terminal and the IP address of the called intercom terminal are both intranet IP addresses or public network IP addresses, the first gate phone sets flag to true; when the IP address of the calling talkback terminal and the IP address of the called talkback terminal are not in the same network segment, namely the IP address of the calling talkback terminal is an intranet IP address and the IP address of the called talkback terminal is a public network IP address, or the IP address of the calling talkback terminal is a public network IP address and the IP address of the called talkback terminal is an intranet IP address, the first door phone sets flag to false.
S404, the first doorway machine judges whether the IP address of the calling talkback terminal is a public network IP address; if yes, go to step S405; if not, go to step S406.
S405, the first door phone converts the IP address, which is carried by the SDP in the INVITE message and used for sending the INVITE message, into an intranet IP address of the first door phone, and converts the port number, which is carried by the SDP in the INVITE message, into an intranet port number of the first door phone. S407 is executed.
S406, the first door phone converts the IP address, which is carried by the SDP in the INVITE message and used for sending the INVITE message, into a public network IP address of the first door phone, and converts the port number, which is carried by the SDP in the INVITE message, into a public network port number of the first door phone. S407 is executed.
S407, the first door phone waits for the ring-back status and the called intercom terminal to respond. S408 is performed.
And waiting for a ring-back state, namely a state when the first door phone forwards the INVITE message to the called talkback terminal. And when the first door phone is in a ring-back waiting state, sending SIP180/ring message in the SIP message to the calling talkback terminal. And waiting for the answering state of the called talkback terminal, namely waiting for the state when the first door phone waits for the called talkback terminal to send a sip200/ok answer message for agreeing to establish a voice and video call with the calling talkback terminal.
S408, the called talkback terminal sends a sip200/ok answer message to the first door phone. S409 is performed.
Wherein, SDP in the sip200/ok answer message carries address for sending the sip200/ok answer message.
S409, after receiving the sip200/ok answer message sent by the called talkback terminal, the first gate phone judges whether flag is false; if yes, go to step S416; if not, go to step S410.
S410, the first doorway machine judges whether the IP address of the called talkback terminal is a public network IP address; if yes, go to step S411; if not, go to step S412.
S411, the first door phone converts the IP address carried by the SDP in the sip200/ok answer message and used for sending the sip200/ok answer message into the intranet IP address of the first door phone, and converts the port number carried by the SDP in the sip200/ok answer message into the intranet port number of the first door phone. S413 is executed.
S412, the first door phone converts the IP address carried by the SDP in the sip200/ok answer message into a public network IP address of the first door phone, and converts the port number carried by the SDP in the sip200/ok answer message into a public network port number of the first door phone. S413 is executed.
S413, the first door phone determines whether the port number carried by the SDP in the INVITE message and the port number carried by the SDP in the sip200/okanswer message are correct; if yes, go to step S415; if not, go to step S414.
And S414, the first door phone finishes establishing the voice video call between the calling talkback terminal and the called talkback terminal. S415 is executed.
S415, the first door phone forwards the media data sent by the called intercom terminal and the media data sent by the calling intercom terminal. S416 is performed.
Specifically, when the IP address of the called intercom terminal is an intranet IP address, the first door phone receives third media data sent by the called intercom terminal through a port corresponding to the intranet port number, and forwards the third media data to the calling intercom terminal; or,
and when the IP address of the called talkback terminal is the public network IP address, the first door phone receives fourth media data sent by the called talkback terminal through a port corresponding to the public network port number, and forwards the fourth media data to the calling talkback terminal.
When the IP address of the calling talkback terminal is an intranet IP address, the first door phone receives fifth media data sent by the calling talkback terminal through a port corresponding to an intranet port number, and forwards the fifth media data to the called talkback terminal; or,
and when the IP address of the calling talkback terminal is the public network IP address, the first door phone receives sixth media data sent by the calling talkback terminal through a port corresponding to the public network port number, and forwards the sixth media data to the called talkback terminal.
And S416, the calling talkback terminal and the called talkback terminal enter a voice video call state.
In the embodiment of the invention, after receiving an SIP request message which is sent by a first talkback terminal and used for requesting to establish a voice video call with a second talkback terminal, a first door phone is used in the SIP request message and forwards the SIP request message to the second talkback terminal. Compared with the mode of realizing the transmission of the multimedia data between the talkback terminal and the doorway machine through the P2P server in the prior art, the communication mode based on the SIP between the local area network terminal and the public network terminal is supported in the embodiment of the invention, so that the P2P server is not needed, the cost is reduced, and a large amount of expenses are saved.
Based on the same inventive concept of the method embodiment corresponding to fig. 1, an embodiment of the present invention provides a building intercom device 50, including: at least one door phone and a first talkback terminal and a second talkback terminal; the at least one door phone comprises a first door phone used for media forwarding service, and the address of the first door phone comprises a public network address and an internal network address; the address of the first talkback terminal belongs to a public network address, and the address of the second talkback terminal belongs to an internal network address; the device 50 is applied to the first doorway machine, and a schematic structural diagram of the device is shown in fig. 5, and the device includes a first receiving module 51 and a forwarding module 52, where:
a first receiving module 51, configured to receive an SIP request message sent by the first intercom terminal and used to request to establish a voice video call with the second intercom terminal.
Wherein the SIP request message carries an address for sending the SIP request message, and the address for sending the SIP request message belongs to a public network address.
A forwarding module 52, configured to convert an address used for sending the SIP request message in the SIP request message received by the first receiving module 51 into an intranet address of the first doorway machine, and forward the intranet address to the second intercom terminal.
In a possible implementation manner, the first receiving module 51 is further configured to receive an SIP response message sent by the second intercom terminal and used for agreeing to establish a voice video call with the first intercom terminal.
The SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to an intranet address.
The forwarding module 52 is further configured to convert an address used for sending the SIP response message in the SIP response message received by the first receiving module 51 into a public network address of the first door phone, and forward the public network address to the first intercom terminal.
Optionally, the first receiving module 51 is further configured to receive an SIP request message sent by the second intercom terminal and used for requesting to establish a voice video call with the first intercom terminal.
The SIP request message carries an address used for sending the SIP request message, and the address used for sending the SIP request message belongs to an intranet address.
The forwarding module 52 is further configured to convert an address used for sending the SIP request message in the SIP request message received by the first receiving module 51 into a public network address of the first gate phone, and forward the public network address to the first intercom terminal.
Optionally, the first receiving module 51 is further configured to receive an SIP response message sent by the first intercom terminal and used for agreeing to establish a voice video call with the second intercom terminal.
Wherein the SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to a public network address.
The forwarding module 52 is further configured to convert an address used for sending the SIP response message in the SIP response message received by the first receiving module 51 into an intranet address of the first doorway machine, and forward the intranet address to the second intercom terminal.
Optionally, the apparatus further comprises a second receiving module 53.
The second receiving module 53 is configured to receive the first media data sent by the second intercom terminal through the port corresponding to the internal network address. The forwarding module 52 is further configured to forward the first media data received by the second receiving module 53 to the first intercom terminal.
Or, the second receiving module 53 is configured to receive, through a port corresponding to the public network address, the second media data sent by the first intercom terminal. The forwarding module 52 is further configured to forward the second media data received by the second receiving module 53 to the second intercom terminal.
Optionally, the public network address of the first door phone is a port address of a port of a routing device connected to a public network, and a mapping relationship established in a universal plug and play Upnp protocol manner exists between the port address and the port address of one port of the first door phone.
In the embodiment of the invention, after receiving an SIP request message sent by a first intercom terminal and used for requesting to establish a voice video call with a second intercom terminal, a first entrance machine converts an address used for sending the SIP request message in the SIP request message into an intranet address of the first entrance machine and forwards the intranet address to the second intercom terminal. Compared with the mode of realizing the transmission of the multimedia data between the talkback terminal and the doorway machine through the P2P server in the prior art, the communication mode based on the SIP between the local area network terminal and the public network terminal is supported in the embodiment of the invention, so that the P2P server is not needed, the cost is reduced, and a large amount of expenses are saved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. A building intercom method is characterized in that the building comprises the following steps: at least one door phone and a first talkback terminal and a second talkback terminal; the at least one door phone comprises a first door phone used for media forwarding service, and the address of the first door phone comprises a public network address and an internal network address; the address of the first talkback terminal belongs to a public network address, and the address of the second talkback terminal belongs to an internal network address; the method comprises the following steps:
the first door phone receives a Session Initiation Protocol (SIP) request message which is sent by the first talkback terminal and used for requesting to establish a voice video call with the second talkback terminal;
the SIP request message carries an address used for sending the SIP request message, and the address used for sending the SIP request message belongs to a public network address;
and the first door phone converts the address used for sending the SIP request message in the SIP request message into the intranet address of the first door phone and forwards the intranet address to the second talkback terminal.
2. The method of claim 1, wherein the method further comprises:
the first door phone receives an SIP response message which is sent by the second talkback terminal and used for agreeing to establish a voice video call with the first talkback terminal;
the SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to an intranet address;
and the first door phone converts the address used for sending the SIP response message in the SIP response message into the public network address of the first door phone and forwards the public network address to the first talkback terminal.
3. The method of claim 1, wherein the method further comprises:
the first door phone receives an SIP request message which is sent by the second talkback terminal and used for requesting to establish a voice video call with the first talkback terminal;
the SIP request message carries an address used for sending the SIP request message, and the address used for sending the SIP request message belongs to an intranet address;
and the first door phone converts the address used for sending the SIP request message in the SIP request message into the public network address of the first door phone and forwards the public network address to the first talkback terminal.
4. The method of claim 3, wherein the method further comprises:
the first door phone receives an SIP response message which is sent by the first talkback terminal and used for agreeing to establish a voice video call with the second talkback terminal;
the SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to a public network address;
and the first door phone converts the address used for sending the SIP response message in the SIP response message into the intranet address of the first door phone and forwards the intranet address to the second talkback terminal.
5. The method of claim 2 or 4, wherein the method further comprises:
the first door phone receives first media data sent by the second talkback terminal through a port corresponding to the intranet address, and forwards the first media data to the first talkback terminal; or,
and the first door phone receives second media data sent by the first talkback terminal through a port corresponding to the public network address, and forwards the second media data to the second talkback terminal.
6. The method of claim 1, wherein the public network address of the first door phone is a port address of a port of a routing device connected to a public network, and a mapping relationship established in a universal plug and play (Upnp) protocol exists between the port address and a port address of a port of the first door phone.
7. A building intercom device, said building comprising: at least one door phone and a first talkback terminal and a second talkback terminal; the at least one door phone comprises a first door phone used for media forwarding service, and the address of the first door phone comprises a public network address and an internal network address; the address of the first talkback terminal belongs to a public network address, and the address of the second talkback terminal belongs to an internal network address; the device is applied to the first doorway machine, and comprises:
a first receiving module, configured to receive a session initiation protocol SIP request message sent by the first intercom terminal and used for requesting to establish a voice-video call with the second intercom terminal;
the SIP request message carries an address used for sending the SIP request message, and the address used for sending the SIP request message belongs to a public network address;
and the forwarding module is used for converting an address used for sending the SIP request message in the SIP request message received by the first receiving module into an intranet address of the first doorway machine and forwarding the intranet address to the second talkback terminal.
8. The apparatus of claim 7, wherein the first receiving module is further configured to receive a SIP response message sent by the second intercom terminal for agreeing to establish a voice-video call with the first intercom terminal;
the SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to an intranet address;
the forwarding module is further configured to convert an address used for sending the SIP response message in the SIP response message received by the first receiving module into a public network address of the first door phone, and forward the public network address to the first intercom terminal.
9. The apparatus of claim 7, wherein the first receiving module is further configured to receive an SIP request message sent by the second intercom terminal for requesting to establish a voice video call with the first intercom terminal;
the SIP request message carries an address used for sending the SIP request message, and the address used for sending the SIP request message belongs to an intranet address;
the forwarding module is further configured to convert an address used for sending the SIP request message in the SIP request message received by the first receiving module into a public network address of the first door phone, and forward the public network address to the first intercom terminal.
10. The apparatus of claim 9, wherein the first receiving module is further configured to receive a SIP response message sent by the first intercom terminal for agreeing to establish a voice-video call with the second intercom terminal;
the SIP response message carries an address used for sending the SIP response message, and the address used for sending the SIP response message belongs to a public network address;
the forwarding module is further configured to convert an address used for sending the SIP response message in the SIP response message received by the first receiving module into an intranet address of the first doorway machine, and forward the intranet address to the second intercom terminal.
11. The apparatus of claim 8 or 10, wherein the apparatus further comprises a second receiving module;
the second receiving module is configured to receive, through a port corresponding to the intranet address, first media data sent by the second intercom terminal; the forwarding module is further configured to forward the first media data received by the second receiving module to the first intercom terminal;
or,
the second receiving module is configured to receive, through a port corresponding to the public network address, second media data sent by the first intercom terminal; the forwarding module is further configured to forward the second media data received by the second receiving module to the second intercom terminal.
12. The apparatus of claim 7, wherein the public network address of the first door phone is a port address of a port of a routing device connected to a public network, and a mapping relationship established in a universal plug and play (Upnp) protocol exists between the port address and a port address of a port of the first door phone.
CN201710453580.3A 2017-06-15 2017-06-15 A kind of building talkback method and device Pending CN107222714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710453580.3A CN107222714A (en) 2017-06-15 2017-06-15 A kind of building talkback method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710453580.3A CN107222714A (en) 2017-06-15 2017-06-15 A kind of building talkback method and device

Publications (1)

Publication Number Publication Date
CN107222714A true CN107222714A (en) 2017-09-29

Family

ID=59949659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710453580.3A Pending CN107222714A (en) 2017-06-15 2017-06-15 A kind of building talkback method and device

Country Status (1)

Country Link
CN (1) CN107222714A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966170A (en) * 2021-03-17 2021-06-15 浙江大华技术股份有限公司 Method and device for determining weather pushing strategy, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483764A (en) * 2009-01-19 2009-07-15 北京中星微电子有限公司 Media stream sending method for both monitoring part in network video monitoring system
CN102255980A (en) * 2010-05-20 2011-11-23 中兴通讯股份有限公司 Method and apparatus for managing calling information of session initiation protocol
CN103067358A (en) * 2012-12-14 2013-04-24 北京思特奇信息技术股份有限公司 System and method for converged communication Internet protocol (IP) - private branch exchange (PBX) internal and external network interconnection
CN105049541A (en) * 2014-04-17 2015-11-11 财团法人资讯工业策进会 Network address translation traversal system and method for real-time communications
CN105530310A (en) * 2015-12-22 2016-04-27 浙江宇视科技有限公司 Device connection method and device suitable for public-private network traffic forwarding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483764A (en) * 2009-01-19 2009-07-15 北京中星微电子有限公司 Media stream sending method for both monitoring part in network video monitoring system
CN102255980A (en) * 2010-05-20 2011-11-23 中兴通讯股份有限公司 Method and apparatus for managing calling information of session initiation protocol
CN103067358A (en) * 2012-12-14 2013-04-24 北京思特奇信息技术股份有限公司 System and method for converged communication Internet protocol (IP) - private branch exchange (PBX) internal and external network interconnection
CN105049541A (en) * 2014-04-17 2015-11-11 财团法人资讯工业策进会 Network address translation traversal system and method for real-time communications
CN105530310A (en) * 2015-12-22 2016-04-27 浙江宇视科技有限公司 Device connection method and device suitable for public-private network traffic forwarding

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966170A (en) * 2021-03-17 2021-06-15 浙江大华技术股份有限公司 Method and device for determining weather pushing strategy, storage medium and electronic device
CN112966170B (en) * 2021-03-17 2023-02-28 浙江大华技术股份有限公司 Method and device for determining weather pushing strategy, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US10536490B2 (en) Apparatus and method for communications involving a legacy device
CN104429037B8 (en) Method, equipment and system for being connected to communication equipment
TWI551112B (en) Non-transitory tangible machine readable medium and client device for circuit switched audio calls and video call transitions
US12069008B2 (en) Apparatus and method for subscription to a service and use of the service
CN103052169B (en) System and method for mobile terminal conversation interaction and mobile terminal
EP2837239A1 (en) VVoIP CALL TRANSFER
US20120002665A1 (en) Telephone Exchange Apparatus and Telephone Terminal and a Control Method Used for a Telephone System
US9503583B2 (en) Peer-to-peer, internet protocol telephone system with proxy interface for configuration data
AU2007316108B2 (en) Session based communication
US9241129B2 (en) Video calls for external networks
CN105681122A (en) Method and system for telecommunication device monitoring
CN102223386A (en) Method, device and system for remotely accessing home network
CN104427141B (en) A kind of composite telephone set realizes, answer, call and intercommunication method and IP terminal
CN107222714A (en) A kind of building talkback method and device
CN109120578B (en) Method and device for realizing link connection processing
CN102017783A (en) Network entity selection
KR20180077720A (en) Apparatus and method for interworking between call based on id and call based on phone number
US20140143314A1 (en) Communication system
TWI528776B (en) Terminal device and voice over internet protocol communication method
CN103841280A (en) Network protocol voice system and network communication method
JP2014207709A (en) Terminal
JP5677526B2 (en) Control device and communication history management method
CN120528901A (en) Call method, device, electronic device and computer-readable storage medium
TW201316730A (en) Communication system and method
JP2013153360A (en) Communication system and communication method using the same

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

Application publication date: 20170929

RJ01 Rejection of invention patent application after publication