Disclosure of Invention
The application aims at the problem that the current mobile phone number and the application account number supporting video communication do not support mutual call forwarding, and provides a call forwarding method, a video communication server and a calling terminal.
As a first aspect of the present application, there is provided a call forwarding method including:
when a preset condition is met, sending a query request carrying a called application program account to a network open function entity so that the network open function entity queries a called terminal number corresponding to the called application program account in a preset database, wherein the database stores a mapping relation between the called application program account and the called terminal number;
receiving a query result returned by the network open function entity;
and if the called terminal number is acquired from the query result, sending a call failure message carrying the called terminal number to an application program of the calling terminal so that the application program of the calling terminal initiates a call request to the corresponding called terminal according to the called terminal number carried in the call failure message.
Preferably, the preset condition is that when the call connection request is sent to the called application program, the call response of the called application program is not received within a set time period.
Preferably, the call failure message carries a call failure type, and the call failure type includes a transfer call.
As a second aspect of the present application, there is provided a call forwarding method including:
receiving a call failure message sent by a video communication server, and acquiring a called terminal number in the call failure message;
and initiating a call request to a corresponding called terminal according to the called terminal number.
Preferably, the initiating a call request to a corresponding terminal according to the called terminal number includes:
and calling a telephone dialing program in the equipment, and sending the called terminal number to the telephone dialing program so that the telephone dialing program initiates a calling request to a called terminal corresponding to the called terminal number.
As a third aspect of the present application, there is provided a video communication server comprising:
the system comprises a sending module and a receiving module, wherein the sending module is used for sending a query request carrying a called application program account to a network open function entity when a preset condition is met so that the network open function entity queries a called terminal number corresponding to the called application program account in a preset database, and the database stores a mapping relation between the called application program account and the called terminal number;
the receiving module is used for receiving the query result returned by the network open function entity;
and the sending module is used for sending a call failure message carrying the called terminal number to an application program of the calling terminal if the called terminal number is obtained from the query result, so that the application program of the calling terminal initiates a call request to the corresponding called terminal according to the called terminal number carried in the call failure message.
Preferably, the preset condition is that when the call connection request is sent to the called application program, the call response of the called application program is not received within a set time period.
Preferably, the call failure message carries a call failure type, and the call failure type includes a transfer call.
As a fourth aspect of the present application, there is provided a calling terminal including:
the receiving module is used for receiving the call failure message sent by the video communication server and acquiring the called terminal number in the call failure message;
and the calling initiating module is used for initiating a calling request to the corresponding called terminal according to the called terminal number.
Preferably, the originating module is specifically configured to:
and calling a telephone dialing program in the equipment, and sending the called terminal number to the telephone dialing program so that the telephone dialing program initiates a calling request to a called terminal corresponding to the called terminal number.
According to the call forwarding method, when a call connection request is sent to a called application program, when a call response of the called application program is not received within a set time period, a query request carrying a called application program account number is sent to a network open function entity, if the received query result comprises a called terminal number, a call failure message is sent to an application program of a calling terminal, so that the application program of the calling terminal sends a connection request for accessing a communication network to a cross-network interoperation function entity, and further session connection between the application program of the calling terminal and the called terminal is established. The method and the device can realize that the call connection request pointing to one application account is transferred to one terminal number, and improve user experience.
Detailed Description
In order to make the technical solutions of the present invention better understood, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The application provides a call forwarding method, a video communication server and a calling terminal. The following detailed description is made with reference to the drawings of the embodiments provided in the present application, respectively.
A call forwarding method provided in a first embodiment of the present application is as follows:
an execution subject of the embodiment of the present application is a video communication server, as shown in fig. 1, which illustrates a call forwarding method provided by the embodiment of the present application, and includes the following steps.
Step S101, when a preset condition is met, sending a query request carrying a called application account to a Network open Function entity, so that the Network open Function entity (NEF) queries a called terminal number corresponding to the called application account in a preset database.
Preferably, the preset condition is that when the call connection request is sent to the called application program, the call response of the called application program is not received within a set time period.
In this step, the video communication server initiates a call connection request to the application program of the called application program account according to a call command of the application program of the calling terminal from the network. When the called application program does not respond after time out, the video communication server initiates a query request to the network open function entity (according to a preset rule, such as polling of multiple operators) to query whether the called application account reserves the called terminal number or not for transferring the call to the called terminal number.
And the database stores the mapping relation between the called application program account and the called terminal number. In a preferred embodiment, in an initial state, the user first registers call forwarding information in the network. Such unstructured (i.e., non-3 GPP standards, non-third generation partnership project standards) information should be generally maintained in a database (UDR, Unified Data Repository) in a 5G network. Wherein the call forwarding information stored in the database at least comprises: the transferred application program, the account number of the called application program corresponding to the application program and the number of the called terminal corresponding to the account number of the called application program. For example, the application program is WeChat, and each called WeChat account correspondingly stores a called terminal number of call forwarding. It should be noted here that the called application account and the called terminal account do not necessarily belong to one called terminal, and may belong to the same called terminal or may not belong to the same called terminal.
Step S102, receiving the query result returned by the network open function entity.
In this step, after receiving the query request sent by the video communication server, the network open function entity authenticates the video communication server through the database, and queries whether the called application program account number pre-stores the corresponding called terminal number from the database after the authentication is passed. The network open function entity feeds back the query result to the video communication server, and if the query result is that the called application program account number prestores the corresponding called terminal number, the query result carries the called terminal number; and if the query result is that the called application program account does not have a corresponding called terminal number prestored, the query result does not carry parameters.
Step S103, if the called terminal number is obtained from the query result, sending a call failure message carrying the called terminal number to an application program of the calling terminal, so that the application program of the calling terminal initiates a call request to the corresponding called terminal according to the called terminal number carried in the call failure message.
In this step, if the query request received by the video communication server includes the called terminal number, the video communication server returns call failure information to the application program of the calling terminal, where the call failure information carries the failure type of the forwarding call and the called terminal number. After receiving the call failure message, the application program of the calling terminal acquires the called terminal number carried in the call failure message and initiates a call request to the corresponding called terminal according to the called terminal number.
According to the call forwarding method, when a call connection request is sent to a called application program, when a call response of the called application program is not received within a set time period, a query request carrying a called application program account number is sent to a network open function entity, if the received query result comprises a called terminal number, a call failure message is sent to an application program of a calling terminal, so that the application program of the calling terminal sends a connection request for accessing a communication network to a cross-network interoperation function entity, and further session connection between the application program of the calling terminal and the called terminal is established. The method and the device can realize that the call connection request pointing to one application account is transferred to one terminal number, and improve user experience.
A call forwarding method provided in a second embodiment of the present application is as follows:
an execution subject of the embodiment of the present application is a calling terminal, and as shown in fig. 2, it shows a call forwarding method provided by the embodiment of the present application, including the following steps.
Step S201, receiving a call failure message sent by a video communication server, and acquiring a called terminal number therein.
In the step, when the application program of the calling terminal receives a call failure message which is sent by the video communication server and carries the called terminal number, the called terminal number is obtained.
Step S202, a calling request is sent to the corresponding called terminal according to the called terminal number.
Preferably, the step S202, initiating a call request to a corresponding terminal according to the called terminal number, includes: and calling a telephone dialing program in the equipment, and sending the called terminal number to the telephone dialing program so that the telephone dialing program initiates a calling request to a called terminal corresponding to the called terminal number.
In the step, the application program of the calling terminal calls a telephone dialing program in the calling terminal and sends the number of the called terminal number to the telephone dialing program, and the telephone dialing program directly initiates a call according to the called terminal number submitted by the application program of the calling terminal. Here, the call request is preferably a 5G call request.
The call forwarding method receives a call failure message sent by a video communication server, acquires a called terminal number in the call failure message, and initiates a call request to a corresponding called terminal according to the called terminal number. The method and the device can realize that the call connection request pointing to one application account is transferred to one terminal number, and improve user experience.
A video communication server provided in a third embodiment of the present application is as follows:
an execution subject of the embodiment of the present application is a video communication server, as shown in fig. 3, which illustrates a call forwarding method provided by the embodiment of the present application, and includes the following steps.
A sending module 11, configured to send, when a preset condition is met, a query request carrying a called application account to a network open function entity, so that the network open function entity queries, in a preset database, a called terminal number corresponding to the called application account, where a mapping relationship between the called application account and the called terminal number is stored in the database;
a receiving module 12, configured to receive a query result returned by the network open function entity;
the sending module 11 is configured to send a call failure message carrying the called terminal number to an application program of the calling terminal if the called terminal number is obtained from the query result, so that the application program of the calling terminal initiates a call request to a corresponding called terminal according to the called terminal number carried in the call failure message.
Preferably, the preset condition is that when the call connection request is sent to the called application program, the call response of the called application program is not received within a set time period.
Preferably, the call failure message carries a call failure type, and the call failure type includes a transfer call.
A calling terminal provided in a fourth embodiment of the present application is as follows:
an execution subject of the embodiment of the present application is an application program of a calling terminal, as shown in fig. 4, which illustrates a call forwarding method provided by the embodiment of the present application, and includes the following steps.
A receiving module 21, configured to receive a call failure message sent by the video communication server, and obtain a called terminal number therein;
and the calling initiating module 22 is configured to initiate a calling request to a corresponding called terminal according to the called terminal number.
Preferably, the originating module 22 is specifically configured to:
and calling a telephone dialing program in the equipment, and sending the called terminal number to the telephone dialing program so that the telephone dialing program initiates a calling request to a called terminal corresponding to the called terminal number.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.