CN117834330A - Method and device for accessing external voice equipment to PSTN (public switched telephone network) based on FTTR (fiber to the Home) or PON (Passive optical network) - Google Patents

Method and device for accessing external voice equipment to PSTN (public switched telephone network) based on FTTR (fiber to the Home) or PON (Passive optical network) Download PDF

Info

Publication number
CN117834330A
CN117834330A CN202410242379.0A CN202410242379A CN117834330A CN 117834330 A CN117834330 A CN 117834330A CN 202410242379 A CN202410242379 A CN 202410242379A CN 117834330 A CN117834330 A CN 117834330A
Authority
CN
China
Prior art keywords
voice
target
protocol signaling
external voice
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410242379.0A
Other languages
Chinese (zh)
Inventor
李霖
龙文艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Tianyi Comheart Telecom Co Ltd
Original Assignee
Sichuan Tianyi Comheart Telecom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Tianyi Comheart Telecom Co Ltd filed Critical Sichuan Tianyi Comheart Telecom Co Ltd
Priority to CN202410242379.0A priority Critical patent/CN117834330A/en
Publication of CN117834330A publication Critical patent/CN117834330A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a method and a device for accessing external voice equipment to PSTN based on FTTR or PON, relates to the technical field of communication, and is used for solving the problem that the external voice equipment in the FTTR or PON cannot access to PSTN, and the method is applied to gateway equipment of the FTTR or PON and comprises the following steps: receiving an internal protocol signaling sent by external voice equipment; converting the internal protocol signaling into a target protocol signaling capable of realizing VoIP communication; transmitting the target protocol signaling to a VoIP server through a voice channel, and transmitting the target protocol signaling to a media gateway by the VoIP server; the media gateway converts the target protocol signaling into PSTN signaling to enable the external voice equipment to carry out voice communication with the target terminal in the PSTN, thereby solving the problem that the external voice equipment in the FTTR or PON can not access the PSTN.

Description

