A method and device for opening voice service of sub-gateway in FTTR network

By virtualizing the information of the voice service port, the subgateway automatically registers and uses the voice service port without configuring the voice account information and server information, solving the problem of the voice service that cannot automatically open multiple subgateways in the prior art and improving the user experience.

CN119210923BActive Publication Date: 2025-04-22RAISECOM TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411745465.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-04-22
Estimated Expiration
2044-12-02

AI Technical Summary

Technical Problem

The prior art cannot automatically enable voice services for multiple voice service ports of multiple sub-gateways, resulting in the user's use of sub-gateway voice services in the FTTR scenario.

Method used

By virtualizing the information of the voice service port, the subgateway enables the registration and call of the subgateway voice service port without configuring any voice account information and server information. The specific method includes receiving node information issued by the management server, assigning the target virtual serial number and voice number, registering with the voice server agent, and responding to the registration successful message after the registration is successful.

Benefits of technology

It realizes that the subgateway automatically registers and uses voice service ports without configuring any voice account information and server information, simplifies the operation of installation and maintenance personnel and improves the user's subgateway voice service experience in the FTTR scenario.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119210923B_ABST
    Figure CN119210923B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for opening a sub-gateway voice service in an FTTR network. The method is applied to a main gateway, receives a virtual serial number and a corresponding voice number issued by a management server, wherein the virtual serial number includes a gateway serial number and a voice service port serial number; allocates a target gateway serial number to the sub-gateway according to the online sequence of the sub-gateways, determines a target virtual serial number including the target gateway serial number and a target voice service port serial number in the target virtual serial number; allocates a voice number corresponding to the target virtual serial number to a target voice service port corresponding to the target voice service port serial number of the sub-gateway; receives a registration request carrying the target voice service port serial number sent by the sub-gateway, and registers with a voice server agent, so that the sub-gateway can realize the opening of the sub-gateway voice service in the FTTR network without configuring any voice account information and server information.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In recent years, FTTR technology has developed rapidly, and its application fields have become increasingly wide. The demand for voice in sub-gateways has also increased, especially for FTTR-B (Business FTTR, all-optical networking for business enterprises), which is used in enterprise scenarios. The demand for voice is more urgent. For operators, currently, they can only use management protocols such as TR069 to open voice services for the main gateway through the management server, and realize the automatic registration of the main gateway on the corresponding voice server. It is impossible to complete the voice configuration information, including the voice wan interface, server, etc., to the sub-gateway, and it is impossible to realize the automatic registration of the sub-gateway on the corresponding voice server. At present, voice services can only be manually configured for the voice service port of the sub-gateway through the web, and voice services cannot be automatically opened for multiple voice service ports of multiple sub-gateways. Manually configuring voice services for sub-gateways through the web is too cumbersome, which is not conducive to the rapid opening of installation and maintenance personnel, and affects the use of sub-gateway voice services by users in FTTR scenarios. Summary of the invention

[0003] The embodiment of the present invention provides a method and device for opening a sub-gateway voice service in an FTTR network. By virtualizing the information of the voice service port, the sub-gateway can realize registration and calling of the sub-gateway voice service port without configuring any voice account information and server information.

[0004] In a first aspect, an embodiment of the present invention provides a method for activating a sub-gateway voice service in an FTTR network, which is applied to a main gateway and includes:

[0005] Receive node information sent by the management server, the node information including a virtual serial number and a corresponding voice number, the virtual serial number including a gateway serial number and a voice service port serial number;

[0006] Allocate a target gateway sequence number to the sub-gateway according to the online order of the sub-gateway, and determine a target virtual sequence number including the target gateway sequence number and a target voice service port sequence number in the target virtual sequence number;

[0007] Allocating the voice number corresponding to the target virtual serial number to the target voice service port corresponding to the target voice service port serial number of the sub-gateway;

[0008] Receive a registration request carrying a target voice service port number sent by the sub-gateway, register with the voice server agent, and respond to the sub-gateway with a registration success message after successful registration.

[0009] In some possible embodiments, the method is applied to a primary gateway and further includes:

[0010] Receiving a keep-alive message sent by the sub-gateway every preset period, wherein the keep-alive message includes a device identifier;

[0011] A keep-alive reply message is sent to the sub-gateway, wherein the keep-alive reply message carries a target voice service port sequence number assigned to the sub-gateway.

[0012] In some possible embodiments, after sending the keep-alive reply message to the sub-gateway, the method further includes:

[0013] After receiving the keep-alive reply message, the receiving sub-gateway initiates a deregistration request for the target voice service port that has not activated the service and has been successfully registered, or after determining that the target voice service port that has been successfully registered is invalid, no registration request initiated by the sub-gateway is received;

[0014] Deregister with the voice server on behalf of the voice server, and respond to the sub-gateway with a deregistration success message after the deregistration is successful.

[0015] In some possible embodiments, the receiving a registration request sent by the sub-gateway and carrying a target voice service port number includes at least one of the following steps:

[0016] After receiving the keep-alive reply message, the receiving sub-gateway sends a registration request for the target voice service port that has activated the service but is not registered;

[0017] The receiving sub-gateway sends a registration request for a target voice service port that has opened services and successfully registered and has a remaining validity period that meets the requirements.

[0018] In some possible embodiments, the method is applied to a primary gateway and further includes:

[0019] After receiving the node information sent by the management server, setting the remaining validity period of the voice service port in the node information to permanent;

[0020] After receiving the keep-alive message sent by the sub-gateway, setting the remaining validity period of the voice service port in the corresponding sub-gateway to a preset duration;

[0021] After successful registration, the remaining validity period of the voice service port in the corresponding sub-gateway is updated to the registration duration.

