+

WO2018161718A1 - Communication method, routing device, and computer storage medium - Google Patents

Communication method, routing device, and computer storage medium Download PDF

Info

Publication number
WO2018161718A1
WO2018161718A1 PCT/CN2018/071941 CN2018071941W WO2018161718A1 WO 2018161718 A1 WO2018161718 A1 WO 2018161718A1 CN 2018071941 W CN2018071941 W CN 2018071941W WO 2018161718 A1 WO2018161718 A1 WO 2018161718A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
terminal
address
routing
list
Prior art date
Application number
PCT/CN2018/071941
Other languages
French (fr)
Chinese (zh)
Inventor
陈飞雄
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018161718A1 publication Critical patent/WO2018161718A1/en

Links

Images

Classifications

    • 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/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1043Gateway controllers, e.g. media gateway control protocol [MGCP] controllers
    • 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/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • 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/10Architectures or entities
    • H04L65/1046Call controllers; Call servers
    • 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
    • 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/1069Session establishment or de-establishment
    • 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/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Definitions

  • the application relates to, but is not limited to, the field of computer network technology, in particular to a communication method, a routing device and a computer storage medium.
  • Voice over Internet Protocol also known as VoIP
  • VoIP Voice over Internet Protocol
  • UDP User Datagram Protocol
  • Embodiments of the present invention are directed to providing a communication method, a routing device, and a computer storage medium.
  • An embodiment of the present invention provides a communication method, where the method includes: receiving a call connection request initiated by a first terminal device to a second terminal device;
  • the first terminal device Determining, when the first device identifier ID of the first terminal device matches the device ID in the device state list, acquiring the first Internet Protocol IP address of the second terminal device, and establishing the first IP address according to the first IP address
  • the first terminal device is connected to the VOIP call of the second terminal device.
  • the method further includes: acquiring a second connection of the first terminal device from the device status list when receiving a call connection request initiated by the second terminal device to the first terminal device IP address and online status information;
  • the method further includes: receiving a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device;
  • the method further includes: detecting status information of each terminal device in the device status list in a preset time period;
  • the acquiring the first internet protocol IP address of the second terminal device includes:
  • the first Internet Protocol IP address of the second terminal device is obtained.
  • the method before the receiving the call connection request initiated by the first terminal device to the second terminal device, the method further includes:
  • the communication interface in the routing device is IP.
  • the method further includes:
  • Embodiments of the present invention provide a computer readable storage medium storing computer executable instructions that are implemented by a processor to implement the communication method described above.
  • the embodiment of the present invention further provides a routing device, including: a memory, a processor, a communication module, and a computer program stored on the memory and operable on the processor;
  • the communication module is configured to receive a call connection request initiated by the first terminal device to the second terminal device;
  • the processor configured to determine that the first device identifier ID of the first terminal device matches the device ID in the device state list, acquire the first Internet Protocol IP address of the second terminal device, and according to the The first IP address establishes a VOIP call connection between the first terminal device and the second terminal device; wherein the device status list is stored in the routing device, and the device ID is that the terminal device initiates the routing device The logo at the time of registration.
  • the processor is configured to acquire the first from the device status list when the communication module receives a call connection request initiated by the second terminal device to the first terminal device.
  • the communication module is configured to: when the processor determines that the first terminal device is in an online state according to the online state information, establish the second terminal device according to the second IP address, and the first The VOIP call connection of the terminal device.
  • the communication module is configured to receive a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device;
  • the processor is configured to acquire the second IP address of the first terminal device, and add the first device ID and the second IP address to the device status list.
  • the processor is configured to detect status information of each terminal device in the device status list in a preset time period; update the status information to the device status list;
  • the communication module receives the acquisition request initiated by the second terminal device, the status information is sent to the second terminal device to update the online status of the contact list in the second terminal device.
  • the processor is configured to acquire a first internet protocol IP address of the second terminal device when determining that the second terminal device is an authorized terminal.
  • the processor is configured to IP the communication interface in the routing device.
  • the processor is configured to acquire a third IP address of each terminal device in an online state in the device status list; the routing device determines the third IP address and storage When the IP addresses corresponding to the first online terminal device set in the device status list are inconsistent, the device status list is updated according to the third IP address.
  • the embodiment of the invention further provides a routing device, where the routing device includes:
  • a receiving module configured to receive a call connection request initiated by the first terminal device to the second terminal device
  • a first acquiring module configured to: when determining that the first device identifier ID of the first terminal device matches the device ID in the device state list, acquiring the first Internet Protocol IP address of the second terminal device;
  • the first establishing module is configured to establish, according to the first IP address, a VOIP call connection between the first terminal device and the second terminal device.
  • the second obtaining module is configured to acquire the first status from the device status list when the receiving module receives a call connection request initiated by the second terminal device to the first terminal device.
  • a second establishing module configured to determine, according to the online status information, that the first terminal device is in an online state, and establish a VOIP call connection between the second terminal device and the first terminal device according to the second IP address .
  • the receiving module is further configured to receive a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device;
  • the first acquiring module is further configured to acquire the second IP address of the first terminal device
  • the routing device further includes an adding module configured to add the first device ID and the second IP address to the device status list.
  • the routing device further includes: a detecting module, configured to detect status information of each terminal device in the device status list in a preset time period;
  • An update module configured to update the status information to the device status list
  • a sending module configured to: when the receiving module receives the acquiring request initiated by the second terminal device, send the status information to the second terminal device, to update the online list of contacts in the second terminal device status.
  • the first acquiring module is configured to acquire a first Internet Protocol IP address of the second terminal device when determining that the second terminal device is an authorized terminal.
  • the routing device further includes a conversion module configured to IP the communication interface in the routing device.
  • the routing device further includes: a third obtaining module, configured to acquire a third IP address of each terminal device that is in an online state in the device status list;
  • the update module is further configured to: when the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list, update the device according to the third IP address Status list.
  • An embodiment of the present invention provides a communication method, a routing device, and a computer storage medium, the method comprising: receiving a call connection request initiated by a first terminal device to a second terminal device; and determining a first device of the first terminal device When the identifier ID matches the device ID in the device status list, the first Internet Protocol IP address of the second terminal device is obtained, and the first terminal device and the second terminal device are established according to the first IP address.
  • VOIP call connection visible, through the routing device in the home cloud, the VOIP call connection between the local terminal and the remote terminal in the home cloud can be established, and the VOIP call between the family and the remote user in the home is realized.
  • the VOIP call connection between the remote terminal and the local terminal in the home cloud can be established through the routing device in the home cloud, thereby realizing the VOIP call between the remote user and the relatives in the home; thereby achieving the fusion of the home cloud and the voice communication. the goal of.
  • FIG. 1 is a schematic diagram of a communication system according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of an implementation method of a communication method according to Embodiment 2 of the present invention
  • 3 is a schematic diagram of an implementation process of local terminal registration
  • FIG. 5 is a schematic diagram of an implementation process of a local terminal initiating a call to a remote terminal
  • FIG. 6 is a schematic diagram of an implementation process of a remote terminal initiating a call to a local terminal
  • FIG. 7 is a schematic structural diagram of a routing device according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic structural diagram of another routing device according to Embodiment 2 of the present invention.
  • the communication system includes: a remote terminal 101, a Dynamic Domain Name Server (DDNS) 102, a routing device 103, and Local terminal 104.
  • DDNS Dynamic Domain Name Server
  • the remote terminal 101 has family cloud user rights and may include devices such as a laptop, a tablet, a mobile phone, a smart watch, or a palmtop computer.
  • the home cloud generally refers to a home cloud host as a core, accessing a networkable device in the home through a wired or wireless network in the home, and connecting to the Internet through broadband, is a private cloud built for the family.
  • DDNS 102 can map the user's dynamic IP address to a fixed domain name resolution service.
  • the client program transmits the dynamic IP address of the host to the server located on the service provider host through information transfer.
  • the program, the server program is responsible for providing domain name services and implementing dynamic domain name resolution.
  • the routing device 103 may include a home intelligent router, and the router can implement voice communication between the local terminal and the remote terminal, maintain a device status list, respond to a local terminal registration request, or deregister a request, and provide a function of periodically querying the status of the local terminal.
  • the IP of the specialized port can be implemented, and the process of registering and deregistering is provided for the local terminal to ensure the state accuracy of the device status list.
  • the local terminal 104 may include a device such as a notebook computer, a tablet computer, a mobile phone, a smart watch, or a palmtop computer.
  • the embodiment of the present invention mainly uses a mobile phone as an example.
  • the routing device 103 After the local terminal 104 accesses the routing device 103, it needs to be IP-based by the routing device 103, for example, an external public switched telephone network (PSTN) port in-network virtual outgoing network card, so that it becomes an IP-based terminal.
  • PSTN public switched telephone network
  • USB Universal Serial Bus
  • the communication method in this embodiment includes the following steps 201 and 202.
  • Step 201 The routing device receives a call connection request initiated by the first terminal device to the second terminal device.
  • the first terminal device is a local terminal; the second terminal device is a remote terminal; the routing device is an IP-based terminal management subsystem and an IP-based terminal driver, has a routing switching function, and integrates a VOIP server.
  • a functional router or switch wherein the IP-based terminal can be understood as a local terminal, that is, the first terminal device in the embodiment of the present invention; the IP-based terminal management subsystem can maintain a device status list, respond to an IP-based terminal registration request, or To register the request, and provide the function of periodically querying the status of the IP terminal; the IP terminal driver can realize the IP of the special port, and provide the registration/deregistration process to ensure the state accuracy of the device status list.
  • the VOIP server function can Provides services for voice interactions between device status lists.
  • the method before the receiving the call connection request initiated by the first terminal device to the second terminal device, the method further includes: the routing device IPizing the communication interface.
  • the routing device receives a registration request sent by the first terminal device, the registration request including a first device ID of the first terminal device.
  • the first device ID includes a Subscriber Identification Module (SIM), a User Identification Module (UIM), or a Universal Subscriber Identity Module (USIM) inserted in the terminal device.
  • SIM Subscriber Identification Module
  • UAM User Identification Module
  • USIM Universal Subscriber Identity Module
  • the corresponding number ie mobile phone number
  • the mailbox number or the user name or the brand or hardware identification of the terminal device.
  • the first device ID is not limited to the hardware identifier of the terminal device. In the embodiment of the present invention, the first device ID may be understood as a user account.
  • the first terminal device registers with a routing device (ie, a home gateway, such as a router or a switch, etc.) in the home cloud, thereby obtaining a device status list including the terminal device, where the registration step may include: the local user will After the first terminal device is connected to the routing device, the device initiates registration with the routing device through the software or the IP terminal driver. After receiving the registration request, the routing device obtains the registration account according to the registration request, and adds the registered account as the first device ID. Go to the device status list to obtain a device status list including the first terminal device; wherein the registered account number may be a mobile phone number, a mailbox number, a user name, or a brand or hardware identifier of the terminal device.
  • a routing device ie, a home gateway, such as a router or a switch, etc.
  • FIG. 3 is a schematic diagram of an implementation process of local terminal registration. As shown in FIG. 3, the registration method includes the following steps S2011-S2013.
  • Step S2011 Special IP terminal driver initialization: If the Bluetooth interface virtual network card device is to be provided, a Bluetooth and network card exchange data driving function is provided, and a network card interface is provided internally to provide a Bluetooth interface; if it is a PSTN port IP It is necessary to provide a driving function for exchanging data between the PSTN port and the network card, and provide a NIC interface to provide a PSTN port externally. In this case, the routing device needs to initialize the special IP terminal driver to implement port IP. .
  • Step S2012 Checking whether the device is powered on or powered off: If the IP address of the PSTN port is IP, it is to detect whether the PSTN port is inserted. If the Bluetooth port is IP, the routing device is to detect whether the Bluetooth port has a matching connected device.
  • Step S2013 triggering active registration: Since the state of the device can be learned by the hardware state, the routing device can trigger the registration process; in addition, the deregistration process can also be triggered.
  • the special IPized terminal driver is initialized to realize the IP of the communication port, and the active registration is triggered, thereby establishing a device status list to implement network communication between the remote terminal and the local terminal according to the device status list.
  • FIG. 4 is a schematic diagram of an implementation process of another local terminal registration. As shown in FIG. 4, the registration method includes the following S2021-step S2024.
  • Step S2021 Special IP-based terminal special dial-up initialization: the routing device initializes a special IP-based terminal special dial-up initialization, wherein the ordinary IP-based terminal refers to a local terminal through a Wi-Fi interface, and the driver of the device does not need to be driven. Re-developed, so its registration process is implemented in special dial-up software.
  • Step S2022 Connection test: When the special dialing software is initialized, the routing device initiates a connection test connection operation.
  • Step S2023 Initiating the registration process: After detecting that the local terminal can connect to the routing device, the routing device triggers the local terminal to actively initiate a registration request process to the IP terminal device management subsystem. Since the process of initiating the deregistration request under the network is not successful, the IP terminal device management subsystem needs to periodically query for such terminal management to ensure the accuracy of the IP terminal status.
  • Step S2024 Normal dialing: If the connecting terminal fails, when the local terminal is calling the remote terminal, normal dialing will be enabled.
  • Step 202 The routing device determines that the first device ID of the first terminal device matches the device ID in the device state list, acquires the first IP address of the second terminal device, and establishes according to the first IP address.
  • the first terminal device is connected to a VOIP call of the second terminal device.
  • the acquiring the first Internet Protocol IP address of the second terminal device includes: when determining that the second terminal device is an authorized terminal, the routing device acquires the second terminal device An internet protocol IP address.
  • the call connection request is essentially a data information for establishing a call connection, where the data information includes a source IP address, a destination IP address, a source port, a destination port, and the like; and when determining that the second terminal device is an authorized user The routing device resolves the call connection request to obtain the destination IP address, that is, the IP address of the second terminal device.
  • the method for obtaining the authorization by the second terminal device may include, but is not uniquely defined: registering the routing device with the routing device by software or an IP terminal, or the first terminal device sends an authorization command to the second terminal device, or The second terminal device sends an authorization request to the first terminal device, and the first terminal device responds to the authorization request.
  • the routing device sends a prompt message to the first terminal device, prompting the other device to be an unauthorized user, and enjoying the service after the other party obtains the authorization.
  • FIG. 5 is a flowchart of a local terminal initiating a call to the remote terminal.
  • the calling method includes the step S2031- Step S2036.
  • Step S2031 The local terminal initiates a remote call: the local terminal in the home cloud initiates a call to the remote terminal.
  • Step S2032 The remote terminal monitors the incoming call: the specific dialing software of the remote terminal performs the monitoring and filtering on the number of the incoming call.
  • Step S2033 determining whether the local terminal: the routing device detects whether the call is from a local terminal in the home cloud, obtains a device status list, and then matches the terminal device identifier in the device status list according to the identifier of the detecting local terminal.
  • the call comes from the local terminal in the home cloud; or the remote terminal determines whether the call comes to the local terminal in the home cloud: sends a request for obtaining the device status list to the routing device, and then determines whether the current call is in the device status list.
  • Step S2034 Disconnect the current call: When it is determined that the incoming call is from the local terminal of the home cloud, the routing device automatically disconnects the current incoming call, the incoming call is a traditional call; or the routing device sends a disconnect to the remote terminal. After the command is received, the remote terminal disconnects the current incoming call after receiving the command.
  • Step S2035 Perform callback according to the mapping table: the routing device performs callback according to the IP mapping table, finds the port number of the remote terminal from the IP mapping table according to the calling number, and then performs callback.
  • Step S2036 Normal Answer: When it is determined that the incoming call is not from the local terminal of the home cloud, the remote terminal enters the normal answering mode.
  • the method further includes: when receiving a call connection request initiated by the second terminal device to the first terminal device, acquiring the second IP address of the first terminal device from the device state list Address and online status information;
  • the routing device determines, according to the online status information, that the first terminal device is in an online state, and establishes a VOIP call connection between the second terminal device and the first terminal device according to the second IP address.
  • FIG. 6 is a schematic diagram of a process for the remote terminal to initiate a call to the local terminal.
  • the calling method includes The following steps S2041-S2043.
  • Step S2041 Dialing by using a specific dialing software:
  • the specific dialing software may be a network telephone software, and dialing is performed by a specific dialing software installed at the remote terminal instead of the dialing system provided by the smart phone, and the specific dialing software has a remote access function and Call filtering.
  • Step S2042 Accessing the device status list: the remote terminal accesses the routing device in the home cloud to obtain the device status list, sends an instruction to the routing device to obtain the device status list through the DDNS, and obtains the online local terminal device according to the device status list, and the list already exists.
  • the returning is used for call selection; or the routing device acquires the state information of the local terminal in the device status list, and sends the status information to the remote terminal, so that the remote terminal acquires the local terminal. Status information for subsequent calls.
  • Step S2043 Select a local terminal call: perform a dialing operation according to the status information of the local terminal of the device status list sent by the routing device.
  • the routing device receives the call connection request initiated by the second terminal device to the first terminal device, the routing device obtains the second IP address and the online state information of the first terminal device from the device state list; and determines the first information according to the online state information.
  • a terminal device is in an online state, establishing a VOIP call connection between the second terminal device and the first terminal device according to the second IP address.
  • the routing device acquires the second IP address of the first terminal device, and adds the first device ID and the second IP address to the device status list.
  • the terminal device belonging to the home cloud needs to be determined, and the terminal device and the routing device jointly establish a home cloud-based network communication service.
  • the routing device needs to know which users belong to the home cloud.
  • the scope of the control is therefore required to be registered by the IP-based terminal management subsystem in the routing device, and the terminal information held by the user or the information associated with the terminal, such as a mobile phone number, or a mailbox number, or
  • the user name or the brand or hardware identifier of the terminal device is added to the device terminal list, wherein the device status list is stored in the IP terminal management subsystem, and the IP terminal management subsystem is installed and routed.
  • the device ID of the terminal device is added to the device status list, so that the remote terminal acquires the corresponding terminal device status according to the device ID.
  • the method further includes: the routing device detecting status information of each terminal device in the device status list in a preset time period; the routing device updating the status information to the device status list in.
  • the user in the home cloud may be disconnected from the routing device, that is, the user is offline.
  • the routing device periodically detects each terminal device in the device status list. Status information, the obtained status information is updated to the device status list, so that the remote terminal obtains the online status of the contact.
  • the method further includes: the routing device acquiring, for each terminal device in the device status list, in an online state. Three IP addresses.
  • the routing device determines that the third IP address is inconsistent with the IP address corresponding to the first online terminal device set stored in the device status list, the routing device updates the device status list according to the third IP address.
  • the IP address of the terminal device used by the user may change each time the user reconnects to the network.
  • the routing device needs to obtain a new IP address of the terminal device and update the IP address to the device status list. In order to be used when the remote terminal initiates a call.
  • FIG. 7 is a schematic structural diagram of a home cloud-based routing device according to Embodiment 2 of the present invention, where the route is
  • the device includes: a receiving module 701, configured to receive a call connection request initiated by the first terminal device to the second terminal device.
  • the first obtaining module 702 is configured to acquire the first Internet Protocol IP address of the second terminal device when the first device identifier ID of the first terminal device matches the device ID in the device state list.
  • the first establishing module 703 is configured to establish, according to the first IP address, a VOIP call connection between the first terminal device and the second terminal device.
  • the routing device further includes: a second obtaining module 704, configured to: when the receiving module receives a call connection request initiated by the second terminal device to the first terminal device, from the device Obtaining a second IP address and online state information of the first terminal device in the status list.
  • the second establishing module 705 is configured to establish, according to the online status information, that the first terminal device is in an online state, and establish a VOIP call between the second terminal device and the first terminal device according to the second IP address. connection.
  • the receiving module 701 is further configured to receive a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device.
  • the first obtaining module 702 is further configured to acquire the second IP address of the first terminal device.
  • the routing device further includes an adding module 706 configured to add the first device ID and the second IP address to the device status list.
  • the routing device further includes: a detecting module 707 configured to detect status information of each terminal device in the device status list in a preset time period.
  • An update module 708 is arranged to update the status information to the device status list.
  • the sending module 709 is configured to: when the receiving module receives the acquiring request initiated by the second terminal device, send the status information to the second terminal device, to update the contact list in the second terminal device online status.
  • the first obtaining module 702 is configured to acquire a first Internet Protocol IP address of the second terminal device when determining that the second terminal device is an authorized terminal.
  • the routing device further includes a conversion module 710 configured to route the communication interface IP.
  • the routing device further includes: a third obtaining module 711, configured to acquire a third IP address of each terminal device that is in an online state in the device status list.
  • the update module 708 is further configured to: when the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list, update the device status according to the third IP address List.
  • the routing device consisting of the above schematic structure diagram can perform the following methods and steps:
  • the receiving module 701 receives a call connection request initiated by the first terminal device to the second terminal device.
  • the first terminal device is a local terminal; the second terminal device is a remote terminal; the routing device is an IP-based terminal management subsystem and an IP-based terminal driver, has a routing switching function, and integrates a VOIP server.
  • a functional router or switch wherein the IP-based terminal can be understood as a local terminal, that is, the first terminal device in the embodiment of the present invention; the IP-based terminal management subsystem can maintain a device status list, respond to an IP-based terminal registration request, or To register the request, and provide the function of periodically querying the status of the IP terminal; the IP terminal driver can realize the IP of the special port, and provide the registration/deregistration process to ensure the state accuracy of the device status list.
  • the VOIP server function can Provides services for voice interactions between device status lists.
  • the conversion module 710 IPifies the communication interface before the receiving module 701 receives the call connection request initiated by the first terminal device to the second terminal device.
  • the receiving module 701 receives a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device.
  • the first device ID includes a number (ie, a mobile phone number) corresponding to a SIM card, a UIM card, or a USIM card inserted in the terminal device, or a mailbox number, or a user name or a brand or hardware identifier of the terminal device. It should be noted that the first device ID is not limited to the hardware identifier of the terminal device. In the embodiment of the present invention, the first device ID may be understood as a user account.
  • the first terminal device registers with a routing device (ie, a home gateway, such as a router or a switch, etc.) in the home cloud, thereby obtaining a device status list including the terminal device, where the registration step may include: the local user will
  • a routing device ie, a home gateway, such as a router or a switch, etc.
  • the registration step may include: the local user will
  • the device initiates registration with the routing device through the software or the IP terminal.
  • the receiving module 701 receives the registration request
  • the first obtaining module 702 obtains the registration account according to the registration request, and adds the module 706.
  • the registered account may be a mobile phone number, a mailbox number, a user name, or a brand of the terminal device or Hardware identification, etc.
  • FIG. 3 is a schematic diagram of an implementation process of local terminal registration. As shown in FIG. 3, the registration method includes the following steps:
  • the conversion module 710 initializes the special IP-based terminal driver. If the Bluetooth interface virtual network card device is to be used, it is required to provide a driving function for exchanging data between the Bluetooth and the network card, and provide a network card interface internally. If the PSTN port is IP-based, it is required to provide a PSTN port and a network card to exchange data with each other. At the same time, the internal network card interface is provided to provide a PSTN port. In this case, the routing device needs to be special. IP terminal driver initialization to achieve port IP.
  • the detecting device is powered on or powered off: the detecting module 707 detects that the device is powered on or powered off. If the IP address of the PSTN port is IP, it is necessary to detect whether the PSTN port is inserted. If the Bluetooth port is IP, the routing device is to detect. Whether the Bluetooth port has a matching connected device.
  • the triggering module triggers active registration. Since the state of the device can be learned by the hardware state, the routing device can trigger the registration process; in addition, the deregistration process can also be triggered.
  • the special IPized terminal driver is initialized to realize the IP of the communication port, and the active registration is triggered, thereby establishing a device status list to implement network communication between the remote terminal and the local terminal according to the device status list.
  • the registration method includes the following steps:
  • the conversion module 710 initializes the special IP-based terminal special dial-up initialization, wherein the ordinary IP-based terminal refers to the local terminal through the Wi-Fi interface, because the driving of the type of device is not Need to be redeveloped. So its registration process is implemented in special dial-up software.
  • connection test When the special dialing software initialization is completed, the detection module 707 initiates a connection test connection operation.
  • Initializing the special IP-based terminal special dialing realizing the IP of the Wi-Fi interface, and triggering the active registration, thereby establishing a device status list to implement network communication between the remote terminal and the local terminal according to the device status list.
  • the first obtaining module 702 when determining that the first device identifier ID of the first terminal device matches the device ID in the device state list, acquires a first Internet Protocol IP address of the second terminal device, and according to the first An IP address establishes a VOIP call connection between the first terminal device and the second terminal device.
  • the first acquiring module 702 acquires the first Internet of the second terminal device Protocol IP address.
  • the call connection request is essentially a data information for establishing a call connection, where the data information includes a source IP address, a destination IP address, a source port, a destination port, and the like; and when determining that the second terminal device is an authorized user
  • the routing device resolves the call connection request to obtain the destination IP address, that is, the IP address of the second terminal device.
  • the method for obtaining the authorization by the second terminal device may include, but is not uniquely defined: registering the routing device with the routing device by software or an IP terminal, or the first terminal device sends an authorization command to the second terminal device, or The second terminal device sends an authorization request to the first terminal device, and the first terminal device responds to the authorization request.
  • the routing device sends a prompt message to the first terminal device, prompting the other device to be an unauthorized user, and enjoying the service after the other party obtains the authorization.
  • FIG. 5 is a schematic diagram of a process for the local terminal to initiate a call to the remote terminal.
  • the calling method includes the following steps. :
  • the local terminal initiates a remote call: the local terminal in the home cloud initiates a call to the remote terminal.
  • the remote terminal monitors the incoming call: the specific dialing software of the remote terminal monitors and filters the number of the incoming call.
  • the detecting module 707 detects whether the call is from a local terminal in the home cloud, obtains a device status list, and then matches the terminal device identifier in the device status list according to the identifier of the detecting local terminal, if the matching, the description
  • the call is from a local terminal in the home cloud; or the remote terminal determines whether the call comes to the local terminal in the home cloud: sending a request for obtaining a device status list to the routing device, and then determining whether the current call is in the device status list
  • the first establishing module 703 automatically disconnects the current incoming call, the incoming call is a traditional call; or, the sending module 709 is remote
  • the terminal sends a disconnect command, and after receiving the command, the remote terminal disconnects the current incoming call.
  • the first establishing module 703 performs callback according to the IP mapping table, finds the port number of the remote terminal from the IP mapping table according to the calling number, and then performs callback.
  • the second obtaining module 704 acquires the second IP address and the online state information of the first terminal device from the device status list. ;
  • the second establishing module 705 determines, according to the online status information, that the first terminal device is in an online state, and establishes a VOIP call connection between the second terminal device and the first terminal device according to the second IP address.
  • FIG. 6 is a schematic diagram of a process for the remote terminal to initiate a call to the local terminal.
  • the calling method includes The following steps:
  • Specific dial-up software dialing may be VoIP software, which is dialed by a specific dialing software installed at the remote terminal instead of the dialing system provided by the smart phone, and the specific dialing software has remote access function and call filtering.
  • the remote terminal accesses the routing device in the home cloud to obtain the device status list, sends an instruction to the routing device through the DDNS to obtain the device status list, and obtains the online local terminal device according to the device status list, and the list already exists.
  • the return is used for call selection; or the second obtaining module 704 obtains the state information of the local terminal in the device status list, and sends the status information to the remote terminal, so that the remote terminal obtains Status information of the local terminal for subsequent calls.
  • the adding module 706 adds the first device ID and the second IP address to the device status list.
  • the receiving module 701 receives the call connection request initiated by the second terminal device to the first terminal device
  • the second obtaining module 704 obtains the second IP address and the online state information of the first terminal device from the device state list; the second establishing module
  • the 705 determines, according to the online status information, that the first terminal device is in an online state, and establishes a VOIP call connection between the second terminal device and the first terminal device according to the second IP address.
  • the terminal device belonging to the home cloud needs to be determined, and the terminal device and the routing device jointly establish a home cloud-based network communication service.
  • the routing device needs to know which users belong to the home cloud.
  • the scope of the control is therefore required to be registered by the IP-based terminal management subsystem in the routing device, and the terminal information held by the user or the information associated with the terminal, such as a mobile phone number, or a mailbox number, or
  • the user name or the brand or hardware identifier of the terminal device is added to the device terminal list, wherein the device status list is stored in the IP terminal management subsystem, and the IP terminal management subsystem is installed and routed.
  • the device ID of the terminal device is added to the device status list, so that the remote terminal acquires the corresponding terminal device status according to the device ID.
  • the detecting module 707 detects status information of each terminal device in the device status list in a preset time period.
  • Update module 708 updates the status information to the device status list.
  • the terminal device carried by the user disconnects from the routing device, that is, the user is offline.
  • the detecting module 707 periodically detects each terminal in the device status list.
  • the status information of the device the sending module 709 sends the status information to the second terminal device, so that the remote terminal acquires the online status of the contact.
  • the update module 708 updates the acquired status information to the device status list.
  • the third obtaining module 711 acquires a third IP address of each terminal device that is in an online state in the device status list;
  • the update module 708 updates the device status list according to the third IP address when it is determined that the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list.
  • the IP address of the terminal device used by the user may change each time the user reconnects to the network.
  • the routing device needs to obtain a new IP address of the terminal device and update the IP address to the device status list. In order to be used when the remote terminal initiates a call.
  • the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be in the controller Implementation.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • the software code can be implemented by a software application written in any suitable programming language, which can be stored in memory and executed by the controller.
  • the local terminal belonging to the home cloud is registered, the device status list is created according to the registration information, and the obtained IP address, corresponding identifier, and status information of the local terminal are added to the device status list, thereby obtaining a device status list having the above information; through the device status list, on the one hand, a VOIP call connection between the local terminal and the remote terminal in the home cloud can be established, thereby realizing a VOIP call between the relatives and the remote users in the home; It is also possible to establish a VOIP call connection between the remote terminal and the local terminal in the home cloud, thereby realizing a VOIP call between the remote user and the relatives in the home.
  • FIG. 8 is a schematic structural diagram of another routing device according to Embodiment 2 of the present invention.
  • FIG. 8 is an example of a routing device as a hardware entity in the embodiment of the present invention.
  • the routing device includes: a memory 801, a processor 802, a communication module 803, and a computer program stored on the memory 801 and executable on the processor 802;
  • the communication module 803 is configured to receive a call connection request initiated by the first terminal device to the second terminal device;
  • the processor 802 is configured to: when determining that the first device identifier ID of the first terminal device matches the device ID in the device state list, acquire the first Internet Protocol IP address of the second terminal device, and obtain Establishing a VOIP call connection between the first terminal device and the second terminal device, where the device status list is stored in the routing device, and the device ID is a terminal device to the routing device The identifier when the registration was initiated.
  • the processor 802 is configured to acquire the first status from the device status list when the communication module 803 receives a call connection request initiated by the second terminal device to the first terminal device. a second IP address and online status information of a terminal device;
  • the communication module 803 is configured to establish, according to the online state information, the second terminal device and the first The VOIP call connection of the terminal device.
  • the communication module 803 is configured to receive a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device;
  • the processor 802 is configured to acquire the second IP address of the first terminal device, and add the first device ID and the second IP address to the device status list.
  • the processor 802 is configured to detect status information of each terminal device in the device status list in a preset time period; update the status information to the device status list; When the communication module 803 receives the acquisition request initiated by the second terminal device, the status information is sent to the second terminal device to update the online status of the contact list in the second terminal device. .
  • the processor 802 is configured to acquire a third IP address of each terminal device that is in an online state in the device status list; the routing device determines the third IP address and storage When the IP addresses corresponding to the first online terminal device set in the device status list are inconsistent, the device status list is updated according to the third IP address.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, the computer executable instructions are used to execute the communication method, and the communication method comprises: receiving a first terminal a call connection request initiated by the device to the second terminal device;
  • the first terminal device Determining, when the first device identifier ID of the first terminal device matches the device ID in the device state list, acquiring the first Internet Protocol IP address of the second terminal device, and establishing the first IP address according to the first IP address
  • the first terminal device is connected to the VOIP call of the second terminal device; wherein the device status list is stored in the routing device, and the device ID is a registration identifier used when the terminal device initiates registration with the routing device. .
  • the method further includes: when receiving a call connection request initiated by the second terminal device to the first terminal device, acquiring the second IP address of the first terminal device from the device state list Address and online status information;
  • the method further includes: the routing device receiving a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device;
  • the routing device adds the first device ID and the second IP address to the device status list.
  • the method further includes: the routing device detecting state information of each terminal device in the device state list in a preset time period;
  • the routing device updates the status information to the device status list
  • the routing device When receiving the acquisition request initiated by the second terminal device, the routing device sends the status information to the second terminal device to update the online status of the contact list in the second terminal device.
  • the method further includes: the routing device acquiring each of the device status lists that are in an online state.
  • the routing device determines that the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list, the routing device updates the device status list according to the third IP address.
  • Embodiments of the present invention provide a computer readable storage medium storing computer executable instructions that are implemented by a processor to implement the communication method described above.
  • computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media.
  • Computer storage media include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), and Electrically Erasable Programmable Read-only Memory (EEPROM). Flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or Any other medium used to store the desired information and that can be accessed by the computer.
  • communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
  • a VOIP call connection between the local terminal and the remote terminal in the home cloud can be established, and a VOIP call between the family and the remote user in the home is realized.