Method and device for accessing external voice equipment to PSTN (public switched telephone network) based on FTTR (fiber to the Home) or PON (Passive optical network)
Technical Field
The application relates to the technical field of communication and provides a method and a device for accessing external voice equipment to PSTN based on FTTR or PON.
Background
Now that the voice traffic of operators has completely transitioned to the internet voice transport protocol (Voice Over Internet Protocol, voIP), voIP is mainly through the SIP/H248 protocol to enable negotiations and conversations. Normally, such VOIP communications are typically made through fiber-to-the-air (Fiber to the Room, FTTR)/plain ordinary telephone service ports (Plain Old Telephone Service Port, POTS) of gateways in passive optical networks (Passive Optical Network, PON) and telephone sets connected by telephone lines to make telephone calls to communicate with other PSTN subscribers in public switched telephone networks (Public Switched Telephone Network, PSTN). However, the conventional telephone has a single function, and the use rate of the conventional telephone is not high in most families at present.
Many voice devices are now emerging which not only provide more entertainment functions, but also can perform some call functions through voice commands, such as simulating phone off-hook, dial-up, talk, and on-hook operations. However, the common voice equipment can only access part of the private servers to make a user call in a small range, and cannot access the PSTN of the operator to make a call with other external PSTN users.
Disclosure of Invention
The embodiment of the application provides a method and a device for accessing external voice equipment to PSTN based on FTTR or PON, which are used for solving the problem that the external voice equipment in the FTTR or PON cannot access to PSTN.
In a first aspect, a method for accessing an external voice device to a PSTN based on FTTR or PON is provided, which is applied to a gateway device of an optical fiber to room FTTR network or passive optical network PON, and the method includes:
receiving an internal protocol signaling sent by external voice equipment; the internal protocol signaling is converted by external voice equipment according to a voice command and equipment information of the external voice equipment, wherein the voice command is used for dialing a target terminal in a public switched telephone network PSTN;
converting the internal protocol signaling into target protocol signaling; the target protocol signaling is a protocol signaling for realizing VoIP communication;
transmitting the target protocol signaling to a VoIP server through a voice channel, so that the VoIP server transmits the target protocol signaling to a media gateway; the media gateway is configured to convert the target protocol signaling into PSTN signaling, so that the external voice device and the target terminal perform a voice call.
Optionally, the converting the internal protocol signaling into the target protocol signaling includes:
analyzing the internal protocol signaling to obtain the voice command;
generating an operation instruction of the external voice equipment according to the voice instruction;
converting the operation instruction into a virtual Digital Signal Processing (DSP) event;
and generating a target protocol signaling according to the DSP event.
Optionally, the device information includes an IP address and a port number; the sending the target protocol signaling to the VoIP server through a voice channel includes:
analyzing the internal protocol signaling to obtain an IP address and a port number of the external voice equipment;
determining a target voice channel from a plurality of voice channels according to the IP address and the port number of the external voice equipment;
and sending the target protocol signaling to a VoIP server through the target voice channel.
Optionally, the gateway device pre-stores a plurality of policy routing tables, each policy routing table is used for indicating a routing relationship between each external voice device and the voice channel;
the determining a target voice channel from a plurality of voice channels according to the IP address and the port number of the external voice device includes:
judging whether the plurality of strategy routing tables comprise the strategy routing table of the external voice equipment according to the IP address and the port number of the external voice equipment;
if not, selecting an idle voice channel from the voice channels as a target voice channel.
Optionally, after selecting an idle voice channel from the plurality of voice channels as the target voice channel, the method further includes:
and creating a strategy routing table of the external voice equipment according to the IP address and the port number of the external voice equipment and the IP address and the port number of the target voice channel.
Optionally, after determining whether the plurality of policy routing tables includes the policy routing table of the external voice device according to the IP address and the port number of the external voice device, the method further includes:
if yes, determining a target voice channel corresponding to the external voice equipment according to the strategy routing table of the external voice equipment.
Optionally, the sending the target protocol signaling to the VoIP server through the target voice channel includes:
if the gateway equipment is restarted or the lease of the IP address of the target voice channel expires, automatically acquiring the IP address of the external voice equipment, and converting the source address of the target protocol signaling from the IP address of the external voice equipment to the IP address of the target voice channel;
and sending the target protocol signaling to a VoIP server through the target voice channel.
In a second aspect, there is provided an apparatus for accessing an external voice device based on an FTTR or PON to a PSTN, the apparatus being disposed in a gateway device of an optical fiber-to-room FTTR network or a passive optical network PON, the apparatus comprising:
the receiving module is used for receiving the internal protocol signaling sent by the external voice equipment; the internal protocol signaling is converted by external voice equipment according to a voice command and equipment information of the external voice equipment, wherein the voice command is used for dialing a target terminal in a public switched telephone network PSTN;
the signaling conversion module is used for converting the internal protocol signaling into target protocol signaling; the target protocol signaling is a protocol signaling for realizing VoIP communication;
the sending module is used for sending the target protocol signaling to a VoIP server through a voice channel so that the VoIP server sends the target protocol signaling to a media gateway; the media gateway is configured to convert the target protocol signaling into PSTN signaling, so that the external voice device and the target terminal perform a voice call.
In a third aspect, the present application provides a gateway device, where the gateway device includes a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement the method for accessing the external voice device based on FTTR or PON to the PSTN in the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium, where a computer program is stored on the computer readable storage medium, and a processor executes the computer program to implement the method for accessing the external voice equipment based on FTTR or PON to the PSTN in the first aspect.
Compared with the prior art, the beneficial effects of the embodiment of the application are as follows:
the embodiment of the application provides a method for accessing external voice equipment to PSTN based on FTTR or PON, which is applied to gateway equipment of a fiber-to-room FTTR network or a passive optical network PON, and comprises the following steps: receiving an internal protocol signaling sent by external voice equipment; the internal protocol signaling is converted by the external voice equipment according to a voice command and equipment information of the external voice equipment, wherein the voice command is used for dialing a target terminal in a public switched telephone network PSTN; converting the internal protocol signaling into target protocol signaling; the target protocol signaling is a protocol signaling for realizing the internet voice transmission protocol (VoIP) communication; transmitting the target protocol signaling to the VoIP server through a voice channel so that the VoIP server transmits the target protocol signaling to the media gateway; the media gateway is used for converting the target protocol signaling into PSTN signaling so as to enable the external voice equipment and the target terminal to carry out voice communication. The gateway device of the FTTR or the PON converts the internal protocol signaling of the external voice device into the target protocol signaling capable of realizing VoIP communication and then sends the target protocol signaling to the VoIP server, so that the problem that the external voice device in the FTTR or the PON cannot be accessed into the PSTN is solved, and voice communication between the external voice device and a PSTN user is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to the provided drawings without inventive effort for a person having ordinary skill in the art.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a method for accessing an external voice device based on FTTR or PON to a PSTN according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an apparatus for accessing an external voice device based on FTTR or PON to a PSTN according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure. Embodiments and features of embodiments in this application may be combined with each other arbitrarily without conflict. Also, while a logical order is depicted in the flowchart, in some cases, the steps depicted or described may be performed in a different order than presented herein.
In order to solve the problem that external voice equipment in an FTTR or a PON cannot access a PSTN, the application provides a method for accessing the external voice equipment based on the FTTR or the PON to the PSTN, and the method is applied to gateway equipment of the FTTR or the PON. The following description is made for some simple descriptions of application scenarios applicable to the technical solutions of the embodiments of the present application, and it should be noted that the application scenarios described below are only used for illustrating the embodiments of the present application and are not limiting. In the specific implementation process, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
Referring to fig. 1, a schematic application scenario is provided in an embodiment of the present application, where the application scenario includes an external voice device, an FTTR/PON gateway, a VoIP server, a media gateway, and a PSTN.
The external voice equipment refers to equipment with entertainment function and conversation function, such as intelligent sound box equipment, and the external voice equipment can be connected to an FTTR/PON gateway, namely an FTTR or PON gateway equipment. The gateway device plays a role of a bridge connecting the user side and the optical fiber network side in the FTTR or PON network, so that the user can obtain high-speed broadband access and other communication services through the optical fiber network. The FTTR/PON gateway is connected to a VoIP server, which is a server for providing an internet-based voice communication service, which implements telephone calls and other voice communication functions by converting voice data into digital signals and transmitting them through the internet.
The VoIP server is connected to a media gateway, which is a network device for connecting different types of communication networks, allowing interworking and switching between the different networks. The media gateway is connected to the PSTN, which is a global telephone network used mainly for traditional voice communications, and is a circuit-switched network that establishes a dedicated communication channel (or circuit) for making calls between two telephone subscribers, which is the original, most widely used form of telephone network. The PSTN has access to both residential and mobile telephone user terminals.
It should be noted that, fig. 1 is an example of hanging an external voice device under the FTTR/PON gateway, and the number of external voice devices is not limited in practice. Fig. 1 illustrates two terminals, i.e., a residential user and a mobile phone user, connected to the PSTN, and is not limited in number.
The application scenario of the embodiment of the present application is introduced above, and the method for accessing the external voice equipment based on FTTR or PON shown in fig. 2 to the PSTN is described below with reference to the application scenario of fig. 1.
S201, an internal protocol signaling sent by external voice equipment is received.
The internal protocol signaling is converted by the external voice device according to the voice command and the device information of the external voice device, for example, (JavaScript Object Notation, JSON), (Type-Length-Value, TLV), and JSON is a lightweight data exchange format, which represents structured data in a text form easy to read and write, and performs data exchange between various programming languages. The TLV is a data encoding format that divides data into three parts, i.e., type, length, and value, and combines them in a specific format so that the receiving party can properly parse and process the data. The voice command is used to dial a target terminal in the PSTN, which may be a residential, commercial, government and public agency, mobile telephone user, international user, etc. terminal in the PSTN. The device information is used for uniquely identifying the position of the external voice device, and the device information comprises an IP address and a port number.
In the implementation process, a user wants to dial a target terminal in the PSTN network, and can say that: after receiving the voice command of the user, the external voice device firstly converts the voice command into an internal protocol signaling (JSON/TLV) and then sends the internal protocol signaling (JSON/TLV) to the gateway device in the FTTR or PON, so that the gateway device receives the internal protocol signaling sent by the external voice device.
S202, converting the internal protocol signaling into target protocol signaling.
The target protocol signaling is protocol signaling for implementing VoIP communication, such as session initiation protocol (Session Initiation Protocol, SIP), H248.SIP is an application-layer control protocol for setting up, modifying and terminating multimedia sessions (e.g., voice calls, video calls, etc.), and h.248 is a protocol for controlling a media gateway for controlling the media gateway to ensure proper transmission and management of media streams.
In the specific implementation process, the external voice equipment and the gateway equipment of the FTTR/PON realize independent protocols based on non-SIP/H248, the internal protocol signaling may be data in JSON or TLV format, the gateway equipment can directly analyze the data of the internal protocol signaling, and then the data is inserted into the original function of the voice application layer management module of the gateway equipment in a function interface mode, so that the target protocol signaling is generated.
Considering that the method of directly inserting function interfaces needs to insert more function interface processing logic in the original voice framework, which is not beneficial to the later maintenance. Thus, in one possible embodiment, a virtual digital signal processing (Digital Signal Processing, DSP) mechanism is designed, comprising the following steps:
analyzing the internal protocol signaling to obtain a voice instruction; generating an operation instruction of external voice equipment according to the voice instruction; converting the operation instruction into a virtual DSP event; and generating a target protocol signaling according to the DSP event.
In a specific implementation process, the external voice equipment can operate by using operation instructions such as off-hook, on-hook, answering, refusing, dialing and the like. The voice command and the operation command are corresponding, for example, the voice command is "make a call", the operation command is an off-hook call operation, for example, the voice command is "hang-up", and the operation command is an on-hook operation.
For example, DSP events corresponding to respective operation instructions are shown in table 1.
TABLE 1
For example, if the voice command received by the external voice device is "dial xx", the corresponding operation command is a LOCAL off-hook call operation, the LOCAL off-hook call operation is converted into a virtual DSP event (ext_local_call), and the virtual DSP event (ext_local_call) and the original DSP event (ext_local_call) are processed in the same manner, so as to generate the target protocol signaling.
In the embodiment of the application, a function interface penetration mode is not adopted, but a virtual DSP mechanism is redesigned, and the mechanism constructs the operations of off-hook, on-hook, answering, refusing, dialing and the like of the external voice equipment into virtual DSP events, so that the virtual DSP events and the original DSP events are processed identically, and the change of the original processing framework can be reduced.
And S203, the target protocol signaling is sent to the VoIP server through a voice channel, so that the VoIP server sends the target protocol signaling to the media gateway.
In one possible embodiment, the gateway device may parse the internal protocol signaling to obtain the IP address and the port number of the external voice device; determining a target voice channel from a plurality of voice channels according to the IP address and the port number of the external voice equipment; and sending the target protocol signaling to the VoIP server through the target voice channel.
Because the gateway device of the FTTR/PON contains multiple types of channels such as data and voice, the data traffic of the down-hook device of the gateway device defaults to data traffic, and cannot be forwarded through the voice channel. Therefore, in the embodiment of the present application, the target voice channel is determined according to the IP address and the port number of the external voice device, and the target protocol signaling can be sent to the VoIP server through the target voice channel.
Further, after receiving the target protocol signaling, the VoIP server sends the target protocol signaling to the media gateway, and the media gateway is configured to convert the target protocol signaling into PSTN signaling, so that the external voice device and the target terminal perform a voice call. PSTN Signaling such as Signaling System 7 (SS 7), SS7 is a communication protocol used for Signaling and switching in telephone networks.
Considering that the gateway device may have a plurality of external voice devices suspended from it, in one possible embodiment, the gateway device pre-stores a plurality of policy routing tables, each policy routing table being used to indicate a routing relationship between each external voice device and a voice channel. The gateway device can judge whether the plurality of policy routing tables comprise the policy routing table of the external voice device according to the IP address and the port number of the external voice device; if not, selecting an idle voice channel from the voice channels as a target voice channel.
In a specific implementation process, after the gateway device obtains the IP address and the port number of the external voice device, sequentially searching a plurality of pre-stored policy routing tables, if the IP address and the port number of the external voice device are not searched, determining that the plurality of policy routing tables do not include the policy routing table of the external voice device, and selecting an idle voice channel from the plurality of voice channels as a target voice channel.
In one possible embodiment, after selecting the idle voice channel from the plurality of voice channels as the target voice channel, the gateway device may further create a policy routing table of the external voice device according to the IP address and the port number of the external voice device and the IP address and the port number of the target voice channel.
In the implementation process, since the gateway device can hang down the voice device and other non-voice devices, after the gateway device obtains the IP address and the port number by analyzing the internal protocol signaling, the gateway device performs matching, determines that the IP address and the port number belong to the voice device, and MARKs the external voice device with a custom MARK (MARK), for example, 0x70, through the iptables MARK function, thereby ensuring that only the data stream of the external voice device is marked.
Further, since the gateway device has a plurality of voice channels, and performs routing by using a policy routing method, a policy routing table based on Firewall Mark (fwmark) matching can be created for a limited period, and the fwmark value is also 0x70. And creating a default route in the policy routing table, wherein the default route is used for sending out the signaling and voice data streams of the external voice equipment through a designated voice channel. And a return route can be created in the policy routing table, and the return route is used for forwarding the signaling and voice data stream received by the appointed voice channel to the external voice equipment.
In the embodiment of the application, when the policy routing table of the external voice equipment does not exist in the gateway equipment, the policy routing table of the external voice equipment is created, and when the subsequent gateway equipment receives the data traffic of the external voice equipment, the data traffic of the external voice equipment can be directly forwarded according to the policy routing table.
In one possible embodiment, after the gateway device determines whether the plurality of policy routing tables include the policy routing table of the external voice device according to the device information of the external voice device, if so, determining a target voice channel corresponding to the external voice device according to the policy routing table of the external voice device.
Further, after the gateway device determines the target voice channel, the source address and the source port number of the target protocol signaling may be converted from the IP address and the port number of the external voice device to the IP address and the port number of the target voice channel through a source address conversion (Source Network Address Translation, SNAT) function in the iptables, so that the target protocol signaling is sent to the VoIP server through the target voice channel.
In this embodiment of the present application, the gateway device may convert, through the SNAT function, a source IP address and a source port number of a signaling and data flow sent by the external voice device into an IP address and a port number of a voice channel of the FTTR/PON gateway, and may also convert, subsequently, a destination address and a destination port number of a signaling and data flow sent by the VoIP server into an IP address and a port number of the external voice device.
In an actual network, the IP address of the voice channel may not be unique, and after the gateway device is restarted or the lease of the IP address of the voice channel expires, the IP address of each voice channel may be updated, so that the IP address of each voice channel may be monitored in real time, and the IP addresses of the target voice channels in the policy routing tables may be updated in real time.
Considering that the real-time monitoring and real-time updating processes are complicated, in one possible embodiment, if the gateway device is restarted or the lease of the IP address of the target voice channel expires, automatically acquiring the IP address of the external voice device, and converting the source address of the target protocol signaling from the IP address of the external voice device to the IP address of the target voice channel; and sending the target protocol signaling to the VoIP server through the target voice channel.
In a specific implementation process, an address MASQUERADE (MASQUERADE) function of iptabs is used, and MASQUERADE is a special case of source address translation (Source Network Address Translation, SNAT), so that an automatic SNAT function can be implemented, and an IP address of a specified network card can be automatically acquired and source address translation can be implemented.
In order to more clearly illustrate the method for accessing the external voice equipment to the PSTN based on the FTTR or the PON, the whole flow of accessing the external voice equipment to the PSTN is introduced.
S1.1, the user informs the external voice equipment through a voice instruction, such as dialing other mobile phone users.
S1.2, the external voice equipment converts the voice instruction into an internal protocol signaling (JSON/TLV) and sends the internal protocol signaling (JSON/TLV) to gateway equipment of the FTTR/PON.
S1.3, gateway equipment of the FTTR/PON converts internal protocol signaling (JSON/TLV) into SIP/H248 protocol signaling through the method provided by the embodiment of the application, and then sends the SIP/H248 protocol signaling to a VoIP server of an operator through a voice channel.
S1.4, the VoIP server sends the SIP/H248 protocol signaling to the media gateway.
S1.5, the media gateway converts the SIP/H248 protocol into PSTN signaling (such as SS 7) and performs signaling negotiation with other PSTN subscribers.
S1.6, after the negotiation is completed, starting to perform normal voice call.
In summary, the embodiments of the present application provide a method for accessing an external voice device to a PSTN based on FTTR or PON, which converts signaling and data flow of external voice into signaling and data flow of SIP/H248 in an FTTR/PON gateway, thereby solving the problem that external voice device in FTTR or PON cannot access to PSTN. The user can not only communicate with the PSTN through the customized external voice equipment, but also use the entertainment function of the external voice equipment. Because the manual off-hook key is not needed, the operation is only needed through the voice instruction, the physical limitation of the telephone line in the house is broken through, and the telephone can be dialed at will. And simultaneously, the utilization rate of the voice service of the operator is improved.
Based on the same inventive concept, as shown in fig. 3, an embodiment of the present application further provides a device for accessing an external voice device to a PSTN based on FTTR or PON, where the device includes:
the receiving module is used for receiving the internal protocol signaling sent by the external voice equipment; the internal protocol signaling is converted by the external voice equipment according to a voice command and equipment information of the external voice equipment, wherein the voice command is used for dialing a target terminal in a public switched telephone network PSTN;
the conversion module is used for converting the protocol signaling in the VoIP server into target protocol signaling; the target protocol signaling is a protocol signaling for realizing the internet voice transmission protocol (VoIP) communication;
the sending module is used for sending the target protocol signaling to the VoIP server through the voice channel so that the VoIP server sends the target protocol signaling to the media gateway; the media gateway is used for converting the target protocol signaling into PSTN signaling so as to enable the external voice equipment and the target terminal to carry out voice communication.
Optionally, the signaling conversion module is specifically configured to:
analyzing the internal protocol signaling to obtain a voice instruction;
generating an operation instruction of external voice equipment according to the voice instruction;
converting the operation instruction into a virtual Digital Signal Processing (DSP) event;
and generating a target protocol signaling according to the DSP event.
Optionally, the device information includes an IP address and a port number; the device for accessing the external voice equipment to the PSTN based on the FTTR or the PON further comprises an analysis module and a voice channel determination module;
the analysis module is used for: analyzing the internal protocol signaling to obtain the IP address and port number of the external voice equipment;
the voice channel determining module is used for: determining a target voice channel from a plurality of voice channels according to the IP address and the port number of the external voice equipment;
the sending module is specifically used for: and sending the target protocol signaling to the VoIP server through the target voice channel.
Optionally, the gateway device pre-stores a plurality of policy routing tables, each policy routing table is used for indicating a routing relationship between each external voice device and the voice channel;
the voice channel determining module is specifically configured to:
judging whether the plurality of strategy routing tables comprise the strategy routing table of the external voice equipment according to the IP address and the port number of the external voice equipment; if not, selecting an idle voice channel from the voice channels as a target voice channel.
Optionally, the device for accessing the external voice equipment based on the FTTR or the PON to the PSTN further includes a route creation module, where the route creation module is configured to:
after selecting an idle voice channel from a plurality of voice channels as a target voice channel, creating a strategy routing table of the external voice device according to the IP address and the port number of the external voice device and the IP address and the port number of the target voice channel.
Optionally, the voice channel determining module is further configured to:
after judging whether the plurality of strategy routing tables comprise the strategy routing tables of the external voice equipment according to the IP address and the port number of the external voice equipment, if so, determining a target voice channel corresponding to the external voice equipment according to the strategy routing tables of the external voice equipment.
Optionally, the device for accessing the external voice equipment based on the FTTR or PON to the PSTN further includes an address conversion module, where the address conversion module is configured to:
if the gateway equipment is restarted or the IP address lease of the target voice channel expires, automatically acquiring the IP address of the external voice equipment, and converting the source address of the target protocol signaling from the IP address of the external voice equipment to the IP address of the target voice channel;
the sending module is specifically used for: and sending the target protocol signaling to the VoIP server through the target voice channel.
It should be noted that, each module in the device for accessing the external voice device based on the FTTR or the PON to the PSTN in the embodiment is in one-to-one correspondence with each step in the method for accessing the external voice device based on the FTTR or the PON to the PSTN in the foregoing embodiment, so that a specific implementation of the embodiment may refer to an implementation of the method for accessing the external voice device based on the FTTR or the PON to the PSTN, which is not described herein again.
Based on the same inventive concept, the application also provides a gateway device, which comprises a processor, a memory and a computer program stored in the memory, wherein the computer program is executed by the processor to realize the method for accessing the external voice device based on the FTTR or the PON to the PSTN.
Based on the same inventive concept, the application also provides a computer storage medium, wherein a computer program is stored on the computer storage medium, and when the computer program is run by a processor, the method for accessing the external voice equipment based on the FTTR or the PON to the PSTN is realized.
In some embodiments, the computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; but may be a variety of devices including one or any combination of the above memories. The computer may be a variety of computing devices including smart terminals and servers.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, the executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a hypertext markup language (HTML, hyper Text Markup Language) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or, alternatively, distributed across multiple sites and interconnected by a communication network.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of embodiments, it will be clear to a person skilled in the art that the above embodiment method may be implemented by means of software plus a necessary general hardware platform, but may of course also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read-only memory/random-access memory, magnetic disk, optical disk), comprising several instructions for causing a multimedia terminal device (which may be a mobile phone, a computer, a television receiver, or a network device, etc.) to perform the method described in the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. A method for accessing external voice equipment to PSTN based on FTTR or PON, which is applied to gateway equipment of an optical fiber to room FTTR network or passive optical network PON, the method comprising:
receiving an internal protocol signaling sent by external voice equipment; the internal protocol signaling is converted by external voice equipment according to a voice command and equipment information of the external voice equipment, wherein the voice command is used for dialing a target terminal in a public switched telephone network PSTN;
converting the internal protocol signaling into target protocol signaling; the target protocol signaling is a protocol signaling for realizing VoIP communication;
transmitting the target protocol signaling to a VoIP server through a voice channel, so that the VoIP server transmits the target protocol signaling to a media gateway; the media gateway is configured to convert the target protocol signaling into PSTN signaling, so that the external voice device and the target terminal perform a voice call.
2. The method for accessing the PSTN by the external voice equipment based on FTTR or PON of claim 1, wherein converting the internal protocol signaling to target protocol signaling comprises:
analyzing the internal protocol signaling to obtain the voice command;
generating an operation instruction of the external voice equipment according to the voice instruction;
converting the operation instruction into a virtual Digital Signal Processing (DSP) event;
and generating a target protocol signaling according to the DSP event.
3. The method for accessing an external voice device based on FTTR or PON to PSTN according to claim 1, wherein the device information comprises an IP address and a port number; the sending the target protocol signaling to the VoIP server through a voice channel includes:
analyzing the internal protocol signaling to obtain an IP address and a port number of the external voice equipment;
determining a target voice channel from a plurality of voice channels according to the IP address and the port number of the external voice equipment;
and sending the target protocol signaling to a VoIP server through the target voice channel.
4. The method for accessing an external voice device based on FTTR or PON to PSTN as claimed in claim 3, wherein the gateway device pre-stores a plurality of policy routing tables, each policy routing table being used for indicating a routing relationship between each external voice device and a voice channel;
the determining a target voice channel from a plurality of voice channels according to the IP address and the port number of the external voice device includes:
judging whether the plurality of strategy routing tables comprise the strategy routing table of the external voice equipment according to the IP address and the port number of the external voice equipment;
if not, selecting an idle voice channel from the voice channels as a target voice channel.
5. The method for accessing a PSTN by an external voice device based on FTTR or PON of claim 4, wherein after selecting an idle voice channel from a plurality of voice channels as a target voice channel, the method further comprises:
and creating a strategy routing table of the external voice equipment according to the IP address and the port number of the external voice equipment and the IP address and the port number of the target voice channel.
6. The method for accessing an external voice device to a PSTN based on FTTR or PON of claim 4, wherein after determining whether the plurality of policy routing tables includes the policy routing table of the external voice device according to an IP address and a port number of the external voice device, the method further comprises:
if yes, determining a target voice channel corresponding to the external voice equipment according to the strategy routing table of the external voice equipment.
7. The method for accessing the PSTN by the external voice equipment based on FTTR or PON as claimed in any one of claims 4 or 6, wherein the transmitting the target protocol signaling to the VoIP server through the target voice channel comprises:
if the gateway equipment is restarted or the lease of the IP address of the target voice channel expires, automatically acquiring the IP address of the external voice equipment, and converting the source address of the target protocol signaling from the IP address of the external voice equipment to the IP address of the target voice channel;
and sending the target protocol signaling to a VoIP server through the target voice channel.
8. An apparatus for accessing an external voice device to a PSTN based on an FTTR or PON, the apparatus being disposed in a gateway device of an optical fiber-to-room FTTR network or a passive optical network PON, the apparatus comprising:
the receiving module is used for receiving the internal protocol signaling sent by the external voice equipment; the internal protocol signaling is converted by external voice equipment according to a voice command and equipment information of the external voice equipment, wherein the voice command is used for dialing a target terminal in a public switched telephone network PSTN;
the signaling conversion module is used for converting the internal protocol signaling into target protocol signaling; the target protocol signaling is a protocol signaling for realizing VoIP communication;
the sending module is used for sending the target protocol signaling to a VoIP server through a voice channel so that the VoIP server sends the target protocol signaling to a media gateway; the media gateway is configured to convert the target protocol signaling into PSTN signaling, so that the external voice device and the target terminal perform a voice call.
9. Gateway device, characterized in that it comprises a memory in which a computer program is stored and a processor executing the computer program, implementing a method for accessing an external voice device based on FTTR or PON to a PSTN according to any one of claims 1-7.
10. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and a processor executes the computer program to implement the method for accessing the PSTN by the external voice equipment based on FTTR or PON as set forth in any one of claims 1-7.
CN202410242379.0A 2024-03-04 2024-03-04 Method and device for accessing external voice equipment to PSTN (public switched telephone network) based on FTTR (fiber to the Home) or PON (Passive optical network) Pending CN117834330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410242379.0A CN117834330A (en) 2024-03-04 2024-03-04 Method and device for accessing external voice equipment to PSTN (public switched telephone network) based on FTTR (fiber to the Home) or PON (Passive optical network)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410242379.0A CN117834330A (en) 2024-03-04 2024-03-04 Method and device for accessing external voice equipment to PSTN (public switched telephone network) based on FTTR (fiber to the Home) or PON (Passive optical network)

