CN104284035B - Calling-control method and device - Google Patents

Calling-control method and device Download PDF

Info

Publication number
CN104284035B
CN104284035B CN201310272504.4A CN201310272504A CN104284035B CN 104284035 B CN104284035 B CN 104284035B CN 201310272504 A CN201310272504 A CN 201310272504A CN 104284035 B CN104284035 B CN 104284035B
Authority
CN
China
Prior art keywords
vop
interface
code stream
module
package
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.)
Expired - Fee Related
Application number
CN201310272504.4A
Other languages
Chinese (zh)
Other versions
CN104284035A (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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201310272504.4A priority Critical patent/CN104284035B/en
Publication of CN104284035A publication Critical patent/CN104284035A/en
Application granted granted Critical
Publication of CN104284035B publication Critical patent/CN104284035B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention provides a kind of calling-control method, system and devices.The method includes:The speech data code stream that voice communication generates is obtained, and encapsulates the speech data code stream and obtains VoP;Judge whether active calls control model is packet switched mode, if so, forwarding VoP by data-interface;Again the VoP is transmitted by being grouped domain interface;If it is not, then transmitting the VoP with serial line interface;The decoding VoP with serial line interface transmission obtains speech data code stream, and is transmitted by circuit domain interface.Using the present invention by network voice communication support circuit-switched and packet switch, and it is avoided that hardware cost additionally increases.

Description

Calling-control method and device
Technical field
The present invention relates to network voice communication technologies, more particularly to calling-control method and device.
Background technology
With the development of wireless network, unprecedented high bandwidth is brought for mobile communication, and then along with mobile logical The high bandwidth of letter so that mobile service VOIP(Voice over Internet Protocol, voice-over-net)It has obtained flourishing Development.
Network voice communication is widely used in IAD(Integrated access equipment, Intergarte Access Device)Production Product, still, the uplink connection type of IAD products are to rely on the modes such as fixed Ethernet, Digital Subscriber Loop and optical fiber, It needs to lay fixed circuit in advance, this has inconvenient traffic, for the place of user's rareness for geography, and there will be route arrangements Difficulty or the higher defect of cost.
Therefore, increasingly widespread with wireless network, and wireless network need not be prewired, by network voice communication It is combined with wireless network, forms the product form that uplink is provided by wireless network for network voice communication.
However, in order to enable realizing that network voice communication being capable of support circuit-switched and packet switch two by wireless network Kind mode, extraly increases time gas exchange chip, and time gas exchange is carried out to pass through time gas exchange chip.But extraly increase Time gas exchange chip increases the hardware cost that network voice communication is realized by wireless network.
Invention content
Based on this, it is necessary to provide a kind of network voice communication support circuit-switched and packet switch, and be avoided that hard The additional increased calling-control method of part cost.
In addition, there is a need to a kind of network voice communication support circuit-switched of offer and packet switch, and it is avoided that hard The additional increased call control system of part cost.
In addition, there is a need to a kind of network voice communication support circuit-switched of offer and packet switch, and it is avoided that hard The additional increased call control apparatus of part cost.
A kind of calling-control method, includes the following steps:
The speech data code stream that voice communication generates is obtained, and encapsulates the speech data code stream and obtains VoP;
Judge whether active calls control model is packet switched mode, if so, forwarding institute's predicate by data-interface Sound data packet;
Again the VoP is transmitted by being grouped domain interface;
If it is not, then transmitting the VoP with serial line interface;
The decoding VoP with serial line interface transmission obtains speech data code stream, and is passed by circuit domain interface It send.
Described the step of forwarding the VoP by data-interface, includes in one of the embodiments,:
It maps to obtain data connection by data-interface, and transmits the VoP in the data connection.
Described the step of transmitting the VoP with serial line interface, includes in one of the embodiments,:
Package is obtained to VoP package identification packet header, and the package is transmitted by serial line interface.
The VoP transmitted in one of the embodiments, with serial line interface described in the decoding obtains voice data Code stream, and the step of being transmitted by circuit domain interface includes:
Receive the package of the transmission;
Judge whether the packet header in package is mark packet header, if so, extraction obtains the voice number from the package According to packet, and decodes the VoP and obtain speech data code stream;
The speech data code stream is sent by the circuit-switched network by circuit domain interface.
The speech data code stream for obtaining voice communication and generating in one of the embodiments, and encapsulate the voice Before data code flow obtains the step of VoP, this method further includes:
The call operation of processing triggering establishes caller and the voice communication of callee.
The method further includes in one of the embodiments,:
Dropped calls instruction is obtained, the voice communication is stopped according to dropped calls instruction.
A kind of call control system, including:
Acquisition module, the speech data code stream for obtaining voice communication generation, and encapsulate the speech data code stream and obtain To VoP;
Judgment module, for judging whether active calls control model is packet switched mode, if so, notice forwarding mould Block, if it is not, then notifying serial line interface delivery module;
The forwarding module is used to forward the VoP by data-interface;
Packet-switched sessions module, for transmitting the VoP by being grouped domain interface;
The serial line interface delivery module is used to transmit the VoP with serial line interface;
Circuit-switched session module obtains voice data code for decoding the VoP transmitted with serial line interface Stream, and transmitted by circuit domain interface.
The forwarding module is additionally operable to map to obtain data connection by data-interface in one of the embodiments, and The VoP is transmitted in the data connection.
The serial line interface delivery module is used for the VoP package identification packet in one of the embodiments, Head obtains package, and transmits the package by serial line interface.
The circuit-switched session module includes in one of the embodiments,:
Package receiving unit, the package for receiving the transmission;
Packet processing unit, for judging whether the packet header in package is mark packet header, if so, being carried from the package The VoP is obtained, and decodes the VoP and obtains speech data code stream;
Code stream transmission unit, for sending the voice data code by the circuit-switched network by circuit domain interface Stream.
In one of the embodiments, the system also includes:
Call establishment module, the call operation for handling triggering establish caller and the voice communication of callee.
In one of the embodiments, the system also includes:
Call stops module, and for obtaining dropped calls instruction, it is logical to stop the voice according to dropped calls instruction Words.
A kind of call control apparatus, including subscriber line interface chip, the master being connect with the subscriber line interface chip Chip and the communication module being connect with the master chip;
The subscriber line interface chip is used to acquire the voice flow of voice communication generation, encodes the voice flow and obtains language Sound data code flow, and it is sent to master chip;
The master chip is used to obtain the speech data code stream of voice communication generation, and encapsulates the speech data code stream and obtain To VoP, judge whether active calls control model is packet switched mode, if so, notification communication module is by dividing Group domain interface sends the VoP, is packaged the VoP if it is not, then encapsulating and is sent to communication module;
The communication module unpacks the VoP that reduction encapsulation is packaged and obtains speech data code stream, and passes through circuit domain Interface transmits.
Above-mentioned calling-control method, system and device, the speech data code stream that encapsulation voice communication generates obtain voice number According to packet, judge whether active calls control model is packet switched mode, if so, forwarding voice data by data-interface Packet, and then transmit VoP by being grouped domain interface;If it is not, then with serial line interface transmit VoP, with decode with The VoP of serial mode transmission obtains speech data code stream, and is transmitted by circuit domain interface, without additional Increase hardware and may make network voice communication support circuit-switched and packet switch.
Description of the drawings
Fig. 1 is the flow chart of the calling-control method in one embodiment;
Fig. 2 is to decode the VoP transmitted with serial line interface in Fig. 1 to obtain speech data code stream, and pass through circuit domain The method flow diagram that interface is sent;
Fig. 3 is the structural schematic diagram of call control system in one embodiment;
Fig. 4 is the structural schematic diagram of circuit-switched session module in Fig. 3;
Fig. 5 is the hardware block diagram of call control apparatus in one embodiment.
Specific implementation mode
As shown in Figure 1, in one embodiment, a kind of calling-control method includes the following steps:
Step S110 obtains the speech data code stream that voice communication generates, and encapsulates speech data code stream and obtain voice number According to packet.
In the present embodiment, during caller and callee's progress voice communication, voice flow will be constantly collected, it is right The voice flow collected is encoded to obtain corresponding speech data code stream.Wherein, which is PCMU code streams. In a preferred embodiment, SLIC chips will be selected(Subscriber-line interface card, abbreviation SLIC, user Line interface)Realize the coding of the acquisition and voice flow of voice flow.
At this point, the speech data code stream that voice communication generation will be acquired, and according to real-time transport protocol(Real- Time Transport Protocol, abbreviation RTP)Speech data code stream is encapsulated, to obtain VoP, for example, will preset Speech data code stream in time is encapsulated as a VoP, and e.g., which can be 20 milliseconds.Preferably implementing In example, the hardware carrier for realizing speech data code stream encapsulation can be master chip.The master chip will be connect with SLIC chips, be connect The speech data code stream that SLIC chips are transmitted is received, to acquire the speech data code stream of voice communication generation.
Further, its pcm interface is connected on chip by SLIC chips, with by pcm interface by speech data code stream It is transmitted to master chip.Correspondingly, master chip will pass through SPI interface(Serial Peripheral Interface, serial peripheral Interface)To SLIC chip transfer control instructions, to be configured to SLIC chips.
Step S120 judges whether active calls control model is packet switched mode, if so, S130 is entered step, If it is not, then entering step S150.
In the present embodiment, Call- Control1 pattern includes packet switched mode(Packet Switch, abbreviation PS)It is handed over circuit Mold changing formula(Circuit Switch, abbreviation CS), wherein packet switched mode will be realized by radio data network caller and Voice communication between called party;Circuit switched mode then realizes voice communication by circuit-switched network.
Active calls control model is identified, to judge whether active calls control model is packet switched mode, If so, the transmission of VoP is carried out according to packet switched mode, if it is not, then illustrating that active calls control model is circuit Switch mode, therefore, it is necessary to be handled VoP according to circuit switched mode.
Step S130 forwards VoP by data-interface.
It, will be to VoP after judging to obtain active calls control model as packet switched mode in the present embodiment It is forwarded, in order to realize the transmission of VoP by radio data network.
In one embodiment, the detailed process of above-mentioned steps S130 is:It maps to obtain data connection by data-interface, And VoP is transmitted in data connection.
In the present embodiment, VoP is forwarded in communication module by master chip by data-interface, i.e. USB interface. Specifically, USB interface is mapped to a data connection on master chip, master chip directly sends voice in the data connection Data packet.
Step S140, then transmit VoP by being grouped domain interface.
In the present embodiment, judge to obtain active calls control model as packet switched mode in the case of, communication module It is grouped domain interface by it and transmits VoP, VoP is sent to voice communication by radio data network The other end realizes the packet-switched sessions between caller and callee.In a preferred embodiment, for realizing packet switch The communication module of session can be 3G module, and best no data gauze network transmission environment is provided with the transmission for VoP.
Further, 3G(3rd-generation, 3G 3rd generation mobile communication technology)Module is connect with master chip, In, the VoP of generation is sent in 3G module by master chip by USB interface, is sent to 3G module by USB interface Session Initiation Protocol message, to realize the configuration of 3G module, to control the voice call process in 3G module.
Step S150 transmits VoP with serial line interface.
In the present embodiment, in the case of judging to obtain active calls control model not as packet switched mode, illustrate current Call- Control1 pattern is circuit switched mode, at this point, will be communicated with serial line interface between master chip and communication module, with reality The transmission of VoP under existing control instruction and circuit switched mode.
In one embodiment, the detailed process of above-mentioned steps S150 is:It is obtained to VoP package identification packet header Package, and package is transmitted by serial line interface.
In the present embodiment, by the data transmitted by serial line interface include control instruction and circuit switched mode it Under VoP, it is therefore desirable to control instruction and VoP are distinguished, i.e., wraps in voice data and encapsulates again One packet header, that is, identify packet header, obtains package, is then sent in communication module by serial port again, to facilitate communication module It is VoP to accurately identify currently transmitted, further increases the reliability of voice communication.
Step S170 is decoded the VoP transmitted with serial line interface and obtains speech data code stream, and passes through circuit domain Interface transmits.
In the present embodiment, after reception obtains the VoP transmitted with serial line interface, VoP will be carried out Decoding, to obtain speech data code stream, i.e. PCMU code streams, and then transmits speech data code stream by circuit domain interface.
As described above, communication module as realize voice communication in packet-switched sessions and circuit-switched session, thereon Provided with grouping domain interface and circuit domain interface.
As shown in Fig. 2, in one embodiment, above-mentioned steps S170 includes:
Step S171 receives the package of transmission.
In the present embodiment, the package that master chip is transmitted by serial line interface is received, the data which is included may be Control instruction, it is also possible to which VoP, therefore, it is necessary to the packages to reception to differentiate.
Step S173 judges whether the packet header in package is mark packet header, if so, enter step S175, if it is not, then into Enter step S179.
In the present embodiment, the package of reception is unpacked to obtain packet header, and then corresponding envelope is can determine according to packet header Packet type, i.e. packet type can be VoP or control instruction.Judge whether packet type is VoP, if unpacking Obtained packet header with mark packet header it is consistent, then illustrate packet type be VoP, at this point, will enter step S175 packages into Row processing illustrates that packet type instructs in order to control, will execute the control if packet header and mark packet header that unpacking obtains is not consistent System instruction.
Step S175, extraction obtains VoP from package, and decoded voice data packet obtains speech data code stream.
In the present embodiment, extraction obtains VoP from package, and is unpacked again, to remove VoP Packet header, and then the voice data after unpacking is decoded to obtain speech data code stream.
Step S177 sends speech data code stream by circuit domain interface by circuit-switched network.
Step S179 executes the control instruction in package.
In one embodiment, before above-mentioned steps S110, this method further includes:
The step of call operation of processing triggering establishes the voice communication of caller and callee.
In the present embodiment, call operation is that the off-hook operation of user and dial-up operation, master chip pass through SPI interface poll SLIC chips whether enter off hook state, when this end subscriber triggering off-hook operation after, master chip will detect SLIC chips into Enter off hook state, at this point, process is established in the voice communication for starting caller and callee.
After this end subscriber triggers dial-up operation, the number which is dialed will be connect by SLIC chips by PCM Oral instructions are sent to master chip, and the digital signal processor of master chip is collected into number, and triggers the initiation process of calling.Master chip is complete At the collection of number, it will determine that whether active calls control model is packet switched mode, if so, being sent by data-interface Session Initiation Protocol message is completed, such as:INVITE request messages, communication module are connect the Session Initiation Protocol message received by packet domain Mouth forwards to initiate to call to opposite end callee, if it is not, being then sent to communication mould by serial line interface in the form of control instruction In block, for example, control instruction can be the form of ATD+xxxxxxx, communication module receives the control instruction for containing number, and leads to Oversampling circuit domain interface initiates to call to opposite end callee.
Communication module detection user in callee triggers off-hook operation, corresponding event is generated, to notify master chip The event will be responded, and then establishes the voice communication between caller and callee.
In the present embodiment, it after opposite end callee user triggers off-hook operation, will be detected to obtain by communication module, communicate Module and then the event currently triggered by instruction message event notice master chip.
Correspondingly, master chip receives the event currently triggered.If active calls control model is packet switched mode, when After the called subscriber's off-hook of opposite end, communication module will receive the Session Initiation Protocol response message of response, and be forwarded by data-interface In Session Initiation Protocol response message to master chip, such as 200OK, master chip will the internal controls of triggering after receiving Session Initiation Protocol response message Call establishment process is completed in the execution of flow processed.At this point, in one embodiment, the communication of this end subscriber in voice communication The VoP that module will receive peer user and be sent by packet domain, and the VoP is transmitted to master chip.
If active calls control model is circuit switched mode, communication module detects after the callee user's off-hook of opposite end Response instruction is transmitted to master chip by serial line interface afterwards, for example, INDATA..In one embodiment, local terminal in voice communication After the communication module of user receives the audio data stream that peer user is sent by circuit domain interface, communication module will be according to Real-time transport protocol speech data code stream is packaged into VoP, i.e., seals speech data code stream according to prefixed time interval Dress, for example, speech data code stream is packaged into VoP according to every 20 millisecond of one frame, and plus after customized packet header It is sent to master chip by serial line interface.
At this point, VoP is decoded into speech data code stream by master chip by pcm interface, then by speech data code stream Send SLIC chips to, speech data code stream is reduced into voice flow by SLIC chips, and user will hear voice call process at this time In voice.
In another embodiment, this method further includes obtaining dropped calls instruction, is instructed according to dropped calls and stops language The step of sound is conversed.
In the present embodiment, master chip detects onhook event by the SPI interface being connect with SLIC chips, and then generates phase The dropped calls instruction answered, and be sent in communication module.Communication module by by circuit domain interface to the opposite end of voice communication User sends dropped calls message, to interrupt voice communication.
Further, make the interruption process of voice communication also different according to the difference of active calls control model. If active calls control model is circuit switched mode, master chip will be by connecting with SLIC chips when the on-hook of this end subscriber SPI interface detects onhook event, and dropped calls control instruction is sent to communication module, for example, the control by serial line interface Instruction can be ATCHUP, to send dropped calls message by circuit domain interface.
If active calls control model is packet switched mode, master chip is by the SPI interface by being connect with SLIC chips It detects onhook event, and Session Initiation Protocol dropped calls message is sent to communication module, such as BYE request messages by data-interface. Communication module receives Session Initiation Protocol dropped calls message, and is disappeared to opposite end initiation Session Initiation Protocol dropped calls by being grouped domain interface Breath, to terminate to converse.
As shown in figure 3, in one embodiment, a kind of call control system, including acquisition module 110, judgment module 120, forwarding module 130, packet-switched sessions module 140, serial line interface delivery module 150 and circuit-switched session module 160.
Acquisition module 110, the speech data code stream for obtaining voice communication generation, and encapsulate speech data code stream and obtain VoP.
In the present embodiment, during caller and callee's progress voice communication, voice flow will be constantly collected, it is right The voice flow collected is encoded to obtain corresponding speech data code stream.Wherein, which is PCMU code streams. In a preferred embodiment, the coding of the acquisition and voice flow of SLIC chips realization voice flow will be selected.
At this point, acquisition module 110 will acquire the speech data code stream of voice communication generation, and assisted according to real-time Transmission View(Real-time Transport Protocol, abbreviation RTP)Speech data code stream is encapsulated, to obtain VoP, example Such as, the speech data code stream in preset time is encapsulated as a VoP, e.g., which can be 20 milliseconds. In preferred embodiment, the hardware carrier for realizing acquisition module 110 can be master chip.The master chip will connect with SLIC chips It connects, receives the speech data code stream that SLIC chips are transmitted, to acquire the speech data code stream of voice communication generation.
Further, its pcm interface is connected on chip by SLIC chips, with by pcm interface by speech data code stream It is transmitted to master chip.Correspondingly, master chip will pass through SPI interface(Serial Peripheral Interface, serial peripheral Interface)To SLIC chip transfer control instructions, to be configured to SLIC chips.
Judgment module 120, for judging whether active calls control model is packet switched mode, if so, notice turns Module 130 is sent out, if it is not, then notifying serial line interface delivery module 150.
In the present embodiment, Call- Control1 pattern includes packet switched mode(Packet Switch, abbreviation PS)It is handed over circuit Mold changing formula(Circuit Switch, abbreviation CS), wherein packet switched mode will be realized by radio data network caller and Voice communication between called party;Circuit switched mode then realizes voice communication by circuit-switched network.
Active calls control model is identified in judgment module 120, to judge whether active calls control model is point Group switch mode, if so, notice forwarding module 130 carries out the transmission of VoP according to packet switched mode, if it is not, then Illustrate that active calls control model is circuit switched mode, therefore, it is necessary to serial line interface delivery modules 150 according to circuit switching mould Formula handles VoP.
Forwarding module 130 forwards VoP for passing through data-interface.
In the present embodiment, after judging to obtain active calls control model as packet switched mode, forwarding module 130 will be right VoP is forwarded, in order to realize the transmission of VoP by radio data network.
In one embodiment, above-mentioned forwarding module 130 is additionally operable to map to obtain data connection by data-interface, and VoP is transmitted in data connection.
In the present embodiment, judgment module 120 and forwarding module 130 are run in master chip, master chip by data-interface, I.e. VoP is forwarded in communication module this hardware device by USB interface.Specifically, forwarding module 130 is connect by USB Mouth is mapped to a data connection on master chip, and master chip directly sends VoP in the data connection.
Packet-switched sessions module 140, for transmitting VoP by being grouped domain interface.
In the present embodiment, judge to obtain active calls control model as packet switched mode in the case of, communication module The packet-switched sessions module 140 of middle operation is grouped domain interface by it and transmits VoP, to pass through radio data network VoP is sent to the other end of voice communication, realizes the packet-switched sessions between caller and callee.Excellent Can be 3G module for realizing the communication module of packet-switched sessions, to be carried for the transmission of VoP in the embodiment of choosing For best radio data network transmission environment.
Further, 3G(3rd-generation, 3G 3rd generation mobile communication technology)Module is connect with master chip, In, the VoP of generation is sent in 3G module by the forwarding module 130 in master chip by USB interface, is connect by USB Mouth sends Session Initiation Protocol message to 3G module, to realize the configuration of 3G module, to control the voice call process in 3G module.
Serial line interface delivery module 150, for transmitting VoP with serial line interface.
In the present embodiment, in the case of judging to obtain active calls control model not as packet switched mode, illustrate current Call- Control1 pattern is circuit switched mode, at this point, the serial line interface delivery module 150 run in master chip and communication module it Between will be communicated with serial line interface, to realize the transmission of VoP under control instruction and circuit switched mode.
In one embodiment, above-mentioned serial line interface delivery module 150 is additionally operable to VoP package identification packet header Package is obtained, and package is transmitted by serial line interface.
In the present embodiment, by the data transmitted by serial line interface include control instruction and circuit switched mode it Under VoP, it is therefore desirable to control instruction and VoP are distinguished, i.e., serial line interface delivery module 150 will It is wrapped in voice data and encapsulates a packet header again, that is, identify packet header, obtain package, communication mould is then sent to by serial port again In block, it is VoP to facilitate communication module to accurately identify currently transmitted, further increases the reliability of voice communication.
Circuit-switched session module 160 obtains voice data code for decoding the VoP transmitted with serial line interface Stream, and transmitted by circuit domain interface network.
In the present embodiment, after the reception of circuit-switched session module 160 obtains the VoP transmitted with serial line interface, VoP will be decoded, and to obtain speech data code stream, i.e. PCMU code streams, and then language be transmitted by circuit domain interface Sound data code flow.
As described above, circuit-switched session module 160 and packet-switched sessions module 140 run on hardware carrier communication mould In block, communication module is provided with packet domain thereon as the packet-switched sessions and circuit-switched session realized in voice communication Interface and circuit domain interface.
As shown in figure 4, in one embodiment, foregoing circuit exchange session module 160 include package receiving unit 161, Packet processing unit 163 and code stream transmission unit 165.
Package receiving unit 161, the package for receiving transmission.
In the present embodiment, package receiving unit 161 receives the package that master chip is transmitted by serial line interface, which is wrapped The data contained may be control instruction, it is also possible to which VoP, therefore, it is necessary to the packages to reception to differentiate.
Packet processing unit 163, for judging whether the packet header in package is mark packet header, if so, being carried from package VoP is obtained, and decoded voice data packet obtains speech data code stream, if it is not, the control then executed in package refers to It enables.
In the present embodiment, packet processing unit 163 unpacks the package of reception to obtain packet header, and then is according to packet header It can determine corresponding packet type, i.e. packet type can be VoP or control instruction.Judge whether packet type is language Sound data packet illustrates that packet type is VoP, at this point, will lead to if the packet header that unpacking obtains is consistent with mark packet header Know that 165 package of code stream transmission unit is handled, if packet header and mark packet header that unpacking obtains is not consistent, illustrates package class Type instructs in order to control, will execute the control instruction.
Packet processing unit 163 extracts from package and obtains VoP, and is unpacked again, to remove voice number It is decoded to obtain speech data code stream according to the packet header of packet, and then to the voice data after unpacking.
Code stream transmission unit 165, for sending speech data code stream by circuit-switched network by circuit domain interface.
In another embodiment, above system further includes call establishment module.The call establishment module is tactile for handling The call operation of hair establishes caller and the voice communication of callee.
In the present embodiment, call operation is that the off-hook operation of user and dial-up operation, call establishment module control main core Whether piece enters off hook state by SPI interface poll SLIC chips, after the triggering off-hook operation of this end subscriber, will detect SLIC chips enter off hook state, at this point, process is established in the voice communication for starting caller and callee.
After this end subscriber triggers dial-up operation, the number which is dialed will be connect by SLIC chips by PCM Oral instructions are sent to master chip, are collected into number by digital signal processor in call establishment module control master chip, and trigger The initiation process of calling.Master chip completes the collection of number, will determine that whether active calls control model is packet switched mode, If so, Session Initiation Protocol message is sent to complete by data-interface, such as:INVITE request messages, communication module is receiving Session Initiation Protocol message is initiated to call by being grouped domain interface to opposite end callee forwarding, if it is not, then being led in the form of control instruction It crosses serial line interface to be sent in communication module, for example, control instruction can be the form of ATD+xxxxxxx, communication module receives packet The control instruction of number is contained, and has initiated to call to opposite end callee by circuit domain interface.
Communication module detection user in callee triggers off-hook operation, corresponding event is generated, to notify master chip The event will be responded, so that call establishment module control master chip and communication module are established between caller and callee Voice communication.
In the present embodiment, it after opposite end callee user triggers off-hook operation, will be detected to obtain by communication module, communicate Module and then the event currently triggered by instruction message event notice master chip.
Correspondingly, call establishment module control master chip receives the event currently triggered.If active calls control model For packet switched mode, after opposite end is called user's off-hook, communication module will receive the Session Initiation Protocol response message of response, And forwarded in Session Initiation Protocol response message to master chip by data-interface, such as 200OK, master chip receive Session Initiation Protocol response The execution that internal control flow will be triggered after message, completes call establishment process.At this point, in one embodiment, voice is logical The VoP that the communication module of this end subscriber will receive peer user and be sent by packet domain in words, and transmit the voice Data packet is to master chip.
If active calls control model is circuit switched mode, communication module detects after the callee user's off-hook of opposite end Response instruction is transmitted to master chip by serial line interface afterwards, for example, INDATA.
In one embodiment, the communication module of this end subscriber receives peer user and is connect by circuit domain in voice communication After the audio data stream that mouth is sent, communication module will be packaged into voice data according to real-time transport protocol speech data code stream Packet, i.e., encapsulate speech data code stream according to prefixed time interval, for example, speech data code stream is sealed according to every 20 millisecond of one frame VoP is dressed up, and master chip is sent to by serial line interface plus after customized packet header.
At this point, VoP is decoded into speech data code stream by master chip by pcm interface, then by speech data code stream Send SLIC chips to, speech data code stream is reduced into voice flow by SLIC chips, and user will hear voice call process at this time In voice.
In another embodiment, above system further includes that call stops module.It is logical for obtaining that the call stops module Interrupt instruction is talked about, is instructed according to dropped calls and stops voice communication.
In the present embodiment, call stops module control master chip and detects extension by the SPI interface being connect with SLIC chips Machine event, and then corresponding dropped calls instruction is generated, and be sent in communication module.Call stops module communication control module Dropped calls message is sent to the peer user of voice communication by circuit domain interface, to interrupt voice communication.
Further, call stops the interruption process that module makes voice communication according to the difference of active calls control model Also different.If active calls control model is circuit switched mode, when the on-hook of this end subscriber call stop module control master Chip detects onhook event by the SPI interface being connect with SLIC chips, and sending dropped calls control by serial line interface refers to It enables to communication module, for example, the control instruction can be ATCHUP, to send dropped calls message by circuit domain interface.
If active calls control model be packet switched mode, call stop module control master chip by with SLIC chips The SPI interface of connection detects onhook event, and sends Session Initiation Protocol dropped calls message to communication module by data-interface, Such as BYE request messages.Communication module receives Session Initiation Protocol dropped calls message, and initiates SIP to opposite end by being grouped domain interface Agreement dropped calls message, to terminate to converse.
As shown in figure 5, in one embodiment, above-mentioned call control apparatus includes subscriber line interface chip 510 and uses The master chip 530 of family line interface chip connection 510 and the communication module 550 being connect with master chip 530.
Subscriber line interface chip 510, the voice flow for acquiring voice communication generation, encoded voice stream obtain voice number According to code stream, and it is sent to master chip 530.
Master chip 530 is used to obtain the speech data code stream of voice communication generation, and encapsulates speech data code stream and obtain language Sound data packet judges whether active calls control model is packet switched mode, if so, notification communication module 550 is by dividing Group domain interface sends the VoP, is packaged the VoP if it is not, then encapsulating and is sent to communication module 550.
Communication module 550 unpacks the VoP that reduction encapsulation is packaged and obtains speech data code stream, and passes through circuit domain Interface transmits.
Above-mentioned calling-control method, system and device, the speech data code stream that encapsulation voice communication generates obtain voice number According to packet, judge whether active calls control model is packet switched mode, if so, forwarding voice data by data-interface Packet, and then transmit VoP by being grouped domain interface;If it is not, then with serial line interface transmit VoP, with decode with The VoP of serial mode transmission obtains speech data code stream, and is transmitted by circuit domain interface, without additional Increase hardware and may make network voice communication support circuit-switched and packet switch.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (11)

1. a kind of calling-control method, includes the following steps:
The speech data code stream that voice communication generates is obtained from SLIC chips by the pcm interface being directly connected to, and described in encapsulation Speech data code stream obtains VoP;
Judge whether active calls control model is packet switched mode, if so, forwarding the voice data by USB interface Packet;
Again the VoP is transmitted by being grouped domain interface;
If it is not, then obtaining package to VoP package identification packet header, the package is transmitted with serial line interface;
The decoding package with serial line interface transmission obtains speech data code stream, and is transmitted by circuit domain interface.
2. according to the method described in claim 1, it is characterized in that, described forward the VoP by USB interface Step includes:
It maps to obtain data connection by USB interface, and transmits the VoP in the data connection.
3. according to the method described in claim 1, it is characterized in that, the package transmitted with serial line interface described in the decoding obtains Speech data code stream, and the step of being transmitted by circuit domain interface includes:
Receive the package of the transmission;
Judge whether the packet header in package is mark packet header, if so, extraction obtains the VoP from the package, And it decodes the VoP and obtains speech data code stream;
The speech data code stream is sent by the circuit-switched network by circuit domain interface.
4. according to the method described in claim 1, it is characterized in that, it is described obtain voice communication generate speech data code stream, And before encapsulating the step of speech data code stream obtains VoP, this method further includes:
The call operation of processing triggering establishes caller and the voice communication of callee.
5. according to the calling-control method described in right 4, which is characterized in that the method further includes:
Dropped calls instruction is obtained, the voice communication is stopped according to dropped calls instruction.
6. a kind of call control system, which is characterized in that including:
Acquisition module obtains the voice data code that voice communication generates for the pcm interface by being directly connected to from SLIC chips Stream, and encapsulate the speech data code stream and obtain VoP;
Judgment module, for judging whether active calls control model is packet switched mode, if so, notice forwarding module, If it is not, then notifying serial line interface delivery module;
The forwarding module is used to forward the VoP by USB interface;
Packet-switched sessions module, for obtaining package to VoP package identification packet header, by being grouped domain interface Transmit the package;
The serial line interface delivery module is used to transmit the package with serial line interface;
Circuit-switched session module is obtained speech data code stream for decoding the package transmitted with serial line interface, and passed through Circuit domain interface transmits.
7. system according to claim 6, which is characterized in that the forwarding module is additionally operable to map by USB interface To data connection, and the VoP is transmitted in the data connection.
8. system according to claim 6, which is characterized in that the circuit-switched session module includes:
Package receiving unit, the package for receiving the transmission;
Packet processing unit, for judging whether the packet header in package is mark packet header, if so, being extracted from the package To the VoP, and decodes the VoP and obtain speech data code stream;
Code stream transmission unit, for sending the speech data code stream by the circuit-switched network by circuit domain interface.
9. system according to claim 6, which is characterized in that the system also includes:
Call establishment module, the call operation for handling triggering establish caller and the voice communication of callee.
10. system according to claim 9, which is characterized in that the system also includes:
Call stops module, for obtaining dropped calls instruction, stops the voice communication according to dropped calls instruction.
11. a kind of call control apparatus, which is characterized in that including subscriber line interface chip, with the subscriber line interface core Its pcm interface is connected directly to master by the master chip of piece connection and the communication module being connect with the master chip, SLIC chips On chip;
The subscriber line interface chip is used to acquire the voice flow of voice communication generation, encodes the voice flow and obtains voice number According to code stream, and it is sent to master chip;
The master chip is used for the pcm interface by being directly connected to and obtains the voice data code that voice communication generates from SLIC chips Stream, and encapsulate the speech data code stream and obtain VoP, judge whether active calls control model is packet switch mould Formula is packaged institute's predicate if so, notification communication module sends the VoP by being grouped domain interface if it is not, then encapsulating Sound data packet is simultaneously sent to communication module;
The communication module unpacks the VoP that reduction encapsulation is packaged and obtains speech data code stream, and passes through circuit domain interface Transmission.
CN201310272504.4A 2013-07-01 2013-07-01 Calling-control method and device Expired - Fee Related CN104284035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310272504.4A CN104284035B (en) 2013-07-01 2013-07-01 Calling-control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310272504.4A CN104284035B (en) 2013-07-01 2013-07-01 Calling-control method and device

Publications (2)

Publication Number Publication Date
CN104284035A CN104284035A (en) 2015-01-14
CN104284035B true CN104284035B (en) 2018-08-14

Family

ID=52258499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310272504.4A Expired - Fee Related CN104284035B (en) 2013-07-01 2013-07-01 Calling-control method and device

Country Status (1)

Country Link
CN (1) CN104284035B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917673A (en) * 2014-03-10 2015-09-16 中兴通讯股份有限公司 Home gateway and call configuration method
CN112383720B (en) * 2020-11-11 2023-03-07 杭州海康威视数字技术股份有限公司 Image data processing device and image data processing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414770A (en) * 2002-09-20 2003-04-30 奥迪坚通讯系统(上海)有限公司 Calling center blended with packet exchange mode and circuit exchange mode
CN1780268A (en) * 2004-11-26 2006-05-31 上海博达数据通信有限公司 Speech gateway for connecting PSTN and IP network
CN101478617A (en) * 2008-12-31 2009-07-08 中国电信股份有限公司 Method, system, household gateway and USB wireless device for implementing VOIP voice
CN101494916A (en) * 2009-03-09 2009-07-29 中兴通讯股份有限公司 System and method for supporting VOIP and CS telephone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414770A (en) * 2002-09-20 2003-04-30 奥迪坚通讯系统(上海)有限公司 Calling center blended with packet exchange mode and circuit exchange mode
CN1780268A (en) * 2004-11-26 2006-05-31 上海博达数据通信有限公司 Speech gateway for connecting PSTN and IP network
CN101478617A (en) * 2008-12-31 2009-07-08 中国电信股份有限公司 Method, system, household gateway and USB wireless device for implementing VOIP voice
CN101494916A (en) * 2009-03-09 2009-07-29 中兴通讯股份有限公司 System and method for supporting VOIP and CS telephone

Also Published As

Publication number Publication date
CN104284035A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
CN104506523B (en) A kind of call forwarding method of intelligent terminal VoIP
EP2408163B1 (en) System and method for supporting voip and cs telephony
WO2012106894A1 (en) Method and device for transmitting media stream data in cloud computing system
CN104284035B (en) Calling-control method and device
US8179842B2 (en) Encapsulating upper layers of CDMA signaling between a multi-mode device and a signaling gateway
CN108401230A (en) The voice SMS of internet and global mobile communication exchanges repeater system and method
CN101472019B (en) Method, system and device for mutually communicating outband DTMF signaling
CN101237620B (en) Transmission method and media gateway for impulse coding modulation code stream
CN104333559B (en) A kind of safety communicating method and system based on voice packet
CN101282284B (en) Gateway-across dual-tone multi-frequency conveying method and apparatus
CN101166162B (en) A method for transmitting service event
WO2008138187A1 (en) A realizing method for re-answering call
CN102055516B (en) DTMF (dual-tone multifrequency) sound transferring method and device
WO2016095527A1 (en) Voice call method, intelligent mobile terminal, fixed-line telephone and intelligent telephone system
WO2012009994A1 (en) Method and talking terminal for implementing multiparty call
CN101998003A (en) Call holding method for voice over internet protocol (VoIP) based on session initiation protocol (SIP)
CN104426702B (en) A kind of control method of voice service, device and system
CN100466831C (en) A method and apparatus for detecting service style
US20240214710A1 (en) Data processing method, outdoor unit, indoor unit and computer-readable storage medium
CN103548383A (en) Method, device and system for transmitting minimum set of data in emergency call situation
WO2008025286A1 (en) Alternating method, device and system for dtmf under separate structure
CN101409751B (en) Method, apparatus and system for transferring dual-tone multi-frequency signal
JP2009004974A (en) Signal control system in ip telephone system
CN111970735A (en) Data transmission method and device and VoWiFi communication method
CN112866490A (en) Capability opening system based on BICC signaling

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180814