CN109861876A - A kind of method and relevant apparatus of Three-Way Calling test - Google Patents
A kind of method and relevant apparatus of Three-Way Calling test Download PDFInfo
- Publication number
- CN109861876A CN109861876A CN201811640244.0A CN201811640244A CN109861876A CN 109861876 A CN109861876 A CN 109861876A CN 201811640244 A CN201811640244 A CN 201811640244A CN 109861876 A CN109861876 A CN 109861876A
- Authority
- CN
- China
- Prior art keywords
- terminal
- notice message
- address
- vehicle device
- socket
- 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
Links
Abstract
The embodiment of the present application discloses a kind of method of Three-Way Calling test, is applied to socket communication network, for quick and completion Three-Way Calling test without timing conflict.The embodiment of the present application method includes: to send notice message to first terminal, and the notice message includes the IP address of the first terminal and the number of vehicle device;Answer the first call request from the first terminal;Notice message is sent to second terminal, the notice message includes the IP address of the second terminal and the number of vehicle device;Answer the second call request from the second terminal.Wherein, it indicates that first terminal and second terminal put through phone to vehicle device in sequence by announcement message, solves the problems, such as the time-consuming and timing conflict under pressure test, realize quickly and the Three-Way Calling without timing conflict is tested.
Description
Technical field
This application involves the communications fields, and in particular to a kind of method and relevant apparatus of Three-Way Calling test.
Background technique
Automatic navigator (lower wagon weighing machine) is currently android system, and test tripartite is frequently necessary in automatic test
Call carries out pressure test.
Currently, there are part cellular telephone companies, following solution is mainly used for Three-Way Calling:
The first: direct labor carries out Three-Way Calling.
Second: by the way of a script, designated equipment being controlled respectively.
In both the above test mode, the first is more time-consuming by the way of artificial, if two equipment are same in second
When make a phone call vehicle device, it may appear that the problem of timing conflict.
Apply for content
The embodiment of the present application provides the method and relevant apparatus of a kind of test of Three-Way Calling, for quickly and without when
The completion Three-Way Calling of sequence conflict is tested.
The application first aspect provides a kind of method of Three-Way Calling test, is applied to socket communication network, packet
It includes:
Notice message is sent to first terminal, the notice message includes the IP address and vehicle device of the first terminal
Number;
Answer the first call request from first terminal;
Notice message is sent to second terminal, the notice message includes the IP address and vehicle device of the second terminal
Number;
Answer the second call request from second terminal.
Optionally, before the transmission notice message to first terminal, the method also includes:
Socket server is installed in the vehicle device, the server is for generating IP address.
Optionally, before the transmission notice message to first terminal, the method also includes:
Create the socket of the socket server, the first terminal and the second terminal.
Optionally, before the transmission notice message to first terminal, the method also includes:
The communication connection with first terminal is established, and records the IP address of first terminal;
The communication connection with second terminal is established, and records the IP address of second terminal.
The application second aspect provides a kind of device of Three-Way Calling test, comprising:
First sending module, for sending notice message to first terminal, the notice message includes the first terminal
IP address and vehicle device number;
First answers module, for answering the first call request from first terminal;
Second sending module, for sending notice message to second terminal, the notice message includes the second terminal
IP address and vehicle device number;
Second answers module, for answering the second call request from second terminal.
Optionally, described device further include:
Module is installed, for installing socket server in the vehicle device, the server is for generating IP address.
Optionally, described device further include:
Creation module, for creating the socket of the socket server, the first terminal and the second terminal
Word.
Optionally, described device further include:
First establishes module, for establish with the communication connection of first terminal, and record the address IP of first terminal;
Second establishes module, for establish with the communication connection of second terminal, and record the address IP of second terminal.
The embodiment of the present application third aspect provides a kind of computer installation, comprising:
Processor, memory, input-output equipment and bus;
The processor, memory, input-output equipment are connected with the bus respectively;
The processor is for executing such as the described in any item methods of previous embodiment.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer journey
Sequence, it is characterised in that: the step of computer program realizes method as in the foregoing embodiment when being executed by processor.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that in the present embodiment, eventually to first
End sends notice message, and the notice message includes the IP address of the first terminal and the number of vehicle device;It answers from first
First call request of terminal;Notice message is sent to second terminal, the notice message includes the IP of the second terminal
The number of location and vehicle device;Answer the second call request from second terminal.Therefore, first terminal is indicated by announcement message
Phone is put through to vehicle device in sequence with second terminal, solves the problems, such as the time-consuming and timing conflict under pressure test, it is real
Show quickly and the Three-Way Calling without timing conflict is tested.
Detailed description of the invention
Fig. 1 is a kind of embodiment schematic diagram of Three-Way Calling test method in the embodiment of the present application;
Fig. 2 is another embodiment schematic diagram of Three-Way Calling test method in the embodiment of the present application;
Fig. 3 is another embodiment schematic diagram of Three-Way Calling test method in the embodiment of the present application;
Fig. 4 is another embodiment schematic diagram of Three-Way Calling test method in the embodiment of the present application;
Fig. 5 is an a kind of schematic diagram of the Installation practice of Three-Way Calling test in the embodiment of the present application;
Fig. 6 is an a kind of schematic diagram of computer installation in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides the method and relevant apparatus of a kind of test of Three-Way Calling, for quickly and without when
The completion Three-Way Calling of sequence conflict is tested.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
It is the embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, the common skill in this field
The application protection all should belong in art personnel every other embodiment obtained without making creative work
Range.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
Four " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that making in this way
Data are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein or describing
Content other than sequence implement.In addition, term " includes " and " having " and their any deformation, it is intended that covering
Non-exclusive includes, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
When three-party talking function refers to double-talk, user can in the state of not dropped calls calling third party, thus
Realize tripartite converse simultaneously, other two sides either party hang up the call for not affecting calling party and another party.
In order to make it easy to understand, the detailed process in the embodiment of the present application is described below, referring to Fig. 1, the application
A kind of a kind of embodiment schematic diagram of Three-Way Calling test method includes: in embodiment
101, notice message is sent to first terminal, the notice message includes the address IP and the vehicle of the first terminal
The number of machine;
Specifically, to first terminal send notice message, the notice message include the first terminal IP address with
The number of vehicle device sends notice message from the socket server of vehicle device to first terminal, and wherein notice message is used to indicate the
One terminal is made a phone call to vehicle device.It should be pointed out that notice message is usually the form broadcasted during actually realizing,
Below no longer to repeating herein.
102, the first call request from the first terminal is answered;
Specifically, vehicle device in the process of running, monitoring telephone can request always, since the application is mainly in certainly
Dynamicization ground carries out the test of Three-Way Calling, so herein it is to be understood that socket server disappears to first terminal transmission notice
Breath, after second terminal receives notice message, first terminal can be sent out according to the vehicle device telephone number in notice message to vehicle device
Power transmission talks about request message, and vehicle device receives the call request and receives calls.
103, notice message is sent to second terminal, the notice message includes the address IP and the vehicle of the second terminal
The number of machine;
Specifically, after vehicle device and first terminal are conversed, for the performance under test Three-Way Calling, in vehicle device
Socket server can send a notice message to second terminal, include the IP address of second terminal among the notice message
With the number of vehicle device, and notice message is used to indicate second terminal and makes a phone call to vehicle device.
104, the second call request from the second terminal is answered.
Specifically, socket server to second terminal send notice message, second terminal receive notice message it
Afterwards, second terminal can send call request message to vehicle device according to the vehicle device telephone number in notice message, and vehicle device receives the electricity
Words are requested and are received calls.
In the present embodiment, notice message is sent to first terminal, the notice message includes the IP of the first terminal
The number of location and vehicle device;Answer the first call request from first terminal;Notice message is sent to second terminal, it is described logical
Accusing message includes the IP address of the second terminal and the number of vehicle device;Answer the second call request from second terminal.Cause
This, indicates that first terminal and second terminal put through phone to vehicle device in sequence by announcement message, solves under pressure test
Time-consuming and timing conflict the problem of, realize quickly and without timing conflict Three-Way Calling test.
In the present embodiment, based on embodiment described in Fig. 1, notice message is sent to first terminal in step 101, it is described logical
Before announcement message includes the IP address of the first terminal and the number of vehicle device, need that socket server is installed on mobile phone,
Concrete condition is referring to Fig.2, a kind of another embodiment of the method for Three-Way Calling test includes:
20, socket server is installed in vehicle device, server is for generating IP address.
Specifically, since the application is applied to socket communication network, so needing to install socket service in vehicle device
Device, for establish with the communication connection of other terminals, and match and unique IP address for the terminal generation having connected.
In the present embodiment, based on embodiment described in Fig. 2, socket Network Communication Principle is introduced to be categorical, is proposed
The schematic diagram concrete condition of socket network communication referring to Fig.2, a kind of method of Three-Way Calling test another embodiment packet
It includes:
30, socket Principle of Communication figure.
In socket network, two sides of communication are referred to as server and client, and socket essence is that programming connects
Mouthful, the encapsulation to TCP, TCP will also be provided and be done interface used in network development for programmer, and here it is the programmings of Socket
Interface, TCP server therein are equivalent to the socket server in the application, and TCP Client is equivalent in the application
One terminal and second terminal, establish the socket of TCP server Yu TCP client, and socket is equivalent in socket network
Identity card, be used for identification.The vehicle device built among connection i.e. the application and first terminal or vehicle device between socket
It is associated in actual application process with building for second terminal, to be connected according to the mode of connection starting and local socket
Target, the connection procedure between socket can be divided into three steps: server is monitored, client request, connection confirmation.
1, server is monitored: it is server side socket and the specific client socket of delocalization, but in waiting
The state of connection monitors network state in real time.
2, client request: refer to and connection request is proposed by the socket of client, the target to be connected is server end
Socket.For this purpose, the socket of client must describe the socket for the server that it to be connected first, it is indicated that server
Address and the port numbers for holding socket, then just propose connection request to server side socket.
3, connection confirmation: refer to and receive the connection of client socket in other words when server side socket listens to
Request, it establishes a new thread, the description of server side socket is issued with regard to the request of customer in response end socket
Client, once client confirmed that this description, connection just establish.And server side socket keeps monitoring shape
State, continues to the connection request of other client sockets, i.e., can be between vehicle device and terminal after connection confirmation
The exchange for carrying out information, as can talk.
In this implementation, the socket Principle of Communication embodiment based on figure three completely proposes to be automated using vehicle device
The flow chart of ground Three-Way Calling test, referring specifically to Fig. 4, another embodiment schematic diagram of Three-Way Calling test method includes:
40, Three-Way Calling test flow chart.
Specifically, the socket of vehicle device, first terminal and second terminal is first established respectively, and then vehicle device is to vehicle device
Socket server sends a notice message, and the telephone number comprising vehicle device and destination client are this in notice message
The IP address of first terminal in application, socket server send notice message to first terminal according to the notice message, should
Notice message is used to indicate first terminal and sends call request to vehicle device, and due to the Principle of Communication of socket network, vehicle device is in
Solicited status is monitored, after answering the call request from first terminal, socket can send a notice letter to second terminal
Breath, the advertised information are used to indicate second terminal and send call request to vehicle device, and then vehicle device answers the vehicle from second terminal
Machine request.After call request for answering second terminal, the communication connection between vehicle device and first terminal is automatically hung up
Still calling holding is carried out, this depends on the function of vehicle device itself.
The method part in the embodiment of the present application is described above, below from the angle of virtual bench to this Shen
Please embodiment be illustrated.
Referring to Fig. 5, a kind of one embodiment of the device of Three-Way Calling test includes: in the embodiment of the present application
First sending module 501, for sending notice message to first terminal, the notice message includes described first
The IP address of terminal and the number of vehicle device;
First answers module 502, for answering the first call request from first terminal;
Second sending module 503, for sending notice message to second terminal, the notice message includes described second
The IP address of terminal and the number of vehicle device;
Second answers module 504, for answering the second call request from second terminal.
Module 505 is installed, for installing socket server in the vehicle device, the server is for generating IP
Location.
Creation module 506, for creating the set of the socket server, the first terminal and the second terminal
Connect word.
First establishes module 507, for establish with the communication connection of first terminal, and record the IP address of first terminal;
Second establishes module 508, for establish with the communication connection of second terminal, and record the IP address of second terminal.
The computer installation in the embodiment of the present application is described from the angle of entity apparatus below, referring to Fig. 6,
One embodiment of computer installation includes: in the embodiment of the present application
The computer installation 600 can generate bigger difference because configuration or performance are different, may include one or one
A above central processing unit (centralprocessingunits, CPU) 601 (for example, one or more processors) and
Memory 605 is stored with one or more application program or data in the memory 605.
Wherein, memory 605 can be volatile storage or persistent storage.The program for being stored in memory 605 can wrap
One or more modules are included, each module may include to the series of instructions operation in server.Further,
Central processing unit 601 can be set to communicate with memory 605, and the system in memory 605 is executed on intelligent terminal 600
Column instruction operation.
The computer installation 600 can also include one or more power supplys 602, one or more it is wired or
Radio network interface 603, one or more input/output interfaces 604, and/or, one or more operating systems,
Such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM etc..
Processor 601 is specifically used for executing following steps:
Notice message is sent to first terminal, the notice message includes the IP address and vehicle device of the first terminal
Number;
Answer the first call request from first terminal;
Notice message is sent to second terminal, the notice message includes the IP address and vehicle device of the second terminal
Number;
Answer the second call request from second terminal.
Optionally, before the transmission notice message to first terminal, the method also includes:
Socket server is installed in the vehicle device, the server is for generating IP address.
Optionally, before the transmission notice message to first terminal, the method also includes:
Create the socket of the socket server, the first terminal and the second terminal.
Optionally, before the transmission notice message to first terminal, the method also includes:
The communication connection with first terminal is established, and records the IP address of first terminal;
The communication connection with second terminal is established, and records the IP address of second terminal.
It is understood that the size of the serial number of above steps is not meant in the various embodiments of the application
Execution sequence it is successive, the execution of each step sequence should be determined by its function and internal logic, without coping with the embodiment of the present application
Implementation process constitute any restriction.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description is
System, the specific work process of device and unit can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, between device or unit
Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, as unit
The component of display may or may not be physical unit, it can and it is in one place, or can be distributed to multiple
On unit.
Claims (10)
1. a kind of method of Three-Way Calling test, is applied to socket communication network characterized by comprising
Notice message is sent to first terminal, the notice message includes the IP address of the first terminal and the number of vehicle device;
Answer the first call request from the first terminal;
Notice message is sent to second terminal, the notice message includes the IP address of the second terminal and the number of vehicle device;
Answer the second call request from the second terminal.
2. the method according to claim 1, wherein it is described to first terminal send notice message before, it is described
Method further include:
Socket server is installed in the vehicle device, the server is for generating IP address.
3. according to the method described in claim 2, it is characterized in that, it is described to first terminal send notice message before, it is described
Method further include:
Create the socket of the socket server, the first terminal and the second terminal.
4. according to the method described in claim 2, it is characterized in that, it is described to first terminal send notice message before, it is described
Method further include:
The communication connection with first terminal is established, and records the IP address of first terminal;
The communication connection with second terminal is established, and records the IP address of second terminal.
5. a kind of device of Three-Way Calling test characterized by comprising
First sending module, for sending notice message to first terminal, the notice message includes the IP of the first terminal
The number of address and vehicle device;
First answers module, for answering the first call request from first terminal;
Second sending module, for sending notice message to second terminal, the notice message includes the IP of the second terminal
The number of address and vehicle device;
Second answers module, for answering the second call request from second terminal.
6. device according to claim 5, which is characterized in that described device further include:
Module is installed, for installing socket server in the vehicle device, the server is for generating IP address.
7. device according to claim 5, which is characterized in that described device further include:
Creation module, for creating the socket of the socket server, the first terminal and the second terminal.
8. device according to claim 5, which is characterized in that described device further include:
First establishes module, for establish with the communication connection of first terminal, and record the IP address of first terminal;
Second establishes module, for establish with the communication connection of second terminal, and record the IP address of second terminal.
9. a kind of computer installation characterized by comprising
Processor, memory, input-output equipment and bus;
The processor, memory, input-output equipment are connected with the bus respectively;
The processor is for executing such as the described in any item methods of Claims 1-4.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program
It is realized when being executed by processor such as the step of any one of Claims 1-4 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811640244.0A CN109861876A (en) | 2018-12-29 | 2018-12-29 | A kind of method and relevant apparatus of Three-Way Calling test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811640244.0A CN109861876A (en) | 2018-12-29 | 2018-12-29 | A kind of method and relevant apparatus of Three-Way Calling test |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109861876A true CN109861876A (en) | 2019-06-07 |
Family
ID=66893268
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811640244.0A Pending CN109861876A (en) | 2018-12-29 | 2018-12-29 | A kind of method and relevant apparatus of Three-Way Calling test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109861876A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7142510B1 (en) * | 1997-12-04 | 2006-11-28 | British Telecommunications Public Limited Company | Communications network |
CN101287266B (en) * | 2008-05-30 | 2011-06-22 | 德信无线通讯科技(北京)有限公司 | Test system and method for mobile phone |
CN103024222A (en) * | 2012-12-11 | 2013-04-03 | 广东欧珀移动通信有限公司 | Multi-party call convening method based on mobile phones |
CN101778181B (en) * | 2010-01-22 | 2014-01-01 | 中兴通讯股份有限公司 | Method and system for mobile terminal to achieve three-part call of videophone |
-
2018
- 2018-12-29 CN CN201811640244.0A patent/CN109861876A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7142510B1 (en) * | 1997-12-04 | 2006-11-28 | British Telecommunications Public Limited Company | Communications network |
CN101287266B (en) * | 2008-05-30 | 2011-06-22 | 德信无线通讯科技(北京)有限公司 | Test system and method for mobile phone |
CN101778181B (en) * | 2010-01-22 | 2014-01-01 | 中兴通讯股份有限公司 | Method and system for mobile terminal to achieve three-part call of videophone |
CN103024222A (en) * | 2012-12-11 | 2013-04-03 | 广东欧珀移动通信有限公司 | Multi-party call convening method based on mobile phones |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106412192B (en) | A kind of mobile terminal test method and its system | |
DK1027684T3 (en) | Method and system for providing a service | |
CN103458136A (en) | Communication management method and device of multi-card multi-pass terminal | |
CN101808427A (en) | Internet of things-based wireless communication terminal and application method thereof | |
CN107333013A (en) | Session establishing method, device, electronic equipment and storage medium | |
CN109787864A (en) | A kind of network automatic test approach, device, terminal and storage medium based on Netperf | |
CN112019378B (en) | Troubleshooting method and device | |
CN103780455A (en) | TETRA digit cluster protocol test method and system based on TTCN-3 | |
US6185420B1 (en) | Method and apparatus for testing the function of a base station controller in a code division multiple access (CDMA) mobile communication system | |
CN109861876A (en) | A kind of method and relevant apparatus of Three-Way Calling test | |
CN105635497A (en) | Terminal call transfer method and call transfer terminal | |
CN102917370A (en) | Method, device and system for determining corresponding near-end unit of far-end unit and far-end unit | |
CN103888923A (en) | Call proceeding method, system and device applied to virtual private mobile network | |
CN109391595B (en) | Call method and device, computer readable storage medium and user equipment | |
CN102148904A (en) | Method and device for processing call | |
CN112910572B (en) | Base station test method, device and readable storage medium | |
CN105162997A (en) | Virtual call switching method and device | |
CN1314231C (en) | Self circulation method for program control exchanger | |
CN1025266C (en) | Dynamic association of RF radio data communication system in pre-existing computer controlled network | |
CN110278333A (en) | The communication system and method for call center | |
CN109246244B (en) | Message synchronization detection method, device and system | |
CN216425468U (en) | Production line is with support plate subassembly and production line | |
CN111625442B (en) | Mock testing method and device | |
CN112187698B (en) | Communication method, service system, electronic equipment and host MCU (micro control Unit) of electronic equipment | |
CN105959393A (en) | Automatic card production method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190607 |
|
RJ01 | Rejection of invention patent application after publication |