CN112333301B - Method and device for realizing class extension - Google Patents

Method and device for realizing class extension Download PDF

Info

Publication number
CN112333301B
CN112333301B CN202011147605.5A CN202011147605A CN112333301B CN 112333301 B CN112333301 B CN 112333301B CN 202011147605 A CN202011147605 A CN 202011147605A CN 112333301 B CN112333301 B CN 112333301B
Authority
CN
China
Prior art keywords
voice port
call
hook
extension
port
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
CN202011147605.5A
Other languages
Chinese (zh)
Other versions
CN112333301A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202011147605.5A priority Critical patent/CN112333301B/en
Publication of CN112333301A publication Critical patent/CN112333301A/en
Application granted granted Critical
Publication of CN112333301B publication Critical patent/CN112333301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/003Telephone sets using electrooptical means in the transmission path

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method and a device for realizing a class extension, and relates to the technical field of voice in optical fiber communication. The implementation method comprises the following steps: connecting each voice port of the optical fiber access equipment with a telephone; when a certain voice port is off-hook and the R key pressing or hook flash operation is not detected, the phone connected with the voice port can directly dial other phones; when a certain voice port is off-hook and the operation of pressing an R key or a hook switch is detected, judging the state of the corresponding voice port according to the voice port identification input by a user; and establishing a common two-party call, a similar extension two-party call or a similar extension three-party call according to the state of the corresponding voice port and the condition that whether the off-hook voice port is selected to join the call. The invention can freely dial other telephones, the sound intensity of the extension telephone can not be reduced, a junction box or a switchboard is not needed, the equipment cost is saved, and the requirements of various application scenes can be met.

Description