[0022] In some possible embodiments, the method applied to the master gateway includes at least one of the following steps:

[0023] Receive the node information sent by the management server, and set the state of the voice service port in the node information to a silent period;

[0024] After receiving the keep-alive message sent by the sub-gateway, if the state of the corresponding target voice service port is in the silent period, updating the state of the target voice service port to the waiting period;

[0025] After the registration is successful during the waiting period, the status of the corresponding target voice service port is updated to the online period;

[0026] If the registration is unsuccessful during the waiting period, the state of the corresponding target voice service port is updated to the silent period;

[0027] After the deregistration is successful, the status of the corresponding target voice service port is updated to the silent period.

[0028] In some possible embodiments, the registering with the voice server agent includes:

[0029] Sending a registration request message carrying the voice number corresponding to the voice service port to the voice server, wherein the registration request message also includes the authentication information of the main gateway and the sub-gateway, and the authentication information of the sub-gateway is issued by the management server;

[0030] Receive a registration success message returned by the voice server after successful registration and authentication.

[0031] In some possible embodiments, the method is applied to a primary gateway and further includes:

[0032] A voice registration status table including at least one of the following information is established and maintained for the node information:

[0033] The gateway serial number of the sub-gateway, the serial number of the voice service port, the corresponding voice number, the authentication information, the device identification of the sub-gateway, the status of the voice service port, and the remaining validity period.

[0034] In some possible embodiments, the method is applied to a primary gateway and further includes:

[0035] Receiving a first call request message sent by the sub-gateway, wherein the first call request message includes a device identifier and a voice service port number used for the call;

[0036] Based on the device identifier and the voice service port serial number, determine the state of the target voice service port corresponding to the sub-gateway and the corresponding voice number;

[0037] The target voice service port serial number in the first call request message is changed to the voice number corresponding to the voice service port of the sub-gateway, the device identifier in the first call request message is deleted, and the modified first call request message is sent to the voice server.

[0038] In some possible embodiments, the method is applied to a master gateway, including:

[0039] receiving a second call request message sent by the voice server, wherein the second call request message includes a voice number for a called voice service port;

[0040] Based on the voice number of the voice service port, determine the state of the target voice service port corresponding to the sub-gateway and the corresponding target voice service port sequence number;

[0041] The voice number corresponding to the voice service port in the second call request message is changed to the corresponding target voice service port sequence number in the sub-gateway, and the modified second call request message is sent to the corresponding sub-gateway.

[0042] In a second aspect, the embodiment of the present application further proposes a method for activating a sub-gateway voice service in an FTTR network, which is applied to a sub-gateway and includes:

[0043] After going online, interact with the main gateway to obtain the target gateway serial number assigned to the sub-gateway by the main gateway and the target voice service port serial number of the sub-gateway;

[0044] Sending a registration request carrying the target voice service port number to the main gateway, and the main gateway registers with the voice server agent;

[0045] Receive a registration success message returned after the primary gateway agent successfully registers.

[0046] In some possible embodiments, the method is applied to a sub-gateway and further includes:

[0047] After going online, sending a keep-alive message to the main gateway at a preset period, wherein the keep-alive message includes a device identifier;

[0048] A keep-alive reply message carrying the target voice service port number is received from the primary gateway.

[0049] In some possible embodiments, after the sub-gateway receives the keep-alive reply message carrying the target voice service port number sent by the main gateway, the method further includes:

[0050] When it is determined that the target voice service port has not been opened for service and the registration is successful, a deregistration request is sent to the primary gateway, where the deregistration request includes a device identifier and a serial number of the target voice service port;

[0051] A deregistration success message is received after the primary gateway successfully deregisters from the voice server.

[0052] In some possible embodiments, the sub-gateway sends a registration request carrying the target voice service port number to the main gateway, including:

[0053] When it is determined that the target voice service port has opened a service but is not registered, sending a registration request to the main gateway;

[0054] When it is determined that the target voice service port has opened services and has been successfully registered, and the remaining validity period meets the requirements, a registration request is sent to the main gateway.

[0055] In a third aspect, the embodiment of the present application further proposes a device for activating a sub-gateway voice service in an FTTR network, comprising: a memory and a processor, wherein:

[0056] The memory is used to store programs executable by the processor;

[0057] The processor is used to read the program in the memory and execute the method for activating a sub-gateway voice service in an FTTR network as described in any one of the first aspect or the second aspect.

[0058] The present application discloses a method and device for activating voice services of a sub-gateway in an FTTR network. The method is applied to a main gateway, receives a virtual serial number and a corresponding voice number issued by a management server, wherein the virtual serial number includes a gateway serial number and a voice service port serial number; assigns a target gateway serial number to the sub-gateway according to the online order of the sub-gateway, determines a target virtual serial number including the target gateway serial number and a target voice service port serial number in the target virtual serial number; assigns the voice number corresponding to the target virtual serial number to the target voice service port corresponding to the target voice service port serial number of the sub-gateway; receives a registration request carrying the target voice service port serial number sent by the sub-gateway, registers with a voice server agent, and responds to the sub-gateway with a registration success message after successful registration. The method and device for activating voice services of a sub-gateway in an FTTR network proposed in the present application virtualizes the information of the voice service port, so that the sub-gateway can realize the registration and calling of the sub-gateway voice service port without configuring any voice account information and server information.

[0059] Other features and advantages of the present application will be described in the subsequent description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0061] Figure 1 This is a schematic diagram of an application scenario in an embodiment of the present application;

[0062] Figure 2 A schematic diagram of a system for provisioning a sub-gateway voice service in an FTTR network according to an embodiment of the present application;