Landscapes

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

Abstract

Provided are a communication method, a routing device, and a computer storage medium. The method comprises: receiving a call connection request transmitted to a second terminal device by a first terminal device; and if it is determined that a first device identifier (ID) of the first terminal device matches a device ID in a device state table, acquiring a first Internet protocol (IP) address of the second terminal device, and establishing, according to the first IP address, a VOIP call connection between the first terminal device and the second terminal device.

Description

一种通信方法、路由设备和计算机存储介质Communication method, routing device and computer storage medium 技术领域Technical field

本申请涉及但不限于计算机网络技术领域,尤其是一种通信方法、路由设备和计算机存储介质。The application relates to, but is not limited to, the field of computer network technology, in particular to a communication method, a routing device and a computer storage medium.

背景技术Background technique

在智能终端爆发式普及的背景下,移动互联成为了信息技术(Information Technology,IT)领域发展的主流趋势,尤其在三网融合的大背景下,云计算成为了网络发展的必然结果。在云普及的过程中,家庭云是个人云普及的一个重要纬度。由于家庭设备组网太复杂、单一设备娱乐太单调和私密信息存储有顾虑的问题,家庭云能够解决这些问题,为用户带来更便捷多彩的家庭生活。很多厂商看准了家庭云的发展潜力,大力开发家庭云服务。In the context of the explosive popularity of smart terminals, mobile internet has become the mainstream trend in the development of information technology (IT). Especially in the context of triple play, cloud computing has become the inevitable result of network development. In the process of cloud popularization, the family cloud is an important latitude of personal cloud popularity. Due to the complexity of the networking of home devices, the monotony of single device entertainment and the concern of private information storage, the family cloud can solve these problems and bring more convenient and colorful family life to users. Many manufacturers have identified the development potential of the home cloud and vigorously developed home cloud services.