Method and device for realizing class extension
Technical Field
The invention relates to the technical field of voice in optical fiber communication, in particular to a method and a device for realizing extension sets.
Background
With the popularization of optical fiber communication technology and the development of voice technology, the application demand of users on voice communication is gradually increased, and more users and places need to realize extension functions.
At present, for a home user, an extension function is usually realized based on a home gateway, and specifically, the extension function is realized by the following two ways: firstly, the telephone is directly connected through an expansion port of the telephone; and secondly, connecting the multiple telephones through a 1-minute-N junction box. The first mode can cause disordered layout of the home telephone line, is not attractive and influences user perception; meanwhile, as the extension set does not independently supply power, when the extension set is used, the sound intensity is reduced, and the voice quality is influenced. The second method also has a problem of low sound intensity. Moreover, the two implementation manners have a common disadvantage that when one of the telephones is in a call, the extension telephone is off-hook, and then only the call can be added, but not other numbers can be dialed.
For enterprise users, when implementing the extension function, besides using the access device, the telephone needs to be connected through the switch. Such an implementation not only increases user costs, but also increases the complexity of the network topology.
Disclosure of Invention
The invention aims to overcome the defects of the background technology, and provides a method and a device for realizing the extension-like unit, which can freely dial other telephone sets, can not reduce the sound intensity of the extension set, does not need to use a junction box or a switchboard, saves the equipment cost, and can meet the requirements of various application scenes.
In order to achieve the above purpose, the present invention provides a method for implementing a class extension, which comprises the following steps:
connecting each voice port of the optical fiber access equipment with a telephone;
when a certain voice port is off-hook and the R key pressing or hook flash operation is not detected, the phone connected with the voice port can directly dial other phones;
when a certain voice port is off-hook and the operation of pressing an R key or a hook switch is detected, judging the state of the corresponding voice port according to the voice port identification input by a user; and establishing a common two-party call, a similar extension two-party call or a similar extension three-party call according to the state of the corresponding voice port and the condition that whether the off-hook voice port is selected to join the call.
On the basis of the above technical solution, the state of the corresponding voice port includes: not in a call, in a two-party call, in a three-party call;
the establishing of the common two-party call, the class extension two-party call or the class extension three-party call according to the state of the corresponding voice port and the condition that whether the off-hook voice port is selected to join the call comprises the following steps:
if the state of the corresponding voice port is not in the call, the off-hook voice port does not need to select whether to join the call, dial tone is directly played, and the connected phone can establish a common two-party call with other phones through dialing;
if the corresponding voice port is in a two-party call state and the off-hook voice port selects to join the call, establishing the two-party call of the extension class;
if the corresponding voice port is in a three-party call state and the off-hook voice port selects to join the call, establishing the three-party call of the extension-like machine;
if the corresponding voice port is in a two-party call or a three-party call, but the off-hook voice port selects not to add the call, the dial tone is directly played, and the connected phone can establish a common two-party call with other phones through dialing.
On the basis of the technical scheme, establishing the two-party call of the extension class specifically comprises the following steps:
the voice port of off-hook and the corresponding voice port select RTP stream parameters according to the SDP information of the last conversation of the voice port and the corresponding voice port; the RTP stream parameters comprise transmission parameters and coding and decoding parameters, the transmission parameters comprise IP and UDP ports, and the coding and decoding parameters comprise packing intervals;
the off-hook voice port and the corresponding voice port establish the communication between the two according to the RTP stream parameters selected by the two parties;
and carrying out local sound mixing processing on the corresponding voice port to complete the establishment of the two-party call of the extension-like set.
On the basis of the technical scheme, establishing three-way conversation of the extension-like set specifically comprises the following steps:
the corresponding voice port modifies the RTP stream destination port of an external phone which is communicated with the corresponding voice port through SDP information, so that the destination address and the destination port of the RTP stream of the external phone are changed into off-hook voice ports;
the voice port of off-hook and the corresponding voice port select RTP stream parameters according to the SDP information of the last conversation of the voice port and the corresponding voice port; the RTP stream parameters comprise transmission parameters and coding and decoding parameters, the transmission parameters comprise IP and UDP ports, and the coding and decoding parameters comprise packing intervals;
the off-hook voice port and the corresponding voice port establish the communication between the two according to the RTP stream parameters selected by the two parties;
and establishing three parties on the corresponding voice port and completing corresponding sound mixing processing, and establishing three parties on the off-hook voice port and completing corresponding sound mixing processing to realize the establishment of three-party communication of the extension-like set.
On the basis of the technical scheme, the optical fiber access equipment is the optical fiber access equipment supporting the voice service, and comprises home gateway equipment, MDU equipment and MSAN equipment.
On the basis of the technical scheme, the voice port identification is the number of an internally appointed class extension or the telephone number of other class extensions with different numbers.
The invention also provides a device for realizing the extension class, which comprises optical fiber access equipment, wherein each voice port of the optical fiber access equipment is connected with a telephone, and an operation detection module, a state judgment module and a call establishment module are arranged in the optical fiber access equipment;
the operation detection module is configured to: when a certain voice port is off-hook, detecting whether the voice port has the operation of pressing an R key or a hook flash;
the state determination module is configured to: when a certain voice port is off-hook and the operation detection module detects that the voice port has an R key pressing or hook flash operation, judging the state of the corresponding voice port according to the voice port identification input by a user;
the call establishing module is used for: and establishing a common two-party call, a similar extension two-party call or a similar extension three-party call according to the state of the corresponding voice port obtained by the state judgment module and the condition whether the off-hook voice port selects to join the call.
On the basis of the above technical solution, the state of the corresponding voice port obtained by the state determination module includes: not in a call, in a two-party call, in a three-party call;
the call establishing module establishes a common two-party call, a class extension two-party call or a class extension three-party call according to the state of the corresponding voice port obtained by the state judging module and the condition that whether the off-hook voice port selects to join the call, and specifically comprises the following steps:
if the corresponding voice port is not in a call, the call establishing module selects whether to join the call without the voice port which is off-hook, directly plays a dial tone, and establishes a common two-party call with other phones according to the dial of the user;
if the corresponding voice port is in a two-party call state and the off-hook voice port selects to join the call, the call establishing module establishes a two-party call of the extension class;
if the corresponding voice port is in a three-party call state and the off-hook voice port selects to join the call, the call establishing module establishes a three-party call of the extension-like set;
and if the corresponding voice port is in a two-party call state or a three-party call state, but the off-hook voice port is selected not to be added with the call, the call establishing module directly plays a dial tone and establishes a common two-party call with other telephones according to the dialing of the user.
On the basis of the technical scheme, each voice port of the optical fiber access equipment is provided with a sound mixing module, and the sound mixing module is used for completing three-party sound mixing processing;
the call establishing module establishes a call between two parties of the extension class, and the specific flow comprises the following steps:
the call establishing module controls a voice port of off-hook and the corresponding voice port, and the two parties select RTP stream parameters according to SDP information of respective last call; the RTP stream parameters comprise transmission parameters and coding and decoding parameters, the transmission parameters comprise IP and UDP ports, and the coding and decoding parameters comprise packing intervals;
the conversation establishing module controls a voice port of off-hook and the corresponding voice port to establish conversation between the two according to RTP stream parameters selected by the two parties;
and the call establishing module performs local sound mixing processing by using the sound mixing module on the corresponding voice port to complete the establishment of the call between the two parties of the extension.
On the basis of the technical scheme, each voice port of the optical fiber access equipment is provided with a sound mixing module, and the sound mixing module is used for completing three-party sound mixing processing;
the call establishing module establishes three-party call of the extension class, and the specific flow comprises the following steps:
the call establishing module controls the corresponding voice port to modify an RTP stream destination port of an external phone which is in call with the corresponding voice port through SDP information, so that a destination address and a destination port of an RTP stream of the external phone are changed into off-hook voice ports;
the call establishing module controls a voice port of off-hook and the corresponding voice port, and the two parties select RTP stream parameters according to SDP information of respective last call; the RTP stream parameters comprise transmission parameters and coding and decoding parameters, the transmission parameters comprise IP and UDP ports, and the coding and decoding parameters comprise packing intervals;
the conversation establishing module controls a voice port of off-hook and the corresponding voice port to establish conversation between the two according to RTP stream parameters selected by the two parties;
the call establishing module establishes three parties by using the sound mixing module on the corresponding voice port and completes corresponding sound mixing processing, and establishes three parties by using the sound mixing module on the off-hook voice port and completes corresponding sound mixing processing, so that the establishment of three-party call of the extension-like machine is realized.
The invention has the beneficial effects that:
in the invention, each voice port of the optical fiber access equipment is connected with a telephone, so that the connected telephones can become similar extension sets. Because each class extension has a respective voice port and has independent power supply, when the function of the class extension is realized, the problem of reduction of the voice intensity of the telephone set can not occur, and the voice quality is effectively ensured. And the voice port of each extension has a separate voice processing function, when a certain voice port is off-hook and no R key press or hook flash operation is detected, the phone connected with the voice port can directly dial any other phone without concerning the states of other voice ports, thereby solving the problem of the prior art that dialing is not free. Meanwhile, when the off-hook voice port wants to actively monitor or join in the call of other voice ports, a common two-party call, a similar extension two-party call or a similar extension three-party call can be established according to the state of the corresponding voice port, so that various application scene requirements can be met. In addition, by adopting the scheme of the invention, the function of the class extension can be realized without additional equipment such as a junction box or a switchboard, and the equipment cost is effectively saved.
Drawings
Fig. 1 is a flowchart of a method for implementing a class extension in an embodiment of the present invention;
fig. 2 is a schematic diagram of an RTP session when a call between two parties of a similar extension is established;
FIG. 3 is a schematic diagram of an RTP session before a three-way call of a class extension set is established;
fig. 4 is a schematic diagram of an RTP session after establishing a three-way call of an extension-like set.
Detailed Description
Aiming at the problems that in the prior art, when a household user realizes an extension function, the telephone is directly connected through an extension port of the telephone or connected with a plurality of telephones through a 1-minute-N junction box, so that the wiring of the telephone is disordered, the sound intensity is reduced, the voice quality is influenced, and other numbers cannot be freely dialed; and when the enterprise users realize the extension function, the telephone needs to be additionally connected through the switchboard, so that the problems of high cost of user equipment, high complexity of network topology and the like exist.
The invention aims to provide a method and a device for realizing extension-like units, which can not only make the household wiring more flexible and beautiful, but also avoid the volume reduction of the extension unit, ensure the voice quality, and also can freely dial other numbers; meanwhile, a junction box or a switch is not needed, so that the equipment cost is saved, resources can be used more sufficiently, and the actual use requirement is met. The class extension is an extension which has the function of the traditional extension and also supports the configuration of the same telephone number.
The main design concept is as follows: existing fiber optic access devices typically have two or even more voice ports. However, due to various reasons, a general user only uses one of the voice ports, which causes a waste of resources. The invention uses the existing characteristics of two or even a plurality of voice ports of the existing optical fiber access equipment to connect each voice port of the optical fiber access equipment with the telephone, so that the connected telephone can become a similar extension set. Because each class extension has a respective voice port and has independent power supply, when the function of the class extension is realized, the problem of reduction of the voice intensity of the telephone set can not occur, and the voice quality is effectively ensured. Moreover, the voice port of each extension has a separate voice processing function, when a certain voice port is off-hook and no R key press or hook flash operation is detected, the phone connected with the voice port can directly dial any other phone without concerning the states of other voice ports, thereby solving the problem of the prior art that dialing is not free. And when the off-hook voice port wants to actively monitor or join in the call of other voice ports, a common two-party call, a similar extension two-party call or a similar extension three-party call can be established according to the state of the corresponding voice port, so that various application scene requirements can be met. In addition, by adopting the scheme of the invention, the function of the class extension can be realized without additional equipment such as a junction box or a switchboard, and the equipment cost is effectively saved.
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
However, it should be noted that: the examples to be described next are only some specific examples, and are not intended to limit the embodiments of the present invention necessarily to the following specific steps, values, conditions, data, orders, and the like. Those skilled in the art can, upon reading this specification, utilize the concepts of the present invention to construct more embodiments than those specifically described herein.
Example one
Referring to fig. 1, the present embodiment provides an implementation method of a class extension, where the implementation method includes the following steps:
A. each voice port of the optical fiber access equipment is connected with a telephone, so that the connected telephones become class extensions, and the class extensions also support the configuration of the same telephone number on the basis of having the functions of the traditional extensions, namely the class extensions can be the same number or different numbers. It can be understood that the optical fiber access device in this embodiment is an optical fiber access device supporting voice services, including but not limited to: home gateway equipment, MDU (Multiple Dwelling Unit) equipment, and MSAN (Multi-Service Access Network) equipment. In practical application, for a home user, the Optical fiber access device may be a home gateway ONU (Optical Network Unit); for enterprise users, the fiber access device may be an MDU device or an MSAN device.
B. When a certain voice port is off-hook and the R key pressing or hook flash operation is not detected, the phone connected with the voice port can directly dial other phones without concerning the states of other voice ports. It will be appreciated that when a user goes off-hook and does not press the R-key or hook flash, it is generally indicated that the user only wants to dial other phones and does not want to listen to or join a call on other voice ports. In this case, the phone connected with the off-hook voice port can directly dial other phones without concerning the states of other voice ports; the other phones include any external phone and any extension class inside (i.e. the phone to which any other voice port under the same optical fiber access device is connected). When the user goes off the hook and presses the R key or hook flash, it usually indicates that the user wants to listen to or join the call on another voice port. For this case, it will be described in the next step, which is not described herein.
C. When a certain voice port is off-hook and the operation of pressing an R key or a hook switch is detected, judging the state of a corresponding voice port (namely, other extension sets corresponding to the voice port identification input by the user) according to the voice port identification input by the user; and establishing a common two-party call, a similar extension two-party call or a similar extension three-party call according to the state of the corresponding voice port and the condition that whether the off-hook voice port is selected to join the call. It will be appreciated that when a user goes off-hook and makes an R-key or hook flash operation, this typically indicates that the user wants to listen to or join a call on another voice port. At this time, the user can also input the voice port identification of other voice ports which are wanted to be actively monitored or added while pressing the R key or performing hook flash operation. The voice port identification can be an internally agreed class extension number or a telephone number of other class extensions with different numbers. Specifically, when the voice port of the off-hook is the same number as other voice ports which are required to be actively monitored or added, the input voice port identification is an internally agreed class extension number; when the off-hook voice port and other voice ports which are wanted to be actively monitored or added are different numbers, the input voice port identification can be directly the telephone number of the extension.
As can be seen from the above operations, in this embodiment, each voice port of the optical fiber access device is connected to a telephone, so that the connected telephone can become an extension-like device. Because each class extension has a respective voice port and has independent power supply, when the function of the class extension is realized, the problem of reduction of the voice intensity of the telephone set can not occur, and the voice quality is effectively ensured. In addition, in this embodiment, when a certain voice port is off-hook and no R-key pressing or hook flash operation is detected, the phone connected to the voice port can directly dial other phones without considering the states of other voice ports, thereby solving the problem that in the prior art, when one phone is in a call, the extension set can only join the call and cannot dial other numbers after being off-hook. In addition, when the off-hook voice port wants to actively monitor or join in the call of other voice ports, a common two-party call, a similar extension two-party call or a similar extension three-party call can be established according to the state of the corresponding voice port, so that various application scene requirements are met. It can be understood that, in the embodiment of the present invention, the ordinary two-party call refers to an application scenario in which the similar extension sets establish a call with any other phone (including any external phone and any other similar extension set inside) by direct dialing; the two-party call of the class extension refers to the situation that a certain class extension already establishes a common two-party call with other telephones, and the class extension which is off-hook currently selects to join in the application scene of the call (similar to a common three-party call); the three-party call of the similar extension sets means that a certain similar extension set already establishes a common three-party call with other two telephones, and the currently off-hook similar extension set selects to join in an application scene of the call (similar to a common four-party call).
Further, as an optional implementation manner, in step C, the state of the corresponding voice port includes: not in a call, in a two-party call, in a three-party call. On the basis, in the step C, according to the state of the corresponding voice port and the condition whether the off-hook voice port selects to join the call, establishing a common two-party call, a similar extension two-party call or a similar extension three-party call, specifically comprising:
if the state of the corresponding voice port is not in the call, the off-hook voice port does not need to select whether to join the call, dial tones are directly played, and the connected phone can establish a common two-party call with other phones (including any external phone and any internal extension phone) through dialing;
if the state of the corresponding voice port is in two-party communication and the off-hook voice port selects to join in the communication, establishing two-party communication of the extension class; it can be understood that, as an alternative implementation, when judging whether the off-hook voice port selects to join the call, the judgment can be made by pressing an R key or performing hook flash operation; if the R key or the hook flash is pressed, the voice port of the off-hook is selected to be added into the call, and if the R key or the hook flash is not pressed, the voice port of the off-hook is selected not to be added into the call;
if the state of the corresponding voice port is in a three-party call, and the off-hook voice port selects to join the call (R key pressing or hook flash operation), establishing the three-party call of the extension-like machine;
if the state of the corresponding voice port is in two-party communication or three-party communication, but the off-hook voice port selects not to add communication (no R key or hook flash operation), the dial tone is directly played, and the connected telephone can establish common two-party communication with other telephones (including any external telephone and any internal extension) through dialing.
Further, as an optional implementation manner, in step C of this embodiment, a specific flow of establishing a two-party call (similar to a common three-party call) of the extension-like set includes:
step 1, selecting RTP (Real-time Transport Protocol) stream parameters by a voice port which is off-hooked and the corresponding voice port according to SDP (Session Description Protocol) information of the last call of each voice port and the corresponding voice port; the RTP stream parameters comprise transmission parameters and coding and decoding parameters, wherein the transmission parameters comprise IP and UDP ports; the encoding and decoding parameters comprise packing intervals and the like; it can be understood that, since the two voice ports belong to one optical fiber access device, the same IP in the transmission parameters is the IP of the optical fiber access device, but the UDP ports are different;
step 2, the off-hook voice port and the corresponding voice port establish the communication between the two according to the RTP stream parameters selected by the two parties; it can be understood that, before the off-hook voice port is selected to join, the corresponding voice port has already established a call with the external telephone, that is, there is already one RTP session (one RTP session has two RTP streams) between the corresponding voice port and the external telephone; when the off-hook voice port establishes a call with the corresponding voice port, an RTP session is added at the moment, as shown in fig. 2;
and 3, carrying out local sound mixing processing on the corresponding voice port to complete the establishment of the two-party call of the class extension, wherein the off-hook voice port, the corresponding voice port and the external telephone can hear the sound mutually in pairs. It can be understood that, in practical applications, as shown in fig. 2, when FXS2 (voice port No. 2) is an off-hook voice port, and FXS1 (voice port No. 1) is a corresponding voice port selected according to a voice port identification input by a user, a local mixing process can be completed on FXS1 (voice port No. 1) by using the mixing module 1 provided therein. And when the off-hook voice port wants to quit the current call, the off-hook can be directly selected, then the corresponding voice port quits the three parties, and the previously established call is restored, namely the call established between the corresponding voice port and the external phone.
Further, as an optional implementation manner, in step C of this embodiment, a specific flow of establishing a three-way call (similar to a normal four-way call) of an extension-like device includes:
step 1, the corresponding voice port modifies the RTP stream destination port of one of the external phones through the SDP information, so that the destination address and the destination port of the RTP stream of one of the external phones are changed into off-hook voice ports (because the IP of the two voice ports are the same, the destination address and the destination port of the RTP stream of the external phone can be pointed to the off-hook voice ports only by modifying the RTP stream destination port of the external phone); it can be understood that, as shown in fig. 3, before the off-hook voice port (i.e., FXS2 in fig. 3) chooses to join, the corresponding voice port (i.e., FXS1 in fig. 3) has established a three-way call with two external phones (i.e., external phone 1 and external phone 2 in fig. 3), i.e., there are two RTP sessions (four RTP streams) between the corresponding voice port and the two external phones, and local mixing processing is performed on the corresponding voice port (i.e., FXS1 in fig. 3); after the modification of step 1, the RTP session between the corresponding voice port (i.e. FXS1 in fig. 3) and one of the external phones (i.e. external phone 2 in fig. 3) is changed to the RTP session between the off-hook voice port (i.e. FXS2 in fig. 3) and the external phone (i.e. external phone 2 in fig. 3);
step 2, the voice port of off-hook and the corresponding voice port select RTP stream parameters according to the SDP information of the previous call; the RTP stream parameters comprise transmission parameters and coding and decoding parameters, wherein the transmission parameters comprise IP and UDP ports; the encoding and decoding parameters comprise packing intervals and the like; it can be understood that, since the two voice ports belong to one optical fiber access device, the same IP in the transmission parameters is the IP of the optical fiber access device, but the UDP ports are different;
step 3, the off-hook voice port and the corresponding voice port establish the communication between the two according to the RTP stream parameters selected by the two parties; it can be understood that, when the off-hook voice port establishes a call with the corresponding voice port, there are three RTP sessions in total at this time, as shown in fig. 4;
and 4, establishing three parties on the corresponding voice port and completing corresponding sound mixing processing, and establishing three parties on the off-hook voice port and completing corresponding sound mixing processing, so that the establishment of three-party communication of the extension-like machine is realized. Specifically, after three parties are established on the corresponding voice port, the completed mixing process includes: the RTP stream of the external phone with three parties (i.e. the RTP stream of the external phone 1 in fig. 4) and the RTP stream after three parties are established by the off-hook voice port (i.e. the RTP stream after mixing the voice port FXS2 in fig. 4 and the external phone 2) are mixed by the mixing module (e.g. the mixing module 1 in fig. 4) of the device, and then mixed. Similarly, after three parties are established on the off-hook voice port, the completed sound mixing process comprises the following steps: the RTP streams of the external phones with three parties established with the audio mixing module (e.g., the audio mixing module 2 in fig. 4) and the RTP streams of the external phones with three parties established with the corresponding audio ports (e.g., the RTP streams after the audio mixing of the corresponding audio port FXS1 and the external phone 1 in fig. 4) are mixed by using the audio mixing module (e.g., the audio mixing module 2 in fig. 4).
After the three-party conversation of the extension-like telephone is established, any one of the off-hook voice port, the corresponding voice port and the two external telephones can hear the voice of other three parties. In addition, it can be understood that, in practical application, when the off-hook voice port wants to quit the current call, the off-hook can be directly selected, and then the corresponding voice port changes the previously modified RTP stream destination address and destination port of the external phone back to itself through the SDP information, and establishes three parties with the two external phones again.
Example two
Based on the same conception, the embodiment of the invention also provides a device for realizing the extension class, which comprises the optical fiber access equipment, wherein each voice port of the optical fiber access equipment is connected with a telephone, so that the connected telephones become extension class, and the extension class also supports the configuration of the same telephone number on the basis of the function of the traditional extension.
The optical fiber access equipment is internally provided with an operation detection module, a state judgment module and a call establishment module. An operation detection module to: when a certain voice port is off-hook, whether the voice port has the operation of pressing an R key or a hook flash is detected. A state determination module to: when a certain voice port is off-hook and the operation detection module detects that the voice port has the operation of pressing an R key or a hook switch, the state of the corresponding voice port is judged according to the voice port identification input by the user. A call establishment module configured to: and establishing a common two-party call, a similar extension two-party call or a similar extension three-party call according to the state of the corresponding voice port obtained by the state judgment module and the condition whether the off-hook voice port selects to join the call.
Further, as an optional implementation manner, the state of the corresponding voice port obtained by the state determination module in this embodiment includes: not in a call, in a two-party call, in a three-party call. On this basis, the call establishing module establishes a common two-party call, a similar extension two-party call or a similar extension three-party call according to the state of the corresponding voice port obtained by the state judging module and the condition that whether the off-hook voice port selects to join the call, and specifically comprises the following steps:
if the corresponding voice port is not in a call, the call establishing module selects whether to join the call without the voice port which is off-hook, directly plays a dial tone, and establishes a common two-party call with other phones according to the dial of the user;
if the corresponding voice port is in a two-party call state and the off-hook voice port selects to join the call, the call establishing module establishes a two-party call of the extension class;
if the corresponding voice port is in a three-party call state and the off-hook voice port selects to join the call, the call establishing module establishes a three-party call of the extension-like set;
and if the corresponding voice port is in a two-party call state or a three-party call state, but the off-hook voice port is selected not to be added with the call, the call establishing module directly plays a dial tone and establishes a common two-party call with other telephones according to the dialing of the user.
Further, as an optional implementation manner, as shown in fig. 2 to 4, in this embodiment, each voice port of the optical fiber access device is provided with a mixing module, and the mixing module is configured to complete three-way mixing processing.
On this basis, the conversation establishing module establishes a conversation between two parties of the extension sets, and the specific flow comprises the following steps: controlling an off-hook voice port and the corresponding voice port, and selecting RTP stream parameters by the two parties according to SDP information of respective last conversation, wherein the RTP stream parameters comprise transmission parameters and coding and decoding parameters, and the transmission parameters comprise IP (Internet protocol) and UDP (user Datagram protocol) ports; the encoding and decoding parameters comprise packing intervals and the like; controlling the off-hook voice port and the corresponding voice port to establish a call between the two voice ports according to the RTP stream parameters selected by the two voice ports; and carrying out local sound mixing processing by using the sound mixing module on the corresponding voice port to complete the establishment of the two-party conversation of the similar extension.
On the same basis, the call establishing module establishes three-way call of the extension class, and the specific process comprises the following steps: controlling the corresponding voice port to modify an RTP stream destination port of an external phone which is communicated with the corresponding voice port through SDP information, so that the destination address and the destination port of the RTP stream of the external phone are changed into off-hook voice ports; controlling an off-hook voice port and the corresponding voice port, and selecting RTP stream parameters by the two parties according to SDP information of respective last conversation, wherein the RTP stream parameters comprise transmission parameters and coding and decoding parameters, and the transmission parameters comprise IP (Internet protocol) and UDP (user Datagram protocol) ports; the encoding and decoding parameters comprise packing intervals and the like; controlling the off-hook voice port and the corresponding voice port to establish a call between the two voice ports according to the RTP stream parameters selected by the two voice ports; and establishing three parties and completing corresponding sound mixing processing by using the sound mixing module on the corresponding voice port, and establishing three parties and completing corresponding sound mixing processing by using the sound mixing module on the off-hook voice port to realize the establishment of three-party call of the extension-like machine.
Note that: the above-described embodiments are merely examples and are not intended to be limiting, and those skilled in the art can combine and combine some steps and devices from the above-described separately embodiments to achieve the effects of the present invention according to the concept of the present invention, and such combined and combined embodiments are also included in the present invention, and such combined and combined embodiments are not described herein separately.
Advantages, effects, and the like, which are mentioned in the embodiments of the present invention, are only examples and are not limiting, and they cannot be considered as necessarily possessed by the various embodiments of the present invention. Furthermore, the foregoing specific details disclosed herein are merely for purposes of example and for purposes of clarity of understanding, and are not intended to limit the embodiments of the invention to the particular details which may be employed to practice the embodiments of the invention.
The block diagrams of devices, apparatuses, systems involved in the embodiments of the present invention are only given as illustrative examples, and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. As used in connection with embodiments of the present invention, the terms "or" and "refer to the term" and/or "and are used interchangeably herein unless the context clearly dictates otherwise. The word "such as" is used in connection with embodiments of the present invention to mean, and is used interchangeably with, the word "such as but not limited to".
The flow charts of steps in the embodiments of the present invention and the above description of the methods are merely illustrative examples and are not intended to require or imply that the steps of the various embodiments must be performed in the order presented. As will be appreciated by those skilled in the art, the order of the steps in the above embodiments may be performed in any order. Words such as "thereafter," "then," "next," etc. are not intended to limit the order of the steps; these words are only used to guide the reader through the description of these methods. Furthermore, any reference to an element in the singular, for example, using the articles "a," "an," or "the" is not to be construed as limiting the element to the singular.
In addition, the steps and devices in the embodiments of the present invention are not limited to be implemented in a certain embodiment, and in fact, some steps and devices in the embodiments of the present invention may be combined according to the concept of the present invention to conceive new embodiments, and these new embodiments are also included in the scope of the present invention.
The respective operations in the embodiments of the present invention may be performed by any appropriate means capable of performing the corresponding functions. The means may comprise various hardware and/or software components and/or modules including, but not limited to, hardware circuitry or a processor.
The method of an embodiment of the invention includes one or more acts for implementing the method described above. The methods and/or acts may be interchanged with one another without departing from the scope of the claims. In other words, unless a specific order of actions is specified, the order and/or use of specific actions may be modified without departing from the scope of the claims.
The functions in the embodiments of the present invention may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions on a tangible computer-readable medium. A storage media may be any available tangible media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other tangible medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. As used herein, disk (disk) and Disc (Disc) include Compact Disc (CD), laser Disc, optical Disc, DVD (Digital Versatile Disc), floppy disk and blu-ray Disc where disks reproduce data magnetically, while discs reproduce data optically with lasers.
Accordingly, a computer program product may perform the operations presented herein. For example, such a computer program product may be a computer-readable tangible medium having instructions stored (and/or encoded) thereon that are executable by one or more processors to perform the operations described herein. The computer program product may include packaged material.
Other examples and implementations are within the scope and spirit of the embodiments of the invention and the following claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hard-wired, or any combination of these. Features implementing functions may also be physically located at various locations, including being distributed such that portions of functions are implemented at different physical locations.
Various changes, substitutions and alterations to the techniques described herein may be made by those skilled in the art without departing from the techniques of the teachings as defined by the appended claims. Moreover, the scope of the claims of the present disclosure is not limited to the particular aspects of the process, machine, manufacture, composition of matter, means, methods and acts described above. Processes, machines, manufacture, compositions of matter, means, methods, or acts, presently existing or later to be developed that perform substantially the same function or achieve substantially the same result as the corresponding aspects described herein may be utilized. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or acts.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the invention to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof. And those not described in detail in this specification are within the skill of the art.

