CN110213451A - A kind of talking mode switching method, device and computer readable storage medium - Google Patents

A kind of talking mode switching method, device and computer readable storage medium Download PDF

Info

Publication number
CN110213451A
CN110213451A CN201910423271.0A CN201910423271A CN110213451A CN 110213451 A CN110213451 A CN 110213451A CN 201910423271 A CN201910423271 A CN 201910423271A CN 110213451 A CN110213451 A CN 110213451A
Authority
CN
China
Prior art keywords
terminal
talking mode
request
talking
server
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.)
Pending
Application number
CN201910423271.0A
Other languages
Chinese (zh)
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910423271.0A priority Critical patent/CN110213451A/en
Publication of CN110213451A publication Critical patent/CN110213451A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/247Telephone sets including user guidance or feature selection means facilitating their use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/42229Personal communication services, i.e. services related to one subscriber independent of his terminal and/or location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/12Arrangements for interconnection between switching centres for working between exchanges having different types of switching equipment, e.g. power-driven and step by step or decimal and non-decimal
    • H04M7/1205Arrangements for interconnection between switching centres for working between exchanges having different types of switching equipment, e.g. power-driven and step by step or decimal and non-decimal where the types of switching equipement comprises PSTN/ISDN equipment and switching equipment of networks other than PSTN/ISDN, e.g. Internet Protocol networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the present application discloses a kind of talking mode switching method, device and computer readable storage medium.This method comprises: the first request with the talking mode of the second terminal progress first kind that server is sent by receiving first terminal, the talking mode request of the first kind is sent to second terminal, second terminal receives the talking mode request of the first kind, talking mode selection request is sent to server to prompt the talking mode using Second Type to be communicated, server selects the talking mode for requesting to convert the talking mode of the first kind to Second Type further according to the talking mode for receiving second terminal, the connection of the talking mode of Second Type is finally established for first terminal and second terminal.Using the embodiment of the present application, more flexible talking mode service can be provided for called subscriber, reduce call cost.

Description