发明内容Summary of the invention

以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.

基于网络协议传输的语音(Voice over Internet Protocol,VOIP),也称之为网络电话,它是通过互联网直接拨打对方的固定电话或手机,包括国内长途和国际长途,由于网络电话通话的价格低廉,受到了用户的广泛推崇。目前常用的网络电话主要是利用互联网进行的语音通信,该网络电话通过基于用户数据报协议(User Datagram Protocol,UDP)的信令控制协议,实现了语音数据在互联网的传输,达到了网络通信的目的;由于采用互联网技术,使资费得到了大大降低,为传统电话费用的10%到20%。Voice over Internet Protocol (VOIP), also known as VoIP, is a fixed telephone or mobile phone that directly dials the other party through the Internet, including domestic long distance and international long distance. Because of the low price of VoIP calls, Widely respected by users. At present, the commonly used network telephone is mainly a voice communication using the Internet. The network telephone realizes the transmission of voice data on the Internet through a signaling control protocol based on User Datagram Protocol (UDP), and achieves network communication. Purpose; due to the use of Internet technology, the tariff has been greatly reduced, ranging from 10% to 20% of traditional telephone charges.

上述方案的语音通信,虽然价格低廉,但还是需要传统电话费用的10%到20%。The voice communication of the above solution, although inexpensive, still requires 10% to 20% of the cost of traditional telephones.

本发明实施例期望提供一种通信方法、路由设备和计算机存储介质。Embodiments of the present invention are directed to providing a communication method, a routing device, and a computer storage medium.

本发明实施例提供了一种通信方法,所述方法包括:接收第一终端设备 向第二终端设备发起的呼叫连接请求;An embodiment of the present invention provides a communication method, where the method includes: receiving a call connection request initiated by a first terminal device to a second terminal device;

确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址,并根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接。Determining, when the first device identifier ID of the first terminal device matches the device ID in the device state list, acquiring the first Internet Protocol IP address of the second terminal device, and establishing the first IP address according to the first IP address The first terminal device is connected to the VOIP call of the second terminal device.

在一个示例性的实施例中,所述方法还包括:接收到第二终端设备向第一终端设备发起的呼叫连接请求时,从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息;In an exemplary embodiment, the method further includes: acquiring a second connection of the first terminal device from the device status list when receiving a call connection request initiated by the second terminal device to the first terminal device IP address and online status information;

根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。And determining, according to the online status information, that the first terminal device is in an online state, and establishing a VOIP call connection between the second terminal device and the first terminal device according to the second IP address.

在一个示例性的实施例中,所述方法还包括:接收第一终端设备发送的注册请求,所述注册请求包括第一终端设备的所述第一设备ID;In an exemplary embodiment, the method further includes: receiving a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device;

获取所述第一终端设备的所述第二IP地址;Obtaining the second IP address of the first terminal device;

将所述第一设备ID和所述第二IP地址添加至所述设备状态列表中。Adding the first device ID and the second IP address to the device status list.

在一个示例性的实施例中,所述方法还包括:在预设时间周期检测所述设备状态列表中每个终端设备的状态信息;In an exemplary embodiment, the method further includes: detecting status information of each terminal device in the device status list in a preset time period;

将所述状态信息更新至所述设备状态列表中;Updating the status information to the device status list;

接收到所述第二终端设备发起的获取请求时,将所述状态信息发送至所述第二终端设备,以更新所述第二终端设备中联系人列表的在线状态。And receiving the status information sent by the second terminal device to the second terminal device to update an online status of the contact list in the second terminal device.

在一个示例性的实施例中,所述获取所述第二终端设备的第一互联网协议IP地址包括:In an exemplary embodiment, the acquiring the first internet protocol IP address of the second terminal device includes:

确定所述第二终端设备为授权终端时,获取所述第二终端设备的第一互联网协议IP地址。When the second terminal device is determined to be an authorized terminal, the first Internet Protocol IP address of the second terminal device is obtained.

在一个示例性的实施例中,所述接收到第一终端设备向第二终端设备发起的呼叫连接请求之前,所述方法还包括:In an exemplary embodiment, before the receiving the call connection request initiated by the first terminal device to the second terminal device, the method further includes:

将所述路由设备中的通信接口IP化。The communication interface in the routing device is IP.

在一个示例性的实施例中,所述将所述状态信息更新至所述设备状态列表中之后,所述方法还包括:In an exemplary embodiment, after the updating the status information to the device status list, the method further includes:

获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址;Obtaining a third IP address of each terminal device that is in an online state in the device status list;

确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP地址不一致时,根据所述第三IP地址更新所述设备状态列表。And determining, when the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list, updating the device status list according to the third IP address.

本发明实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述的通信方法。Embodiments of the present invention provide a computer readable storage medium storing computer executable instructions that are implemented by a processor to implement the communication method described above.

本发明实施例还提供了一种路由设备,所述路由设备包括:包括存储器,处理器,通信模组及存储在所述存储器上并可在处理器上运行的计算机程序;其中,The embodiment of the present invention further provides a routing device, including: a memory, a processor, a communication module, and a computer program stored on the memory and operable on the processor;

所述通信模组,配置为接收第一终端设备向第二终端设备发起的呼叫连接请求;The communication module is configured to receive a call connection request initiated by the first terminal device to the second terminal device;

所述处理器,配置为确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址,并根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接;其中,所述设备状态列表存储于所述路由设备,所述设备ID为终端设备向所述路由设备发起注册时的标识。The processor, configured to determine that the first device identifier ID of the first terminal device matches the device ID in the device state list, acquire the first Internet Protocol IP address of the second terminal device, and according to the The first IP address establishes a VOIP call connection between the first terminal device and the second terminal device; wherein the device status list is stored in the routing device, and the device ID is that the terminal device initiates the routing device The logo at the time of registration.

在一个示例性的实施例中,所述处理器,配置为在通信模组接收到第二终端设备向第一终端设备发起的呼叫连接请求时,从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息;In an exemplary embodiment, the processor is configured to acquire the first from the device status list when the communication module receives a call connection request initiated by the second terminal device to the first terminal device. The second IP address and online status information of the terminal device;

所述通信模组,配置为在所述处理器根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。The communication module is configured to: when the processor determines that the first terminal device is in an online state according to the online state information, establish the second terminal device according to the second IP address, and the first The VOIP call connection of the terminal device.

在一个示例性的实施例中,所述通信模组,配置为接收第一终端设备发送的注册请求,所述注册请求包括第一终端设备的所述第一设备ID;In an exemplary embodiment, the communication module is configured to receive a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device;

所述处理器,配置为获取所述第一终端设备的所述第二IP地址;将所述第一设备ID和所述第二IP地址添加至所述设备状态列表中。The processor is configured to acquire the second IP address of the first terminal device, and add the first device ID and the second IP address to the device status list.

在一个示例性的实施例中,所述处理器,配置为在预设时间周期检测所述设备状态列表中每个终端设备的状态信息;将所述状态信息更新至所述设 备状态列表中;在所述通信模组接收到所述第二终端设备发起的获取请求时,将所述状态信息发送至所述第二终端设备,以更新所述第二终端设备中联系人列表的在线状态。In an exemplary embodiment, the processor is configured to detect status information of each terminal device in the device status list in a preset time period; update the status information to the device status list; When the communication module receives the acquisition request initiated by the second terminal device, the status information is sent to the second terminal device to update the online status of the contact list in the second terminal device.

在一个示例性的实施例中,所述处理器,配置为在确定所述第二终端设备为授权终端时,获取所述第二终端设备的第一互联网协议IP地址。In an exemplary embodiment, the processor is configured to acquire a first internet protocol IP address of the second terminal device when determining that the second terminal device is an authorized terminal.

在一个示例性的实施例中,所述处理器,配置为将所述路由设备中的通信接口IP化。In an exemplary embodiment, the processor is configured to IP the communication interface in the routing device.

在一个示例性的实施例中,所述处理器,配置为获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址;所述路由设备确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP地址不一致时,根据所述第三IP地址更新所述设备状态列表。In an exemplary embodiment, the processor is configured to acquire a third IP address of each terminal device in an online state in the device status list; the routing device determines the third IP address and storage When the IP addresses corresponding to the first online terminal device set in the device status list are inconsistent, the device status list is updated according to the third IP address.

本发明实施例还提供了一种路由设备,所述路由设备包括:The embodiment of the invention further provides a routing device, where the routing device includes:

接收模块,配置为接收到第一终端设备向第二终端设备发起的呼叫连接请求;a receiving module, configured to receive a call connection request initiated by the first terminal device to the second terminal device;

第一获取模块,配置为确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址;a first acquiring module, configured to: when determining that the first device identifier ID of the first terminal device matches the device ID in the device state list, acquiring the first Internet Protocol IP address of the second terminal device;

第一建立模块,配置为根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接。The first establishing module is configured to establish, according to the first IP address, a VOIP call connection between the first terminal device and the second terminal device.

在一个示例性的实施例中,第二获取模块,配置为在所述接收模块接收到第二终端设备向第一终端设备发起的呼叫连接请求时,从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息;In an exemplary embodiment, the second obtaining module is configured to acquire the first status from the device status list when the receiving module receives a call connection request initiated by the second terminal device to the first terminal device. a second IP address and online status information of a terminal device;

第二建立模块,配置为根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。a second establishing module, configured to determine, according to the online status information, that the first terminal device is in an online state, and establish a VOIP call connection between the second terminal device and the first terminal device according to the second IP address .

在一个示例性的实施例中,所述接收模块,还配置为接收第一终端设备发送的注册请求,所述注册请求包括第一终端设备的所述第一设备ID;In an exemplary embodiment, the receiving module is further configured to receive a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device;

所述第一获取模块,还配置为获取所述第一终端设备的所述第二IP地址;The first acquiring module is further configured to acquire the second IP address of the first terminal device;

所述路由设备还包括:添加模块,配置为将所述第一设备ID和所述第二IP地址添加至所述设备状态列表中。The routing device further includes an adding module configured to add the first device ID and the second IP address to the device status list.

在一个示例性的实施例中,所述路由设备还包括:检测模块,配置为在预设时间周期检测所述设备状态列表中每个终端设备的状态信息;In an exemplary embodiment, the routing device further includes: a detecting module, configured to detect status information of each terminal device in the device status list in a preset time period;

更新模块,配置为将所述状态信息更新至所述设备状态列表中;An update module configured to update the status information to the device status list;

发送模块,配置为在接收模块接收到所述第二终端设备发起的获取请求时,将所述状态信息发送至所述第二终端设备,以更新所述第二终端设备中联系人列表的在线状态。a sending module, configured to: when the receiving module receives the acquiring request initiated by the second terminal device, send the status information to the second terminal device, to update the online list of contacts in the second terminal device status.

在一个示例性的实施例中,所述第一获取模块,是设置为在确定所述第二终端设备为授权终端时,获取所述第二终端设备的第一互联网协议IP地址。In an exemplary embodiment, the first acquiring module is configured to acquire a first Internet Protocol IP address of the second terminal device when determining that the second terminal device is an authorized terminal.

在一个示例性的实施例中,所述路由设备还包括:转换模块,配置为将所述路由设备中的通信接口IP化。In an exemplary embodiment, the routing device further includes a conversion module configured to IP the communication interface in the routing device.