Claims (8)

1. A method for realizing class extension is characterized by comprising the following steps:
connecting each voice port of the optical fiber access equipment with a telephone;
when a certain voice port is off-hook and the R key pressing or hook flash operation is not detected, the phone connected with the voice port can directly dial other phones;
when a certain voice port is off-hook and the operation of pressing an R key or a hook switch is detected, judging the state of the corresponding voice port according to the voice port identification input by a user; establishing a common two-party call, a class extension two-party call or a class extension three-party call according to the state of the corresponding voice port and the condition whether the off-hook voice port selects to join the call; the state of the corresponding voice port includes: not in a call, in a two-party call, in a three-party call;
the establishing of the common two-party call, the class extension two-party call or the class extension three-party call according to the state of the corresponding voice port and the condition that whether the off-hook voice port is selected to join the call comprises the following steps:
if the state of the corresponding voice port is not in the call, the off-hook voice port does not need to select whether to join the call, dial tone is directly played, and the connected phone can establish a common two-party call with other phones through dialing;
if the corresponding voice port is in a two-party call state and the off-hook voice port selects to join the call, establishing the two-party call of the extension class;
if the corresponding voice port is in a three-party call state and the off-hook voice port selects to join the call, establishing the three-party call of the extension-like machine;
if the corresponding voice port is in a two-party call or a three-party call, but the off-hook voice port selects not to add the call, the dial tone is directly played, and the connected phone can establish a common two-party call with other phones through dialing.
2. A method for implementing a class extension as claimed in claim 1, characterized in that: establishing two-party conversation of the similar extension, wherein the specific flow comprises the following steps:
the voice port of off-hook and the corresponding voice port select RTP stream parameters according to the SDP information of the last conversation of the voice port and the corresponding voice port; the RTP stream parameters comprise transmission parameters and coding and decoding parameters, the transmission parameters comprise IP and UDP ports, and the coding and decoding parameters comprise packing intervals;
the off-hook voice port and the corresponding voice port establish the communication between the two according to the RTP stream parameters selected by the two parties;
and carrying out local sound mixing processing on the corresponding voice port to complete the establishment of the two-party call of the extension-like set.
3. A method for implementing a class extension as claimed in claim 1, characterized in that: establishing three-party conversation of the extension-like set, wherein the specific flow comprises the following steps:
the corresponding voice port modifies the RTP stream destination port of an external phone which is communicated with the corresponding voice port through SDP information, so that the destination address and the destination port of the RTP stream of the external phone are changed into off-hook voice ports;
the voice port of off-hook and the corresponding voice port select RTP stream parameters according to the SDP information of the last conversation of the voice port and the corresponding voice port; the RTP stream parameters comprise transmission parameters and coding and decoding parameters, the transmission parameters comprise IP and UDP ports, and the coding and decoding parameters comprise packing intervals;
the off-hook voice port and the corresponding voice port establish the communication between the two according to the RTP stream parameters selected by the two parties;
and establishing three parties on the corresponding voice port and completing corresponding sound mixing processing, and establishing three parties on the off-hook voice port and completing corresponding sound mixing processing to realize the establishment of three-party communication of the extension-like set.
4. A method for implementing a class extension according to any one of claims 1 to 3, characterized in that: the optical fiber access equipment is optical fiber access equipment supporting voice services and comprises home gateway equipment, MDU equipment and MSAN equipment.
5. A method for implementing a class extension according to any one of claims 1 to 3, characterized in that: the voice port identification is an internally appointed class extension number or a telephone number of other class extensions with different numbers.
6. The utility model provides a realization device of kind extension which characterized in that: the device comprises optical fiber access equipment, wherein each voice port of the optical fiber access equipment is connected with a telephone, and an operation detection module, a state judgment module and a call establishment module are arranged in the optical fiber access equipment;
the operation detection module is configured to: when a certain voice port is off-hook, detecting whether the voice port has the operation of pressing an R key or a hook flash;
the state determination module is configured to: when a certain voice port is off-hook and the operation detection module detects that the voice port has an R key pressing or hook flash operation, judging the state of the corresponding voice port according to the voice port identification input by a user;
the call establishing module is used for: establishing a common two-party call, a class extension two-party call or a class extension three-party call according to the state of the corresponding voice port obtained by the state judging module and the condition whether the off-hook voice port selects to join the call; the state of the corresponding voice port obtained by the state judgment module comprises the following steps: not in a call, in a two-party call, in a three-party call;
the call establishing module establishes a common two-party call, a class extension two-party call or a class extension three-party call according to the state of the corresponding voice port obtained by the state judging module and the condition that whether the off-hook voice port selects to join the call, and specifically comprises the following steps:
if the corresponding voice port is not in a call, the call establishing module selects whether to join the call without the voice port which is off-hook, directly plays a dial tone, and establishes a common two-party call with other phones according to the dial of the user;
if the corresponding voice port is in a two-party call state and the off-hook voice port selects to join the call, the call establishing module establishes a two-party call of the extension class;
if the corresponding voice port is in a three-party call state and the off-hook voice port selects to join the call, the call establishing module establishes a three-party call of the extension-like set;
and if the corresponding voice port is in a two-party call state or a three-party call state, but the off-hook voice port is selected not to be added with the call, the call establishing module directly plays a dial tone and establishes a common two-party call with other telephones according to the dialing of the user.
7. The apparatus for implementing a class extension of claim 6, wherein: each voice port of the optical fiber access equipment is provided with a sound mixing module, and the sound mixing module is used for completing three-party sound mixing processing;
the call establishing module establishes a call between two parties of the extension class, and the specific flow comprises the following steps:
the call establishing module controls a voice port of off-hook and the corresponding voice port, and the two parties select RTP stream parameters according to SDP information of respective last call; the RTP stream parameters comprise transmission parameters and coding and decoding parameters, the transmission parameters comprise IP and UDP ports, and the coding and decoding parameters comprise packing intervals;
the conversation establishing module controls a voice port of off-hook and the corresponding voice port to establish conversation between the two according to RTP stream parameters selected by the two parties;
and the call establishing module performs local sound mixing processing by using the sound mixing module on the corresponding voice port to complete the establishment of the call between the two parties of the extension.
8. The apparatus for implementing a class extension of claim 6, wherein: each voice port of the optical fiber access equipment is provided with a sound mixing module, and the sound mixing module is used for completing three-party sound mixing processing;
the call establishing module establishes three-party call of the extension class, and the specific flow comprises the following steps:
the call establishing module controls the corresponding voice port to modify an RTP stream destination port of an external phone which is in call with the corresponding voice port through SDP information, so that a destination address and a destination port of an RTP stream of the external phone are changed into off-hook voice ports;
the call establishing module controls a voice port of off-hook and the corresponding voice port, and the two parties select RTP stream parameters according to SDP information of respective last call; the RTP stream parameters comprise transmission parameters and coding and decoding parameters, the transmission parameters comprise IP and UDP ports, and the coding and decoding parameters comprise packing intervals;
the conversation establishing module controls a voice port of off-hook and the corresponding voice port to establish conversation between the two according to RTP stream parameters selected by the two parties;
the call establishing module establishes three parties by using the sound mixing module on the corresponding voice port and completes corresponding sound mixing processing, and establishes three parties by using the sound mixing module on the off-hook voice port and completes corresponding sound mixing processing, so that the establishment of three-party call of the extension-like machine is realized.
CN202011147605.5A 2020-10-23 2020-10-23 Method and device for realizing class extension Active CN112333301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011147605.5A CN112333301B (en) 2020-10-23 2020-10-23 Method and device for realizing class extension

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011147605.5A CN112333301B (en) 2020-10-23 2020-10-23 Method and device for realizing class extension