[0063] Figure 3 This is a schematic diagram of a process for a master gateway to determine the type of node information in an embodiment of the present application;

[0064] Figure 4 This is a schematic diagram of a sub-gateway keep-alive process in an embodiment of the present application;

[0065] Figure 5 A schematic diagram of a process of proxy registration of a main gateway in an embodiment of the present application;

[0066] Figure 6 This is a schematic diagram of a sub-gateway deregistration process in an embodiment of the present application;

[0067] Figure 7 A schematic diagram of a process of performing proxy registration by a main gateway in an embodiment of the present application;

[0068] Figure 8 This is a flow chart of a sub-gateway acting as a calling party in an embodiment of the present application;

[0069] Fig. 9 This is a flow chart of a sub-gateway as a called party in an embodiment of the present application;

[0070] Fig.10 A system for opening a sub-gateway voice service in an FTTR network in an embodiment of the present application is used to implement a flow chart for opening a sub-gateway voice service;

[0071] Fig.11 A schematic diagram of a flow chart of a method for activating a sub-gateway voice service in an FTTR network according to an embodiment of the present application, applied to a main gateway;

[0072] Fig.12 A schematic diagram of a flow chart of a method for activating a sub-gateway voice service in a FTTR network according to an embodiment of the present application, applied to a sub-gateway;

[0073] Fig.13This is a schematic diagram of the device structure of a method for activating a sub-gateway voice service in an FTTR network in an embodiment of the present application. DETAILED DESCRIPTION

[0074] To further illustrate the technical solution provided by the embodiments of the present application, a detailed description is given below in conjunction with the accompanying drawings and specific implementation methods.

[0075] With the rapid development of FTTR technology, its application areas are becoming wider and wider, and the demand for voice in sub-gateways is also increasing. In particular, FTTR-B, a device used in enterprise scenarios, has a more urgent demand for voice. For operators, currently they can only use the management protocol to open voice services for the main gateway through the management server, and realize the automatic registration of the main gateway on the corresponding voice server, but cannot realize the automatic registration of the sub-gateway on the corresponding voice server. Manually configuring voice services for sub-gateways through the web is too cumbersome, which is not conducive to the rapid activation of installation and maintenance personnel, and affects the use of sub-gateway voice services by users in FTTR scenarios.

[0076] In view of the fact that in the above-mentioned prior art, it is impossible to automatically activate voice services for multiple voice service ports of multiple sub-gateways, which affects the user's use of the sub-gateway voice services in the FTTR network, the embodiment of the present application proposes a system for activating the sub-gateway voice service in the FTTR network. The system described in the embodiment of the present application can enable the sub-gateway to realize the activation of its voice service without configuring any voice account information and server information.

[0077] The embodiment of the present application is applied to the FTTR network of the operator (covering FTTR-H and FTTR-B), such as Figure 1 As shown, multiple sub-gateways are connected to the main gateway through optical fibers, and the main gateway is registered with the OLT (Optical Line Termination). The OLT is connected to the management server and the voice server through optical fibers.

[0078] like Figure 2 As shown, a system for activating a sub-gateway voice service in an FTTR network in an embodiment of the present application is shown. The system includes a management server 1, a voice server 2, a main gateway 3 and a sub-gateway 4. The management server 1 and the voice server 2 are connected to the main gateway 3, and the main gateway 3 is connected to the sub-gateway 4.

[0079] In an embodiment of the present application, when activating a sub-gateway voice service, it is necessary to configure voice information for the voice service port of the sub-gateway. Specifically, the management server sends node information to the main gateway. The node information sent includes a virtual serial number for the voice service port in the sub-gateway attached to the main gateway and a voice number and authentication information corresponding to the voice service port, wherein the virtual serial number includes a gateway serial number and a voice service port serial number.

[0080] After receiving the node information sent by the management server, the main gateway allocates a target gateway sequence number to the sub-gateway according to the online sequence of the sub-gateway, and determines a target virtual sequence number including the target gateway sequence number and a target voice service port sequence number in the target virtual sequence number.

[0081] The following takes a sub-gateway with 8 voice service ports, whose serial numbers are 1 to 8, as an example. The nodes of each voice service port carry their own serial numbers, and an example of a virtual serial number issued by the management server is given. The embodiment of the present application uses 4 Arabic numerals to define the virtual serial number of the voice service port. The virtual serial number adopts the ABCD format, where AB represents the gateway serial number of the sub-gateway, and CD represents the corresponding voice service port serial number in the sub-gateway. If A is 0, it is ignored. For example, 201 represents the first voice service port of the second sub-gateway that goes online, and 1004 represents the fourth voice service port of the tenth sub-gateway that goes online.

[0082] In some possible embodiments, the management server in the prior art also includes sending voice information of the main gateway, also in the form of node information. After the main gateway receives the node information sent by the management server, it is necessary to determine whether the node information is the actual voice service port number of the main gateway or the virtual number of the sub-gateway, such as Figure 3 shown.

[0083] When the main gateway determines that the node information sent is the actual voice service port number of the main gateway, the main gateway configures the corresponding voice number, server and other information to the main gateway, which is the same as the prior art in the field and will not be repeated here; when the main gateway determines that the node information sent is the virtual serial number of the 3-digit or 4-digit number corresponding to the voice service port of the sub-gateway, the target gateway serial number and the target voice service port serial number in the virtual serial number are allocated to the sub-gateway according to the online order of the sub-gateway, and the voice number corresponding to the target virtual serial number is allocated to the target voice service port corresponding to the target voice service port serial number of the sub-gateway.

[0084] In some possible embodiments, the main gateway establishes and maintains a voice registration status table including at least one of the following information for the node information:

[0085] The gateway serial number of the sub-gateway, the serial number of the voice service port, the corresponding voice number, the authentication information, the device identification of the sub-gateway, the status of the voice service port, and the remaining validity period.

[0086] When the main gateway receives the above node information, it generates the above voice registration status table according to the gateway serial number of the sub-gateway, the voice service port serial number, and the voice number and authentication information carried in the corresponding node information, wherein the sub-gateway device identifier in the voice registration status table is empty, the status of the voice service port is set to the silent period, and the remaining validity period is permanent. The format of the voice registration status table is shown in Table 1 below.

[0087] Table 1 Voice registration status table

[0088]

[0089] After the sub-gateway comes online, it sends a keep-alive message to the main gateway at a preset period. Figure 4 As shown, the keep-alive message includes a device identifier. After the main gateway receives the keep-alive message sent by the sub-gateway every preset period, it sends a keep-alive reply message to the sub-gateway. The keep-alive reply message carries the target voice service port number assigned to the sub-gateway.

[0090] In some possible embodiments, after the main gateway receives the keep-alive message sent by the sub-gateway, it fills in the device identification of the corresponding sub-gateway in the voice registration status table maintained above according to the gateway serial number of the sub-gateway, sets the remaining validity period of the voice service port in the corresponding sub-gateway to a preset duration, and if the status of the corresponding target voice service port is a silent period, updates the status of the target voice service port to a waiting period.

[0091] In an embodiment of the present application, the sub-gateway should complete the registration process for its target voice service port during the waiting period, and the main gateway makes a determination based on the remaining validity period in the voice registration status table maintained above. If a registration request from the sub-gateway is received before the remaining validity period is zero, the main gateway registers again and modifies the remaining validity period after the registration is successful. If a registration request from the sub-gateway is received after the remaining validity period is zero, the target voice service port of the sub-gateway is determined to be invalid at this time, and the main gateway does not process the registration process of the sub-gateway.

[0092] The sub-gateway receives the keep-alive reply message returned by the main gateway, and obtains the target gateway sequence number assigned to the sub-gateway by the main gateway and the target voice service port sequence number of the sub-gateway.

[0093] In some possible embodiments, when the sub-gateway determines that the target voice service port has opened services but is not registered, it sends a registration request carrying the serial number of the target voice service port to the main gateway, or when it determines that the target voice service port has opened services and registration is successful, and the remaining validity period meets the requirements, it sends a registration request to the main gateway.

[0094] For example, when the sub-gateway determines that the target voice service port has opened services and has been successfully registered, and the remaining validity period reaches half of the registration duration, a registration request is sent to the main gateway.

[0095] In some possible embodiments, according to the traditional SIP protocol mechanism, the sub-gateway initiates a registration request every half of the registration duration. After receiving the registration request, the main gateway performs a proxy registration with the voice server. After the registration is successful, it replies 200OK to the corresponding sub-gateway. At the same time, based on the registration duration of the corresponding voice service port carried in the registration request, the remaining validity period in the voice registration status table is updated to the registration duration again.

[0096] In an embodiment of the present application, a registration request example is given, and the registration request is sent in the form of a data packet, wherein the source IP address is the interface IP of the sub-gateway, the destination IP address is the LAN side IP address of the main gateway, and the registration request includes the device identification of the sub-gateway and the obtained target voice service port number for registration.

[0097] When the sub-gateway determines that the target voice service port has opened services and has been successfully registered, the target voice service port is ignored.

[0098] The main gateway receives the registration request sent by the sub-gateway and performs proxy registration with the voice server, such as Figure 5 shown.

[0099] The main gateway sends a registration request message carrying the voice number corresponding to the voice service port to the voice server for proxy registration, and the registration request message also includes authentication information of the main gateway and the sub-gateway.

[0100] The voice server receives the registration request message sent by the main gateway, authenticates the information of the main gateway and the sub-gateway in the message, registers after successful authentication, and returns a registration success message to the main gateway after successful registration. The main gateway receives the registration success message returned by the voice server, and forwards the registration success message to the sub-gateway corresponding to the proxy registration.

[0101] In some possible embodiments, during the process of proxy registration by the main gateway, the main gateway sends a registration request message carrying the voice number corresponding to the voice service port to the voice server for proxy registration. The registration request message also includes authentication information of the main gateway and the sub-gateway. The authentication information of the sub-gateway is issued by the management server and is used to enable the voice server to authenticate the registered voice number. This is a security mechanism. In the embodiment of the present application, the SIP protocol is used as an example for explanation. The principles of other protocols are consistent with this and will not be repeated.

[0102] In the SIP protocol, the registration request message is authenticated through an authentication header. The traditional registration request message has only one authentication header. In the embodiment of the present application, the registration request message is extended to carry multiple authentication headers, and the first authentication header must be the authentication header of the main gateway by default, and the authentication headers starting from the second authentication header are the authentication headers of the sub-gateway number, and the device identifier of the sub-gateway is carried in the authentication information after the authentication header.

[0103] When the voice server receives a registration request message with only one authentication header, it is a registration for the voice service port corresponding to the main gateway. When the voice server receives a registration request message with multiple authentication headers, and all of them carry device identification except the first one, it is a proxy registration for the voice service port corresponding to the sub-gateway.

[0104] After the sub-gateway receives the registration success message returned by the main gateway after the agent registration is successful, the registration of the sub-gateway target voice service port is completed, and the dial-up calling service and the called service can be performed.

[0105] In some possible embodiments, after the main gateway receives the registration success message returned by the voice server, in the voice registration status table maintained above, according to the gateway sequence number of the sub-gateway, the remaining validity period of the voice service port in the corresponding sub-gateway is updated to the registration duration, and after the registration is successful during the waiting period, the status of the corresponding target voice service port is updated to the online period.