在一个示例性的实施例中,所述路由设备还包括:第三获取模块,配置为获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址;In an exemplary embodiment, the routing device further includes: a third obtaining module, configured to acquire a third IP address of each terminal device that is in an online state in the device status list;

所述更新模块,还配置为确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP地址不一致时,根据所述第三IP地址更新所述设备状态列表。The update module is further configured to: when the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list, update the device according to the third IP address Status list.

本发明实施例提供了一种通信方法、路由设备和计算机存储介质,所述方法包括:接收第一终端设备向第二终端设备发起的呼叫连接请求;确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址,并根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接;可见,通过家庭云中的路由设备,可以建立家庭云中的本地终端与远程终端的VOIP呼叫连接,实现了家中亲人与远程用户之间的VOIP通话。An embodiment of the present invention provides a communication method, a routing device, and a computer storage medium, the method comprising: receiving a call connection request initiated by a first terminal device to a second terminal device; and determining a first device of the first terminal device When the identifier ID matches the device ID in the device status list, the first Internet Protocol IP address of the second terminal device is obtained, and the first terminal device and the second terminal device are established according to the first IP address. VOIP call connection; visible, through the routing device in the home cloud, the VOIP call connection between the local terminal and the remote terminal in the home cloud can be established, and the VOIP call between the family and the remote user in the home is realized.

此外,还可进一步通过家庭云中的路由设备,可以建立远程终端与家庭云中的本地终端的VOIP呼叫连接,实现了远程用户与家中亲人之间的VOIP通话;从而达到家庭云与语音通信融合的目的。In addition, the VOIP call connection between the remote terminal and the local terminal in the home cloud can be established through the routing device in the home cloud, thereby realizing the VOIP call between the remote user and the relatives in the home; thereby achieving the fusion of the home cloud and the voice communication. the goal of.

在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.

附图概述BRIEF abstract

图1为本发明实施例一提供的一种通信系统图;FIG. 1 is a schematic diagram of a communication system according to Embodiment 1 of the present invention; FIG.

图2为本发明实施例二提供的一种通信方法的实现流程示意图;2 is a schematic flowchart of an implementation method of a communication method according to Embodiment 2 of the present invention;

图3为一种本地终端注册的实现流程示意图;3 is a schematic diagram of an implementation process of local terminal registration;

图4为另一种本地终端注册的实现流程示意图;4 is a schematic diagram of an implementation process of another local terminal registration;

图5为一种本地终端向远程终端发起呼叫的实现流程示意图;5 is a schematic diagram of an implementation process of a local terminal initiating a call to a remote terminal;

图6为一种远程终端向本地终端发起呼叫的实现流程示意图;6 is a schematic diagram of an implementation process of a remote terminal initiating a call to a local terminal;

图7为本发明实施例二提供的一种路由设备的组成结构示意图;FIG. 7 is a schematic structural diagram of a routing device according to Embodiment 2 of the present invention;

图8为本发明实施例二提供的另一种路由设备的组成结构示意图。FIG. 8 is a schematic structural diagram of another routing device according to Embodiment 2 of the present invention.

本发明的实施方式Embodiments of the invention

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.

实施例一Embodiment 1

图1为本发明实施例一提供的一种通信系统的框图,参照图1所示,所述通信系统包括:远程终端101、动态域名服务器(Dynamic Domain Name Server,DDNS)102、路由设备103和本地终端104。1 is a block diagram of a communication system according to Embodiment 1 of the present invention. Referring to FIG. 1, the communication system includes: a remote terminal 101, a Dynamic Domain Name Server (DDNS) 102, a routing device 103, and Local terminal 104.

远程终端101具有家庭云用户权限,可以包括笔记本电脑、平板电脑、手机、智能手表或掌上电脑等设备。The remote terminal 101 has family cloud user rights and may include devices such as a laptop, a tablet, a mobile phone, a smart watch, or a palmtop computer.

所述家庭云泛指以家庭云主机为核心,通过家庭中的有线或无线网络,接入家庭中可以联网的设备,并通过宽带与互联网相连,是一个为家庭而组建的私有云。The home cloud generally refers to a home cloud host as a core, accessing a networkable device in the home through a wired or wireless network in the home, and connecting to the Internet through broadband, is a private cloud built for the family.

DDNS 102可以将用户的动态IP地址映射到一个固定的域名解析服务上,用户每次连接网络的时候客户端程序就会通过信息传递把该主机的动态IP地址传送给位于服务商主机上的服务器程序,服务器程序负责提供域名服务并实现动态域名解析。DDNS 102 can map the user's dynamic IP address to a fixed domain name resolution service. Each time the user connects to the network, the client program transmits the dynamic IP address of the host to the server located on the service provider host through information transfer. The program, the server program is responsible for providing domain name services and implementing dynamic domain name resolution.

路由设备103,可以包括家庭智能路由器,所述路由器能实现本地终端和远程终端之间的语音通信、维护设备状态列表、响应本地终端注册请求或者去注册请求,同时提供定时查询本地终端状态的功能;此外,能实现特殊化端口的IP化,为本地终端提供注册和去注册的流程,保证设备状态列表的状态准确性,操作方法和步骤参见实施例二。The routing device 103 may include a home intelligent router, and the router can implement voice communication between the local terminal and the remote terminal, maintain a device status list, respond to a local terminal registration request, or deregister a request, and provide a function of periodically querying the status of the local terminal. In addition, the IP of the specialized port can be implemented, and the process of registering and deregistering is provided for the local terminal to ensure the state accuracy of the device status list. For the operation method and procedure, refer to the second embodiment.

本地终端104可以包括笔记本电脑、平板电脑、手机、智能手表或掌上电脑等设备,本发明实施例主要以手机为例。所述本地终端104接入到路由设备103后,需由路由设备103进行IP化,比如为外接公共交换电话网络(Public Switched Telephone Network,PSTN)端口对内虚拟出网卡,使之成为IP化终端;同理,为类似通用串行总线(Universal Serial Bus,USB)蓝牙适配器(Bluetooth Adapter)接入到智能路由必须也对内虚拟出网卡,使之成为IP化终端。The local terminal 104 may include a device such as a notebook computer, a tablet computer, a mobile phone, a smart watch, or a palmtop computer. The embodiment of the present invention mainly uses a mobile phone as an example. After the local terminal 104 accesses the routing device 103, it needs to be IP-based by the routing device 103, for example, an external public switched telephone network (PSTN) port in-network virtual outgoing network card, so that it becomes an IP-based terminal. Similarly, for a Universal Serial Bus (USB) Bluetooth Adapter to access intelligent routing, the network card must also be virtualized out of the network to make it an IP-based terminal.

实施例二Embodiment 2

图2为本发明实施例二提供的一种通信方法的实现流程示意图,参照图2所示,本实施例的通信方法包括以下步骤201和步骤202。2 is a schematic flowchart of an implementation of a communication method according to Embodiment 2 of the present invention. Referring to FIG. 2, the communication method in this embodiment includes the following steps 201 and 202.

步骤201:路由设备接收第一终端设备向第二终端设备发起的呼叫连接请求。Step 201: The routing device receives a call connection request initiated by the first terminal device to the second terminal device.

这里,所述第一终端设备为本地终端;所述第二终端设备为远程终端;所述路由设备为安装有IP化终端管理子系统和IP化终端驱动、具有路由交换功能且集成了VOIP服务器功能的路由器或交换机;其中,IP化终端可以理解为本地终端,即本发明实施例中的第一终端设备;所述IP化终端管理子系统可以维护设备状态列表,响应IP化终端注册请求或者去注册请求,同时提供定时查询IP化终端的状态的功能;IP化终端驱动可以实现特殊化端口的IP化,同时提供注册/去注册流程,保证设备状态列表的状态准确性,VOIP服务器功能可以为设备状态列表之间的语音交互提供服务。Here, the first terminal device is a local terminal; the second terminal device is a remote terminal; the routing device is an IP-based terminal management subsystem and an IP-based terminal driver, has a routing switching function, and integrates a VOIP server. A functional router or switch; wherein the IP-based terminal can be understood as a local terminal, that is, the first terminal device in the embodiment of the present invention; the IP-based terminal management subsystem can maintain a device status list, respond to an IP-based terminal registration request, or To register the request, and provide the function of periodically querying the status of the IP terminal; the IP terminal driver can realize the IP of the special port, and provide the registration/deregistration process to ensure the state accuracy of the device status list. The VOIP server function can Provides services for voice interactions between device status lists.

在示例性的实施方式中,所述接收到第一终端设备向第二终端设备发起的呼叫连接请求之前,所述方法还包括:路由设备将通信接口IP化。In an exemplary embodiment, before the receiving the call connection request initiated by the first terminal device to the second terminal device, the method further includes: the routing device IPizing the communication interface.

在示例性的实施方式中,路由设备接收第一终端设备发送的注册请求,所述注册请求包括第一终端设备的第一设备ID。In an exemplary embodiment, the routing device receives a registration request sent by the first terminal device, the registration request including a first device ID of the first terminal device.

这里,所述第一设备ID包括插在终端设备中的客户识别模块(Subscriber Identification Module,SIM)、用户识别模块(User Identify Module,UIM)或全球用户身份模块(Universal Subscriber Identity Module,USIM)所对应的号码(即手机号),或邮箱号、或用户名称或终端设备的品牌或硬件标识等。值得注意的是,所述第一设备ID并不限制为终端设备的硬件标识,在本发明实施例中,所述第一设备ID可以理解为用户账号。Here, the first device ID includes a Subscriber Identification Module (SIM), a User Identification Module (UIM), or a Universal Subscriber Identity Module (USIM) inserted in the terminal device. The corresponding number (ie mobile phone number), or the mailbox number, or the user name or the brand or hardware identification of the terminal device. It should be noted that the first device ID is not limited to the hardware identifier of the terminal device. In the embodiment of the present invention, the first device ID may be understood as a user account.

这里,所述第一终端设备在家庭云中的路由设备(即家庭网关,如路由器或交换机等)进行注册,从而得到包含该终端设备的设备状态列表,其中,注册步骤可以包括:本地用户将第一终端设备连接到路由设备后,通过软件或IP化终端驱动向路由设备发起注册,路由设备接收到注册请求后,根据所述注册请求获取注册账号,并将注册账号作为第一设备ID添加至设备状态列表中,从而得到包含该第一终端设备的设备状态列表;其中,所述注册账号可以是手机号、邮箱号、用户名称或终端设备的品牌或硬件标识等。Here, the first terminal device registers with a routing device (ie, a home gateway, such as a router or a switch, etc.) in the home cloud, thereby obtaining a device status list including the terminal device, where the registration step may include: the local user will After the first terminal device is connected to the routing device, the device initiates registration with the routing device through the software or the IP terminal driver. After receiving the registration request, the routing device obtains the registration account according to the registration request, and adds the registered account as the first device ID. Go to the device status list to obtain a device status list including the first terminal device; wherein the registered account number may be a mobile phone number, a mailbox number, a user name, or a brand or hardware identifier of the terminal device.

上述步骤为本地终端注册的过程,参考图3和图4,图3为一种本地终端注册的实现流程示意图,如图3所示,所述注册方法包括以下步骤S2011-步骤S2013。The process of registering the local terminal is as follows. Referring to FIG. 3 and FIG. 4, FIG. 3 is a schematic diagram of an implementation process of local terminal registration. As shown in FIG. 3, the registration method includes the following steps S2011-S2013.

步骤S2011:特殊IP化终端驱动初始化:如要把蓝牙接口虚拟网卡设备,需提供一种蓝牙与网卡相互交换数据的驱动功能,同时对内提供网卡接口,对外提供蓝牙接口;如果是PSTN端口IP化,需要提供一种PSTN端口与网卡相互交换数据的驱动功能,同时提供对内是网卡接口,对外提供PSTN端口,此时,路由设备需要对将特殊IP化终端驱动初始化,以实现端口IP化。Step S2011: Special IP terminal driver initialization: If the Bluetooth interface virtual network card device is to be provided, a Bluetooth and network card exchange data driving function is provided, and a network card interface is provided internally to provide a Bluetooth interface; if it is a PSTN port IP It is necessary to provide a driving function for exchanging data between the PSTN port and the network card, and provide a NIC interface to provide a PSTN port externally. In this case, the routing device needs to initialize the special IP terminal driver to implement port IP. .

步骤S2012:检测设备上电或者掉电:如果针对PSTN端口IP化,是要检测PSTN端口是否有插入,如果是蓝牙端口IP化,路由设备是要检测蓝牙端口是否有匹配连接设备。Step S2012: Checking whether the device is powered on or powered off: If the IP address of the PSTN port is IP, it is to detect whether the PSTN port is inserted. If the Bluetooth port is IP, the routing device is to detect whether the Bluetooth port has a matching connected device.

步骤S2013:触发主动注册:由于该类设备的状态都可以硬件状态获知,所以路由设备即可以触发注册流程;此外,也可以触发去注册流程。Step S2013: triggering active registration: Since the state of the device can be learned by the hardware state, the routing device can trigger the registration process; in addition, the deregistration process can also be triggered.

将特殊IP化终端驱动初始化,实现通信端口的IP化,并触发主动注册,从而建立设备状态列表,以根据该设备状态列表实现远程终端与本地终端的网络通信。The special IPized terminal driver is initialized to realize the IP of the communication port, and the active registration is triggered, thereby establishing a device status list to implement network communication between the remote terminal and the local terminal according to the device status list.

图4为另一种本地终端注册的实现流程示意图,如图4所示,所述注册方法包括以下S2021-步骤S2024。FIG. 4 is a schematic diagram of an implementation process of another local terminal registration. As shown in FIG. 4, the registration method includes the following S2021-step S2024.

步骤S2021:普通IP化终端特殊拨号初始化:路由设备将普通IP化终端特殊拨号初始化进行初始化,其中,普通IP化终端指的是通过Wi-Fi接口的本地终端,由于该类设备的驱动不需要重新开发,所以其注册流程就在特殊拨号软件中实现。Step S2021: Special IP-based terminal special dial-up initialization: the routing device initializes a special IP-based terminal special dial-up initialization, wherein the ordinary IP-based terminal refers to a local terminal through a Wi-Fi interface, and the driver of the device does not need to be driven. Re-developed, so its registration process is implemented in special dial-up software.

步骤S2022:连接测试:当特殊拨号软件初始化完成,路由设备发起连接测试连接操作。Step S2022: Connection test: When the special dialing software is initialized, the routing device initiates a connection test connection operation.

步骤S2023:主动发起注册流程:当检测到本地终端可以连接路由设备后,路由设备触发本地终端主动向IP化终端设备管理子系统发起注册请求流程。由于断网下发起去注册请求流程不会成功,所以对于此类终端管理还需要IP化终端设备管理子系统定时查询,以保证IP化终端状态的准确性。Step S2023: Initiating the registration process: After detecting that the local terminal can connect to the routing device, the routing device triggers the local terminal to actively initiate a registration request process to the IP terminal device management subsystem. Since the process of initiating the deregistration request under the network is not successful, the IP terminal device management subsystem needs to periodically query for such terminal management to ensure the accuracy of the IP terminal status.

将普通IP化终端特殊拨号初始化,实现无线局域网(Wireless Fidelity,Wi-Fi)接口的IP化,并触发主动注册,从而建立设备状态列表,以根据该设备状态列表实现远程终端与本地终端的网络通信。Initialize the special IP-based terminal special dialing to realize the IP of the Wireless Fidelity (Wi-Fi) interface and trigger active registration to establish a device status list to implement the network of the remote terminal and the local terminal according to the device status list. Communication.

