Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, an object of the present invention is to provide a method and a system for reading and calling a plurality of SIM card clusters based on a cloud server, which can reduce roaming charges.
The technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a cloud server-based multi-SIM card cluster card reading conversation method, including the steps of:
establishing connection with a third party server;
acquiring a called number from the third-party server;
establishing connection with an operator base station;
sending a call request to the operator base station through a CS domain;
and the operator base station sends the call request to a called terminal.
Further, the method comprises the steps of:
acquiring call voice data of the called terminal from the operator base station and sending the call voice data to the third-party server;
the third-party server sends the call voice data of the called terminal to the calling terminal;
the third-party server receives the call voice data of the calling terminal;
acquiring call voice data of the calling terminal from the third-party server and sending the call voice data to the operator base station;
and the operator base station sends the call voice data of the calling terminal to the called terminal.
Further, before the step of establishing connection with the third-party server, the method further comprises the steps of:
establishing connection with a cloud server;
downloading an SIM card mirror image file from the cloud server;
storing the SIM card mirror image file in an SIM card simulator;
sending a request to the SIM card simulator, wherein the SIM simulator makes a response message;
and sending a request to the SIM card simulator again to acquire the information of the SIM card mirror image file.
Further, the method comprises the steps of:
and initiating an authentication process by using the acquired SIM card mirror image file information, and acquiring an authentication request file from the operator base station to realize authentication.
Further, the step of obtaining an authentication request file from the operator base station to implement authentication specifically includes:
acquiring an authentication request file from the operator base station and forwarding the authentication request file to the cloud server;
the cloud server sends the authentication request file to an SIM card pool, acquires a response file returned by the SIM card pool, and sends the response file to the operator base station;
and after acquiring the response file, the operator base station realizes authentication by using the response file.
Further, the method comprises the steps of:
and acquiring an authentication result, recording an authentication process and abnormal conditions and returning to the cloud server.
Further, the method comprises the steps of:
acquiring node information, and feeding back state information of a communication channel to the cloud server and the third-party server;
and the communication channel is restored to an idle state.
In a second aspect, the present invention provides a cloud server-based multi-SIM card cluster card reading conversation system, including:
the first connection establishing module is used for establishing connection with a third-party server;
the acquisition module is used for acquiring the called number from the third-party server;
the second establishing connection module is used for establishing connection with the operator base station;
a first sending module, configured to send a call request to the operator base station through a CS domain;
and the second sending module is used for sending the call request to a called terminal by the operator base station.
Further, the system further comprises:
the third establishing module is used for establishing connection with the cloud server;
the downloading module is used for downloading the SIM card mirror image file from the cloud server;
and the storage module is used for storing the SIM card mirror image file in an SIM card simulator.
The invention has the beneficial effects that:
the invention establishes the connection with the operator base station by building the third party server and simultaneously accessing the GSM network, sends the call request to the operator base station through the CS domain, and then forwards the call request to the called terminal by the operator base station, thereby greatly reducing the roaming call cost.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Example one
The embodiment provides a cloud server-based multi-SIM card cluster card reading communication method, and as shown in fig. 1, the method is a schematic flow diagram of the cloud server-based multi-SIM card cluster card reading communication method in the embodiment. The method comprises the following steps:
establishing connection with a third party server;
acquiring a called number from a third-party server;
establishing connection with an operator base station;
sending the call request to an operator base station through a CS domain;
and the operator base station sends the call request to the called terminal.
The method is realized based on cat pool equipment. The cat pool device is a device which connects a considerable number of modems (modems) together by using special dialing request access devices and can simultaneously accept dialing connection of a plurality of users. The above steps are explained in detail as follows:
when the VOIP phone is in butt joint, the cat pool equipment starts a port and establishes connection with a third-party server through a VOIP protocol. In this embodiment, taking an example that there are 8 SIM card slots on the cat pool device, 8 ports need to be started, and 8-way connection is established with the third-party server, so as to wait for a phone call request (including a called number) sent by the third-party server. The third-party server refers to a server corresponding to third-party software installed on a user terminal (e.g., a mobile phone, a tablet computer, etc.). In this embodiment, if the third-party software is called a camtal, the camtal server cooperates with the third-party software to perform the functions of receiving signals and forwarding requests;
the calling terminal inputs the telephone number of the called terminal and sends the telephone number of the called terminal to the CAMTALK server. The cat pool equipment acquires the telephone number of the called terminal from the CAMTALK server;
the cat pool equipment establishes connection with an operator base station through a GSM network;
the cat pool equipment sends the call request to an operator base station through a CS (Circuit Switched) domain, and the CS domain distributes a special channel for the two parties of the call;
the call request is processed by baseband and radio frequency at the base station of the operator, and is sent to the antenna through the radio frequency feeder line for transmission, and the called terminal receives radio waves transmitted by the antenna through a wireless channel and then demodulates the signals belonging to the called terminal.
Still further, the method comprises the steps of:
acquiring call voice data of a called terminal from an operator base station and sending the call voice data to a third-party server;
the third-party server sends the call voice data of the called terminal to the calling terminal;
a third-party server receives call voice data of a calling terminal;
acquiring call voice data of a calling terminal from a third-party server and sending the call voice data to an operator base station;
and the operator base station sends the call voice data of the calling terminal to the called terminal.
Specifically, when the called terminal is on the phone, the call voice data of the called terminal is compressed in the G729 voice encoding format by the VOIP protocol and transmitted to the carrier base station once in 20 ms. Meanwhile, the cat pool equipment acquires the call voice data of the called terminal from the operator base station once in 20ms and transmits the call voice data to the CAMTALK server, and the CAMTALK server transmits the call voice data of the called terminal to the calling terminal, so that the call from the called terminal to the calling terminal is realized. Conversely, the call voice data of the calling terminal is firstly transmitted to the CAMTALK server, the cat pool device acquires the call voice data of the calling terminal from the CAMTALK server and transmits the call voice data to the operator base station, and then the operator base station transmits the call voice data of the calling terminal to the called terminal, so that the call from the calling terminal to the called terminal is realized.
As an improvement of the above technical solution, preparation work needs to be completed before the call, including:
establishing connection with a cloud server;
downloading an SIM card mirror image file from a cloud server;
storing the SIM card mirror image file in an SIM card simulator;
sending a request to the SIM card simulator, and making a response message by the SIM simulator;
sending a request to the SIM card simulator again to acquire the information of the SIM card mirror image file;
and initiating an authentication process by using the acquired SIM card mirror image file information, and acquiring an authentication request file from an operator base station to realize authentication.
The acquiring of the authentication request file from the operator base station to realize authentication specifically includes:
acquiring an authentication request file from an operator base station and forwarding the authentication request file to a cloud server;
the cloud server sends the authentication request file to the SIM card pool, acquires a response file returned by the SIM card pool, and sends the response file to the operator base station;
and after the operator base station acquires the response file, the operator base station utilizes the response file to realize authentication.
Specifically, after the cat pool device is powered on, 8 ports are established, and connection with a cloud SIM server is established. After the connection is successful, the cat pool equipment submits a request to the cloud SIM server, SIM card mirror image files of 8 SIM cards are downloaded, the downloaded 8 SIM card mirror image files are stored in the SIM card simulator, and a downloading success instruction is returned to the cat pool equipment to complete the downloading of the SIM card mirror image files.
After the SIM card mirroring file is downloaded, the cat pool equipment initiates an ATR request to the SIM card simulator, establishes a communication protocol with the corresponding virtual SIM card and ensures normal communication with the SIM card mirroring file. After receiving the ATR request, the SIM card simulator makes a response message (the response message comprises the supported communication protocol), then the cat pool equipment sends the APTU request again, acquires the SIM card image file information from the SIM card simulator, initiates an authentication process by using the acquired SIM card image file information, and acquires an authentication request file from an operator base station to realize authentication. Specifically, the operator base station issues an authentication request file to the cat pool device, the cat pool device forwards the authentication request file to the cloud SIM server, the cloud SIM server sends the authentication request file to the SIM card pool, a corresponding entity card in the SIM card pool internally contains a built-in file of authentication operation, namely a response file, the SIM card pool returns the response file to the cloud SIM server, and the cloud SIM server returns the response file to the operator base station according to an original route. And after the operator base station acquires the response file, the response file is utilized to carry out authentication so as to verify the timeliness of the SIM card, namely whether the SIM card is available or not. It should be noted here that the SIM card pool is a kind of SIM card centralized management device. Generally, after the SIM card mirroring file is manufactured in the SIM card pool, the SIM card pool uploads the mirroring file to the cloud SIM server, and the cat pool device interacts with the cloud SIM server to obtain the SIM card mirroring file.
Preferably, in order to timely acquire the authentication result and store the abnormal condition occurring in the preparation work, the preparation work further includes:
and acquiring an authentication result, recording the authentication process and abnormal conditions and returning the authentication process and the abnormal conditions to the cloud server.
And after the authentication is finished, the cat pool equipment acquires an authentication result. In the operation process of the cat pool equipment, the cat pool equipment can receive authentication information sent by an operator base station at intervals, the cat pool equipment forwards the received authentication information to the cloud SIM server, acquires an authentication result to complete an authentication process, and records the authentication process and abnormal conditions, such as: and returning the authentication process and the abnormal conditions to the cloud SIM server for storage, wherein the SIM card is abnormal in interaction, wrong in interface, and the GSM cannot normally register the network.
As an improvement of the above technical solution, the method further comprises:
acquiring node information, and feeding back state information of a call channel to a cloud server and a third-party server;
the talk channel is restored to the idle state.
Specifically, in the whole call process, the cat pool device needs to acquire node information in the call process, such as node information of call connection, call hang-up, and the like, and feed back state information of a call channel allocated by the CS domain for both parties of the call to the cloud server and the CAMTALK server. When the call is hung up, the call channel allocated by the CS domain for the two parties of the call is restored to an idle state.
According to the cloud server-based multi-SIM card cluster card reading and calling method, the cloud SIM server and the third-party server CAMTALK are built, the GSM network is accessed, the SIM card image file is downloaded, operations such as making/receiving calls, sending/receiving short messages and the like are performed through the CS domain, and the generation of roaming communication cost is greatly reduced; after the call is finished, the occupied call channel and the occupied cloud SIM card port are actively released, and the resource utilization rate and flexibility are greatly improved.
Example 2
The embodiment provides a many SIM card cluster card reading conversation system based on cloud ware, and this system includes:
the first connection establishing module is used for establishing connection with a third-party server;
the acquisition module is used for acquiring the called number from the third-party server;
the second establishing connection module is used for establishing connection with the operator base station;
the first sending module is used for sending the call request to the operator base station through the CS domain;
and the second sending module is used for sending the call request to the called terminal by the operator base station.
As an improvement of the above technical solution, the system further includes:
the third establishing module is used for establishing connection with the cloud server;
the downloading module is used for downloading the SIM card mirror image file from the cloud server;
and the storage module is used for storing the SIM card mirror image file in the SIM card simulator.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.