[0106] In some possible embodiments, when the main gateway agent registration fails, that is, when the registration is unsuccessful during the waiting period, in the voice registration status table maintained above, the status of the corresponding target voice service port is updated to the silent period according to the gateway sequence number of the sub-gateway.

[0107] In some possible embodiments, Figure 6 As shown, after the sub-gateway receives the keep-alive reply message carrying the target voice service port number sent by the main gateway, when it determines that the target voice service port has not opened services and the registration is successful, it sends a deregistration request to the main gateway, and the deregistration request includes the device identifier and the target voice service port number.

[0108] The main gateway receives the deregistration request sent by the sub-gateway, or after determining that the target voice service port for successful registration is invalid, does not receive the registration request initiated by the sub-gateway, and performs proxy deregistration with the voice server.

[0109] In an embodiment of the present application, an example of a deregistration request message is given, and the deregistration request message is sent in the form of a data packet, wherein the source IP address is the interface IP of the sub-gateway, the destination IP address is the LAN side IP address of the main gateway, and the deregistration request message includes the device identifier of the sub-gateway and the obtained target voice service port number for deregistration.

[0110] In some possible embodiments, Figure 7 As shown, the main gateway sends a deregistration request message carrying the voice number corresponding to the voice service port to the voice server for proxy deregistration, and the deregistration request message also includes the authentication information of the main gateway and the sub-gateway.

[0111] The voice server receives the deregistration request message sent by the main gateway, authenticates the information of the main gateway and the sub-gateway in the message, performs deregistration after successful authentication, and returns a deregistration success message to the main gateway after successful deregistration.

[0112] The main gateway receives the deregistration success message returned by the voice server, and forwards the deregistration success message to the corresponding sub-gateway. After receiving the deregistration success message returned by the main gateway, the sub-gateway stops the dial-up call service and the called service.

[0113] In some possible embodiments, after the main gateway receives the deregistration success message returned by the voice server, the main gateway updates the status of the corresponding target voice service port to the silent period in the voice registration status table maintained above according to the gateway sequence number of the sub-gateway.

[0114] After the voice service port of the sub-gateway is successfully registered and the voice service is activated, communication can be carried out based on the virtual serial number, such as Figure 8 As shown, when the sub-gateway acts as a caller, the sub-gateway sends a first call request message for a call to the main gateway, and the first call request message includes a device identifier and a voice service port number for the call. The main gateway receives the first call request message, and based on the device identifier and the voice service port number, determines the state of the target voice service port corresponding to the sub-gateway and the corresponding voice number, changes the target voice service port number in the first call request message to the voice number corresponding to the voice service port of the sub-gateway, deletes the device identifier in the first call request message, and sends the modified first call request message to the voice server.

[0115] After the voice server receives the first call request message sent by the main gateway, the sub-gateway can implement the voice call service.

[0116] In some possible embodiments, for the scenario where the sub-gateway acts as the calling party, the sub-gateway sends a first call request message for the call to the main gateway, and the main gateway determines that it is a virtual call of the sub-gateway based on the device identifier in the first call. The main gateway queries the voice registration status table based on the device identifier. If the status of the voice service port corresponding to the device identifier is online, the main gateway changes the target voice service port sequence number in the first call request message to the voice number corresponding to the voice service port of the sub-gateway, deletes the device identifier in the first call request message, and sends the modified first call request message to the voice server; if the status of the voice service port corresponding to the device identifier is not online or the device identifier does not exist in the voice registration status table, it is determined that the call is an abnormal call and the main gateway does not process it.

[0117] When the sub-gateway acts as the called party, Fig. 9 As shown, the voice server sends a second call request message for calling the sub-gateway to the main gateway, the second call request message includes a voice number for the called voice service port, the main gateway receives the second call request message sent by the voice server, and based on the voice number of the voice service port, determines the state of the target voice service port corresponding to the sub-gateway and the corresponding target voice service port sequence number, changes the voice number corresponding to the voice service port in the second call request message to the corresponding target voice service port sequence number in the sub-gateway, and sends the modified second call request message to the corresponding sub-gateway.

[0118] After the sub-gateway receives the second call request message sent by the main gateway, the voice called service can be implemented.

[0119] In some possible embodiments, for the scenario where the sub-gateway acts as the called party, after the main gateway receives the second call request message from the voice server, it checks whether the status of the voice service port corresponding to the voice number of the called voice service port in the voice registration status table is online. If it is not online or the voice number does not exist in the voice registration status table, the call is considered to be an abnormal call and is not processed; if the status of the voice service port corresponding to the voice number of the called voice service port in the voice registration status table is online, the main gateway changes the voice number corresponding to the target voice service port in the second call request message to the corresponding target voice service port serial number in the sub-gateway based on the device identifier recorded in the table and the corresponding target voice service port serial number and other information, and sends the modified second call request message to the corresponding sub-gateway, and the sub-gateway performs subsequent processing.

[0120] The following is a complete system for opening sub-gateway voice services using FTTR networking, which implements the opening process of sub-gateway voice services. Fig.10 shown.

[0121] Step 1: The management server sends node information to the main gateway, wherein the node information includes a virtual serial number of a voice service port in a sub-gateway under the main gateway and a voice number corresponding to the voice service port, wherein the virtual serial number includes a gateway serial number and a voice service port serial number;

[0122] Step 2, after receiving the node information sent by the management server, the main gateway allocates a target gateway sequence number to the sub-gateway according to the online order of the sub-gateway, and determines a target virtual sequence number including the target gateway sequence number and a target voice service port sequence number in the target virtual sequence number;