步骤S2024:普通拨号:若连接路由设备失败后,当本地终端在呼叫远程终端时,将启用普通拨号。Step S2024: Normal dialing: If the connecting terminal fails, when the local terminal is calling the remote terminal, normal dialing will be enabled.

步骤202:路由设备确定所述第一终端设备的第一设备ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一IP地址,并根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接。Step 202: The routing device determines that the first device ID of the first terminal device matches the device ID in the device state list, acquires the first IP address of the second terminal device, and establishes according to the first IP address. The first terminal device is connected to a VOIP call of the second terminal device.

在示例性的实施方式中,所述获取所述第二终端设备的第一互联网协议IP地址包括:当确定所述第二终端设备为授权终端时,路由设备获取所述第二终端设备的第一互联网协议IP地址。这里,呼叫连接请求实质上是一种用于建立呼叫连接的数据信息,该数据信息中包含源IP地址、目的IP地址、源端口和目的端口等;当确定所述第二终端设备为授权用户时,路由设备解析呼叫连接请求,从而获取到目的IP地址,即第二终端设备的IP地址。In an exemplary embodiment, the acquiring the first Internet Protocol IP address of the second terminal device includes: when determining that the second terminal device is an authorized terminal, the routing device acquires the second terminal device An internet protocol IP address. Here, the call connection request is essentially a data information for establishing a call connection, where the data information includes a source IP address, a destination IP address, a source port, a destination port, and the like; and when determining that the second terminal device is an authorized user The routing device resolves the call connection request to obtain the destination IP address, that is, the IP address of the second terminal device.

这里,第二终端设备获得授权的方法可以包括但不唯一限定:通过软件或IP化终端驱动向路由设备在路由设备进行注册,或者第一终端设备向第二 终端设备发送一条授权指令,或者第二终端设备向第一终端设备发送一条授权请求,第一终端设备响应该授权请求。当所述第二终端设备为非授权终端时,路由设备向该第一终端设备发送一条提示信息,提示对方设备为非授权用户,待对方获得授权后方可享受本服务。Here, the method for obtaining the authorization by the second terminal device may include, but is not uniquely defined: registering the routing device with the routing device by software or an IP terminal, or the first terminal device sends an authorization command to the second terminal device, or The second terminal device sends an authorization request to the first terminal device, and the first terminal device responds to the authorization request. When the second terminal device is an unauthorized terminal, the routing device sends a prompt message to the first terminal device, prompting the other device to be an unauthorized user, and enjoying the service after the other party obtains the authorization.

上述步骤为本地终端向远程终端发起网络呼叫的过程,步骤可参考图5,图5为一种本地终端向远程终端发起呼叫的流程图,如图5所示,所述呼叫方法包括步骤S2031-步骤S2036。The foregoing steps are the process in which the local terminal initiates a network call to the remote terminal. The steps may be referred to FIG. 5. FIG. 5 is a flowchart of a local terminal initiating a call to the remote terminal. As shown in FIG. 5, the calling method includes the step S2031- Step S2036.

步骤S2031:本地终端发起远程呼叫:家庭云中的本地终端向远程终端发起呼叫。Step S2031: The local terminal initiates a remote call: the local terminal in the home cloud initiates a call to the remote terminal.

步骤S2032:远程终端监听来电:远程终端的特定拨号软件,对来电的号码进行监听过滤。Step S2032: The remote terminal monitors the incoming call: the specific dialing software of the remote terminal performs the monitoring and filtering on the number of the incoming call.

步骤S2033:判断是否本地终端:路由设备检测该呼叫是否来自家庭云中的本地终端,获取设备状态列表,然后根据检测本地终端的标识匹配设备状态列表中的终端设备标识,若匹配,则说明该呼叫来自家庭云中的本地终端;或者,远程终端判断该呼叫是否来家庭云中的本地终端:向路由设备发送获取设备状态列表请求,然后判断当前呼叫是否在设备状态列表中。Step S2033: determining whether the local terminal: the routing device detects whether the call is from a local terminal in the home cloud, obtains a device status list, and then matches the terminal device identifier in the device status list according to the identifier of the detecting local terminal. The call comes from the local terminal in the home cloud; or the remote terminal determines whether the call comes to the local terminal in the home cloud: sends a request for obtaining the device status list to the routing device, and then determines whether the current call is in the device status list.

步骤S2034:断开当前呼叫:当判断出该来电呼叫来自于家庭云的本地终端,路由设备自动断开当前的来电呼叫,所述来电呼叫为传统呼叫;或者,路由设备向远程终端发送一条断开指令,远程终端收到该指令后,断开当前的来电呼叫。Step S2034: Disconnect the current call: When it is determined that the incoming call is from the local terminal of the home cloud, the routing device automatically disconnects the current incoming call, the incoming call is a traditional call; or the routing device sends a disconnect to the remote terminal. After the command is received, the remote terminal disconnects the current incoming call after receiving the command.

步骤S2035:根据映射表进行回拨:路由设备根据IP映射表进行回拨,根据呼叫号码从IP映射表找到远程终端的port号,然后进行回拨。Step S2035: Perform callback according to the mapping table: the routing device performs callback according to the IP mapping table, finds the port number of the remote terminal from the IP mapping table according to the calling number, and then performs callback.

根据设备状态列表判断呼叫是否来自家庭云中的本地终端,确定该呼叫来自家庭云中的本地终端后,建立家庭云中的本地终端与远程终端的VOIP呼叫连接,从而实现家中亲人与远程用户之间的VOIP通话。Determining whether the call is from a local terminal in the home cloud according to the device status list, determining that the call is from a local terminal in the home cloud, establishing a VOIP call connection between the local terminal and the remote terminal in the home cloud, thereby realizing the home relative and the remote user. VOIP calls between.

步骤S2036:普通接听:当判断出该来电呼叫来不是自于家庭云的本地终端后,则远程终端进入普通接听的方式。Step S2036: Normal Answer: When it is determined that the incoming call is not from the local terminal of the home cloud, the remote terminal enters the normal answering mode.

在示例性的实施方式中,所述方法还包括:接收到第二终端设备向第一 终端设备发起的呼叫连接请求时,从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息;In an exemplary embodiment, the method further includes: when receiving a call connection request initiated by the second terminal device to the first terminal device, acquiring the second IP address of the first terminal device from the device state list Address and online status information;

路由设备根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。The routing device determines, according to the online status information, that the first terminal device is in an online state, and establishes a VOIP call connection between the second terminal device and the first terminal device according to the second IP address.

上述两个步骤为远程终端向本地终端发起网络呼叫的过程,步骤可参考图6,图6为一种远程终端向本地终端发起呼叫的实现流程示意图,如图6所示,所述呼叫方法包括以下步骤S2041-步骤S2043。The foregoing two steps are the process of the remote terminal initiating a network call to the local terminal. The steps may be referred to FIG. 6. FIG. 6 is a schematic diagram of a process for the remote terminal to initiate a call to the local terminal. As shown in FIG. 6, the calling method includes The following steps S2041-S2043.

步骤S2041:通过特定拨号软件进行拨号:这里,特定拨号软件可以是网络电话软件,通过安装在远程终端的特定拨号软件代替智能手机自带的拨号系统进行拨号,该特定拨号软件具有远程访问功能和来电过滤功能。Step S2041: Dialing by using a specific dialing software: Here, the specific dialing software may be a network telephone software, and dialing is performed by a specific dialing software installed at the remote terminal instead of the dialing system provided by the smart phone, and the specific dialing software has a remote access function and Call filtering.

步骤S2042:访问设备状态列表:远程终端访问家庭云中的路由设备获取设备状态列表,通过DDNS向路由设备发送指令获取设备状态列表,根据该设备状态列表获得在线的本地终端设备,该列表已经存在智能路由的IP化终端管理子系统中,返回后供呼叫选择用;或者,路由设备获取设备状态列表中本地终端的状态信息,将该状态信息发送至远程终端,以使远程终端获取本地终端的状态信息,供后续呼叫使用。Step S2042: Accessing the device status list: the remote terminal accesses the routing device in the home cloud to obtain the device status list, sends an instruction to the routing device to obtain the device status list through the DDNS, and obtains the online local terminal device according to the device status list, and the list already exists. In the IP-based terminal management subsystem of the intelligent routing, the returning is used for call selection; or the routing device acquires the state information of the local terminal in the device status list, and sends the status information to the remote terminal, so that the remote terminal acquires the local terminal. Status information for subsequent calls.

步骤S2043:选择一个本地终端呼叫:根据路由设备发送的设备状态列表的关于本地终端的状态信息进行拨号操作。路由设备接收到第二终端设备向第一终端设备发起的呼叫连接请求时,从设备状态列表中获取第一终端设备的第二IP地址和在线状态信息;根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。Step S2043: Select a local terminal call: perform a dialing operation according to the status information of the local terminal of the device status list sent by the routing device. When the routing device receives the call connection request initiated by the second terminal device to the first terminal device, the routing device obtains the second IP address and the online state information of the first terminal device from the device state list; and determines the first information according to the online state information. When a terminal device is in an online state, establishing a VOIP call connection between the second terminal device and the first terminal device according to the second IP address.

在示例性的实施方式中,路由设备获取所述第一终端设备的所述第二IP地址,将所述第一设备ID和所述第二IP地址添加至所述设备状态列表中。In an exemplary embodiment, the routing device acquires the second IP address of the first terminal device, and adds the first device ID and the second IP address to the device status list.

在基于家庭云的网络通信中,需要确定属于该家庭云中的终端设备,将该终端设备与路由设备共同建立基于家庭云的网络通信服务,此时,路由设备需要知道哪些用户属于该家庭云控制范围,因此,需要通过所述路由设备中的IP化终端管理子系统进行注册,并将该用户持有的终端信息或与该终端 建立关联的信息,如即手机号、或邮箱号、或用户名称或终端设备的品牌或硬件标识,加入设备终端列表中,其中,该设备状态列表存储于IP化终端管理子系统,该IP化终端管理子系统安装与路由设备中。注册完成之后,将终端设备的设备ID添加至该设备状态列表中,以便远程终端根据该设备ID获取对应的终端设备状态。In the home cloud-based network communication, the terminal device belonging to the home cloud needs to be determined, and the terminal device and the routing device jointly establish a home cloud-based network communication service. At this time, the routing device needs to know which users belong to the home cloud. The scope of the control is therefore required to be registered by the IP-based terminal management subsystem in the routing device, and the terminal information held by the user or the information associated with the terminal, such as a mobile phone number, or a mailbox number, or The user name or the brand or hardware identifier of the terminal device is added to the device terminal list, wherein the device status list is stored in the IP terminal management subsystem, and the IP terminal management subsystem is installed and routed. After the registration is completed, the device ID of the terminal device is added to the device status list, so that the remote terminal acquires the corresponding terminal device status according to the device ID.

在示例性的实施方式中,所述方法还包括:路由设备在预设时间周期检测所述设备状态列表中每个终端设备的状态信息;路由设备将所述状态信息更新至所述设备状态列表中。In an exemplary embodiment, the method further includes: the routing device detecting status information of each terminal device in the device status list in a preset time period; the routing device updating the status information to the device status list in.

由于家庭云中的用户有可能会不在家,该用户携带的终端设备断开了与路由设备的连接,即该用户不在线,此时,路由设备周期性的检测设备状态列表中每个终端设备的状态信息,将获取到的状态信息更新至设备状态列表中,以便远程终端获取联系人的在线状态。The user in the home cloud may be disconnected from the routing device, that is, the user is offline. In this case, the routing device periodically detects each terminal device in the device status list. Status information, the obtained status information is updated to the device status list, so that the remote terminal obtains the online status of the contact.

在示例性的实施方式中,所述将所述状态信息更新至所述设备状态列表中之后,所述方法还包括:路由设备获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址。In an exemplary embodiment, after the updating the status information to the device status list, the method further includes: the routing device acquiring, for each terminal device in the device status list, in an online state. Three IP addresses.

路由设备确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP地址不一致时,根据所述第三IP地址更新所述设备状态列表。When the routing device determines that the third IP address is inconsistent with the IP address corresponding to the first online terminal device set stored in the device status list, the routing device updates the device status list according to the third IP address.

由于每次用户重新连接网络时,该用户所使用的终端设备的IP地址可能发生变化,此时,路由设备需要获取该终端设备的新的IP地址,并将该IP地址更新至设备状态列表中,以便远程终端发起呼叫时使用。The IP address of the terminal device used by the user may change each time the user reconnects to the network. In this case, the routing device needs to obtain a new IP address of the terminal device and update the IP address to the device status list. In order to be used when the remote terminal initiates a call.

为实现上述方法,本发明实施例一还提供了一种路由设备,如图7所示,图7为本发明实施例二提供的一种基于家庭云的路由设备的组成结构示意图,所述路由设备包括:接收模块701,设置为接收到第一终端设备向第二终端设备发起的呼叫连接请求。In order to implement the foregoing method, the first embodiment of the present invention further provides a routing device, as shown in FIG. 7. FIG. 7 is a schematic structural diagram of a home cloud-based routing device according to Embodiment 2 of the present invention, where the route is The device includes: a receiving module 701, configured to receive a call connection request initiated by the first terminal device to the second terminal device.

第一获取模块702,设置为确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址。The first obtaining module 702 is configured to acquire the first Internet Protocol IP address of the second terminal device when the first device identifier ID of the first terminal device matches the device ID in the device state list.

第一建立模块703,设置为根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接。The first establishing module 703 is configured to establish, according to the first IP address, a VOIP call connection between the first terminal device and the second terminal device.

在示例性的实施方式中,所述路由设备还包括:第二获取模块704,设置为在所述接收模块接收到第二终端设备向第一终端设备发起的呼叫连接请求时,从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息。In an exemplary embodiment, the routing device further includes: a second obtaining module 704, configured to: when the receiving module receives a call connection request initiated by the second terminal device to the first terminal device, from the device Obtaining a second IP address and online state information of the first terminal device in the status list.

第二建立模块705,设置为根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。The second establishing module 705 is configured to establish, according to the online status information, that the first terminal device is in an online state, and establish a VOIP call between the second terminal device and the first terminal device according to the second IP address. connection.

在示例性的实施方式中,接收模块701,还设置为接收第一终端设备发送的注册请求,所述注册请求包括第一终端设备的所述第一设备ID。In an exemplary embodiment, the receiving module 701 is further configured to receive a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device.

第一获取模块702,还设置为获取所述第一终端设备的所述第二IP地址。The first obtaining module 702 is further configured to acquire the second IP address of the first terminal device.

所述路由设备还包括:添加模块706,设置为将所述第一设备ID和所述第二IP地址添加至所述设备状态列表中。The routing device further includes an adding module 706 configured to add the first device ID and the second IP address to the device status list.

在示例性的实施方式中,所述路由设备还包括:检测模块707,设置为在预设时间周期检测所述设备状态列表中每个终端设备的状态信息。In an exemplary embodiment, the routing device further includes: a detecting module 707 configured to detect status information of each terminal device in the device status list in a preset time period.

更新模块708,设置为将所述状态信息更新至所述设备状态列表中。An update module 708 is arranged to update the status information to the device status list.

发送模块709,设置为在接收模块接收到所述第二终端设备发起的获取请求时,将所述状态信息发送至所述第二终端设备,以更新所述第二终端设备中联系人列表的在线状态。The sending module 709 is configured to: when the receiving module receives the acquiring request initiated by the second terminal device, send the status information to the second terminal device, to update the contact list in the second terminal device online status.

