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 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 of CODEC module is sent to data channel to be 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) in type user line unit and FXS (Foreign Exchange Station, FXS) type user line unit, the voice signal of respective user circuit carries out self-exchange;
The CODEC module detects the state of the FXS type user line unit interface be connected with the calling subscriber, when the user having been detected and set out machine, reports the CPU module;
The CPU module is controlled the FXO type user line unit interface analog subscriber dislodging machine be connected with Access Network ALC by CODEC.
Describedly the first line of a couplet of CODEC module is sent to data channel and the first line of a couplet receive data channel and dock and comprise: by the reception data channel pin DR of CODEC module and transmission data channel pin DX short circuit.
Described CPU module is carried out initialization to the CODEC module and is comprised: the transmission data slot of FXO type user line unit correspondence on the first line of a couplet transmission data channel of CODEC module is connected to FXS type user line unit and at the first line of a couplet of CODEC module, receives reception data slot corresponding on data channel, and the transmission data slot of FXS type user line unit correspondence on the first line of a couplet transmission data channel of CODEC module is connected to FXO type user line unit corresponding reception data slot on the first line of a couplet reception data channel of CODEC module.
In described FXO type user line unit and FXS type user line unit, the voice signal of respective user circuit carries out self-exchange and comprises:
Analog voice signal from FXS type user line unit is sampled and obtained audio digital signals, then to audio digital signals carry out time slot allocation the mode by time-sharing multiplex the audio digital signals of different user be divided into to different time-gap transmitted, next the audio digital signals after time slot allocation is converted to analog voice signal and sends to FXO type user line unit;
Analog voice signal from FXO type user line unit is sampled and obtained audio digital signals, then to audio digital signals carry out time slot allocation the mode by time-sharing multiplex the audio digital signals of different user be divided into to different time-gap transmitted, next the audio digital signals after time slot allocation is converted to analog voice signal and sends to FXS type user line unit.
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 of CODEC module is sent to data channel and dock with first line of a couplet reception data channel, the CPU module is carried out initialization to the CODEC module, and in FXO type user line unit and FXS type user line unit, the voice signal of respective user circuit carries out self-exchange;
The CODEC module detects the state of the FXO type user line unit interface be connected with Access Network ALC, reports the CPU module when called subscriber's ring having been detected;
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, for the CODEC module is carried out to initialization, the FXO type user line unit interface analog subscriber dislodging machine be connected with Access Network ALC by the CODEC module controls;
The CODEC module, carry out self-exchange for the voice signal to FXO type user line unit and FXS type user line unit respective user circuit, by FXS type user line unit, detect the state of the FXS type user line unit interface be connected with subscriber terminal equipment and report the CPU module;
FXO type user line unit, 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, for transmission of speech signals, be 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 to the reception data slot that transmission data slot corresponding on 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 and receives the reception data slot of correspondence on data channel at the first line of a couplet of CODEC module.
Described CODEC module further comprises:
Data conversion module, for carrying out analog-to-digital conversion and digital-to-analogue conversion to voice signal;
The time slot allocation module, be divided into different time-gap for the mode by time-sharing multiplex by the audio digital signals of different user and transmitted;
The data channel transport module, send data channel for the first line of a couplet by the CODEC module and dock with first line of a couplet reception data channel, carries out transfer of data.
As a kind of preferred technical scheme, this device further comprises:
Expansion connection module, 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, for the CODEC module is carried out to initialization, the FXS type user line unit be connected with subscriber terminal equipment by the CODEC module controls is to the subscriber terminal equipment ring;
The CODEC module, carry out self-exchange for the voice signal to FXO type user line unit and FXS type user line unit respective user circuit, by FXO type user line unit, detect the state of the FXO type user line unit interface be connected with Access Network ALC and report the CPU module;
FXO type user line unit, 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, for transmission of speech signals, be 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 to the reception data slot that transmission data slot corresponding on 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 and receives the reception data slot of correspondence on data channel at the first line of a couplet of CODEC module.
Described CODEC module further comprises:
Data conversion module, for carrying out analog-to-digital conversion and digital-to-analogue conversion to voice signal;
The time slot allocation module, be divided into different time-gap for the mode by time-sharing multiplex by the audio digital signals of different user and transmitted;
The data channel transport module, send data channel for the first line of a couplet by the CODEC module and dock with first line of a couplet reception data channel, carries out transfer of data.
As the preferred technical scheme of another kind, 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 at least has following advantages:
Telecommunications access network of the present invention is realized the method and apparatus of calling and called relaying, by the CODEC module, the state to each interface is read and is controlled the CPU module, the CODEC module is carried out self-exchange to the voice signal of respective user circuit in FXO type user line unit and 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 in the CODEC inside modules, carry out exchanges data, there is 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 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 for further setting forth the present invention technological means and the effect that predetermined purpose is taked, 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, is described in detail as follows.
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 the present embodiment adopts external power supply for each part power supply in this device.The CODEC module is connected with FXS type user line unit with FXO type user line unit respectively by balance of voltage network, and the CPU module is connected by serial control interface with the CODEC module.
The CPU module is carried out initialization to the CODEC module, concrete, the mode configured by software sends at the first line of a couplet of CODEC module the reception data slot that transmission data slot corresponding on 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 by FXS type user line unit, 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 and receives the reception data slot of correspondence on data channel at the first line of a couplet of CODEC module.When the calling subscriber sets out machine, FXO type user line unit interface that the CPU module is connected with Access Network ALC by the CODEC module controls simulation calling subscriber machine of seting out;
The CODEC module, for detecting with the state of the FXS type user line unit interface of call subscriber terminal equipment connection by FXS type user line unit and reporting the CPU module, and the voice signal of respective user circuit in FXO type user line unit and FXS type user line unit is carried out to self-exchange, the process of self-exchange relates to data conversion module, time slot allocation module and the collaborative work of data channel transport module in the CODEC module, concrete:
Data conversion module, sample and obtain audio digital signals for the analog voice signal to from FXS type user line unit or FXO type user line unit, converts the audio digital signals after time slot allocation to analog voice signal;
The time slot allocation module, be divided into different time-gap for the mode by time-sharing multiplex by different calling subscribers' audio digital signals and transmitted;
The data channel transport module, send data channel for the first line of a couplet by the CODEC module and receive data channel with the first line of a couplet and dock, carries out transfer of data, specifically by by the reception data channel pin DR of CODEC module and the realization of transmission data channel pin DX short circuit.
FXO type user line unit docks with the subscriber's line in Access Network ALC by A Wire/B Wire, and FXO type user line unit is passive device, and for transmission of speech signals, 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 is connected with call subscriber terminal equipment by A Wire/B Wire, be used to the normal feed of call subscriber terminal equipment, for transmission of speech signals, and the state of the FXS type user line unit interface of detection and call subscriber terminal equipment connection, comprise the 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, comprises the functions such as overvoltage protection to the user terminal feed, ring, supervision, encoding and decoding, mixing, test.
Power module, be used to FXS type user line unit, CODEC module and CPU module for power supply.
Preferably, this device also comprises:
Expansion connection module, expand the call subscriber terminal number of devices for the mode by 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, the present embodiment adopts power module for each part power supply in this device, is the supply power mode that is different from the first embodiment.The CODEC module is connected with FXS type user line unit with FXO type user line unit respectively by balance of voltage network, and the CPU module is connected by serial control interface with the CODEC module.
The CPU module is carried out initialization to the CODEC module, concrete, the mode configured by software is connected to FXO type user line unit by the transmission data slot of FXS type user line unit correspondence on the first line of a couplet transmission data channel of CODEC module and receives reception data slot corresponding on data channel at the first line of a couplet of CODEC module, and the first line of a couplet in the CODEC module that correspondence transmission data slot on the first line of a couplet in the CODEC module of FXO type user line unit transmission data channel is connected to FXS type user line unit receives corresponding reception data slot on data channel.When Access Network ALC ring, the CPU module is passed through the FXS type user line unit of CODEC module controls and called user terminal equipment connection to the ring of called user terminal equipment;
The CODEC module, for by FXO type user line unit, detecting the state of the FXO type user line unit interface be connected with Access Network ALC and report the CPU module, and the voice signal of respective user circuit in FXO type user line unit and FXS type user line unit is carried out to self-exchange, the process of self-exchange relates to data conversion module, time slot allocation module and the collaborative work of data channel transport module in the CODEC module, concrete:
Data conversion module, sample and obtain audio digital signals for the analog voice signal to from FXS type user line unit or FXO type user line unit, converts the audio digital signals after time slot allocation to analog voice signal;
The time slot allocation module, be divided into different time-gap for the mode by time-sharing multiplex by the audio digital signals of different user and transmitted;
The data channel transport module, send data channel for the first line of a couplet by the CODEC module and receive data channel with the first line of a couplet and dock, carries out transfer of data, specifically by by the reception data channel pin DR of CODEC module and the realization of transmission data channel pin DX short circuit.
FXO type user line unit docks with the subscriber's line in Access Network ALC by A Wire/B Wire, for detection of the state of the FXO type user line unit interface be connected with Access Network ALC.
FXS type user line unit is connected 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.
Preferably, this device also comprises:
Power module, be used to FXS type user line unit, CODEC module and CPU module for power supply.
Preferably, this device also comprises:
Expansion connection module, expand the called user terminal number of devices for the mode by 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, the present embodiment adopts external power supply for each part power supply in this device.The CODEC module is connected with FXS type user line unit with FXO type user line unit respectively by balance of voltage network, and the CPU module is connected by serial control interface with the CODEC module.
The CPU module is carried out initialization to the CODEC module, concrete, the mode configured by software sends at the first line of a couplet of CODEC module the reception data slot that transmission data slot corresponding on 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 by FXS type user line unit, 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 and receives the reception data slot of correspondence on data channel at the first line of a couplet of CODEC module.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 CPU module is passed through the FXS type user line unit of CODEC module controls and called user terminal equipment connection to the ring of called user terminal equipment;
The CODEC module, for by FXS type user line unit, detecting the state of the FXS type user line unit interface be connected with subscriber terminal equipment and report the CPU module, detect the state of the FXO type user line unit interface be 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 FXS type user line unit is carried out to self-exchange, the process of self-exchange relates to the data conversion module in the CODEC module, time slot allocation module and the collaborative work of data channel transport module, concrete:
Data conversion module, sample and obtain audio digital signals for the analog voice signal to from FXS type user line unit or FXO type user line unit, converts the audio digital signals after time slot allocation to analog voice signal;
The time slot allocation module, be divided into different time-gap for the mode by time-sharing multiplex by the audio digital signals of different user and transmitted;
The data channel transport module, send data channel for the first line of a couplet by the CODEC module and receive data channel with the first line of a couplet and dock, carries out transfer of data, specifically by by the reception data channel pin DR of CODEC module and the realization of transmission data channel pin DX short circuit.
FXO type user line unit docks with the subscriber's line in Access Network ALC by A Wire/B Wire, detects the state of the FXO type user line unit interface be 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 is connected with call subscriber terminal equipment by A Wire/B Wire, is used to the normal feed of call subscriber terminal equipment, and the state of the FXS type user line unit interface of detection and call subscriber terminal equipment connection, comprise the 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, comprises the 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 to data channel receive data channel with the first line of a couplet and dock, specifically by by the reception data channel pin DR of CODEC module and the realization of transmission data channel pin DX short circuit.
Step s102, the CPU module is carried out initialization to the CODEC module, concrete, the mode configured by software sends at the first line of a couplet of CODEC module the reception data slot that transmission data slot corresponding on 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 by FXS type user line unit, FXO type user line unit is sent to the reception data slot that transmission data slot corresponding on 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.
In step s103, FXO type user line unit and FXS type user line unit, the voice signal of respective user circuit carries out self-exchange, specifically comprises:
Analog voice signal from FXS type user line unit is sampled and obtained audio digital signals, then to audio digital signals carry out time slot allocation the mode by time-sharing multiplex the audio digital signals of different user be divided into to different time-gap transmitted, next the audio digital signals after time slot allocation is converted to analog voice signal and sends to FXO type user line unit;
Analog voice signal from FXO type user line unit is sampled and obtained audio digital signals, then to audio digital signals carry out time slot allocation the mode by time-sharing multiplex the audio digital signals of different user be divided into to different time-gap transmitted, next the audio digital signals after time slot allocation is converted to analog voice signal and sends to FXS type user line unit.
Step s104, CODEC module detect the state of the FXS type user line unit interface be connected with the calling subscriber, when user's off-hook having been detected, report the CPU module, because the CODEC module is that variation by detecting electric current between A Wire/B Wire judges whether off-hook of user, and the user also can produce the variation of electric current between A Wire/B Wire while from conversation, transferring on-hook to, the CODEC module can also detect the user and transfer the state of on-hook from conversation to, and report the CPU module, afterwards, the FXO type user line unit interface analog subscriber on-hook that the CPU module can be connected with Access Network ALC by the CODEC module controls, 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 by 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, caller Path Setup.
Step s106, the calling user dials called number, after called subscriber's off-hook, the normal talking business is 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 to data channel receive data channel with the first line of a couplet and dock, specifically by by the reception data channel pin DR of CODEC module and the realization of transmission data channel pin DX short circuit.
Step s202, the CPU module is carried out initialization to the CODEC module, concrete, the mode configured by software sends at the first line of a couplet of CODEC module the reception data slot that transmission data slot corresponding on 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 by FXS type user line unit, FXO type user line unit is sent to the reception data slot that transmission data slot corresponding on 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.
In step s203, FXO type user line unit and FXS type user line unit, the voice signal of respective user circuit carries out self-exchange, specifically comprises:
Analog voice signal from FXS type user line unit is sampled and obtained audio digital signals, then to audio digital signals carry out time slot allocation the mode by time-sharing multiplex the audio digital signals of different user be divided into to different time-gap transmitted, next the audio digital signals after time slot allocation is converted to analog voice signal and sends to FXO type user line unit;
Analog voice signal from FXO type user line unit is sampled and obtained audio digital signals, then to audio digital signals carry out time slot allocation the mode by time-sharing multiplex the audio digital signals of different user be divided into to different time-gap transmitted, next the audio digital signals after time slot allocation is converted to analog voice signal and sends to FXS type user line unit.
Step s204, CODEC module detect the state of the FXO type user line unit interface be connected with Access Network ALC, report the CPU module when ring having been detected.
Step s205, when the CODEC module reports the CPU module by 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 Path Setup.
Step s206, set up the normal talking business after 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, by the CODEC module, the state to each interface is read and is controlled the CPU module, the CODEC module is carried out self-exchange to the voice signal of respective user circuit in FXO type user line unit and 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 in the CODEC inside modules, carry out exchanges data, there is 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 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 be to provide with reference to the use with explanation, not be used for the present invention is limited.