[0123] Step 3, after the sub-gateway goes online, the sub-gateway sends a keep-alive message to the main gateway at a preset period, wherein the keep-alive message includes a device identifier;

[0124] Step 4, after receiving the keep-alive message sent by the sub-gateway every preset period, the main gateway sends a keep-alive reply message to the sub-gateway, wherein the keep-alive reply message carries the target voice service port number assigned to the sub-gateway;

[0125] Step 5, the sub-gateway receives the keep-alive reply message returned by the main gateway, and obtains the target gateway sequence number assigned to the sub-gateway by the main gateway and the target voice service port sequence number of the sub-gateway;

[0126] Step 6, when the sub-gateway determines that the target voice service port has opened services but is not registered, it sends a registration request carrying the serial number of the target voice service port to the main gateway;

[0127] Step 7, the main gateway receives the registration request sent by the sub-gateway, performs proxy registration with the voice server, and sends a registration request message carrying the voice number corresponding to the voice service port to the voice server, wherein the registration request message also includes the authentication information of the main gateway and the sub-gateway;

[0128] Step 8, the voice server receives the registration request message sent by the main gateway, authenticates the information of the main gateway and the sub-gateway in the message, registers after successful authentication, and returns a registration success message to the main gateway after successful registration;

[0129] Step 9: The main gateway receives the registration success message returned by the voice server, and forwards the registration success message to the sub-gateway corresponding to the proxy registration.

[0130] Based on the same inventive concept, the embodiment of the present application also proposes a method for activating a sub-gateway voice service in an FTTR network, which is applied to a main gateway, such as Fig.11 As shown, including:

[0131] Step 1101, receiving node information sent by a management server, wherein the node information includes a virtual serial number and a corresponding voice number, wherein the virtual serial number includes a gateway serial number and a voice service port serial number;

[0132] Step 1102, assigning a target gateway sequence number to the sub-gateway according to the online order of the sub-gateway, and determining a target virtual sequence number including the target gateway sequence number and a target voice service port sequence number in the target virtual sequence number;

[0133] Step 1103, assigning the voice number corresponding to the target virtual serial number to the target voice service port corresponding to the target voice service port serial number of the sub-gateway;

[0134] Step 1104, receiving a registration request carrying the target voice service port number sent by the sub-gateway, registering with the voice server proxy, and responding to the sub-gateway with a registration success message after successful registration.

[0135] In some possible embodiments, the method is applied to a primary gateway and further includes:

[0136] Receiving a keep-alive message sent by the sub-gateway every preset period, wherein the keep-alive message includes a device identifier;

[0137] A keep-alive reply message is sent to the sub-gateway, wherein the keep-alive reply message carries a target voice service port sequence number assigned to the sub-gateway.

[0138] In some possible embodiments, after sending the keep-alive reply message to the sub-gateway, the method further includes:

[0139] After receiving the keep-alive reply message, the receiving sub-gateway initiates a deregistration request for the target voice service port that has not activated the service and has been successfully registered, or after determining that the target voice service port that has been successfully registered is invalid, no registration request initiated by the sub-gateway is received;

[0140] Deregister with the voice server on behalf of the voice server, and respond to the sub-gateway with a deregistration success message after the deregistration is successful.

[0141] In some possible embodiments, the receiving a registration request sent by the sub-gateway and carrying a target voice service port number includes at least one of the following steps:

[0142] After receiving the keep-alive reply message, the receiving sub-gateway sends a registration request for the target voice service port that has activated the service but is not registered;

[0143] The receiving sub-gateway sends a registration request for a target voice service port that has opened services and successfully registered and has a remaining validity period that meets the requirements.

[0144] In some possible embodiments, the method is applied to a primary gateway and further includes:

[0145] After receiving the node information sent by the management server, setting the remaining validity period of the voice service port in the node information to permanent;

[0146] After receiving the keep-alive message sent by the sub-gateway, setting the remaining validity period of the voice service port in the corresponding sub-gateway to a preset duration;

[0147] After successful registration, the remaining validity period of the voice service port in the corresponding sub-gateway is updated to the registration duration.

[0148] In some possible embodiments, the method applied to the master gateway includes at least one of the following steps:

[0149] Receive the node information sent by the management server, and set the state of the voice service port in the node information to a silent period;

[0150] After receiving the keep-alive message sent by the sub-gateway, if the state of the corresponding target voice service port is in the silent period, updating the state of the target voice service port to the waiting period;

[0151] After the registration is successful during the waiting period, the status of the corresponding target voice service port is updated to the online period;

[0152] If the registration is unsuccessful during the waiting period, the state of the corresponding target voice service port is updated to the silent period;

[0153] After the deregistration is successful, the status of the corresponding target voice service port is updated to the silent period.

[0154] In some possible embodiments, the registering with the voice server agent includes:

[0155] Sending a registration request message carrying the voice number corresponding to the voice service port to the voice server, wherein the registration request message also includes the authentication information of the main gateway and the sub-gateway, and the authentication information of the sub-gateway is issued by the management server;

[0156] Receive a registration success message returned by the voice server after successful registration and authentication.

[0157] In some possible embodiments, the method is applied to a primary gateway and further includes:

[0158] A voice registration status table including at least one of the following information is established and maintained for the node information:

[0159] The gateway serial number of the sub-gateway, the serial number of the voice service port, the corresponding voice number, the authentication information, the device identification of the sub-gateway, the status of the voice service port, and the remaining validity period.

[0160] In some possible embodiments, the method is applied to a primary gateway and further includes:

[0161] Receiving a first call request message sent by the sub-gateway, wherein the first call request message includes a device identifier and a voice service port number used for the call;