Publications (2)

Publication Number Publication Date
CN112333301A CN112333301A (en) 2021-02-05
CN112333301B true CN112333301B (en) 2021-10-19

Family

ID=74310941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011147605.5A Active CN112333301B (en) 2020-10-23 2020-10-23 Method and device for realizing class extension

Country Status (1)

Country Link
CN (1) CN112333301B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848265A (en) * 2009-03-27 2010-09-29 威海市卡尔电气研究所 Fixed wireless telephone capable of parallel operation
CN203104591U (en) * 2012-07-05 2013-07-31 嘉腾科技股份有限公司 Network telephone switchboard device
KR101600288B1 (en) * 2014-09-02 2016-03-07 주식회사 영인이엘티 Apparatus for processing multi call of elevator emergency call system arranged in parallel
CN105744100A (en) * 2016-01-21 2016-07-06 罗新华 Intelligent communication method, intelligent communication device and communication equipment
CN205490801U (en) * 2016-03-23 2016-08-17 深圳市兴电科技开发有限公司 Urgent telephone system of highway network
CN111314338A (en) * 2020-02-11 2020-06-19 烽火通信科技股份有限公司 Method and device for realizing distributed local sound mixing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848265A (en) * 2009-03-27 2010-09-29 威海市卡尔电气研究所 Fixed wireless telephone capable of parallel operation
CN203104591U (en) * 2012-07-05 2013-07-31 嘉腾科技股份有限公司 Network telephone switchboard device
KR101600288B1 (en) * 2014-09-02 2016-03-07 주식회사 영인이엘티 Apparatus for processing multi call of elevator emergency call system arranged in parallel
CN105744100A (en) * 2016-01-21 2016-07-06 罗新华 Intelligent communication method, intelligent communication device and communication equipment
CN205490801U (en) * 2016-03-23 2016-08-17 深圳市兴电科技开发有限公司 Urgent telephone system of highway network
CN111314338A (en) * 2020-02-11 2020-06-19 烽火通信科技股份有限公司 Method and device for realizing distributed local sound mixing