A kind of talking mode switching method, device and computer readable storage medium
Technical field
This application involves field of computer technology more particularly to a kind of talking mode switching method, device and computer can Read storage medium.
Background technique
The networking telephone is generally divided into two types: first is that dial merely with network phone (client to client, C2C), in form, it is similar to mobile phone QQ voice communication;Second is that the networking telephone will be switched to simulation letter by digital signal by transfer Number, can finally plain old telephone be allowed to answer, be exactly in form can be conversed with the networking telephone and base (client to phone, C2P).The cost of C2C is significantly less than C2P, however wants to realize C2C call in current the Internet telephony application in the industry it is difficult to ensure that visitor The online rate at family end is often called not online when being called so as to cause caller dials, cannot timely relate to called, Zhi Nengtong It crosses access carrier network and carries out C2P call, operation cost is higher.Therefore, how to reduce call cost is the art people The problem of member is studying.
Summary of the invention
The embodiment of the present application discloses a kind of talking mode switching method, device and computer readable storage medium, can The switching for realizing talking mode, to reduce call cost.
In a first aspect, the embodiment of the present application provides a kind of talking mode switching method, this method comprises:
First sent according to first terminal requests to send the first PUSH message to second terminal, and first request is used for The talking mode of the request starting first kind;
Receive the talking mode selection request that the second terminal is sent according to first PUSH message, the correspondent Formula selection request is used to indicate to be communicated using the talking mode of Second Type;
The second request is sent to the second terminal according to talking mode selection request, second request is for asking Seek the talking mode of starting Second Type;
If receiving the agreement close-talking response for second request, the server is the first terminal and institute State the connection that second terminal establishes the talking mode of the Second Type.
In the above-mentioned methods, server is by receiving the logical with the second terminal progress first kind of first terminal transmission First request of words mode selects request to turn the talking mode of the first kind further according to the talking mode for receiving second terminal The talking mode of Second Type is turned to, the connection of the talking mode of Second Type is finally established for first terminal and second terminal; The switching of different talking mode types is realized, more flexible talking mode service is provided for called subscriber, reduces call cost.
Based in a first aspect, the server is sent according to first terminal in a kind of wherein optional implementation First request to second terminal send the first PUSH message include:
After receiving the first request that the first terminal is sent, detect in the second terminal for providing talking mode Client whether have a heartbeat, the heartbeat is used to feed back the response condition of the client;
The first push is generated according to the heartbeat detection result of the client in the second terminal for providing talking mode Message, wherein if the client in the second terminal for providing talking mode does not have heartbeat, first PUSH message For starting in the second terminal for providing the client of talking mode;If for providing correspondent in the second terminal The client of formula has heartbeat, then first PUSH message is used to request the described in the client terminal start-up for providing talking mode The talking mode of one type;
First PUSH message is sent to the second terminal.
Whether this implementation is online by detection called subscriber, wakes up called subscriber if not online, that is, wakes up the The mode of two terminals ensure that in second terminal for providing online, the raising transmission efficiency of the client of talking mode.
Based in a first aspect, the talking mode of the Second Type is network in a kind of wherein optional implementation Talking mode;It is described to be requested according to talking mode selection to before the second request of second terminal transmission, comprising:
Monitor the network quality that the first terminal is connected with the internet of the second terminal, when the first terminal or When the network quality of the second terminal is unsatisfactory for default network quality range, the second terminal and the first terminal are interrupted Internet phone-calling mode.
It is described to work as the first terminal or described second based in a first aspect, in a kind of wherein optional implementation When the network quality of terminal is unsatisfactory for default network quality range, interrupt the second terminal with it is described
After the Internet phone-calling mode of first terminal, further includes:
Dropped calls message is exported to the second terminal and the first terminal, the dropped calls message is for prompting Whether network quality situation, or prompt start the talking mode of the first kind, and the talking mode of the first kind is Non-network talking mode.
This implementation passes through monitoring first terminal and the network quality of second terminal and in bad order in network quality When export dropped calls message, to prompt user network quality condition or provide the selection of non-network talking mode, provide more Flexible talking mode service.
Second aspect, the embodiment of the present application provide another talking mode switching method, this method comprises:
Second terminal receives the first PUSH message that server is sent;
The second terminal sends the talking mode selection request to the server according to first PUSH message, The talking mode selection request is used to indicate to be communicated using the talking mode of Second Type;
The second terminal receives the second request that the server selects request to send according to the talking mode, described Second request is for requesting the talking mode of starting Second Type;
If receiving the agreement call instruction for second request, the second terminal is sent to the server Agree to close-talking response.
In the above-mentioned methods, second terminal receives the talking mode request of the first kind, sends correspondent to server Formula selection request realizes turning for different types of talking mode to prompt the talking mode using Second Type to be communicated It changes, reduces call cost.
Based on second aspect, in a kind of wherein optional implementation, the second terminal receives the server hair The first PUSH message sent, comprising:
The second terminal receives the first PUSH message, if for providing the client of talking mode in the second terminal There is no heartbeat, then according in the described first push message initiated second terminal for providing the client of talking mode;If There is heartbeat for the client that provides talking mode in the second terminal, then according to first PUSH message request starting the The talking mode of one type.
This implementation ensure that in second terminal by way of waking up second terminal for providing talking mode Online, the raising transmission efficiency of client.
The third aspect, the embodiment of the present application provide a kind of talking mode switching device, comprising:
First transmission unit, first for being sent according to first terminal requests to send first to second terminal and push to disappear Breath, first request is for requesting the talking mode of the starting first kind;
First receiving unit is selected for receiving the second terminal according to the talking mode that first PUSH message is sent Request is selected, the talking mode selection request is used to indicate to be communicated using the talking mode of Second Type;
Second transmission unit, for sending the second request to the second terminal according to talking mode selection request, Second request is for requesting the talking mode of starting Second Type;
Unit is established, if for receiving the agreement close-talking response for second request, for the first terminal The connection of the talking mode of the Second Type is established with the second terminal.
It should be noted that the implementation of the third aspect and corresponding beneficial effect are referred to first aspect and phase The description in implementation is answered, details are not described herein again.
Fourth aspect, the embodiment of the present application provide another talking mode switching device, comprising:
Third receiving unit, the first PUSH message sent for receiving the server;
Third transmission unit is selected for sending the talking mode to the server according to first PUSH message Request, the talking mode selection request is used to indicate to be communicated using the talking mode of Second Type;
4th receiving unit selects described the second of request transmission according to the talking mode for receiving the server Request, second request is for requesting the talking mode of starting Second Type;
4th transmission unit, if for receiving the agreement call instruction for second request, to the service Device, which is sent, agrees to close-talking response.
It should be noted that the implementation of fourth aspect and corresponding beneficial effect are referred to second aspect and phase The description in implementation is answered, details are not described herein again.
5th aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer storage medium It is stored with program instruction, described program instruction makes the processor execute side described in first aspect when being executed by a processor Method.
It should be noted that the implementation of the 5th aspect and corresponding beneficial effect are referred to first aspect and phase The description in implementation is answered, details are not described herein again.
6th aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer storage medium It is stored with program instruction, described program instruction makes the processor execute side described in second aspect when being executed by a processor Method.
It should be noted that the implementation of the 6th aspect and corresponding beneficial effect are referred to second aspect and phase The description in implementation is answered, details are not described herein again.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, will implement below to the application Attached drawing needed in example or background technique is briefly described.
Fig. 1 is a kind of system architecture diagram of talking mode switching method provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of talking mode switching method provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of talking mode switching device provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of another talking mode switching device provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of talking mode switching equipment provided by the embodiments of the present application.
Specific embodiment
It is described below in conjunction with attached drawing technical solutions in the embodiments of the present application.
It should be appreciated that the term used in this present specification is merely for the sake of for the purpose of describing particular embodiments And it is not intended to limit the application." embodiment " is referred in the specification of the present application it is meant that is described is specific in conjunction with the embodiments Feature, structure or characteristic may be embodied at least one embodiment of the application.It is somebody's turn to do each position in the description Phrase might not each mean identical embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion. Those skilled in the art explicitly and implicitly understand that embodiment described herein can mutually be tied with other embodiments It closes.The term " equipment " that uses in the present specification, " unit ", " system " etc. for indicate computer-related entity, hardware, Firmware, the combination of hardware and software, software or software in execution.For example, equipment can be but not limited to, and processor, data Processing platform calculates equipment, computer, 2 or more computers etc..
It is also understood that referring in present specification to term "and/or" used in the appended claims related Join any combination and all possible combinations of one or more of item listed, and including these combinations.
In order to better understand a kind of talking mode switching method provided by the embodiments of the present application, device and computer-readable Storage medium is below first described the system architecture of the talking mode switching method of the embodiment of the present application.As shown in Figure 1, It is a kind of system architecture schematic diagram of talking mode switching method provided by the embodiments of the present application, which may include one Or multiple servers (multiple servers may be constructed a server cluster), the networking telephone (Voice over Internet Protocol, VOIP) voice gateways and one or more terminal (or equipment), wherein
Server 101 can be gateway routing server, guarantee the whole network routing table in the short messaging gateway in each area The consistency of (Short Message Gateway, SMG) receives the routing update information that SMG is sent, and client is not necessarily to and it Its server establishes a plurality of connection simultaneously, saves the network resource overhead of client and server program;Server 101 may be used also To include but is not limited to background server, component server, data processing server etc.;Server 101 can pass through internet It is communicated with multiple gateways.Server 101 provides talking mode switching service for terminal, and needing to run on server 101 has Corresponding server switches service to provide corresponding talking mode, such as authenticates and transmits data function service, storage Data service etc..
Terminal 102 and terminal 103 can be installed and run relevant client.Client refer to it is corresponding with server, The program of local service is provided for client.Here, which may include but be not limited to: to server send information (such as Option request query messages, heartbeat message) and receive server transmission information (such as wakeup message, call request message) And shared information etc..Client can include: the application program of local runtime runs on function on web browser (again Referred to as Web App), the small routine that is embedded in Email, client software (such as wechat for being embedded in instant messaging (WeChat)) small routine in, and the function (such as wechat public platform) being embedded in other applications (such as WeChat). Terminal in this programme embodiment can include but is not limited to any communication product, can pass through keyboard, virtual with user The input equipments such as keyboard, touch tablet, touch screen and voice-operated device carry out human-computer interaction, such as plain old telephone, smart phone Deng.Wherein, intelligent operating system includes but is not limited to any by enriching equipment to the various mobile applications of mobile device offer The operating system of function, such as Android (AndroidTM)、iOSTM、Windows PhoneTMDeng.
VOIP voice gateways 104 and VOIP voice gateways 105, have the function of router and interchanger, are to pass through interconnection The access device that net is made a phone call, by public switched telephone network (Public Switched Telephone Network, PSTN) with IP network connects, to realize the function of carrying out voice communication by the Internet network.
It is simple below to illustrate in the embodiment of the present application, the communication process between terminal 102 and terminal 103 specifically:
Terminal 102 is connected to VOIP phone/VOIP gateways for network telephone call by telephone exchange, passes through network pair with IP address The telephone number of terminal 103 is called, and transmitting terminal gateway identifies calling subscriber, and translation gateway IP address initiates VOIP network Call, server 101 receive the call request of calling terminal 102, by realizing C2P with a series of interact of terminal 103 The conversion of call and C2C call, is connected to the gateway near called terminal 103, and complete speech coding and packing, receiving end Called terminal 103 is unpacked, decodes and is connected in gateway realization.Wherein, terminal 102 and terminal 103 can be interchanged caller and be called.
The talking mode switching method of the application is illustrated below with reference to Fig. 2, as shown in Fig. 2, it is real for the application The flow diagram that a kind of talking mode switching method of example offer is provided, from three side of first terminal, second terminal and server How to carry out talking mode switching to specifically describe the embodiment of the present application, this method can based on system architecture shown in FIG. 1 or Person other frameworks are realized, may comprise steps of:
Step S201: first terminal sends the first request to server.
Specifically, first terminal sends the first request to server, which starts for requesting with second terminal The talking mode of the first kind.
Step S202: server requests to send the first PUSH message to second terminal according to first that first terminal is sent.
Specifically, it after server receives first request, sends the first PUSH message and requests to start to second terminal The talking mode of the first kind.
In a wherein embodiment, after server receives first request, detect in second terminal for providing Whether the client of talking mode has heartbeat, i.e., server timing sends heartbeat packet to the client, and generates heartbeat detection knot Fruit proves that the client has heartbeat if having obtained the response of preset times;Server is according to logical for providing in second terminal The heartbeat detection result of the client of words mode generates the first PUSH message, wherein if for providing correspondent in second terminal The client of formula does not have heartbeat, then the first PUSH message can be wakeup message, logical for providing in second terminal for starting The client of words mode, server send wakeup message to second terminal;If for providing the visitor of talking mode in second terminal There is heartbeat at family end, then the first PUSH message can be the first request, for requesting the talking mode of the starting first kind, server The first request is sent to second terminal.Whether this embodiment is online by detection called subscriber, wakes up quilt if not online It is user, that is, wakes up the mode of second terminal, the online of the client for being used to provide talking mode in second terminal is ensure that, mentions High transmission efficiency.
Step S203: second terminal receives the first PUSH message that server is sent.
Specifically, second terminal receives the first PUSH message of server transmission, if logical for providing in second terminal The client of words mode does not have heartbeat, i.e. the client is not online, then is used for according in the first push message initiated second terminal The client of talking mode is provided;If the client in second terminal for providing talking mode has heartbeat, pushed away according to first Send the talking mode of the message request starting first kind.
Step S204: second terminal sends talking mode selection request according to the first PUSH message.
Specifically, it after second terminal receives the first PUSH message, is sent and is led to server according to first PUSH message Words mode is requested, and talking mode selection request is used to indicate to be communicated using the talking mode of Second Type;Wherein, if first PUSH message is wakeup message, then opens for providing the client of talking mode in second terminal, and after opening successfully, second eventually It holds to server and sends inquiry request to inquire the type of the desired talking mode of the first terminal, received server-side is looked into this After asking request, the talking mode of the first kind of the first request flag is returned to second terminal, if the call of the first kind Mode and user's selection or the talking mode of preset in advance are not inconsistent, then second terminal is according to the talking mode of the first kind to clothes Business device sends talking mode selection request, and server receives talking mode selection and requests, and talking mode selection request is used for It indicates to be communicated using the talking mode of Second Type;If the first PUSH message is the first request, if the first request mark The talking mode of the first kind of will and user's selection or the talking mode of preset in advance are not inconsistent, then second terminal according to this first The talking mode of the first kind of request flag sends talking mode selection request to server, and server receives the talking mode Selection request, talking mode selection request is used to indicate to be communicated using the talking mode of Second Type.Wherein, the second class The talking mode of type is the talking mode of user's selection or preset in advance.
Step S205: server sends the second request to second terminal according to talking mode selection request.
Specifically, it after server receives talking mode selection request, is requested according to talking mode selection to second terminal The second request is sent, second request is for requesting the talking mode of starting Second Type.
In a wherein embodiment, the talking mode of Second Type is Internet phone-calling mode, in server according to logical Before words mode selects request to send the second request to the second terminal, monitoring server first terminal and second terminal it is mutual The network quality of networking connection, when the network quality of first terminal or second terminal is unsatisfactory for default network quality range, in The Internet phone-calling mode of disconnected second terminal and first terminal.
In a wherein embodiment, when the network quality of first terminal or second terminal is unsatisfactory for default network quality When range, after interrupting second terminal and the Internet phone-calling mode of first terminal, server is exported to second terminal and first terminal Dropped calls message, dropped calls message can be used for prompting network quality situation, which can pass through network Quality score or grade or verbal description embody, for example, dropped calls message specifically can be, " first terminal network quality is commented Points 89, second terminal network quality scoring 60, dropped calls ", " first terminal network quality levels A, second terminal network quality Grade D, dropped calls ", " second terminal network quality is poor, call terminal " etc.;The dropped calls message can also prompt Whether the talking mode of the first kind is started, and the talking mode of the first kind is non-network talking mode, due to network quality Problem results in communication disruption, then user can choose is conversed by non-network talking mode, at this time dropped calls message It specifically can be " dropped calls, if connect non-network call ".This embodiment is whole by monitoring first terminal and second The network quality at end simultaneously exports dropped calls message when network quality is in bad order, to prompt user network quality condition or mention For the selection of non-network talking mode, more flexible talking mode service is provided.
Step S206: second terminal requests to send to server for second agrees to close-talking response, and server is first whole End and second terminal establish the connection of the talking mode of Second Type.
Specifically, after second terminal receives the second request, the talking mode of the first kind is hung up and opens the second class The talking mode of type, according to this second request to server send agree to close-talking response, asked if server is received for second The agreement close-talking response is sent the first client by the agreement close-talking response asked, and by the SDP of the talking mode of Second Type Negotiation information is sent to first terminal, with the SDP negotiation information of the talking mode of the first kind before covering, realizes first Terminal and second terminal establish the connection of the talking mode of Second Type.
According to the embodiment of the present application, below by taking C2P call type is switched to C2C call type as an example, i.e. the first kind Talking mode is C2P, and the talking mode of Second Type is C2C, and how specific descriptions the embodiment of the present application, which carries out talking mode, is cut Change: first terminal sends the request of C2P talking mode to server, carries out C2P call with request and second terminal, server receives It is whether online for providing the client of talking mode in detection second terminal to after the C2P call request, if not online, Then server is opened to second terminal transmission wake up instruction for providing the client of talking mode in second terminal, the client After end is opened, second terminal sends the talking mode type of option request inquiry first request to server, and server returns Returning call type is C2P talking mode, then second terminal sends talking mode selection instruction to server, and marks and lead to C2P Words are converted into C2C call;After received server-side to the talking mode request instruction, sending cancel to second terminal please be sought C2P call request before disappearing, and C2C call request is sent to second terminal;After second terminal receives C2C call request, It hangs up C2P call request and opens C2C call flow, send 180 ring of C2C request to server end, server receives When 180 ring of C2C is requested, sends the request to first terminal and sends first terminal for the SDP negotiation information of C2C, With the SDP negotiation information of C2P before covering, C2C call is realized.
Implement the embodiment of the present application, what server was sent by reception first terminal carries out the first kind with second terminal First request of talking mode, the talking mode request of the first kind is sent to second terminal, and second terminal receives the first kind The talking mode of type is requested, and sends talking mode selection request to server to prompt the talking mode using Second Type to carry out Communication, server select request to convert for the talking mode of the first kind further according to the talking mode for receiving second terminal The talking mode of two types establishes the connection of the talking mode of Second Type finally for first terminal and second terminal;It realizes The switching of different talking mode types provides more flexible talking mode service for called subscriber, reduces call cost.
For the ease of better implementing the above scheme of the embodiment of the present application, the application correspondence provides a kind of talking mode Switching device is described in detail with reference to the accompanying drawing:
As shown in figure 3, the embodiment of the present application provides a kind of structural schematic diagram of talking mode switching device 30, talking mode Switching device 30 may include: the first transmission unit 301, the first receiving unit 302, the second transmission unit 303, establish unit 304, wherein
First transmission unit 301, first for being sent according to first terminal requests to send the first push to second terminal Message, first request is for requesting the talking mode of the starting first kind;
First receiving unit 302, the correspondent sent for receiving the second terminal according to first PUSH message Formula selection request, the talking mode selection request is used to indicate to be communicated using the talking mode of Second Type;
Second transmission unit 303 is asked for sending second to the second terminal according to talking mode selection request It asks, second request is for requesting the talking mode of starting Second Type;
Unit 304 is established, if for receiving the agreement close-talking response for second request, eventually for described first End and the second terminal establish the connection of the talking mode of the Second Type.
It should be noted that device described in Fig. 3 can be real for method described in above-mentioned Fig. 2 in the embodiment of the present application The unit in the server or server in example is applied, the function of each functional unit can be found in institute in above-mentioned Fig. 2 in the device The associated description of step S201, S204, S205, S206 in the embodiment of the method stated, details are not described herein again.
For the ease of better implementing the above scheme of the embodiment of the present application, the application correspondence provides a kind of talking mode Switching device is described in detail with reference to the accompanying drawing:
As shown in figure 4, the embodiment of the present application provides a kind of structural schematic diagram of talking mode switching device 40, talking mode Switching device 40 may include: third receiving unit 401, third transmission unit 402, the 4th receiving unit the 403, the 4th transmission list Member 404, wherein
Third receiving unit 401, the first PUSH message sent for receiving the server;
Third transmission unit 402, for sending the talking mode to the server according to first PUSH message Selection request, the talking mode selection request is used to indicate to be communicated using the talking mode of Second Type;
4th receiving unit 403 selects to request described in transmission for receiving the server according to the talking mode Second request, second request is for requesting the talking mode of starting Second Type;
4th transmission unit 404, if for receiving the agreement call instruction for second request, to the clothes Business device, which is sent, agrees to close-talking response.
It should be noted that device described in Fig. 4 can be real for method described in above-mentioned Fig. 2 in the embodiment of the present application The unit in the second terminal or second terminal in example is applied, the function of each functional unit can be found in above-mentioned Fig. 2 in the device Described in embodiment of the method in step S202, S203, S204, S206 associated description, details are not described herein again.
According to both the above talking mode switching device figure, referring to FIG. 5, Fig. 5 is one kind provided by the embodiments of the present application Simplified talking mode switching equipment structural schematic diagram.It is convenient to be easy to understand and illustrate, the talking mode switching equipment 50 of Fig. 5 In, it may include following one or more components: memory 501, processor 502, communication equipment 503 and input-output apparatus 504。
Memory 501 may include one or more storage units, and each unit may include one or more memories, Memory can be used for storing program and various data, and can in 50 operational process high speed of talking mode switching equipment, automatically Complete the access of program or data.When talking mode switching equipment 50 shown in fig. 5, when executing Fig. 2 the method, memory can To be used to store talking mode instruction, account information and other related datas etc..
Communication equipment 503 is referred to as transceiver or transceiver etc., wherein may include wireless, wired for carrying out Or the unit of other communication modes.Optionally, it is single that the device in 503 parts for realizing receive capabilities can be considered as to reception Member will be considered as transmission unit for realizing the device of sending function, i.e. 503 parts include receiving unit and transmission unit.
Processor 502, processor are referred to as processing unit, handle veneer, processing module, processing unit etc..Processing Device can be central processing unit (central processing unit, CPU), network processing unit (network processor, ) or the combination of CPU and NP NP.When talking mode switching equipment 50 shown in fig. 5, when being the server of Fig. 2 the method, institute The talking mode changeover program that processor 502 calls the memory 501 is stated, following steps are executed:
It is requested to send the first PUSH message to second terminal according to first that first terminal is sent by communication equipment 503, First request is for requesting the talking mode of the starting first kind;
The talking mode selection request that second terminal is sent according to the first PUSH message is received by communication equipment 503, it should Talking mode selection request is used to indicate to be communicated using the talking mode of Second Type;
Second request is sent to second terminal according to talking mode selection request by communication equipment 503, second request For requesting the talking mode of starting Second Type;
If receiving the agreement close-talking response for the second request by communication equipment 503, first terminal and second is eventually The connection of the talking mode of Second Type is established at end.
When talking mode switching equipment 50 shown in fig. 5, when being the second terminal of Fig. 2 the method, the processor 502 The talking mode changeover program of the memory 501 is called, following steps are executed:
The first PUSH message that server is sent is received by communication equipment 503;
Talking mode selection request, the correspondent are sent to server according to the first PUSH message by communication equipment 503 Formula selection request is used to indicate to be communicated using the talking mode of Second Type;
The second request that server selects request to send according to talking mode, the second request are received by communication equipment 503 For requesting the talking mode of starting Second Type;
If receiving the agreement call instruction for the second request by communication equipment 503, second terminal is to server It sends and agrees to close-talking response.
It should be noted that in talking mode switching equipment 50 in the embodiment of the present application processor 502 execution step It can refer to the specific implementation in above-mentioned each method embodiment in Fig. 2 embodiment, which is not described herein again.
Input-output apparatus 504 can provide interface between 50 Peripheral component interface of talking mode switching equipment, on Stating peripheral components can be keyboard, mouse, display, button, similar installation etc..These buttons may include, but are not limited to: starting/ Close button, locking press button and reset button etc..
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, Ke Yitong Computer program is crossed to instruct relevant hardware and complete, the program can be stored in computer-readable storage medium, The program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.And storage medium above-mentioned includes: magnetic disk, light Disk, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
In this application, the unit as illustrated by the separation member may or may not be physically separate , component shown as a unit may or may not be physical unit, it can and it is in one place, or can also To be distributed over a plurality of network elements.Some or all of unit therein can be selected to realize this Shen according to the actual needs Please example scheme purpose.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should all cover within the scope of protection of this application.Therefore, the protection scope of the application should be with right It is required that protection scope subject to.
It should be understood that magnitude of the sequence numbers of the above procedures are not meant to execute suitable in the various embodiments of the application Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present application Process constitutes any restriction.Although the application is described in conjunction with each embodiment herein, however, being protected required by embodiment During the application of shield, those skilled in the art are appreciated that and realize other variations of open embodiment.