[0162] Based on the device identifier and the voice service port serial number, determine the state of the target voice service port corresponding to the sub-gateway and the corresponding voice number;

[0163] The target voice service port serial number in the first call request message is changed to the voice number corresponding to the voice service port of the sub-gateway, the device identifier in the first call request message is deleted, and the modified first call request message is sent to the voice server.

[0164] In some possible embodiments, the method is applied to a master gateway, including:

[0165] receiving a second call request message sent by the voice server, wherein the second call request message includes a voice number for a called voice service port;

[0166] Based on the voice number of the voice service port, determine the state of the target voice service port corresponding to the sub-gateway and the corresponding target voice service port sequence number;

[0167] The voice number corresponding to the voice service port in the second call request message is changed to the corresponding target voice service port sequence number in the sub-gateway, and the modified second call request message is sent to the corresponding sub-gateway.

[0168] Based on the same inventive concept, the embodiment of the present application also proposes a method for activating a sub-gateway voice service in an FTTR network, which is applied to a sub-gateway, such as Fig.12 As shown, including:

[0169] Step 1201, after going online, interacting with the main gateway, obtaining the target gateway serial number assigned to the sub-gateway by the main gateway and the target voice service port serial number of the sub-gateway;

[0170] Step 1202, sending a registration request carrying the target voice service port number to the main gateway, and the main gateway registers with the voice server agent;

[0171] Step 1203, receiving a registration success message returned after the primary gateway agent is successfully registered.

[0172] In some possible embodiments, the method is applied to a sub-gateway and further includes:

[0173] After going online, sending a keep-alive message to the main gateway at a preset period, wherein the keep-alive message includes a device identifier;

[0174] A keep-alive reply message carrying the target voice service port number is received from the primary gateway.

[0175] In some possible embodiments, after the sub-gateway receives the keep-alive reply message carrying the target voice service port number sent by the main gateway, the method further includes:

[0176] When it is determined that the target voice service port has not been opened for service and the registration is successful, a deregistration request is sent to the primary gateway, where the deregistration request includes a device identifier and a serial number of the target voice service port;

[0177] A deregistration success message is received after the primary gateway successfully deregisters from the voice server.

[0178] In some possible embodiments, the sub-gateway sends a registration request carrying the target voice service port number to the main gateway, including:

[0179] When it is determined that the target voice service port has opened a service but is not registered, sending a registration request to the main gateway;

[0180] When it is determined that the target voice service port has opened services and has been successfully registered, and the remaining validity period meets the requirements, a registration request is sent to the main gateway.

[0181] The method for activating the voice service of a sub-gateway in an FTTR network proposed in an embodiment of the present application is mainly applied to the main gateway, receiving the virtual serial number and the corresponding voice number issued by the management server, the virtual serial number including the gateway serial number and the voice service port serial number; assigning the target gateway serial number to the sub-gateway according to the online order of the sub-gateway, determining the target virtual serial number including the target gateway serial number and the target voice service port serial number in the target virtual serial number; assigning the voice number corresponding to the target virtual serial number to the target voice service port corresponding to the target voice service port serial number of the sub-gateway; receiving the registration request carrying the target voice service port serial number sent by the sub-gateway, registering with the voice server agent, and responding to the sub-gateway with a registration success message after successful registration. Through the method proposed in the embodiment of the present application, by virtualizing the information of the voice service port, the sub-gateway can realize the registration and calling of the sub-gateway voice service port without configuring any voice account information and server information.

[0182] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0183] Based on the same inventive concept, an embodiment of the present application also proposes a device for activating a sub-gateway voice service in an FTTR network, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a process applied to a main gateway in a method for activating a sub-gateway voice service in an FTTR network as described above, or can execute a process applied to a sub-gateway in a method for activating a sub-gateway voice service in an FTTR network as described above.

[0184] Refer to the following Fig.13 A device 130 for activating a sub-gateway voice service in an FTTR network according to this embodiment of the present application will be described. Fig.13 The device 130 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0185] like Fig.13As shown, a device 130 for activating a sub-gateway voice service in an FTTR network is presented in the form of a general electronic device. The components of the device 130 for activating a sub-gateway voice service in an FTTR network may include but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).

[0186] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0187] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .

[0188] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0189] The device 130 for opening a sub-gateway voice service in a FTTR network can also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), and can also communicate with one or more devices that enable a user to interact with the device 130 for opening a sub-gateway voice service in a FTTR network, and / or communicate with any device (e.g., routers, modems, etc.) that enables the device 130 for opening a sub-gateway voice service in a FTTR network to communicate with one or more other electronic devices. Such communication can be performed through an input / output (I / O) interface 135. In addition, the device 130 for opening a sub-gateway voice service in a FTTR network can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 136. As shown in the figure, the network adapter 136 communicates with other modules of the device 130 for opening a sub-gateway voice service in a FTTR network through a bus 133. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the device 130 for enabling a sub-gateway voice service in an FTTR network, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0190] In some possible implementations, various aspects of the method for activating a sub-gateway voice service in an FTTR network provided in the present application can also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the method for activating a sub-gateway voice service in an FTTR network according to various exemplary implementations of the present application described above in this specification.