在示例性的实施方式中,第一获取模块702是设置为在确定所述第二终端设备为授权终端时,获取所述第二终端设备的第一互联网协议IP地址。In an exemplary embodiment, the first obtaining module 702 is configured to acquire a first Internet Protocol IP address of the second terminal device when determining that the second terminal device is an authorized terminal.

在示例性的实施方式中,所述路由设备还包括:转换模块710,设置为路由设备将通信接口IP化。In an exemplary embodiment, the routing device further includes a conversion module 710 configured to route the communication interface IP.

在示例性的实施方式中,所述路由设备还包括:第三获取模块711,设置为获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址。In an exemplary embodiment, the routing device further includes: a third obtaining module 711, configured to acquire a third IP address of each terminal device that is in an online state in the device status list.

更新模块708,还设置为确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP地址不一致时,根据所述第三IP地 址更新所述设备状态列表。The update module 708 is further configured to: when the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list, update the device status according to the third IP address List.

由上述组成结构示意图组成的路由设备,可以执行以下方法和步骤:The routing device consisting of the above schematic structure diagram can perform the following methods and steps:

接收模块701接收第一终端设备向第二终端设备发起的呼叫连接请求。The receiving module 701 receives a call connection request initiated by the first terminal device to the second terminal device.

这里,所述第一终端设备为本地终端;所述第二终端设备为远程终端;所述路由设备为安装有IP化终端管理子系统和IP化终端驱动、具有路由交换功能且集成了VOIP服务器功能的路由器或交换机;其中,IP化终端可以理解为本地终端,即本发明实施例中的第一终端设备;所述IP化终端管理子系统可以维护设备状态列表,响应IP化终端注册请求或者去注册请求,同时提供定时查询IP化终端的状态的功能;IP化终端驱动可以实现特殊化端口的IP化,同时提供注册/去注册流程,保证设备状态列表的状态准确性,VOIP服务器功能可以为设备状态列表之间的语音交互提供服务。Here, the first terminal device is a local terminal; the second terminal device is a remote terminal; the routing device is an IP-based terminal management subsystem and an IP-based terminal driver, has a routing switching function, and integrates a VOIP server. A functional router or switch; wherein the IP-based terminal can be understood as a local terminal, that is, the first terminal device in the embodiment of the present invention; the IP-based terminal management subsystem can maintain a device status list, respond to an IP-based terminal registration request, or To register the request, and provide the function of periodically querying the status of the IP terminal; the IP terminal driver can realize the IP of the special port, and provide the registration/deregistration process to ensure the state accuracy of the device status list. The VOIP server function can Provides services for voice interactions between device status lists.

在接收模块701接收到第一终端设备向第二终端设备发起的呼叫连接请求之前,转换模块710将通信接口IP化。The conversion module 710 IPifies the communication interface before the receiving module 701 receives the call connection request initiated by the first terminal device to the second terminal device.

在示例性的实施方式中,接收模块701接收第一终端设备发送的注册请求,所述注册请求包括第一终端设备的所述第一设备ID。In an exemplary embodiment, the receiving module 701 receives a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device.

这里,所述第一设备ID包括插在终端设备中的SIM卡、UIM卡或USIM卡所对应的号码(即手机号),或邮箱号、或用户名称或终端设备的品牌或硬件标识等。值得注意的是,所述第一设备ID并不限制为终端设备的硬件标识,在本发明实施例中,所述第一设备ID可以理解为用户账号。Here, the first device ID includes a number (ie, a mobile phone number) corresponding to a SIM card, a UIM card, or a USIM card inserted in the terminal device, or a mailbox number, or a user name or a brand or hardware identifier of the terminal device. It should be noted that the first device ID is not limited to the hardware identifier of the terminal device. In the embodiment of the present invention, the first device ID may be understood as a user account.

这里,所述第一终端设备在家庭云中的路由设备(即家庭网关,如路由器或交换机等)进行注册,从而得到包含该终端设备的设备状态列表,其中,注册步骤可以包括:本地用户将第一终端设备连接到路由设备后,通过软件或IP化终端驱动向路由设备发起注册,在接收模块701接收到注册请求后,第一获取模块702根据所述注册请求获取注册账号,添加模块706将注册账号作为第一设备ID添加至设备状态列表中,从而得到包含该第一终端设备的设备状态列表;其中,所述注册账号可以是手机号、邮箱号、用户名称或终端设备的品牌或硬件标识等。Here, the first terminal device registers with a routing device (ie, a home gateway, such as a router or a switch, etc.) in the home cloud, thereby obtaining a device status list including the terminal device, where the registration step may include: the local user will After the first terminal device is connected to the routing device, the device initiates registration with the routing device through the software or the IP terminal. After the receiving module 701 receives the registration request, the first obtaining module 702 obtains the registration account according to the registration request, and adds the module 706. Adding the registered account as the first device ID to the device status list, thereby obtaining a device status list including the first terminal device; wherein the registered account may be a mobile phone number, a mailbox number, a user name, or a brand of the terminal device or Hardware identification, etc.

上述步骤为本地终端注册的过程,参考图3和图4,图3为一种本地终 端注册的实现流程示意图,如图3所示,所述注册方法包括以下步骤:The process of registering the local terminal is as follows. Referring to FIG. 3 and FIG. 4, FIG. 3 is a schematic diagram of an implementation process of local terminal registration. As shown in FIG. 3, the registration method includes the following steps:

(1)特殊IP化终端驱动初始化:转换模块710将特殊IP化终端驱动初始化,如要把蓝牙接口虚拟网卡设备,需提供一种蓝牙与网卡相互交换数据的驱动功能,同时对内提供网卡接口,对外提供蓝牙接口;如果是PSTN端口IP化,需要提供一种PSTN端口与网卡相互交换数据的驱动功能,同时提供对内是网卡接口,对外提供PSTN端口,此时,路由设备需要对将特殊IP化终端驱动初始化,以实现端口IP化。(1) Special IP-based terminal driver initialization: The conversion module 710 initializes the special IP-based terminal driver. If the Bluetooth interface virtual network card device is to be used, it is required to provide a driving function for exchanging data between the Bluetooth and the network card, and provide a network card interface internally. If the PSTN port is IP-based, it is required to provide a PSTN port and a network card to exchange data with each other. At the same time, the internal network card interface is provided to provide a PSTN port. In this case, the routing device needs to be special. IP terminal driver initialization to achieve port IP.

(2)检测设备上电或者掉电:检测模块707检测设备上电或者掉电,如果针对PSTN端口IP化,是要检测PSTN端口是否有插入,如果是蓝牙端口IP化,路由设备是要检测蓝牙端口是否有匹配连接设备。(2) The detecting device is powered on or powered off: the detecting module 707 detects that the device is powered on or powered off. If the IP address of the PSTN port is IP, it is necessary to detect whether the PSTN port is inserted. If the Bluetooth port is IP, the routing device is to detect. Whether the Bluetooth port has a matching connected device.

(3)触发主动注册:触发模块触发主动注册,由于该类设备的状态都可以硬件状态获知,所以路由设备即可以触发注册流程;此外,也可以触发去注册流程。(3) Triggering active registration: The triggering module triggers active registration. Since the state of the device can be learned by the hardware state, the routing device can trigger the registration process; in addition, the deregistration process can also be triggered.

将特殊IP化终端驱动初始化,实现通信端口的IP化,并触发主动注册,从而建立设备状态列表,以根据该设备状态列表实现远程终端与本地终端的网络通信。The special IPized terminal driver is initialized to realize the IP of the communication port, and the active registration is triggered, thereby establishing a device status list to implement network communication between the remote terminal and the local terminal according to the device status list.

图4为另一种本地终端注册的流程图,如图4所示,所述注册方法包括以下步骤:4 is a flow chart of another local terminal registration. As shown in FIG. 4, the registration method includes the following steps:

(1)普通IP化终端特殊拨号初始化:转换模块710将普通IP化终端特殊拨号初始化进行初始化,其中,普通IP化终端指的是通过Wi-Fi接口的本地终端,由于该类设备的驱动不需要重新开发。所以其注册流程就在特殊拨号软件中实现。(1) Ordinary IP-based terminal special dial-up initialization: The conversion module 710 initializes the special IP-based terminal special dial-up initialization, wherein the ordinary IP-based terminal refers to the local terminal through the Wi-Fi interface, because the driving of the type of device is not Need to be redeveloped. So its registration process is implemented in special dial-up software.

(2)连接测试:当特殊拨号软件初始化完成,检测模块707发起连接测试连接操作。(2) Connection test: When the special dialing software initialization is completed, the detection module 707 initiates a connection test connection operation.

(3)主动发起注册流程:当检测模块707检测到本地终端可以连接后,触发本地终端主动向IP化终端设备管理子系统发起注册请求流程。由于断网下发起去注册请求流程不会成功,所以对于此类终端管理还需要IP化终端设备管理子系统定时查询,以保证IP化终端状态的准确性。(3) Initiating the registration process: When the detecting module 707 detects that the local terminal can be connected, the local terminal is triggered to initiate a registration request process to the IP terminal device management subsystem. Since the process of initiating the deregistration request under the network is not successful, the IP terminal device management subsystem needs to periodically query for such terminal management to ensure the accuracy of the IP terminal status.

(4)普通拨号:若连接路由设备失败后,当本地终端在呼叫远程终端时,将启用普通拨号。(4) Normal dialing: If the local terminal is calling the remote terminal after the connection to the routing device fails, normal dialing will be enabled.

将普通IP化终端特殊拨号初始化,实现Wi-Fi接口的IP化,并触发主动注册,从而建立设备状态列表,以根据该设备状态列表实现远程终端与本地终端的网络通信。Initializing the special IP-based terminal special dialing, realizing the IP of the Wi-Fi interface, and triggering the active registration, thereby establishing a device status list to implement network communication between the remote terminal and the local terminal according to the device status list.

第一获取模块702在确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址,并根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接。The first obtaining module 702, when determining that the first device identifier ID of the first terminal device matches the device ID in the device state list, acquires a first Internet Protocol IP address of the second terminal device, and according to the first An IP address establishes a VOIP call connection between the first terminal device and the second terminal device.

第一获取模块702获取所述第二终端设备的第一互联网协议IP地址包括:当确定所述第二终端设备为授权终端时,第一获取模块702获取所述第二终端设备的第一互联网协议IP地址。这里,呼叫连接请求实质上是一种用于建立呼叫连接的数据信息,该数据信息中包含源IP地址、目的IP地址、源端口和目的端口等;当确定所述第二终端设备为授权用户时,路由设备解析呼叫连接请求,从而获取到目的IP地址,即第二终端设备的IP地址。Obtaining, by the first acquiring module 702, the first Internet Protocol IP address of the second terminal device: when determining that the second terminal device is an authorized terminal, the first obtaining module 702 acquires the first Internet of the second terminal device Protocol IP address. Here, the call connection request is essentially a data information for establishing a call connection, where the data information includes a source IP address, a destination IP address, a source port, a destination port, and the like; and when determining that the second terminal device is an authorized user The routing device resolves the call connection request to obtain the destination IP address, that is, the IP address of the second terminal device.

这里,第二终端设备获得授权的方法可以包括但不唯一限定:通过软件或IP化终端驱动向路由设备在路由设备进行注册,或者第一终端设备向第二终端设备发送一条授权指令,或者第二终端设备向第一终端设备发送一条授权请求,第一终端设备响应该授权请求。当所述第二终端设备为非授权终端时,路由设备向该第一终端设备发送一条提示信息,提示对方设备为非授权用户,待对方获得授权后方可享受本服务。Here, the method for obtaining the authorization by the second terminal device may include, but is not uniquely defined: registering the routing device with the routing device by software or an IP terminal, or the first terminal device sends an authorization command to the second terminal device, or The second terminal device sends an authorization request to the first terminal device, and the first terminal device responds to the authorization request. When the second terminal device is an unauthorized terminal, the routing device sends a prompt message to the first terminal device, prompting the other device to be an unauthorized user, and enjoying the service after the other party obtains the authorization.

上述步骤为本地终端向远程终端发起网络呼叫的过程,步骤可参考图5,图5为一种本地终端向远程终端发起呼叫的实现流程示意图,如图5所示,所述呼叫方法包括以下步骤:The foregoing steps are the process of the local terminal initiating a network call to the remote terminal. The steps may be referred to FIG. 5. FIG. 5 is a schematic diagram of a process for the local terminal to initiate a call to the remote terminal. As shown in FIG. 5, the calling method includes the following steps. :

(1)本地终端发起远程呼叫:家庭云中的本地终端向远程终端发起呼叫。(1) The local terminal initiates a remote call: the local terminal in the home cloud initiates a call to the remote terminal.

(2)远程终端监听来电:远程终端的特定拨号软件,对来电的号码进行监听过滤。(2) The remote terminal monitors the incoming call: the specific dialing software of the remote terminal monitors and filters the number of the incoming call.

(3)判断是否本地终端:检测模块707检测该呼叫是否来自家庭云中的 本地终端,获取设备状态列表,然后根据检测本地终端的标识匹配设备状态列表中的终端设备标识,若匹配,则说明该呼叫来自家庭云中的本地终端;或者,远程终端判断该呼叫是否来家庭云中的本地终端:向路由设备发送获取设备状态列表请求,然后判断当前呼叫是否在设备状态列表中(3) determining whether the local terminal: the detecting module 707 detects whether the call is from a local terminal in the home cloud, obtains a device status list, and then matches the terminal device identifier in the device status list according to the identifier of the detecting local terminal, if the matching, the description The call is from a local terminal in the home cloud; or the remote terminal determines whether the call comes to the local terminal in the home cloud: sending a request for obtaining a device status list to the routing device, and then determining whether the current call is in the device status list

(4)断开当前呼叫:当判断出该来电呼叫来自于家庭云的本地终端,第一建立模块703自动断开当前的来电呼叫,所述来电呼叫为传统呼叫;或者,发送模块709向远程终端发送一条断开指令,远程终端收到该指令后,断开当前的来电呼叫。(4) Disconnecting the current call: When it is determined that the incoming call is from the local terminal of the home cloud, the first establishing module 703 automatically disconnects the current incoming call, the incoming call is a traditional call; or, the sending module 709 is remote The terminal sends a disconnect command, and after receiving the command, the remote terminal disconnects the current incoming call.

(5)根据映射表进行回拨:第一建立模块703根据IP映射表进行回拨,根据呼叫号码从IP映射表找到远程终端的port号,然后进行回拨。(5) Performing callback according to the mapping table: The first establishing module 703 performs callback according to the IP mapping table, finds the port number of the remote terminal from the IP mapping table according to the calling number, and then performs callback.

根据设备状态列表判断呼叫是否来自家庭云中的本地终端,确定该呼叫来自家庭云中的本地终端后,建立家庭云中的本地终端与远程终端的VOIP呼叫连接,从而实现家中亲人与远程用户之间的VOIP通话。Determining whether the call is from a local terminal in the home cloud according to the device status list, determining that the call is from a local terminal in the home cloud, establishing a VOIP call connection between the local terminal and the remote terminal in the home cloud, thereby realizing the home relative and the remote user. VOIP calls between.

(6)普通接听:当判断出该来电呼叫来不是自于家庭云的本地终端,则远程终端进入普通接听的方式。(6) Normal answering: When it is judged that the incoming call is not from the local terminal of the home cloud, the remote terminal enters the normal answering mode.