Claims (10)

1. a kind of talking mode switching method characterized by comprising
First sent according to first terminal requests to send the first PUSH message to second terminal, and first request is for requesting Start the talking mode of the first kind;
Receive the talking mode selection request that the second terminal is sent according to first PUSH message, the talking mode choosing It selects and requests to be used to indicate to be communicated using the talking mode of Second Type;
The second request is sent to the second terminal according to talking mode selection request, second request is opened for requesting The talking mode of dynamic Second Type;
If receiving the agreement close-talking response for second request, the server is the first terminal and described the Two terminals establish the connection of the talking mode of the Second Type.
2. the method according to claim 1, wherein described request according to first that first terminal is sent to second Terminal sends the first PUSH message
After receiving the first request that the first terminal is sent, detect in the second terminal for providing the visitor of talking mode Whether family end has heartbeat, and the heartbeat is used to feed back the response condition of the client;
The first PUSH message is generated according to the heartbeat detection result of the client in the second terminal for providing talking mode, Wherein, if the client in the second terminal for providing talking mode does not have heartbeat, first PUSH message is used for Start in the second terminal for providing the client of talking mode;If for providing talking mode in the second terminal Client has heartbeat, then first PUSH message is used to request the first kind described in the client terminal start-up for providing talking mode The talking mode of type;
First PUSH message is sent to the second terminal.
3. method according to claim 1 or 2, which is characterized in that the talking mode of the Second Type is Internet phone-calling Mode;It is described to be requested according to talking mode selection to before the second request of second terminal transmission, comprising:
The network quality that the first terminal is connected with the internet of the second terminal is monitored, when the first terminal or described When the network quality of second terminal is unsatisfactory for default network quality range, the net of the second terminal Yu the first terminal is interrupted Network talking mode.
4. according to the method described in claim 3, it is characterized in that, the net for working as the first terminal or the second terminal When network quality is unsatisfactory for default network quality range, interrupt the second terminal and the first terminal Internet phone-calling mode it Afterwards, further includes:
Dropped calls message is exported to the second terminal and the first terminal, the dropped calls message is for prompting network Whether quality condition, or prompt start the talking mode of the first kind, and the talking mode of the first kind is non-net Network talking mode.
5. a kind of talking mode switching method characterized by comprising
Second terminal receives the first PUSH message that server is sent;
The second terminal sends talking mode selection request, the call to the server according to first PUSH message Mode selects to request to be used to indicate to be communicated using the talking mode of Second Type;
The second terminal receives the server and selects the second of request transmission to request according to the talking mode, and described second Request is for requesting the talking mode of starting Second Type;
If receiving the agreement call instruction for second request, the second terminal is sent to the server to be agreed to Close-talking response.
6. according to the method described in claim 5, it is characterized in that, the second terminal receives the server is sent first PUSH message, comprising:
The second terminal receives the first PUSH message;
If the client in the second terminal for providing talking mode does not have heartbeat, opened according to first PUSH message It moves in the second terminal for providing the client of talking mode;
If the client in the second terminal for providing talking mode has heartbeat, requested according to first PUSH message Start the talking mode of the first kind.
7. a kind of talking mode switching device characterized by comprising
First transmission unit, first for being sent according to first terminal requests to send the first PUSH message, institute to second terminal The first request is stated for requesting the talking mode of the starting first kind;
First receiving unit is asked for receiving the talking mode selection that the second terminal is sent according to first PUSH message It asks, the talking mode selection request is used to indicate to be communicated using the talking mode of Second Type;
Second transmission unit, it is described for sending the second request to the second terminal according to talking mode selection request Second request is for requesting the talking mode of starting Second Type;
Unit is established, for being described first whole in the case where receiving the agreement close-talking response for second request End and the second terminal establish the connection of the talking mode of the Second Type.
8. a kind of talking mode switching device characterized by comprising
Third receiving unit, for receiving the first PUSH message of server transmission;
Third transmission unit, for sending talking mode selection request, institute to the server according to first PUSH message Talking mode selection is stated to request to be used to indicate to be communicated using the talking mode of Second Type;
4th receiving unit selects described the second of request transmission to ask for receiving the server according to the talking mode It asks, second request is for requesting the talking mode of starting Second Type;
4th transmission unit, if being sent out for receiving the agreement call instruction for second request to the server Send agreement close-talking response.
9. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with program instruction, described Program instruction makes the processor execute method according to any of claims 1-4 when being executed by a processor.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with program instruction, institute Stating program instruction when being executed by a processor makes the processor execute such as method described in claim 5 or 6.
CN201910423271.0A 2019-05-21 2019-05-21 A kind of talking mode switching method, device and computer readable storage medium Pending CN110213451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910423271.0A CN110213451A (en) 2019-05-21 2019-05-21 A kind of talking mode switching method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910423271.0A CN110213451A (en) 2019-05-21 2019-05-21 A kind of talking mode switching method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110213451A true CN110213451A (en) 2019-09-06