[0191] The program product may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0192] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for opening a voice service of a sub-gateway in an FTTR network, characterized in that: Applied to the main gateway, including: Receive node information sent by the management server, the node information including a virtual serial number and a corresponding voice number, the virtual serial number including a gateway serial number and a voice service port serial number; Allocate a target gateway sequence number to the sub-gateway according to the online order of the sub-gateway, and determine a target virtual sequence number including the target gateway sequence number and a target voice service port sequence number in the target virtual sequence number; Allocating the voice number corresponding to the target virtual serial number to the target voice service port corresponding to the target voice service port serial number of the sub-gateway; Receiving a keep-alive message sent by the sub-gateway every preset period, wherein the keep-alive message includes a device identifier; Sending a keep-alive reply message to the sub-gateway, wherein the keep-alive reply message carries a target voice service port sequence number assigned to the sub-gateway; Receive a registration request carrying a target voice service port number sent by the sub-gateway, register with the voice server agent, and respond to the sub-gateway with a registration success message after successful registration; Receive the node information sent by the management server, and set the state of the voice service port in the node information to a silent period; After receiving the keep-alive message sent by the sub-gateway, if the state of the corresponding target voice service port is in the silent period, updating the state of the target voice service port to the waiting period; After the registration is successful during the waiting period, the status of the corresponding target voice service port is updated to the online period; When the registration is unsuccessful during the waiting period, the state of the corresponding target voice service port is updated to the silent period.

2. The method according to claim 1, characterized in that After sending the keep-alive reply message to the sub-gateway, the method further includes: After receiving the keep-alive reply message, the receiving sub-gateway initiates a deregistration request for the target voice service port that has not activated the service and has been successfully registered, or after determining that the target voice service port that has been successfully registered is invalid, no registration request initiated by the sub-gateway is received; Deregister with the voice server on behalf of the voice server, and respond to the sub-gateway with a deregistration success message after the deregistration is successful; After the deregistration is successful, the status of the corresponding target voice service port is updated to the silent period.

3. The method according to claim 1, characterized in that The receiving of the registration request carrying the target voice service port number sent by the sub-gateway comprises at least one of the following steps: After receiving the keep-alive reply message, the receiving sub-gateway sends a registration request for the target voice service port that has activated the service but is not registered; The receiving sub-gateway sends a registration request for a target voice service port that has opened services and successfully registered and has a remaining validity period that meets the requirements.

4. The method according to claim 1, characterized in that: Also includes: After receiving the node information sent by the management server, setting the remaining validity period of the voice service port in the node information to permanent; After receiving the keep-alive message sent by the sub-gateway, setting the remaining validity period of the voice service port in the corresponding sub-gateway to a preset duration; After successful registration, the remaining validity period of the voice service port in the corresponding sub-gateway is updated to the registration duration.

5. The method according to claim 1, characterized in that The registering with the voice server agent includes: Sending a registration request message carrying the voice number corresponding to the voice service port to the voice server, wherein the registration request message also includes the authentication information of the main gateway and the sub-gateway, and the authentication information of the sub-gateway is issued by the management server; Receive a registration success message returned by the voice server after successful registration and authentication.

6. The method according to claim 1, characterized in that Also includes: A voice registration status table including at least one of the following information is established and maintained for the node information: The gateway serial number of the sub-gateway, the serial number of the voice service port, the corresponding voice number, the authentication information, the device identification of the sub-gateway, the status of the voice service port, and the remaining validity period.

7. The method according to claim 1, characterized in that Also includes: Receiving a first call request message sent by the sub-gateway, wherein the first call request message includes a device identifier and a voice service port number used for the call; Based on the device identifier and the voice service port serial number, determine the state of the target voice service port corresponding to the sub-gateway and the corresponding voice number; The target voice service port serial number in the first call request message is changed to the voice number corresponding to the voice service port of the sub-gateway, the device identifier in the first call request message is deleted, and the modified first call request message is sent to the voice server.

8. The method according to claim 1, characterized in that: include: receiving a second call request message sent by the voice server, wherein the second call request message includes a voice number for a called voice service port; Based on the voice number of the voice service port, determine the state of the target voice service port corresponding to the sub-gateway and the corresponding target voice service port sequence number; The voice number corresponding to the voice service port in the second call request message is changed to the corresponding target voice service port sequence number in the sub-gateway, and the modified second call request message is sent to the corresponding sub-gateway.

9. A method for opening a voice service of a sub-gateway in an FTTR network, characterized in that: Applicable to sub-gateways, including: After going online, a keep-alive message is sent to the main gateway at a preset period, wherein the keep-alive message includes a device identifier; Receiving a keep-alive reply message carrying a target voice service port number sent by the main gateway, and obtaining the target gateway number assigned to the sub-gateway by the main gateway and the target voice service port number of the sub-gateway; Sending a registration request carrying the target voice service port number to the main gateway, and the main gateway registers with the voice server agent; Receive a registration success message returned after the primary gateway agent successfully registers; When it is determined that the target voice service port has not been opened for service and the registration is successful, a deregistration request is sent to the primary gateway, where the deregistration request includes a device identifier and a serial number of the target voice service port; Receiving a deregistration success message returned by the main gateway after the deregistration with the voice server is successful; The step of sending a registration request carrying the target voice service port number to the primary gateway includes: When it is determined that the target voice service port has opened a service but is not registered, sending a registration request to the main gateway; When it is determined that the target voice service port has opened services and has been successfully registered, and the remaining validity period meets the requirements, a registration request is sent to the main gateway.

10. A device for opening a voice service of a sub-gateway in an FTTR network, characterized in that: include: A memory and a processor, wherein: The memory is used to store programs executable by the processor; The processor is used to read the program in the memory and execute the method applied to the main gateway to implement the activation of the sub-gateway voice service in the FTTR network as described in any one of claims 1-8; or execute the method applied to the sub-gateway to implement the activation of the sub-gateway voice service in the FTTR network as described in claim 9.

Citation Information

Patent Citations

  • Terminal-to-terminal based voice safety multi-path communication system and method

    CN102868683A

  • Method and device for accessing external voice equipment to PSTN (Public Switched Telephone Network) based on FTTR or PON (Passive Optical Network)

    CN117834330A