Publications (1)

Publication Number Publication Date
CN117834330A true CN117834330A (en) 2024-04-05

Family

ID=90506143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410242379.0A Pending CN117834330A (en) 2024-03-04 2024-03-04 Method and device for accessing external voice equipment to PSTN (public switched telephone network) based on FTTR (fiber to the Home) or PON (Passive optical network)

Country Status (1)

Country Link
CN (1) CN117834330A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001071993A1 (en) * 2000-03-21 2001-09-27 Siemens Aktiengesellschaft Method for providing telephone services through xdsl connection lines
JP2004096326A (en) * 2002-08-30 2004-03-25 Ricoh Co Ltd Network communication device and its communication controlling method, network communication system, program, and record medium
CN1527550A (en) * 2003-03-06 2004-09-08 华为技术有限公司 IP access method and system of phonetic service
CN1588899A (en) * 2004-08-04 2005-03-02 北京朗通环球科技有限公司 Terminal cut-in control deviced and multimedia communication system based on internet protocol
CN1795643A (en) * 2003-03-12 2006-06-28 个人软件公司 Extension of a local area phone system to a wide area network with handoff
CN101478617A (en) * 2008-12-31 2009-07-08 中国电信股份有限公司 Method, system, household gateway and USB wireless device for implementing VOIP voice
CN101796805A (en) * 2007-09-04 2010-08-04 富士通株式会社 Access gateway and its operation method
CN117544727A (en) * 2023-12-04 2024-02-09 电子科技大学长三角研究院(湖州) Built-in phone system of household intelligent sound box and implementation method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001071993A1 (en) * 2000-03-21 2001-09-27 Siemens Aktiengesellschaft Method for providing telephone services through xdsl connection lines
JP2004096326A (en) * 2002-08-30 2004-03-25 Ricoh Co Ltd Network communication device and its communication controlling method, network communication system, program, and record medium
CN1527550A (en) * 2003-03-06 2004-09-08 华为技术有限公司 IP access method and system of phonetic service
CN1795643A (en) * 2003-03-12 2006-06-28 个人软件公司 Extension of a local area phone system to a wide area network with handoff
CN1588899A (en) * 2004-08-04 2005-03-02 北京朗通环球科技有限公司 Terminal cut-in control deviced and multimedia communication system based on internet protocol
CN101796805A (en) * 2007-09-04 2010-08-04 富士通株式会社 Access gateway and its operation method
CN101478617A (en) * 2008-12-31 2009-07-08 中国电信股份有限公司 Method, system, household gateway and USB wireless device for implementing VOIP voice
CN117544727A (en) * 2023-12-04 2024-02-09 电子科技大学长三角研究院(湖州) Built-in phone system of household intelligent sound box and implementation method