Also Published As

Publication number Publication date
CN112333301A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
JP6359128B2 (en) Video media playback method, apparatus and system, and computer storage media
CN102123211B (en) Realizing method and system of multi-party calling service
CN109889534B (en) VoIP (Voice over Internet protocol) communication method fusing IP (Internet protocol) network and LTE (Long term evolution) network
CN101453524A (en) Multimedia service implementing method
CA2513495A1 (en) Call forwarding in a packet switched system with back up terminals
CN101448334B (en) Implementation method of distributed services as well as device and system thereof
WO2008095385A1 (en) Method, system and device of realizing ring to you
CN100473092C (en) System and method for providing individuality ring back tone business in yonger generation network
US20090299735A1 (en) Method for Transferring an Audio Stream Between a Plurality of Terminals
JP4943330B2 (en) Method and system for adding background sound to a call
CN107690054A (en) A kind of processing method and processing device of video calling
CN100463404C (en) Method for implementing telephone conference service by using media resource server
CN112333301B (en) Method and device for realizing class extension
WO2012155451A1 (en) Conference service implementation method, apparatus and system thereof
TW201021536A (en) Method, apparatus, and computer program product thereof for enabling an internet extension to ring a conventional extension
CN101330545A (en) Ip telephone terminal and telephone conference system
CN102196106B (en) Method and related equipment for realizing call between calling party and called party
CN102664863B (en) Method, device, and system for realizing call waiting by user equipment
CN111314338B (en) Method and device for realizing distributed local sound mixing
CN101227473B (en) Method and system of main control conference for multimedia communication system
JP5151215B2 (en) CONFERENCE SYSTEM AND TERMINAL DEVICE
CN114979373A (en) Call realization method and device for intermediate number service and electronic equipment
CN102780986A (en) Call reconnection method and application server
CN100448252C (en) Method and communication system for joining background music in mobile communication telephone call
CN102480418B (en) Routing method for realizing video frequency intercommunication for code division multiple access (CDMA) 2000 terminal and soft exchange terminal

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