Family

ID=67788000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910423271.0A Pending CN110213451A (en) 2019-05-21 2019-05-21 A kind of talking mode switching method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110213451A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111162992A (en) * 2019-12-25 2020-05-15 广州市百果园信息技术有限公司 Interactive mode switching method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716849A (en) * 2012-10-09 2014-04-09 中兴通讯股份有限公司 Method, device and system for automatically switching voice telephone business
CN105554000A (en) * 2015-08-13 2016-05-04 伍威 Network telephone wake-up method
CN106657645A (en) * 2016-12-28 2017-05-10 深圳天珑无线科技有限公司 Call request processing method and device, calling method and device, and related terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716849A (en) * 2012-10-09 2014-04-09 中兴通讯股份有限公司 Method, device and system for automatically switching voice telephone business
CN105554000A (en) * 2015-08-13 2016-05-04 伍威 Network telephone wake-up method
CN106657645A (en) * 2016-12-28 2017-05-10 深圳天珑无线科技有限公司 Call request processing method and device, calling method and device, and related terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111162992A (en) * 2019-12-25 2020-05-15 广州市百果园信息技术有限公司 Interactive mode switching method, device, equipment and storage medium
CN111162992B (en) * 2019-12-25 2022-07-01 广州市百果园信息技术有限公司 Interactive mode switching method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3818687B1 (en) System and method for omni-channel notification and selection
US7688805B2 (en) Webserver with telephony hosting function
CN105656915B (en) Immediate communication methods, devices and systems
US8391456B2 (en) Dynamic configuration of call controls for communication peripherals
US8180933B2 (en) Dynamic call handling from multiple attached devices wherein devices advertize its capabililes before facilitating call through appropriate device
JP6180430B2 (en) Dynamic voice menu technology
CN206807569U (en) Softphone device
US20140112333A1 (en) Calling an Unready Terminal
WO2017028567A1 (en) Internet telephone connection processing method and device
KR20020064889A (en) Distributed communication network including one or more telephony communication devices having programmable functionality
CN104735271B (en) A kind of method and terminal of intelligent multimedia telephone terminal processing speech business
CN110213451A (en) A kind of talking mode switching method, device and computer readable storage medium
JP2003087421A (en) Information processing system
CN116260856A (en) Audio and video call method and device
US20140359147A1 (en) Systems and methods of communicating via a web browser
US8165277B2 (en) Distributed service creation environment for intelligent endpoints
JP2018201200A (en) Computer telephony integration (cti) control of multiple devices with single address of record
TW201427381A (en) Communication device and method for transferring incoming call
CN111355699B (en) Voice capability implementation system
TW201603553A (en) Switchboard equipment, method for using switchboard equipemtn, and switchboard system
WO2018118725A1 (en) Supplementing telephony calls with conversational bots
CN109088846A (en) Data transmission set and transmission method, electronic equipment
JP2004304241A (en) Presence display controller, presence display control method, presence display control program and recording medium storing the presence display control program
CN103856641B (en) method, device and system for processing voice call
JP2004110567A (en) Communication control method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190906