根据设备状态列表判断呼叫是否来自家庭云中的本地终端,确定该呼叫来自家庭云中的本地终端后,建立家庭云中的本地终端与远程终端的VOIP呼叫连接,从而实现家中亲人与远程用户之间的VOIP通话。Determining whether the call is from a local terminal in the home cloud according to the device status list, determining that the call is from a local terminal in the home cloud, establishing a VOIP call connection between the local terminal and the remote terminal in the home cloud, thereby realizing the home relative and the remote user. VOIP calls between.

在接收模块701接收到第二终端设备向第一终端设备发起的呼叫连接请求时,第二获取模块704从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息;When the receiving module 701 receives the call connection request initiated by the second terminal device to the first terminal device, the second obtaining module 704 acquires the second IP address and the online state information of the first terminal device from the device status list. ;

第二建立模块705根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。The second establishing module 705 determines, according to the online status information, that the first terminal device is in an online state, and establishes a VOIP call connection between the second terminal device and the first terminal device according to the second IP address.

上述两个步骤为远程终端向本地终端发起网络呼叫的过程,步骤可参考图6,图6为一种远程终端向本地终端发起呼叫的实现流程示意图,如图6所示,所述呼叫方法包括以下步骤:The foregoing two steps are the process of the remote terminal initiating a network call to the local terminal. The steps may be referred to FIG. 6. FIG. 6 is a schematic diagram of a process for the remote terminal to initiate a call to the local terminal. As shown in FIG. 6, the calling method includes The following steps:

(1)特定拨号软件拨号:这里,特定拨号软件可以是网络电话软件,通 过安装在远程终端的特定拨号软件代替智能手机自带的拨号系统进行拨号,该特定拨号软件具有远程访问功能和来电过滤功能。(1) Specific dial-up software dialing: Here, the specific dialing software may be VoIP software, which is dialed by a specific dialing software installed at the remote terminal instead of the dialing system provided by the smart phone, and the specific dialing software has remote access function and call filtering. Features.

(2)访问设备状态列表:远程终端访问家庭云中的路由设备获取设备状态列表,通过DDNS向路由设备发送指令获取设备状态列表,根据该设备状态列表获得在线的本地终端设备,该列表已经存在智能路由的IP化终端管理子系统中,返回后供呼叫选择用;或者,第二获取模块704获取设备状态列表中本地终端的状态信息,将该状态信息发送至远程终端,以使远程终端获取本地终端的状态信息,供后续呼叫使用。(2) Accessing the device status list: The remote terminal accesses the routing device in the home cloud to obtain the device status list, sends an instruction to the routing device through the DDNS to obtain the device status list, and obtains the online local terminal device according to the device status list, and the list already exists. In the IP-based terminal management subsystem of the intelligent route, the return is used for call selection; or the second obtaining module 704 obtains the state information of the local terminal in the device status list, and sends the status information to the remote terminal, so that the remote terminal obtains Status information of the local terminal for subsequent calls.

(3)选择一个本地终端呼叫:根据发送模块709发送的设备状态列表的关于本地终端的状态信息进行拨号操作。在第一获取模块702获取所述第一终端设备的所述第二IP地址后,添加模块706将所述第一设备ID和所述第二IP地址添加至所述设备状态列表中。接收模块701接收到第二终端设备向第一终端设备发起的呼叫连接请求时,第二获取模块704从设备状态列表中获取第一终端设备的第二IP地址和在线状态信息;第二建立模块705根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。(3) Selecting a local terminal call: performing a dialing operation based on the status information of the local terminal of the device status list transmitted by the sending module 709. After the first obtaining module 702 acquires the second IP address of the first terminal device, the adding module 706 adds the first device ID and the second IP address to the device status list. When the receiving module 701 receives the call connection request initiated by the second terminal device to the first terminal device, the second obtaining module 704 obtains the second IP address and the online state information of the first terminal device from the device state list; the second establishing module The 705 determines, according to the online status information, that the first terminal device is in an online state, and establishes a VOIP call connection between the second terminal device and the first terminal device according to the second IP address.

在基于家庭云的网络通信中,需要确定属于该家庭云中的终端设备,将该终端设备与路由设备共同建立基于家庭云的网络通信服务,此时,路由设备需要知道哪些用户属于该家庭云控制范围,因此,需要通过所述路由设备中的IP化终端管理子系统进行注册,并将该用户持有的终端信息或与该终端建立关联的信息,如即手机号、或邮箱号、或用户名称或终端设备的品牌或硬件标识,加入设备终端列表中,其中,该设备状态列表存储于IP化终端管理子系统,该IP化终端管理子系统安装与路由设备中。注册完成之后,将终端设备的设备ID添加至该设备状态列表中,以便远程终端根据该设备ID获取对应的终端设备状态。In the home cloud-based network communication, the terminal device belonging to the home cloud needs to be determined, and the terminal device and the routing device jointly establish a home cloud-based network communication service. At this time, the routing device needs to know which users belong to the home cloud. The scope of the control is therefore required to be registered by the IP-based terminal management subsystem in the routing device, and the terminal information held by the user or the information associated with the terminal, such as a mobile phone number, or a mailbox number, or The user name or the brand or hardware identifier of the terminal device is added to the device terminal list, wherein the device status list is stored in the IP terminal management subsystem, and the IP terminal management subsystem is installed and routed. After the registration is completed, the device ID of the terminal device is added to the device status list, so that the remote terminal acquires the corresponding terminal device status according to the device ID.

检测模块707在预设时间周期检测所述设备状态列表中每个终端设备的状态信息。The detecting module 707 detects status information of each terminal device in the device status list in a preset time period.

更新模块708将所述状态信息更新至所述设备状态列表中。Update module 708 updates the status information to the device status list.

由于家庭云中的用户有可能会不在家,该用户携带的终端设备断开了与 路由设备的连接,即该用户不在线,此时,检测模块707周期性的检测设备状态列表中每个终端设备的状态信息,发送模块709将所述状态信息发送至第二终端设备,以便远程终端获取联系人的在线状态。此外,更新模块708将获取到的状态信息更新至设备状态列表中。Since the user in the home cloud may be out of the home, the terminal device carried by the user disconnects from the routing device, that is, the user is offline. At this time, the detecting module 707 periodically detects each terminal in the device status list. The status information of the device, the sending module 709 sends the status information to the second terminal device, so that the remote terminal acquires the online status of the contact. In addition, the update module 708 updates the acquired status information to the device status list.

所述将所述状态信息更新至所述设备状态列表中之后,第三获取模块711获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址;After the status information is updated to the device status list, the third obtaining module 711 acquires a third IP address of each terminal device that is in an online state in the device status list;

更新模块708在确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP地址不一致时,根据所述第三IP地址更新所述设备状态列表。The update module 708 updates the device status list according to the third IP address when it is determined that the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list.

由于每次用户重新连接网络时,该用户所使用的终端设备的IP地址可能发生变化,此时,路由设备需要获取该终端设备的新的IP地址,并将该IP地址更新至设备状态列表中,以便远程终端发起呼叫时使用。The IP address of the terminal device used by the user may change each time the user reconnects to the network. In this case, the routing device needs to obtain a new IP address of the terminal device and update the IP address to the device status list. In order to be used when the remote terminal initiates a call.

这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序来实施,软件代码可以存储在存储器中并且由控制器执行。The various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof. For hardware implementations, the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be in the controller Implementation. For software implementations, implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation. The software code can be implemented by a software application written in any suitable programming language, which can be stored in memory and executed by the controller.

通过本发明实施例的方案,将归属于家庭云的本地终端进行注册,根据注册信息创建设备状态列表,并将获得的本地终端的IP地址、相应标识和状态信息添加至设备状态列表,从而得到具有上述信息的设备状态列表;通过该设备状态列表,一方面,可以建立家庭云中的本地终端与远程终端的VOIP呼叫连接,从而实现了家中亲人与远程用户之间的VOIP通话;另一方面,也可以建立远程终端与家庭云中的本地终端的VOIP呼叫连接,从而实现了远程用户与家中亲人之间的VOIP通话。According to the solution of the embodiment of the present invention, the local terminal belonging to the home cloud is registered, the device status list is created according to the registration information, and the obtained IP address, corresponding identifier, and status information of the local terminal are added to the device status list, thereby obtaining a device status list having the above information; through the device status list, on the one hand, a VOIP call connection between the local terminal and the remote terminal in the home cloud can be established, thereby realizing a VOIP call between the relatives and the remote users in the home; It is also possible to establish a VOIP call connection between the remote terminal and the local terminal in the home cloud, thereby realizing a VOIP call between the remote user and the relatives in the home.

图8为本发明实施例二提供的另一种路由设备的组成结构示意图;本发 明实施例的路由设备作为硬件实体的一个示例如图8所示。所述路由设备包括:存储器801,处理器802,通信模组803及存储在存储器801上并可在处理器802上运行的计算机程序;其中,FIG. 8 is a schematic structural diagram of another routing device according to Embodiment 2 of the present invention; FIG. 8 is an example of a routing device as a hardware entity in the embodiment of the present invention. The routing device includes: a memory 801, a processor 802, a communication module 803, and a computer program stored on the memory 801 and executable on the processor 802;

所述通信模组803,配置为接收第一终端设备向第二终端设备发起的呼叫连接请求;The communication module 803 is configured to receive a call connection request initiated by the first terminal device to the second terminal device;

所述处理器802,配置为确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址,并根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接;其中,所述设备状态列表存储于所述路由设备,所述设备ID为终端设备向所述路由设备发起注册时的标识。The processor 802 is configured to: when determining that the first device identifier ID of the first terminal device matches the device ID in the device state list, acquire the first Internet Protocol IP address of the second terminal device, and obtain Establishing a VOIP call connection between the first terminal device and the second terminal device, where the device status list is stored in the routing device, and the device ID is a terminal device to the routing device The identifier when the registration was initiated.

在示例性的实施方式中,所述处理器802,配置为在通信模组803接收到第二终端设备向第一终端设备发起的呼叫连接请求时,从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息;In an exemplary embodiment, the processor 802 is configured to acquire the first status from the device status list when the communication module 803 receives a call connection request initiated by the second terminal device to the first terminal device. a second IP address and online status information of a terminal device;

所述通信模组803,配置为在处理器802根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。The communication module 803 is configured to establish, according to the online state information, the second terminal device and the first The VOIP call connection of the terminal device.

在示例性的实施方式中,所述通信模组803,配置为接收第一终端设备发送的注册请求,所述注册请求包括第一终端设备的所述第一设备ID;In an exemplary embodiment, the communication module 803 is configured to receive a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device;

所述处理器802,配置为获取所述第一终端设备的所述第二IP地址;将所述第一设备ID和所述第二IP地址添加至所述设备状态列表中。The processor 802 is configured to acquire the second IP address of the first terminal device, and add the first device ID and the second IP address to the device status list.

在示例性的实施方式中,所述处理器802,配置为在预设时间周期检测所述设备状态列表中每个终端设备的状态信息;将所述状态信息更新至所述设备状态列表中;在所述通信模组803接收到所述第二终端设备发起的获取请求时,将所述状态信息发送至所述第二终端设备,以更新所述第二终端设备中联系人列表的在线状态。In an exemplary embodiment, the processor 802 is configured to detect status information of each terminal device in the device status list in a preset time period; update the status information to the device status list; When the communication module 803 receives the acquisition request initiated by the second terminal device, the status information is sent to the second terminal device to update the online status of the contact list in the second terminal device. .

在示例性的实施方式中,所述处理器802,配置为获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址;所述路由设备确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP 地址不一致时,根据所述第三IP地址更新所述设备状态列表。In an exemplary embodiment, the processor 802 is configured to acquire a third IP address of each terminal device that is in an online state in the device status list; the routing device determines the third IP address and storage When the IP addresses corresponding to the first online terminal device set in the device status list are inconsistent, the device status list is updated according to the third IP address.

这里需要指出的是:以上涉及装置项的描述,与上述方法描述是类似的,同方法的有益效果描述,不做赘述。对于本发明装置实施例中未披露的技术细节,请参照本发明方法实施例的描述。It should be noted here that the above description of the device item is similar to the above description of the method, and the beneficial effects of the same method are described without further description. For technical details not disclosed in the device embodiments of the present invention, please refer to the description of the method embodiments of the present invention.

本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行所述通信方法,所述通信方法包括:接收第一终端设备向第二终端设备发起的呼叫连接请求;The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, the computer executable instructions are used to execute the communication method, and the communication method comprises: receiving a first terminal a call connection request initiated by the device to the second terminal device;

确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址,并根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接;其中,所述设备状态列表存储于所述路由设备,所述设备ID为终端设备向所述路由设备发起注册时所使用的注册标识。Determining, when the first device identifier ID of the first terminal device matches the device ID in the device state list, acquiring the first Internet Protocol IP address of the second terminal device, and establishing the first IP address according to the first IP address The first terminal device is connected to the VOIP call of the second terminal device; wherein the device status list is stored in the routing device, and the device ID is a registration identifier used when the terminal device initiates registration with the routing device. .

在示例性的实施方式中,所述方法还包括:接收到第二终端设备向第一终端设备发起的呼叫连接请求时,从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息;In an exemplary embodiment, the method further includes: when receiving a call connection request initiated by the second terminal device to the first terminal device, acquiring the second IP address of the first terminal device from the device state list Address and online status information;

根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。And determining, according to the online status information, that the first terminal device is in an online state, and establishing a VOIP call connection between the second terminal device and the first terminal device according to the second IP address.

在示例性的实施方式中,所述方法还包括:所述路由设备接收第一终端设备发送的注册请求,所述注册请求包括第一终端设备的所述第一设备ID;In an exemplary embodiment, the method further includes: the routing device receiving a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device;

所述路由设备获取所述第一终端设备的所述第二IP地址;Obtaining, by the routing device, the second IP address of the first terminal device;

所述路由设备将所述第一设备ID和所述第二IP地址添加至所述设备状态列表中。The routing device adds the first device ID and the second IP address to the device status list.

在示例性的实施方式中,所述方法还包括:所述路由设备在预设时间周期检测所述设备状态列表中每个终端设备的状态信息;In an exemplary embodiment, the method further includes: the routing device detecting state information of each terminal device in the device state list in a preset time period;

所述路由设备将所述状态信息更新至所述设备状态列表中;The routing device updates the status information to the device status list;

所述路由设备接收到所述第二终端设备发起的获取请求时,将所述状态信息发送至所述第二终端设备,以更新所述第二终端设备中联系人列表的在线状态。When receiving the acquisition request initiated by the second terminal device, the routing device sends the status information to the second terminal device to update the online status of the contact list in the second terminal device.

在示例性的实施方式中,所述路由设备将所述状态信息更新至所述设备状态列表中之后,所述方法还包括:所述路由设备获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址;In an exemplary embodiment, after the routing device updates the status information to the device status list, the method further includes: the routing device acquiring each of the device status lists that are in an online state. The third IP address of the terminal device;

所述路由设备确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP地址不一致时,根据所述第三IP地址更新所述设备状态列表。When the routing device determines that the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list, the routing device updates the device status list according to the third IP address.

本发明实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述的通信方法。Embodiments of the present invention provide a computer readable storage medium storing computer executable instructions that are implemented by a processor to implement the communication method described above.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于随机存取存储器(RAM,Random Access Memory)、只读存储器(ROM,Read-Only Memory)、电可擦除只读存储器(EEPROM,Electrically Erasable Programmable Read-only Memory)、闪存或其他存储器技术、光盘只读存储器(CD-ROM,Compact Disc Read-Only Memory)、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and functional blocks/units of the methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components work together. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media. Computer storage media include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), and Electrically Erasable Programmable Read-only Memory (EEPROM). Flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or Any other medium used to store the desired information and that can be accessed by the computer. Moreover, it is well known to those skilled in the art that communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .

本领域的普通技术人员可以理解,可以对本申请的技术方案进行修改或 者等同替换,而不脱离本申请技术方案的精神和范围,均应涵盖在本申请的权利要求范围当中。A person skilled in the art can understand that the technical solutions of the present application can be modified or equivalent, without departing from the spirit and scope of the technical solutions of the present application, and should be included in the scope of the claims of the present application.

工业实用性Industrial applicability

通过本发明实施例提供的通信方法、路由设备和计算机存储介质,可以建立家庭云中的本地终端与远程终端的VOIP呼叫连接,实现了家中亲人与远程用户之间的VOIP通话。Through the communication method, the routing device and the computer storage medium provided by the embodiments of the present invention, a VOIP call connection between the local terminal and the remote terminal in the home cloud can be established, and a VOIP call between the family and the remote user in the home is realized.

Claims (16)

一种通信方法,包括:A communication method comprising: 路由设备接收第一终端设备向第二终端设备发起的呼叫连接请求;The routing device receives a call connection request initiated by the first terminal device to the second terminal device; 所述路由设备确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址,并根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接;其中,所述设备状态列表存储于所述路由设备,所述设备ID为终端设备向所述路由设备发起注册时所使用的注册标识。When the routing device determines that the first device identifier ID of the first terminal device matches the device ID in the device state list, the routing device acquires the first Internet Protocol IP address of the second terminal device, and according to the first IP address Establishing a VOIP call connection between the first terminal device and the second terminal device, where the device status list is stored in the routing device, where the device ID is when the terminal device initiates registration with the routing device The registration ID used. 根据权利要求1所述的通信方法,所述方法还包括:The communication method according to claim 1, further comprising: 所述路由设备接收到第二终端设备向第一终端设备发起的呼叫连接请求时,从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息;When the routing device receives the call connection request initiated by the second terminal device to the first terminal device, the routing device obtains the second IP address and the online state information of the first terminal device from the device state list; 所述路由设备根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。The routing device determines, according to the online status information, that the first terminal device is in an online state, and establishes a VOIP call connection between the second terminal device and the first terminal device according to the second IP address. 根据权利要求1或2所述的通信方法,所述方法还包括:The communication method according to claim 1 or 2, further comprising: 所述路由设备接收第一终端设备发送的注册请求,所述注册请求包括第一终端设备的所述第一设备ID;The routing device receives a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device; 所述路由设备获取所述第一终端设备的第二IP地址;Obtaining, by the routing device, a second IP address of the first terminal device; 所述路由设备将所述第一设备ID和所述第二IP地址添加至所述设备状态列表中。The routing device adds the first device ID and the second IP address to the device status list. 根据权利要求3所述的通信方法,所述方法还包括:The communication method according to claim 3, further comprising: 所述路由设备在预设时间周期检测所述设备状态列表中每个终端设备的状态信息;The routing device detects state information of each terminal device in the device state list in a preset time period; 所述路由设备将所述状态信息更新至所述设备状态列表中;The routing device updates the status information to the device status list; 所述路由设备接收到所述第二终端设备发起的获取请求时,将所述状态信息发送至所述第二终端设备,以更新所述第二终端设备中联系人列表的在 线状态。When receiving the acquisition request initiated by the second terminal device, the routing device sends the status information to the second terminal device to update the online status of the contact list in the second terminal device. 根据权利要求4所述的通信方法,所述路由设备将所述状态信息更新至所述设备状态列表中之后,所述方法还包括:The communication method according to claim 4, after the routing device updates the status information to the device status list, the method further includes: 所述路由设备获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址;The routing device acquires a third IP address of each terminal device that is in an online state in the device status list; 所述路由设备确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP地址不一致时,根据所述第三IP地址更新所述设备状态列表。When the routing device determines that the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list, the routing device updates the device status list according to the third IP address. 一种路由设备,包括存储器,处理器,通信模组及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序时以实现步骤:A routing device includes a memory, a processor, a communication module, and a computer program stored on the memory and operable on the processor, the processor executing the program to implement steps: 所述通信模组,配置为接收第一终端设备向第二终端设备发起的呼叫连接请求;The communication module is configured to receive a call connection request initiated by the first terminal device to the second terminal device; 所述处理器,配置为确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址,并根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接;其中,所述设备状态列表存储于所述路由设备,所述设备ID为终端设备向所述路由设备发起注册时的标识。The processor, configured to determine that the first device identifier ID of the first terminal device matches the device ID in the device state list, acquire the first Internet Protocol IP address of the second terminal device, and according to the The first IP address establishes a VOIP call connection between the first terminal device and the second terminal device; wherein the device status list is stored in the routing device, and the device ID is that the terminal device initiates the routing device The logo at the time of registration. 根据权利要求6所述的路由设备,其中,所述处理器,配置为在通信模组接收到第二终端设备向第一终端设备发起的呼叫连接请求时,从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息;The routing device according to claim 6, wherein the processor is configured to acquire, from the device status list, when the communication module receives a call connection request initiated by the second terminal device to the first terminal device Describe a second IP address and online status information of the first terminal device; 所述通信模组,配置为在所述处理器根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。The communication module is configured to: when the processor determines that the first terminal device is in an online state according to the online state information, establish the second terminal device according to the second IP address, and the first The VOIP call connection of the terminal device. 根据权利要求6或7所述的路由设备,其中,所述通信模组,配置为接收第一终端设备发送的注册请求,所述注册请求包括第一终端设备的所述第一设备ID;The routing device according to claim 6 or 7, wherein the communication module is configured to receive a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device; 所述处理器,配置为获取所述第一终端设备的第二IP地址;将所述第一 设备ID和所述第二IP地址添加至所述设备状态列表中。The processor is configured to acquire a second IP address of the first terminal device, and add the first device ID and the second IP address to the device status list. 根据权利要求8所述的路由设备,其中,所述处理器,配置为在预设时间周期检测所述设备状态列表中每个终端设备的状态信息;将所述状态信息更新至所述设备状态列表中;在所述通信模组接收到所述第二终端设备发起的获取请求时,将所述状态信息发送至所述第二终端设备,以更新所述第二终端设备中联系人列表的在线状态。The routing device according to claim 8, wherein the processor is configured to detect status information of each terminal device in the device status list in a preset time period; update the status information to the device status In the list, when the communication module receives the acquisition request initiated by the second terminal device, the status information is sent to the second terminal device to update the contact list in the second terminal device. online status. 根据权利要求9所述的路由设备,其中,所述处理器,配置为获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址;所述路由设备确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP地址不一致时,根据所述第三IP地址更新所述设备状态列表。The routing device according to claim 9, wherein the processor is configured to acquire a third IP address of each terminal device in an online state in the device status list; the routing device determines the third IP When the address is inconsistent with the IP address corresponding to the first online terminal device set stored in the device status list, the device status list is updated according to the third IP address. 一种路由设备,包括:A routing device comprising: 接收模块,设置为接收到第一终端设备向第二终端设备发起的呼叫连接请求;a receiving module, configured to receive a call connection request initiated by the first terminal device to the second terminal device; 第一获取模块,设置为确定所述第一终端设备的第一设备标识ID与设备状态列表中的设备ID匹配时,获取所述第二终端设备的第一互联网协议IP地址;The first obtaining module is configured to: when determining that the first device identifier ID of the first terminal device matches the device ID in the device state list, acquire the first internet protocol IP address of the second terminal device; 第一建立模块,设置为根据所述第一IP地址建立所述第一终端设备与所述第二终端设备的VOIP呼叫连接。The first establishing module is configured to establish, according to the first IP address, a VOIP call connection between the first terminal device and the second terminal device. 根据权利要求11所述的路由设备,还包括,The routing device of claim 11 further comprising 第二获取模块,设置为在所述接收模块接收到第二终端设备向第一终端设备发起的呼叫连接请求时,从所述设备状态列表中获取所述第一终端设备的第二IP地址和在线状态信息;a second acquiring module, configured to: when the receiving module receives a call connection request initiated by the second terminal device to the first terminal device, acquire a second IP address of the first terminal device from the device state list, and Online status information; 第二建立模块,设置为根据所述在线状态信息确定所述第一终端设备处于在线状态时,依据所述第二IP地址建立所述第二终端设备与所述第一终端设备的VOIP呼叫连接。a second establishing module, configured to establish, according to the online status information, that the first terminal device is in an online state, and establish a VOIP call connection between the second terminal device and the first terminal device according to the second IP address . 根据权利要求11或12所述的路由设备,其中,A routing device according to claim 11 or 12, wherein 所述接收模块,还设置为接收第一终端设备发送的注册请求,所述注册 请求包括第一终端设备的所述第一设备ID;The receiving module is further configured to receive a registration request sent by the first terminal device, where the registration request includes the first device ID of the first terminal device; 所述第一获取模块,还设置为获取所述第一终端设备的第二IP地址;The first acquiring module is further configured to acquire a second IP address of the first terminal device; 所述路由设备还包括:The routing device further includes: 添加模块,设置为将所述第一设备ID和所述第二IP地址添加至所述设备状态列表中。And adding a module, configured to add the first device ID and the second IP address to the device status list. 根据权利要求13所述的路由设备,所述路由设备还包括:The routing device of claim 13, the routing device further comprising: 检测模块,设置为在预设时间周期检测所述设备状态列表中每个终端设备的状态信息;The detecting module is configured to detect status information of each terminal device in the device status list in a preset time period; 更新模块,设置为将所述状态信息更新至所述设备状态列表中;Updating a module, configured to update the status information to the device status list; 发送模块,设置为在接收模块接收到所述第二终端设备发起的获取请求时,将所述状态信息发送至所述第二终端设备,以更新所述第二终端设备中联系人列表的在线状态。a sending module, configured to: when the receiving module receives the acquiring request initiated by the second terminal device, send the status information to the second terminal device, to update the online list of contacts in the second terminal device status. 根据权利要求14所述的路由设备,所述路由设备还包括:The routing device of claim 14, the routing device further comprising: 第三获取模块,设置为获取所述设备状态列表中处于在线状态的每个终端设备的第三IP地址;a third obtaining module, configured to acquire a third IP address of each terminal device that is in an online state in the device status list; 所述更新模块,还设置为确定所述第三IP地址与存储在所述设备状态列表中的与第一在线终端设备集对应的IP地址不一致时,根据所述第三IP地址更新所述设备状态列表。The updating module is further configured to: when the third IP address is inconsistent with an IP address corresponding to the first online terminal device set stored in the device status list, update the device according to the third IP address Status list. 一种计算机可读存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至5任一项所述的通信方法。A computer readable storage medium having stored therein computer executable instructions for performing the communication method of any one of claims 1 to 5.
PCT/CN2018/071941 2017-03-10 2018-01-09 Communication method, routing device, and computer storage medium WO2018161718A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710142249.X 2017-03-10
CN201710142249.XA CN108574671B (en) 2017-03-10 2017-03-10 Communication method, routing device and computer storage medium

Publications (1)

Publication Number Publication Date
WO2018161718A1 true WO2018161718A1 (en) 2018-09-13

Family

ID=63447154

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/071941 WO2018161718A1 (en) 2017-03-10 2018-01-09 Communication method, routing device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN108574671B (en)
WO (1) WO2018161718A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI802488B (en) * 2022-08-17 2023-05-11 象量科技股份有限公司 Method for gateway redundancy and streetlight system using the same

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089000B (en) * 2018-10-24 2020-10-27 迈普通信技术股份有限公司 Voice call processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404701A (en) * 2008-11-10 2009-04-08 杭州华三通信技术有限公司 VOIP calling method and equipment
CN105516084A (en) * 2015-11-25 2016-04-20 广州市百果园网络科技有限公司 Calling method and call server
CN106341425A (en) * 2016-11-09 2017-01-18 广州市百果园网络科技有限公司 Network call put-through method and network telephone system
CN106470194A (en) * 2015-08-20 2017-03-01 中兴通讯股份有限公司 Networking telephone connection processing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7634072B2 (en) * 2004-02-13 2009-12-15 Yahoo! Inc. Integrated instant messaging, routing and telephone services billing system
US20080046580A1 (en) * 2006-06-29 2008-02-21 Nokia Corporation Account creation system and call processing system
US8266307B2 (en) * 2008-05-12 2012-09-11 Nokia Corporation Method, system, and apparatus for access of network services using subscriber identities
US8750477B2 (en) * 2009-07-22 2014-06-10 Felix Calls, Llc Method and system for automatic assignment of outbound and inbound call identity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404701A (en) * 2008-11-10 2009-04-08 杭州华三通信技术有限公司 VOIP calling method and equipment
CN106470194A (en) * 2015-08-20 2017-03-01 中兴通讯股份有限公司 Networking telephone connection processing method and device
CN105516084A (en) * 2015-11-25 2016-04-20 广州市百果园网络科技有限公司 Calling method and call server
CN106341425A (en) * 2016-11-09 2017-01-18 广州市百果园网络科技有限公司 Network call put-through method and network telephone system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI802488B (en) * 2022-08-17 2023-05-11 象量科技股份有限公司 Method for gateway redundancy and streetlight system using the same

Also Published As

Publication number Publication date
CN108574671B (en) 2021-01-26
CN108574671A (en) 2018-09-25

Similar Documents

Publication Publication Date Title
US10715979B2 (en) Provisioning device and/or line sharing capabilities to internet of things (IoT) devices
US7639792B2 (en) System and method for location management and emergency support for a voice over internet protocol device
US7469138B2 (en) Method and system for providing location information for mobile internet calling devices
US8706888B2 (en) Hierarchal structuring of nodes in a peer-to-peer network
US9065788B2 (en) Method, device and system for voice communication
JP2008527907A (en) Method and apparatus for handling emergency calls
US10264109B2 (en) Contact synchronization between related devices of a subscriber account
US20100246439A1 (en) Communication of location information for an ip telephony communication device
US10356745B2 (en) Device and/or line event awareness and smart synchronization
CN105721408A (en) RCS client realization method, terminal, relevant platform and system
EP2974159B1 (en) Method, device and system for voice communication
WO2018161718A1 (en) Communication method, routing device, and computer storage medium
JP6305786B2 (en) Incoming call control apparatus, incoming call control method, and program
JP6509061B2 (en) Incoming call control device, incoming call control method, communication system, and program
US20080082612A1 (en) Methods handset and system for downloadable ims middleware
US9461959B2 (en) Techniques for auto assigning IP telephone extension numbers based on a port
JP5957249B2 (en) Call recording system
WO2021213243A1 (en) Associated service registration method, related device and computer-readable storage medium
KR100723306B1 (en) Apparatus and method for providing user mobility of SPI phone
JP2017169023A (en) Incoming call notification system
US20230188954A1 (en) Method for notifying a mobile terminal
JP6081391B2 (en) PBX system, mobile phone terminal, mobile phone terminal program, and subscriber information registration method for mobile phone terminal of PBX system
TWI426745B (en) Default gateway, terminal device, and method for exchanging voip signaling
US11349884B2 (en) Method and a SIP proxy for managing calls in a voice over SIP network
KR100416805B1 (en) Internet Protocol Phone System and Internet Protocol Phone Device and Phone Number Assignment Method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18764148

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.11.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18764148

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载