CN116208479B - Voice port matching method, system, electronic equipment and readable storage medium - Google Patents

Voice port matching method, system, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116208479B
CN116208479B CN202211585530.8A CN202211585530A CN116208479B CN 116208479 B CN116208479 B CN 116208479B CN 202211585530 A CN202211585530 A CN 202211585530A CN 116208479 B CN116208479 B CN 116208479B
Authority
CN
China
Prior art keywords
voice
gateway
port
mapping
ports
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.)
Active
Application number
CN202211585530.8A
Other languages
Chinese (zh)
Other versions
CN116208479A (en
Inventor
刘波
杨太
许勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202211585530.8A priority Critical patent/CN116208479B/en
Publication of CN116208479A publication Critical patent/CN116208479A/en
Application granted granted Critical
Publication of CN116208479B publication Critical patent/CN116208479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/102Gateways
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention belongs to the technical field of gateway equipment, and particularly relates to a voice port matching method, a system, electronic equipment and a readable storage medium, aiming at solving the problems that manual debugging is adopted for voice port matching at present, and time and labor are wasted.

Description

Voice port matching method, system, electronic equipment and readable storage medium
Technical Field
The invention belongs to the technical field of gateway equipment, and particularly relates to a voice port matching method, a voice port matching system, electronic equipment and a readable storage medium.
Background
The government enterprise gateway is core interconnection equipment of the enterprise network, and is used for realizing interconnection and interworking between the government enterprise network and the external network and meeting the requirement of multi-path telephones of enterprise users.
The telephone function of the government enterprise gateway is realized by the collocation of a software voice protocol and a hardware voice chip. The voice protocol typically uses the SIP or Megaco protocols; for example, when the SIP protocol is adopted, each telephone of the government enterprise gateway has a voice account number of the SIP protocol on software, and has a physical interface of a voice chip on hardware, and the two interfaces need to be in one-to-one correspondence to ensure that the telephone service functions normally, which is also called as voice service in the government enterprise gateway.
However, because the types of the gateway devices are diversified, and the appearance voice ports of the gateways with different types are not in one-to-one correspondence with the voice ports of the voice chip, as shown in fig. 1 to 3, the appearance voice ports of the gateways with two types are not in sequential correspondence with the voice ports of the voice chip, and when the gateways with two types are faced, manual debugging is usually required, so that the one-to-one correspondence between the voice ports of the voice chip and the appearance voice ports is realized, and then the one-to-one correspondence between the voice ports of the voice chip and the voice account numbers is realized.
Disclosure of Invention
In order to solve the technical problems in the prior art, the invention provides a voice port matching method, a voice port matching system, electronic equipment and a readable storage medium, which aim to solve the problems of time and labor waste of the existing voice port matching method.
In order to solve the technical problems, the invention adopts the following technical scheme:
a voice port matching method comprising the steps of:
Establishing mapping relations between chip voice ports of different gateway models and gateway appearance voice ports in a storage medium;
The processing module invokes the mapping relation to obtain a mapping relation corresponding to the chip voice port and the gateway appearance voice port;
and realizing the normal operation of telephone service functions based on the obtained mapping relation.
The invention establishes the mapping relation aiming at the corresponding relation between the chip voice ports of different gateway types and the gateway appearance voice port, so that the mapping relation is imported into the gateway in the actual matching process of the gateway voice ports, and the mapping relation is called through the processing module, thereby obtaining the mapping relation of the voice port of the gateway, realizing the one-to-one correspondence between the voice ports of the voice chip and the appearance voice port, and further realizing the one-to-one correspondence between the voice ports of the voice chip and the voice account.
The mapping relation can realize multiplexing, namely the voice port matching of gateway equipment with the same model can be realized only by establishing the mapping table once.
Further, the mapping relation is an array type port mapping table, and the header of the array type port mapping table corresponds to the gateway model.
Further, before the mapping relation is called, the processing module firstly obtains the model of the physical machine gateway, and traverses the array port mapping table in the storage medium based on the model of the physical machine gateway to obtain the voice port mapping relation corresponding to the model of the physical machine gateway.
Further, after the processing module obtains the mapping relation, the mapping relation is transmitted to the driving layer through ioctl, so that normal operation of telephone service functions is realized.
A voice port matching system, comprising:
The storage medium is used for storing mapping relations between chip voice ports of different gateway models and gateway appearance voice ports, wherein the mapping relations are array type port mapping tables, and the table heads of the array type port mapping tables correspond to the gateway models;
The processor calls the array type port mapping table based on the gateway model of the physical machine to obtain a mapping relation corresponding to the chip voice port and the gateway appearance voice port; and the normal operation of telephone service functions is realized by transmitting the ioctl to a driving layer of the gateway.
An electronic device comprising a memory, a processor and a computer program stored in the memory and executable in the processor, the processor implementing the method of the invention when executing the computer program.
A computer readable storage medium storing a computer program which, when executed by a processor, implements the method of the invention.
The beneficial effects of the invention include:
The invention establishes the mapping relation aiming at the corresponding relation between the chip voice ports of different gateway types and the gateway appearance voice port, so that the mapping relation is imported into the gateway in the actual matching process of the gateway voice ports, and the mapping relation is called through the processing module, thereby obtaining the mapping relation of the voice port of the gateway, realizing the one-to-one correspondence between the voice ports of the voice chip and the appearance voice port, and further realizing the one-to-one correspondence between the voice ports of the voice chip and the voice account.
The mapping relation can realize multiplexing, namely the voice port matching of gateway equipment with the same model can be realized only by establishing the mapping table once.
Drawings
Fig. 1 is a schematic diagram of a first type of government enterprise gateway in the form of a voice port sequence.
Fig. 2 is a schematic diagram of a second type of government enterprise gateway appearance voice port sequence.
Fig. 3 is a schematic diagram of the voice chip voice port sequence of the first and second government enterprise gateways.
FIG. 4 is a schematic diagram of application layer and driver layer interactions.
Fig. 5 is a schematic diagram of a correspondence between a chip voice port and an appearance voice port of a first government enterprise gateway.
Fig. 6 is a schematic diagram of a correspondence between a chip voice port and an appearance voice port of a second government enterprise gateway.
Fig. 7 is a flow chart and a corresponding relation diagram of the voice port matching relation transmitted through ioctl in the present invention.
Fig. 8 is a schematic diagram of a line number determination process according to the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of 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, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
The invention is described in further detail below in connection with fig. 1 and 2:
a voice port matching method comprising the steps of:
Establishing mapping relations between chip voice ports of different gateway models and gateway appearance voice ports in a storage medium, wherein the mapping relations are array type port mapping tables, and the table heads of the array type port mapping tables correspond to the gateway models;
the processing module obtains the gateway model of the physical machine, traverses the array port mapping table in the storage medium based on the gateway model of the physical machine, and obtains the mapping relation of the voice port corresponding to the gateway model of the physical machine.
After the processing module obtains the mapping relation, the mapping relation is transmitted to a driving layer through ioctl, so that normal operation of telephone service functions is realized.
The invention establishes the mapping relation aiming at the corresponding relation between the chip voice ports of different gateway types and the gateway appearance voice port, so that the mapping relation is imported into the gateway in the actual matching process of the gateway voice ports, and the mapping relation is called through the processing module, thereby obtaining the mapping relation of the voice port of the gateway, realizing the one-to-one correspondence between the voice ports of the voice chip and the appearance voice port, and further realizing the one-to-one correspondence between the voice ports of the voice chip and the voice account.
The mapping relation can realize multiplexing, namely the voice port matching of gateway equipment with the same model can be realized only by establishing the mapping table once.
Taking the government enterprise gateway shown in fig. 1 and 2 as an example:
In FIGS. 1 and 2, a 16-way voice port government enterprise gateway is disclosed, and the voice ports (appearance voice ports) on the shells of the two government enterprise gateways are not in the same order; as can be seen from fig. 3, the actual order of the voice chips is different from the actual order of the appearance voice ports.
At present, a Linux system is used as a software platform (application layer) by an enterprise gateway, an SIP voice protocol is used at the application layer to realize external interaction and management of voice account numbers, and a driving layer is used for realizing input and output of voice signals according to a driving module corresponding to an actually used voice chip; 16 routes of voice there are 16 voice accounts, 16 routes, from route 0 to route 15 at the application layer. The driver layer also has 16 voice ports, from port 0 to port 15 corresponding to the 16 voice chip physical ports on the hardware.
Lines 0 to 15 of the application layer are sequentially bound with and correspond to apparent voice ports 1 to 16, namely, a voice account number of line 0 corresponds to voice port 1, a voice account number of line 1 corresponds to voice port 2 … …, and so on.
The voice ports 0 to 15 of the driving layer do not sequentially correspond to the lines 0 to 15 of the application layer, and corresponding matching correspondence is needed when the application layer and the driving layer interact. The interaction between the application layer and the driving layer is realized by means of ioctl and netlink messages, and the structure of the interaction is shown in a fourth diagram.
The mapping relation between the chip voice ports and the appearance voice ports of the government enterprise gateways with different types is established in the storage medium, and as shown in fig. 5 and 6, the mapping relation between the chip voice ports and the appearance voice ports with two types is shown;
the invention abstracts 16 paths of voice into an array with the length of 16, and the array is also called an array type port mapping table (portmap); the indexes 0 to 15 of the array type port mapping table correspond to lines 0 to 15, and each element in the array corresponds to a different physical port. Therefore, the different orders of the voice ports on the appearance can be matched correspondingly by changing the element arrangement in the array;
Array corresponding to fig. 5: portmap1[16] = {0,1,4,5,8,9,12,13,2,3,6,7,10,11,14,15};
array corresponding to fig. 6: portmap2[16] = {0,1,4,5,2,3,6,7,8,9,12,13,10,11,14,15};
In particular, to the implementation of software, when a certain line of a user layer needs to operate a corresponding voice port, the voice port is distinguished by a line number, the index of the line number is portmap (port mapper), an element of the line number can be found according to the portmap index before ioctl, the element is a corresponding hardware port number, and the element is transferred to a driving layer through ioctl (I/O channel management function) to be correspondingly correct. The flow and the corresponding relation are shown in the figure seven.
When a certain physical port of the driving layer needs to return data to the application layer, the data are distinguished by port numbers, the port numbers are transmitted to the application layer through the Netlink message, the port numbers correspond to one data element in portmap, after the application layer receives the port numbers, indexes of corresponding elements in portmap are reversely found according to the values of the port numbers, and then the corresponding line numbers are found. The flow and the corresponding relation are shown in the figure eight.
The method can be realized in the driving layer, namely, the line number of the application layer is transferred to the driving layer through ioctl and then converted into the corresponding port number, and the port number of the driving layer is transferred to the application layer through netlink information after being converted.
The method is not only used for the government enterprise gateway of 16 paths of voice, but also used for the government enterprise gateway of various paths of voice ports. And when the order of the voice ports is unchanged in appearance and the order of the physical ports on hardware is changed, the arrangement order of the array elements of portmap can be modified. As long as the actual voice physical port order in the hardware is known, it can be implemented using different portmap sequences, called voice port sequence index matching.
A voice port matching system, comprising:
The storage medium is used for storing mapping relations between chip voice ports of different gateway models and gateway appearance voice ports, wherein the mapping relations are array type port mapping tables, and the table heads of the array type port mapping tables correspond to the gateway models;
The processor calls the array type port mapping table based on the gateway model of the physical machine to obtain a mapping relation corresponding to the chip voice port and the gateway appearance voice port; and the normal operation of telephone service functions is realized by transmitting the ioctl to a driving layer of the gateway.
An electronic device comprising a memory, a processor and a computer program stored in the memory and executable in the processor, the processor implementing the method of the invention when executing the computer program.
A computer readable storage medium storing a computer program which, when executed by a processor, implements the method of the invention.
The above examples merely illustrate specific embodiments of the application, which are described in more detail and are not to be construed as limiting the scope of the application. It should be noted that it is possible for a person skilled in the art to make several variants and modifications without departing from the technical idea of the application, which fall within the scope of protection of the application.

Claims (6)

1. A method for voice port matching, comprising the steps of:
Establishing mapping relations between chip voice ports of different gateway models and gateway appearance voice ports in a storage medium;
The processing module invokes the mapping relation to obtain a mapping relation corresponding to the chip voice port and the gateway appearance voice port;
realizing normal operation of telephone service functions based on the obtained mapping relation;
The mapping relation is an array type port mapping table, and the header of the array type port mapping table corresponds to the gateway model.
2. The method for matching voice ports according to claim 1, wherein the processing module first obtains a physical machine gateway model before invoking the mapping relationship, and traverses an array port mapping table in the storage medium based on the physical machine gateway model to obtain a voice port mapping relationship corresponding to the physical machine gateway model.
3. The voice port matching method according to claim 1, wherein the processing module obtains the mapping relation and transmits the mapping relation to the driving layer through ioctl to realize normal operation of telephone service functions.
4. A voice port matching system, comprising:
The storage medium is used for storing mapping relations between chip voice ports of different gateway models and gateway appearance voice ports, wherein the mapping relations are array type port mapping tables, and the table heads of the array type port mapping tables correspond to the gateway models;
The processor calls the array type port mapping table based on the gateway model of the physical machine to obtain a mapping relation corresponding to the chip voice port and the gateway appearance voice port; and the normal operation of telephone service functions is realized by transmitting the ioctl to a driving layer of the gateway.
5. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable in the processor, characterized in that the processor implements the method of any of claims 1 to 3 when executing the computer program.
6. A computer readable storage medium storing a computer program, which when executed by a processor performs the method of any one of claims 1 to 3.
CN202211585530.8A 2022-12-09 2022-12-09 Voice port matching method, system, electronic equipment and readable storage medium Active CN116208479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211585530.8A CN116208479B (en) 2022-12-09 2022-12-09 Voice port matching method, system, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211585530.8A CN116208479B (en) 2022-12-09 2022-12-09 Voice port matching method, system, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN116208479A CN116208479A (en) 2023-06-02
CN116208479B true CN116208479B (en) 2024-05-28

Family

ID=86506690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211585530.8A Active CN116208479B (en) 2022-12-09 2022-12-09 Voice port matching method, system, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116208479B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101406008A (en) * 2006-06-29 2009-04-08 华为技术有限公司 Method, apparatus and system for supporting transparent proxy by wireless access gateway
CN101489005A (en) * 2009-02-27 2009-07-22 杭州华三通信技术有限公司 Method, system and device for VoIP number allocation
CN201813391U (en) * 2009-11-20 2011-04-27 北京五岳鑫信息技术股份有限公司 Signaling-voice acquisition gateway
KR20130094501A (en) * 2012-02-16 2013-08-26 한국과학기술원 Interactive toy for audio communication with physical interface
CN103684855A (en) * 2013-11-29 2014-03-26 中国电子科技集团公司第三十研究所 Intelligent control method for cluster routers
CN111262738A (en) * 2020-01-16 2020-06-09 广东优力普物联科技有限公司 Terminal equipment information binding method and device, switch and storage medium
CN112231249A (en) * 2020-10-29 2021-01-15 上海摩勤智能技术有限公司 Terminal equipment compatible with multiple communication interfaces and control method thereof
CN112468356A (en) * 2019-09-09 2021-03-09 北京奇虎科技有限公司 Router interface testing method and device, electronic equipment and storage medium
CN213043974U (en) * 2020-10-29 2021-04-23 贵州申邦电气有限公司 Automatic integrated collection equipment of power dispatching data
CN114327262A (en) * 2021-12-10 2022-04-12 山东云海国创云计算装备产业创新中心有限公司 Method and device for maintaining port mapping for intelligent network card
CN115129392A (en) * 2022-06-27 2022-09-30 深圳云豹智能有限公司 Chip configuration method and device, computer equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101406008A (en) * 2006-06-29 2009-04-08 华为技术有限公司 Method, apparatus and system for supporting transparent proxy by wireless access gateway
CN101489005A (en) * 2009-02-27 2009-07-22 杭州华三通信技术有限公司 Method, system and device for VoIP number allocation
CN201813391U (en) * 2009-11-20 2011-04-27 北京五岳鑫信息技术股份有限公司 Signaling-voice acquisition gateway
KR20130094501A (en) * 2012-02-16 2013-08-26 한국과학기술원 Interactive toy for audio communication with physical interface
CN103684855A (en) * 2013-11-29 2014-03-26 中国电子科技集团公司第三十研究所 Intelligent control method for cluster routers
CN112468356A (en) * 2019-09-09 2021-03-09 北京奇虎科技有限公司 Router interface testing method and device, electronic equipment and storage medium
CN111262738A (en) * 2020-01-16 2020-06-09 广东优力普物联科技有限公司 Terminal equipment information binding method and device, switch and storage medium
CN112231249A (en) * 2020-10-29 2021-01-15 上海摩勤智能技术有限公司 Terminal equipment compatible with multiple communication interfaces and control method thereof
CN213043974U (en) * 2020-10-29 2021-04-23 贵州申邦电气有限公司 Automatic integrated collection equipment of power dispatching data
CN114327262A (en) * 2021-12-10 2022-04-12 山东云海国创云计算装备产业创新中心有限公司 Method and device for maintaining port mapping for intelligent network card
CN115129392A (en) * 2022-06-27 2022-09-30 深圳云豹智能有限公司 Chip configuration method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
G.729A在语音网关(VoIP)中的应用;杨召青;李艳翔;;广西通信技术;20080915(03);全文 *

Also Published As

Publication number Publication date
CN116208479A (en) 2023-06-02

Similar Documents

Publication Publication Date Title
EP0367455A2 (en) Phone management server for use with a personal computer lan
US5649005A (en) PC with telephony exchange function
CN103856361A (en) Method and system for realizing remote debugging
US6088361A (en) Timed division multiplex bus connection controller
JP4565748B2 (en) Exchange system and message processing method thereof
CN100558109C (en) The load balancing implementation method and the system of dialogue-based initiation protocol
CN101518039A (en) Methods, systems and computer program products for routing and processing ENUM queries
CN102571575A (en) Session information creation method, device and system
CN107547346A (en) A kind of message transmitting method and device
CN1135792C (en) Method to configure a communication link for data transmission
CN108667817A (en) Message converting system and message forwarding method
US20030063720A1 (en) Platform for rapid development of telecommunications services
CN116208479B (en) Voice port matching method, system, electronic equipment and readable storage medium
CN102123083A (en) Intelligent application network
CN114679418A (en) Data transmission method, electronic device, and storage medium
CN109769242A (en) Communication means, system, MMTel and computer readable storage medium
CN107592225A (en) A kind of system and method for merging physical machine, virtual machine and capacitor network and setting
CN101404609B (en) Data exchange method, apparatus and system
CN1163019C (en) Network intercommunication service emulator
EP0978043A4 (en) Methods and apparatus for controlling digital communications switching equipment
CN102801877B (en) Interactive voice response (IVR)-free virtual switchboard service method and system
US8391279B2 (en) Modem and calling packet processing method thereof
CN104639605A (en) System, device and method for automatically adding friends for social communication software
CN103312688B (en) A kind of Packet driven method based on SOCKET
WO2021063369A1 (en) Method and device for message processing and network equipment

Legal Events

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