Similar Documents

Publication Publication Date Title
CA2826256C (en) A network abstraction gateway and corresponding method to abstract an endpoint
US7957366B2 (en) IP telephone system, IP telephone apparatus and calling method
CN101305560B (en) Method and communication system for selecting a transmission mode for transmitting useful data
CN102265635A (en) Methods and communications node for routing communications using a bi-level addressing scheme
US20080175223A1 (en) Method and apparatus for providing multiple calling name identifiers for a phone number
US20110305238A1 (en) Communication apparatus for hosted-pbx service
KR101469575B1 (en) Distribution of a call to all terminals connected to one gateway
US10389762B2 (en) Method, system and apparatus for causing a communication client to join a media-over-packet communication session
CN117834330A (en) Method and device for accessing external voice equipment to PSTN (public switched telephone network) based on FTTR (fiber to the Home) or PON (Passive optical network)
GB2494136A (en) Processing requests in a telecommunications network
Cisco Configuring Dial Plans, Dial Peers, and Digit Manipulation
Cisco Dial Plan Management
JP4372160B2 (en) Telephone exchange system
Cisco Dial Peer Enhancements
US7443866B2 (en) System and method for switching a connection
US20080069311A1 (en) Recording calls in a telecommunication network
Cisco Using CiscoWorks2000 Voice Manager 2.0 to Manage Dial Plans
CN100440831C (en) Method for centralized controlling intra-domain number resource in sound network
US20080279364A1 (en) Communication apparatus and remote control method used in communication system
JP4249680B2 (en) Private telephone system and extension telephone accommodation method
EP0998109B1 (en) A communication network utilizing autonomous servers to establish a communication session
KR100527905B1 (en) GATEWAY FOR VoIP
JP7458602B1 (en) Network determination device, network determination method, network determination program, and connected network information providing system
JP4796945B2 (en) Telephone exchange system
KR20030063063A (en) Method and Apparatus for Exchanging a Rout of Telephone Call by Using an IP-PBX

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination