Summary of the invention
The technical problem to be solved in the present invention is, the method and apparatus that provides a kind of telecommunications access network to realize the calling and called relaying with the extend one's service coverage of circuit of lower system's O﹠M cost, reduces the wasting of resources and workable simultaneously.
The technical solution used in the present invention is that described telecommunications access network is realized the method for caller relaying, comprising:
The first line of a couplet transmission data channel of CODEC module is docked with first line of a couplet reception data channel, the CPU module is carried out initialization to the CODEC module, FXO (Foreign Exchange Office, FXO) voice signal of respective user circuit carries out from exchange in type user line unit and FXS (Foreign Exchange Station, FXS) the type user line unit;
The CODEC module detects the state of the FXS type user line unit interface be connected with the calling subscriber, when having detected the user and set out machine, reports the CPU module;
The FXO type user line unit interface analog subscriber dislodging machine that the CPU module is connected with Access Network ALC by CODEC control.
Described first line of a couplet transmission data channel with the CODEC module is docked with first line of a couplet reception data channel and is comprised: with the reception data channel pin DR and the transmission data channel pin DX short circuit of CODEC module.
Described CPU module is carried out initialization to the CODEC module and is comprised: FXO type user line unit is sent the reception data slot that transmission data slot corresponding on the data channel is connected to correspondence on the first line of a couplet reception data channel of FXS type user line unit in the CODEC module at the first line of a couplet of CODEC module, and FXS type user line unit corresponding transmission data slot on the first line of a couplet transmission data channel of CODEC module is connected to FXO type user line unit receives correspondence on the data channel at the first line of a couplet of CODEC module reception data slot.
The voice signal of respective user circuit carries out comprising from exchange in described FXO type user line unit and the FXS type user line unit:
Obtain audio digital signals to sampling from the analog voice signal of FXS type user line unit, then to audio digital signals carry out time slot allocation promptly the mode by time-sharing multiplex the audio digital signals of different user be divided into different time-gap transmit, next send to FXO type user line unit converting analog voice signal to through the audio digital signals after the time slot allocation;
Obtain audio digital signals to sampling from the analog voice signal of FXO type user line unit, then to audio digital signals carry out time slot allocation promptly the mode by time-sharing multiplex the audio digital signals of different user be divided into different time-gap transmit, next send to FXS type user line unit converting analog voice signal to through the audio digital signals after the time slot allocation.
The present invention also provides a kind of telecommunications access network to realize the method for called relaying, comprising:
The first line of a couplet transmission data channel of CODEC module is docked with first line of a couplet reception data channel, and the CPU module is carried out initialization to the CODEC module, and the voice signal of respective user circuit carries out from exchange in FXO type user line unit and the FXS type user line unit;
The CODEC module detects the state of the FXO type user line unit interface that is connected with Access Network ALC, reports the CPU module when having detected called subscriber's ring;
The FXS type user line unit interface that the CPU module is connected with the called subscriber by the CODEC module controls is to called subscriber's ring.
The present invention also provides a kind of telecommunications access network to realize the device of caller relaying, comprising:
The CPU module is used for the CODEC module is carried out initialization, the FXO type user line unit interface analog subscriber dislodging machine that is connected with Access Network ALC by the CODEC module controls;
The CODEC module, be used for the voice signal of FXO type user line unit and FXS type user line unit respective user circuit is carried out from exchange, detect the state of the FXS type user line unit interface that is connected with subscriber terminal equipment and report the CPU module by FXS type user line unit;
FXO type user line unit is used for transmission of speech signals, and under the control of CPU module to Access Network ALC analog subscriber dislodging machine.
FXS type user line unit is used for transmission of speech signals, is the normal feed of subscriber terminal equipment, and the state of the FXS type user line unit interface that is connected with subscriber terminal equipment of detection.
Described CPU module is carried out initialization to the CODEC module and is comprised: FXS type user line unit is sent the reception data slot that transmission data slot corresponding on the data channel is connected to correspondence on the first line of a couplet reception data channel of FXO type user line unit in the CODEC module at the first line of a couplet of CODEC module, FXO type user line unit corresponding transmission data slot on the first line of a couplet transmission data channel of CODEC module is connected to FXS type user line unit receives correspondence on the data channel at the first line of a couplet of CODEC module reception data slot.
Described CODEC module further comprises:
Data conversion module is used for voice signal is carried out analog-to-digital conversion and digital-to-analogue conversion;
The time slot allocation module, the mode by time-sharing multiplex of being used for is divided into different time-gap with the audio digital signals of different user and transmits;
The data channel transport module is used for the first line of a couplet transmission data channel of CODEC module is docked with first line of a couplet reception data channel, carries out transfer of data.
As a kind of optimized technical scheme, this device further comprises:
Expansion connection module is used for by inserting the mode extending user terminal equipment quantity of CODEC module, FXO type user line unit and FXS type user line unit thereon.
The present invention also provides a kind of telecommunications access network to realize the device of called relaying, comprising:
The CPU module is used for the CODEC module is carried out initialization, and the FXS type user line unit that is connected with subscriber terminal equipment by the CODEC module controls is to the subscriber terminal equipment ring;
The CODEC module, be used for the voice signal of FXO type user line unit and FXS type user line unit respective user circuit is carried out from exchange, detect the state of the FXO type user line unit interface that is connected with Access Network ALC and report the CPU module by FXO type user line unit;
FXO type user line unit is used for transmission of speech signals, and the state of the FXO type user line unit interface that is connected with Access Network ALC of detection.
FXS type user line unit is used for transmission of speech signals, is the normal feed of subscriber terminal equipment, and under the control of CPU module to the subscriber terminal equipment ring.
Described CPU module is carried out initialization to the CODEC module and is comprised: FXS type user line unit is sent the reception data slot that transmission data slot corresponding on the data channel is connected to FXO type user line unit correspondence on the first line of a couplet reception data channel that the CODEC mould is determined at the first line of a couplet of CODEC module, FXO type user line unit corresponding transmission data slot on the first line of a couplet transmission data channel of CODEC module is connected to FXS type user line unit receives correspondence on the data channel at the first line of a couplet of CODEC module reception data slot.
Described CODEC module further comprises:
Data conversion module is used for voice signal is carried out analog-to-digital conversion and digital-to-analogue conversion;
The time slot allocation module, the mode by time-sharing multiplex of being used for is divided into different time-gap with the audio digital signals of different user and transmits;
The data channel transport module is used for the first line of a couplet transmission data channel of CODEC module is docked with first line of a couplet reception data channel, carries out transfer of data.
As another kind of optimized technical scheme, this device further comprises power module, is used to FXS type user line unit, CODEC module and CPU module for power supply.
Adopt technique scheme, the present invention has following advantage at least:
Telecommunications access network of the present invention is realized the method and apparatus of calling and called relaying, the CPU module reads and controls by the state of CODEC module to each interface, the CODEC module is carried out from exchange the voice signal of respective user circuit in FXO type user line unit and the FXS type user line unit, the first line of a couplet data channel of the CODEC module in this device is not connected to switching equipment, but directly carry out exchanges data in the CODEC inside modules, have good operability.FXO type user line unit is connected with Access Network ALC, FXS type user line unit is connected with subscriber terminal equipment, and can provide normal feed for subscriber terminal equipment, the present invention has realized the function of caller and called users relaying with lower system's O﹠M cost, enlarge the coverage of subscriber's line, reduced the wasting of resources simultaneously.
Can also increase the subscriber's line coverage in the mode of cascade by expansion connection module, further improve the covering power of system equipment.
Embodiment
Reach technological means and the effect that predetermined purpose is taked for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, the described telecommunications access network that the present invention is proposed is realized the method and apparatus of calling and called relaying, describe in detail as after.
First embodiment of the invention, as shown in Figure 1, a kind of telecommunications access network is realized the device of caller relaying, comprises CPU module, CODEC module, FXO type user line unit and FXS type user line unit, and present embodiment adopts external power supply to be each the part power supply in this device.The CODEC module links to each other with FXS type user line unit with FXO type user line unit respectively by balance of voltage network, and the CPU module links to each other by serial control interface with the CODEC module.
The CPU module is carried out initialization to the CODEC module, concrete, mode by software arrangements sends the reception data slot that transmission data slot corresponding on the data channel is connected to correspondence on the first line of a couplet reception data channel of FXO type user line unit in the CODEC module with FXS type user line unit at the first line of a couplet of CODEC module, and FXO type user line unit corresponding transmission data slot on the first line of a couplet transmission data channel of CODEC module is connected to FXS type user line unit receives correspondence on the data channel at the first line of a couplet of CODEC module reception data slot.When the calling subscriber sets out machine, the FXO type user line unit interface simulation calling subscriber that the CPU module is connected with Access Network ALC by the CODEC module controls machine of seting out;
The CODEC module, be used for detecting the state of the FXS type user line unit interface that is connected with call subscriber terminal equipment and reporting the CPU module by FXS type user line unit, and the voice signal of respective user circuit in FXO type user line unit and the FXS type user line unit carried out from exchange, process from exchange relates to data conversion module, time slot allocation module and the collaborative work of data channel transport module in the CODEC module, and is concrete:
Data conversion module is used for obtaining audio digital signals to sampling from the analog voice signal of FXS type user line unit or FXO type user line unit, will convert analog voice signal to through the audio digital signals after the time slot allocation;
The time slot allocation module, the mode by time-sharing multiplex of being used for is divided into different time-gap with different calling subscribers' audio digital signals and transmits;
The data channel transport module is used for the first line of a couplet transmission data channel of CODEC module is docked with first line of a couplet reception data channel, carries out transfer of data, specifically is to realize with transmission data channel pin DX short circuit by the reception data channel pin DR with the CODEC module.
FXO type user line unit docks with subscriber's line among the Access Network ALC by A Wire/B Wire, and FXO type user line unit is a passive device, is used for transmission of speech signals, and its subscriber's line does not have feed.When the calling subscriber sets out machine, FXO type user line unit under the control of CPU module to the Access Network ALC simulation calling subscriber machine of seting out.
FXS type user line unit links to each other with call subscriber terminal equipment by A Wire/B Wire, be used to the normal feed of call subscriber terminal equipment, be used for transmission of speech signals, and the state of the FXS type user line unit interface that is connected with call subscriber terminal equipment of detection, comprise states such as off-hook and on-hook.FXS type user line unit can provide 7 kinds of functions of basic analog subscriber line circuit, promptly comprises functions such as overvoltage protection to the user terminal feed, ring, supervision, encoding and decoding, mixing, test.
Power module is used to FXS type user line unit, CODEC module and CPU module for power supply.
Preferable, this device also comprises:
Expansion connection module is used for expanding the call subscriber terminal number of devices by the mode of inserting CODEC module, FXO type user line unit and FXS type user line unit thereon.
Second embodiment of the invention, as shown in Figure 2, a kind of telecommunications access network is realized the device of called relaying, comprise CPU module, CODEC module, FXO type user line unit, FXS type user line unit and power module, present embodiment adopts power module for each the part power supply in this device, is the supply power mode that is different from first embodiment.The CODEC module links to each other with FXS type user line unit with FXO type user line unit respectively by balance of voltage network, and the CPU module links to each other by serial control interface with the CODEC module.
The CPU module is carried out initialization to the CODEC module, concrete, mode by software arrangements sends transmission data slot corresponding on the data channel with FXS type user line unit at the first line of a couplet of CODEC module and is connected to FXO type user line unit and receives reception data slot corresponding on the data channel at the first line of a couplet of CODEC module, the first line of a couplet in the CODEC module of FXO type user line unit is sent correspondingly on the data channel send the first line of a couplet in the CODEC module that data slot is connected to FXS type user line unit and receive the corresponding data slot that receives on the data channel.When Access Network ALC ring, the FXS type user line unit that the CPU module is connected with called user terminal equipment by the CODEC module controls is to the ring of called user terminal equipment;
The CODEC module, be used for detecting the state of the FXO type user line unit interface that is connected with Access Network ALC and reporting the CPU module by FXO type user line unit, and the voice signal of respective user circuit in FXO type user line unit and the FXS type user line unit carried out from exchange, process from exchange relates to data conversion module, time slot allocation module and the collaborative work of data channel transport module in the CODEC module, and is concrete:
Data conversion module is used for obtaining audio digital signals to sampling from the analog voice signal of FXS type user line unit or FXO type user line unit, will convert analog voice signal to through the audio digital signals after the time slot allocation;
The time slot allocation module, the mode by time-sharing multiplex of being used for is divided into different time-gap with the audio digital signals of different user and transmits;
The data channel transport module is used for the first line of a couplet transmission data channel of CODEC module is docked with first line of a couplet reception data channel, carries out transfer of data, specifically is to realize with transmission data channel pin DX short circuit by the reception data channel pin DR with the CODEC module.
FXO type user line unit docks with subscriber's line among the Access Network ALC by A Wire/B Wire, is used to detect the state of the FXO type user line unit interface that is connected with Access Network ALC.
FXS type user line unit links to each other with called user terminal equipment by A Wire/B Wire, is used to the normal feed of called user terminal equipment, when Access Network ALC ring, FXS type user line unit under the control of CPU module to the ring of called user terminal equipment.
Preferable, this device also comprises:
Power module is used to FXS type user line unit, CODEC module and CPU module for power supply.
Preferable, this device also comprises:
Expansion connection module is used for expanding the called user terminal number of devices by the mode of inserting CODEC module, FXO type user line unit and FXS type user line unit thereon.
Third embodiment of the invention, as shown in Figure 3, a kind of telecommunications access network is realized the system of calling and called relaying, comprising: CPU module, CODEC module, FXO type user line unit and FXS type user line unit, present embodiment adopt external power supply to be each the part power supply in this device.The CODEC module links to each other with FXS type user line unit with FXO type user line unit respectively by balance of voltage network, and the CPU module links to each other by serial control interface with the CODEC module.
The CPU module is carried out initialization to the CODEC module, concrete, mode by software arrangements sends the reception data slot that transmission data slot corresponding on the data channel is connected to correspondence on the first line of a couplet reception data channel of FXO type user line unit in the CODEC module with FXS type user line unit at the first line of a couplet of CODEC module, and FXO type user line unit corresponding transmission data slot on the first line of a couplet transmission data channel of CODEC module is connected to FXS type user line unit receives correspondence on the data channel at the first line of a couplet of CODEC module reception data slot.When the user sets out machine, the FXO type user line unit interface analog subscriber dislodging machine that the CPU module is connected with Access Network ALC by the CODEC module controls; When Access Network ALC ring, the FXS type user line unit that the CPU module is connected with called user terminal equipment by the CODEC module controls is to the ring of called user terminal equipment;
The CODEC module, be used for detecting the state of the FXS type user line unit interface that is connected with subscriber terminal equipment and reporting the CPU module by FXS type user line unit, detect the state of the FXO type user line unit interface that is connected with Access Network ALC and report the CPU module by FXO type user line unit, and the voice signal of respective user circuit in FXO type user line unit and the FXS type user line unit carried out from exchange, process from exchange relates to data conversion module in the CODEC module, time slot allocation module and the collaborative work of data channel transport module, concrete:
Data conversion module is used for obtaining audio digital signals to sampling from the analog voice signal of FXS type user line unit or FXO type user line unit, will convert analog voice signal to through the audio digital signals after the time slot allocation;
The time slot allocation module, the mode by time-sharing multiplex of being used for is divided into different time-gap with the audio digital signals of different user and transmits;
The data channel transport module is used for the first line of a couplet transmission data channel of CODEC module is docked with first line of a couplet reception data channel, carries out transfer of data, specifically is to realize with transmission data channel pin DX short circuit by the reception data channel pin DR with the CODEC module.
FXO type user line unit docks with subscriber's line among the Access Network ALC by A Wire/B Wire, detects the state of the FXO type user line unit interface that is connected with Access Network ALC.When the user sets out machine, FXO type user line unit under the control of CPU module to Access Network ALC analog subscriber dislodging machine.
FXS type user line unit links to each other with call subscriber terminal equipment by A Wire/B Wire, is used to the normal feed of call subscriber terminal equipment, detects the state of the FXS type user line unit interface that is connected with call subscriber terminal equipment, comprises states such as off-hook and on-hook.When Access Network ALC ring, FXS type user line unit under the control of CPU module to the ring of called user terminal equipment.FXS type user line unit can also provide 7 kinds of functions of basic analog subscriber line circuit, promptly comprises functions such as overvoltage protection to the user terminal feed, ring, supervision, encoding and decoding, mixing, test.
Fourth embodiment of the invention, as shown in Figure 4, a kind of telecommunications access network is realized the method for caller relaying, comprises the steps:
Step s101, the first line of a couplet of CODEC module is sent data channel receiving data channel with the first line of a couplet and dock, specifically is by with the reception data channel pin DR of CODEC module and the realization of transmission data channel pin DX short circuit.
Step s102, CPU module are carried out initialization to the CODEC module, concrete, mode by software arrangements sends the reception data slot that transmission data slot corresponding on the data channel is connected to correspondence on the first line of a couplet reception data channel of FXO type user line unit in the CODEC module with FXS type user line unit at the first line of a couplet of CODEC module, and FXO type user line unit corresponding transmission data slot on the first line of a couplet transmission data channel of CODEC module is connected to FXS type user line unit receives correspondence on the data channel at the first line of a couplet of CODEC module reception data slot.
The voice signal of respective user circuit carries out specifically comprising from exchange in step s103, FXO type user line unit and the FXS type user line unit:
Obtain audio digital signals to sampling from the analog voice signal of FXS type user line unit, then to audio digital signals carry out time slot allocation promptly the mode by time-sharing multiplex the audio digital signals of different user be divided into different time-gap transmit, next send to FXO type user line unit converting analog voice signal to through the audio digital signals after the time slot allocation;
Obtain audio digital signals to sampling from the analog voice signal of FXO type user line unit, then to audio digital signals carry out time slot allocation promptly the mode by time-sharing multiplex the audio digital signals of different user be divided into different time-gap transmit, next send to FXS type user line unit converting analog voice signal to through the audio digital signals after the time slot allocation.
Step s104, CODEC module detect the state of the FXS type user line unit interface that is connected with the calling subscriber, when having detected user's off-hook, report the CPU module; Because the CODEC module is to judge whether off-hook of user by the variation that detects electric current between A Wire/B Wire, and the user also can produce electric current between A Wire/B Wire when conversation transfers on-hook to variation, the CODEC module can also detect the user transfers on-hook to from conversation state, and report the CPU module, afterwards, the CPU module can be passed through the FXO type user line unit interface analog subscriber on-hook that the CODEC module controls is connected with Access Network ALC, because this content is not the emphasis that telecommunications access network of the present invention is realized the method for caller relaying, and principle is identical with the analog subscriber off-hook with detection, so locate not describe in detail.
Step s105, when the CODEC module reports the CPU module with calling subscriber's off hook state, the FXO type user line unit interface analog subscriber off-hook that the CPU module is connected with Access Network ALC by the CODEC module controls, the foundation of caller passage.
Step s106, the calling user dials called number, behind called subscriber's off-hook, normal talking is professional to be set up.
Step s107, after both sides' on-hook, end of conversation.
Fifth embodiment of the invention, as shown in Figure 5, a kind of telecommunications access network is realized the method for called relaying, comprises the steps:
Step s201, the first line of a couplet of CODEC module is sent data channel receiving data channel with the first line of a couplet and dock, specifically is by with the reception data channel pin DR of CODEC module and the realization of transmission data channel pin DX short circuit.
Step s202, CPU module are carried out initialization to the CODEC module, concrete, mode by software arrangements sends the reception data slot that transmission data slot corresponding on the data channel is connected to correspondence on the first line of a couplet reception data channel of FXO type user line unit in the CODEC module with FXS type user line unit at the first line of a couplet of CODEC module, and FXO type user line unit corresponding transmission data slot on the first line of a couplet transmission data channel of CODEC module is connected to FXS type user line unit receives correspondence on the data channel at the first line of a couplet of CODEC module reception data slot.
The voice signal of respective user circuit carries out specifically comprising from exchange in step s203, FXO type user line unit and the FXS type user line unit:
Obtain audio digital signals to sampling from the analog voice signal of FXS type user line unit, then to audio digital signals carry out time slot allocation promptly the mode by time-sharing multiplex the audio digital signals of different user be divided into different time-gap transmit, next send to FXO type user line unit converting analog voice signal to through the audio digital signals after the time slot allocation;
Obtain audio digital signals to sampling from the analog voice signal of FXO type user line unit, then to audio digital signals carry out time slot allocation promptly the mode by time-sharing multiplex the audio digital signals of different user be divided into different time-gap transmit, next send to FXS type user line unit converting analog voice signal to through the audio digital signals after the time slot allocation.
Step s204, CODEC module detect the state of the FXO type user line unit interface that is connected with Access Network ALC, report the CPU module when having detected ring.
Step s205, when the CODEC module reports the CPU module with the ringing condition of Access Network ALC, the FXS type user line unit interface that the CPU module is connected with the called subscriber by the CODEC module controls is to the ring of called user terminal equipment, called passage foundation.
Step s206 sets up the normal talking business behind called subscriber's off-hook.
Step s207, after both sides' on-hook, end of conversation.
Telecommunications access network of the present invention is realized the method and apparatus of calling and called relaying, the CPU module reads and controls by the state of CODEC module to each interface, the CODEC module is carried out from exchange the voice signal of respective user circuit in FXO type user line unit and the FXS type user line unit, the first line of a couplet data channel of the CODEC module in this device is not connected to switching equipment, but directly carry out exchanges data in the CODEC inside modules, have good operability.FXO type user line unit is connected with Access Network ALC, FXS type user line unit is connected with subscriber terminal equipment, and can provide normal feed for subscriber terminal equipment, the present invention has realized the function of caller and called users relaying with lower system's O﹠M cost, enlarge the coverage of subscriber's line, reduced the wasting of resources simultaneously.
Can also increase the subscriber's line coverage in the mode of cascade by expansion connection module, further improve the covering power of system equipment.
By the explanation of embodiment, should be to reach technological means and the effect that predetermined purpose takes to be able to more deeply and concrete understanding to the present invention, yet appended diagram only provide with reference to the usefulness of explanation, be not to be used for the present invention is limited.