Methods, devices, electronic equipment and computer-readable storage media for making calls
By obtaining network requests and IP addresses, and utilizing the SIP protocol and softswitch technology, logistics industry outlets can make network calls with the called party in any environment, solving the problem of logistics industry outlets being unable to work remotely and improving the flexibility and efficiency of calls.
Patent Information
- Application Number
- CN202310096605.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-07
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-02-07
AI Technical Summary
Logistics outlets at all levels need to install telephone equipment, which cannot support mobile and home office work, resulting in low call flexibility and efficiency.
By obtaining network requests, the original caller's IP address is determined, a call connection is established between the called party and the original caller, and network calls are realized using the SIP protocol and softswitch technology, supporting calls in any environment.
It improves call flexibility and efficiency, reduces dependence on specific environments, and lowers call costs.
Smart Images

Figure CN116436903B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, apparatus, electronic device, and computer-readable storage medium for making a call. Background Technology
[0002] With the continuous progress of the logistics industry and the constant changes in the competitive landscape, staff can now provide relevant services and notify customers to pick up their goods by phone. This means that the caller enters the called party's phone number into their mobile phone and dials the called party, which facilitates communication between logistics customer service personnel and customers.
[0003] Currently, logistics outlets at all levels need to install telephone equipment. For example, when there is no telephone equipment around the original caller, it is impossible to communicate with the called party. Telephone equipment does not support mobile office and home office and can only make calls in a local environment. Therefore, improving the flexibility of calling is becoming increasingly important. Summary of the Invention
[0004] To improve call flexibility, this application provides a call method, apparatus, electronic device, and computer-readable storage medium.
[0005] The above-mentioned inventive objective of this application is achieved through the following technical solutions: Firstly, a method for making a call is provided, the method comprising: Obtain network requests; The original calling party's IP address is determined based on the network request. Obtain the called party's phone number and the first correspondence between the called phone number and the called IP address; Based on the first correspondence and the called phone number, the called IP address is located; Based on the called party's IP address and the original calling party's IP address, a first call connection is established between the original calling party and the called party.
[0006] By adopting the above technical solution, a network request is obtained, and the original calling IP address is determined based on the network request. The original calling IP address can be the IP address of a mobile device or the IP address of a fixed device. After obtaining the network request, the called phone number and the first correspondence between the called phone number and the called IP address are obtained. Based on the first correspondence and the called phone number, the called IP address is searched. After obtaining the called IP address and the original calling IP address, the first call connection between the original calling party and the called party is established based on the called IP address and the original calling IP address. This enables the called party and the original calling party to communicate through the network. The original calling party does not need to be on a fixed phone device to communicate with the called party, thereby improving the flexibility of the call and further improving the efficiency of the call.
[0007] In one possible implementation, obtaining the called party's phone number includes, prior to: Obtain the caller's phone number; Find the calling IP address that matches the calling phone number; When a caller's answer instruction is detected, a second call connection is established between the original caller's IP address and the current caller's IP address.
[0008] In another possible implementation, the method further includes: Establish a second correspondence between the calling phone number and the calling IP address.
[0009] In another possible implementation, the called party's phone number is obtained, followed by: A third call connection is established between the calling party and the called party based on the calling party's IP address and the called party's IP address.
[0010] In another possible implementation, establishing a first call connection between the original calling party and the called party based on the called party's IP address and the original calling party's IP address includes: Based on the original calling IP address, the calling IP address, the called IP address, the second call connection, and the third call connection, a first call connection is established between the original calling party and the called party.
[0011] In another possible implementation, the step of establishing a first call connection between the original calling party and the called party based on the called party's IP address and the original calling party's IP address further includes: Obtain the original caller's voice information and the called party's voice information, and store the original caller's voice information and the called party's voice information.
[0012] The calling party's voice information is sent to the called party based on the called party's IP address; The called party's voice information is sent to the original caller based on the original caller's IP address.
[0013] In another possible implementation, prior to obtaining the network request, the following steps are also included: When an account information locking command is detected, obtain the current account information and historical account information; The account accuracy rate is calculated based on the current account information, the historical account information, the preset account information, and the preset weight; if the account accuracy rate is greater than the preset threshold, a verification message is sent.
[0014] Secondly, a calling device is provided, the device comprising: The first acquisition module is used to acquire network requests; The first determining module is used to determine the original calling party's original calling IP address based on the network request; The second acquisition module is used to acquire the called party's called phone number and the first correspondence between the called phone number and the called IP address; The first lookup module is used to look up the called IP address based on the first correspondence and the called phone number; The first establishment module is used to establish a first call connection between the original caller and the called party based on the called party's IP address and the original caller's IP address.
[0015] In one possible implementation, the apparatus further includes: a third acquisition module, a second search module, and a second establishment module, wherein, The third acquisition module is used to acquire the caller's phone number; The second search module is used to search for the calling IP address that matches the calling phone number; The second establishment module is used to establish a second call connection between the original caller and the current caller based on the original caller's IP address and the current caller's IP address when a caller's answer instruction is detected.
[0016] In another possible implementation, the apparatus further includes: a third establishment module, wherein, The third establishment module is used to establish a second correspondence between the calling phone number and the calling IP address.
[0017] In another possible implementation, the apparatus further includes: a fourth establishment module, wherein, The third-party call connection module is used to establish a third call connection between the calling party and the called party based on the calling party's IP address and the called party's IP address.
[0018] In another possible implementation, when the first establishing module establishes a first call connection between the original calling party and the called party based on the called party's IP address and the original calling party's IP address, it is specifically used for: Based on the original calling IP address, the calling IP address, the called IP address, the second call connection, and the third call connection, a first call connection is established between the IP addresses of the original calling party and the called party.
[0019] In another possible implementation, the apparatus further includes: a fourth acquisition module, a first transmission module, and a second transmission module, wherein, The fourth acquisition module is used to acquire the calling voice information and the called voice information, and to store the original calling voice information and the called voice information. The first sending module is used to send the calling voice information to the called party based on the called party's IP address; The second sending module is used to send the called party's voice information back to the original calling party based on the original calling party's IP address.
[0020] In another possible implementation, the apparatus further includes: a fifth acquisition module, a calculation module, and a third transmission module, wherein, The fifth acquisition module is used to acquire current account information and historical account information when an instruction to lock account information is detected. The calculation module is used to calculate the account accuracy rate based on the current account information, the historical account information, the preset account information, and the preset weight. The third sending module is used to send verification information if the account accuracy rate is greater than a preset threshold.
[0021] Thirdly, an electronic device is provided, the electronic device comprising: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to: perform operations corresponding to the methods of the calls shown according to any possible implementation of the first aspect.
[0022] Fourthly, a computer-readable storage medium is provided, the storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor to implement a call as shown in any possible implementation of the first aspect.
[0023] In summary, this application includes at least one of the following beneficial technical effects: This application provides a method, apparatus, electronic device, and computer-readable storage medium for making a call. Compared with related technologies, in this application, a network request is obtained, and the original calling IP address is determined based on the network request. The original calling IP address can be the IP address of a mobile terminal or the IP address of a fixed device. After obtaining the network request, the called phone number and a first correspondence between the called phone number and the called IP address are obtained. The called IP address is then searched based on the first correspondence and the called phone number. After obtaining the called IP address and the original calling IP address, a first call connection is established between the original calling party and the called party based on the called IP address and the original calling IP address. This enables the called party and the original calling party to communicate via the network. The original calling party does not need to be in a specific environment to communicate with the called party, thereby improving the flexibility and efficiency of the call. Attached Figure Description
[0024] Figure 1 This is a schematic flowchart of a calling method provided in an embodiment of this application.
[0025] Figure 2 This is a schematic diagram of information transmission during a call process provided in an embodiment of this application.
[0026] Figure 3 This is a schematic diagram of a call process provided in an embodiment of this application.
[0027] Figure 4 This is a schematic diagram of a calling device provided in an embodiment of this application.
[0028] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0029] The following is in conjunction with the appendix Figure 1 - Appendix Figure 5 This application will be described in further detail.
[0030] This specific embodiment is merely an explanation of this application and is not intended to limit it. After reading this specification, those skilled in the art can make modifications to this embodiment without contributing any inventive step, but such modifications are protected by patent law as long as they fall within the scope of the claims of this application.
[0031] Currently, the call capabilities of logistics outlets at all levels rely solely on third-party suppliers and require the installation of telephone equipment. This does not support mobile or home office work and requires a local environment to make and receive calls. The overall implementation, equipment purchase, agent account activation, and daily maintenance all increase the cost of outlet hotline services. The cost of VoIP is mainly in call charges, which are relatively lower than the price of telephone line calls, thereby reducing the additional expenses of outlet telephone services.
[0032] This application embodiment facilitates telephone communication between logistics outlets and customers, between outlets, and between customer service representatives and delivery personnel. Utilizing VoIP technology and single sign-on, it establishes VoIP capabilities, enabling users to make calls and communicate online via PC, headset, microphone, and internet connection. The system employs the Session Initialization Protocol (SIP) and incorporates the JsSIP open-source JavaScript library for secondary development, integration, and encapsulation of functions. This allows for direct telephone communication on computers equipped with headsets and microphones. SIP is a multimedia communication protocol developed by the IETF (Internet Engineering Task Force). It is a text-based application layer control protocol used to create, modify, and release sessions of one or more participants. SIP is an IP voice session control protocol originating from the internet, characterized by its flexibility, ease of implementation, and scalability.
[0033] This application embodiment utilizes Single Sign-On (SSO), which allows users to access all trusted application systems with a single login. SSO facilitates user authentication, streamlines account configuration, prevents information leakage due to high caller turnover, and promotes the business of the call system. This application embodiment visualizes call data, integrates it into multiple business scenarios, efficiently processes and utilizes data, provides handling for lost, damaged, and delayed items, integrates outbound call operation paths, improves user experience, and shortens outbound call operation time.
[0034] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0035] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article, unless otherwise specified, generally indicates that the preceding and following related objects have an "or" relationship.
[0036] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.
[0037] This application provides a method for making a call, executed by an electronic device. The electronic device can be a server or a terminal device. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smartphone, tablet, laptop, desktop computer, etc., but is not limited to these. The terminal device and the server can be directly or indirectly connected via wired or wireless communication. This application does not impose any limitations on this connection. Figure 1 As shown, the method may include: Step S101: Obtain network request.
[0038] In the embodiments of this application, the network request is a request from the user (i.e., the original calling user) to log in to the website. The network request can be obtained when the login instruction of the original calling user is detected, or when the user's call request is detected.
[0039] Step S102: Determine the original calling party's IP address based on the network request.
[0040] In this embodiment of the application, the network request contains the original calling party's IP address. The original calling party's IP address is obtained by parsing the network request. For example, the network request is: GET / index.jsp HTTP / 1.1 / Accept-Language:zh-cn / Connection:Keep-Alive / Host:192.168.0.106 / Content-Length:37 / userName=new_andy&password=new_andy. In this network request, "192.168.0.106" is the original calling party's IP address.
[0041] Step S103: Obtain the called party's phone number and the first correspondence between the called phone number and the called IP address.
[0042] In the embodiments of this application, after obtaining a network request, the electronic device obtains the called party's phone number. The called party's phone number can be a called phone number manually entered by the user or a called phone number selected by the user.
[0043] Furthermore, in order to find the called IP address, a first correspondence between the called phone number and the called IP address is also needed. Specifically, in this embodiment, the electronic device can obtain the first correspondence between the called phone number and the called IP address from local storage, from other devices, or from a user-inputted first correspondence between the called phone number and the called IP address; this is not limited in this embodiment. For example, the called IP address corresponding to called phone number 1 is called IP address A.
[0044] Step S104: Find the called IP address based on the first correspondence and the called phone number.
[0045] In the embodiments of this application, after obtaining the first correspondence between the called phone number and the called IP address, when a call request from the calling party is detected, the called IP address that matches the called phone number is searched from the first correspondence. For example, the called IP address corresponding to the called phone number 1 is called IP address A.
[0046] Step S105: Based on the called party's IP address and the original calling party's IP address, establish the first call connection between the original calling party and the called party.
[0047] In the embodiments of this application, after obtaining the called party's IP address and the original calling party's IP address, a first call connection between the called party and the original calling party is established through the called party's IP address and the original calling party's IP address. Soft switching is implemented through the SIP protocol, and soft switching technology is used to enable the called party and the original calling party to communicate through IP addresses. The soft switch is located at the network control layer to realize call control.
[0048] Furthermore, after establishing a call connection between the caller and the called party, voice transmission is carried out through a voice gateway, softswitch, and SIP protocol to enable the original caller and the called party to communicate over the network.
[0049] This application provides a method for making a call. Compared with related technologies, in this application, a network request is obtained, and the original calling IP address of the original caller is determined based on the network request. The original calling IP address can be the IP address of a mobile terminal or the IP address of a fixed device. After obtaining the network request, the called party's called phone number and the first correspondence between the called phone number and the called IP address are obtained. The called IP address is then searched based on the first correspondence and the called phone number. After obtaining the called IP address and the original calling IP address, a first call connection is established between the original caller and the called party based on the called IP address and the original calling IP address. This enables the called party and the original caller to communicate via the network. The original caller does not need to be in a specific environment to communicate with the called party, thereby improving the flexibility and efficiency of the call.
[0050] In the above-mentioned application example, after the first call connection between the original calling party and the called party is established, the connection success time and the current time are obtained, the call duration is calculated based on the connection success time and the current time, and the display device can display the call status and call duration in real time. The call status includes: calling, ringing, and in call.
[0051] Another possible implementation of this application embodiment is to obtain the called party's phone number, and then may include: step Sa1 (not shown in the figure), step Sa2 (not shown in the figure), and step Sa3 (not shown in the figure), wherein step Sa1 is to obtain the caller's phone number.
[0052] In this embodiment of the application, in order to further improve the flexibility of calling, the caller can use a two-call method to call the caller, that is, the caller first calls the calling number, and after the calling number is connected, the caller then calls the called number. When the user's outgoing call operation is detected, the electronic device obtains the calling number, which can be entered by the user or selected by the user.
[0053] In the above-described embodiments, after obtaining the called and called phone numbers, the display device can display the calling number and a label corresponding to the called number. The label can indicate whether the user is a VIP (Very Important Person). For example, if the called phone number 1 in the database corresponds to a VIP, the label will display "VIP". The caller can also set the calling phone number as a callback number, meaning that if the called party calls back after the call ends, the user will be dialed the calling phone number set by the user.
[0054] Step Sa2: Find the calling IP address that matches the calling phone number.
[0055] In this embodiment of the application, the database stores the correspondence between caller phone numbers and caller IP addresses. When the database detects that a user has manually entered a caller phone number, it searches for the caller IP address corresponding to the caller phone number from the correspondence between caller phone numbers and caller IP addresses stored in the database.
[0056] Step Sa3: When the caller's answer instruction is detected, a second call connection is established between the original caller and the caller based on the original caller's IP address and the caller's IP address.
[0057] In the embodiments of this application, after obtaining the calling party's IP address and the original calling party's IP address as described in the above application embodiments, and when the calling party's answer instruction is detected, a second call connection between the original calling party and the calling party is established based on the SIP protocol using softswitch technology. By obtaining the calling party's number, a call connection between the original calling party and the calling party is established. Users do not need to call the called party in a specific environment, which further improves the flexibility of calling.
[0058] In another possible implementation of this application's embodiments, the method may further include: obtaining the original caller's account information; and verifying the account information. In this application's embodiments, the original caller's account information can be obtained before obtaining the called phone number. The account information is compared with preset information to determine whether the original caller has call permissions. If the original caller has call permissions, the called phone number is obtained. By verifying the original caller's information before obtaining the called phone number, call security is improved.
[0059] Another possible implementation of this application embodiment is that the method may further include: establishing a second correspondence between the calling telephone number and the calling IP address.
[0060] Furthermore, the step of establishing a second correspondence between the calling telephone number and the calling IP address can be performed before step Sa2.
[0061] In this embodiment of the application, after establishing a second correspondence between the calling phone number and the calling IP address, the second correspondence can be stored in a database. For example, the calling IP address corresponding to calling phone number 1 is calling IP address A, and the calling IP address corresponding to calling phone number 2 is calling IP address B. By establishing a second correspondence between the calling phone number and the calling IP address, the efficiency of finding the calling IP address is improved.
[0062] Another possible implementation of this application embodiment involves obtaining the called party's phone number, and further includes establishing a third-party call connection between the caller and the called party based on the caller's IP address and the called party's IP address. In this application embodiment, after obtaining the caller's IP address and the called party's IP address, a third-party call connection between the caller and the called party is established through the SIP protocol and softswitch technology. This direct network connection reduces reliance on third-party vendors.
[0063] Another possible implementation of this application embodiment is to establish a first call connection between the original caller and the called party based on the called party's IP address and the original caller's IP address. Specifically, it may include: establishing a first call connection between the original caller and the called party based on the original caller's IP address, the caller's IP address, the called party's IP address, as well as a second call connection and a third call connection.
[0064] In the embodiments of this application, after obtaining the original calling IP address, the calling IP address, and the called IP address, and establishing a second call connection between the original calling party and the calling party, as well as a third call connection between the calling party and the called party, after detecting the called party's answer instruction, based on the original calling IP address, the calling IP address, the called IP address, the called IP address, the second call connection, and the third call connection, a first call connection between the calling party and the called party is established through the SIP protocol and softswitch technology. By establishing the original calling IP address, the calling IP address, and the called IP address, the call connection between the original calling party and the called party is established, allowing users to directly call the called party using their mobile devices, thus improving the flexibility of the call.
[0065] For example, such as Figure 2 As shown, the CP SEVER is the backend device of the call system. This backend device records caller login information and counts caller dialing records. The intranet controls call capabilities. The backend device and the device controlling call capabilities are connected via a CNLink interface. The PC and the intranet are connected via IF1-1 (the service call interface) to invoke the call system's capabilities (such as dialing, connecting, and hanging up). Intranet data relies on a logistics cloud for transmission. The logistics cloud includes a voice gateway and a softswitch. The voice gateway and the intranet are connected via IF1-2 (authentication interface), which verifies whether the voice gateway and the intranet have connection permissions. The voice gateway and the PC are connected via a vendor-specific private interface. The voice gateway and the softswitch are connected via IF3 (SIP protocol) to enable softswitch functionality. The softswitch connects to the Public Switched Telephone Network (PSTN). The PSTN (Public Switched Network) connects via the SIP protocol, and the softswitch and the internal network connect via IF2 (Call Control Interface) to enable the internal network to confirm permissions and open call functions. The softswitch adopts an open architecture with standardized protocols and application programming interfaces to implement various basic call controls, which can be used for call establishment, maintenance, and clearing.
[0066] Another possible implementation of this application embodiment establishes a first call connection between the original caller and the called party based on the called party's IP address and the original caller's IP address. This may further include: acquiring and storing the original caller's voice information and the called party's voice information; sending a calling voice message to the called party based on the called party's IP address; and sending the called voice information to the original caller based on the original caller's IP address. In this application embodiment, after establishing the first call connection between the original caller and the called party, the electronic device can acquire and store the original caller's voice information and the called party's voice information in real time. It can also store the original caller's voice information and the called party's voice information after acquiring them in the current call. By acquiring and storing the calling party's voice information and the called party's voice information, the call functionality is enriched.
[0067] In the embodiments of this application, after obtaining the original calling party's voice information and the called party's voice information, the original calling party's voice information and the called party's voice information are transmitted through the original calling party's IP address, the calling party's IP address and the called party's IP address. The called party's voice information is sent to the calling party in real time through the third call connection and the calling party's IP address, and the called party's voice information is sent to the original calling party in real time based on the second call connection and the original calling party's IP address.
[0068] Another possible implementation of this application embodiment includes: obtaining first account information and storing the first account information. In this application embodiment, the first account information is the user's account information from their first login. Storing the user's first account information and sending it to mutually trusted systems allows the user to directly log in to other mutually trusted systems. By storing the first account information, the user's login time is reduced, and the efficiency of the user logging into the system is improved.
[0069] Another possible implementation of this application embodiment may include, before obtaining the network request, steps Sb1 (not shown in the figure), Sb2 (not shown in the figure), and Sb3 (not shown in the figure), wherein, Step Sb1: When a login failure command is detected, obtain the current account information and historical account information.
[0070] In this embodiment of the application, before obtaining a network request, the calling party needs to authenticate through verification information. The calling party is verified by analyzing the account information to determine whether the account information has call permissions. When the user logs in to the account information, if the user forgets the password and enters the wrong account information multiple times, the login will fail. When the number of times the user enters the password reaches the threshold, the account information is locked. When the account information is locked, the current account information and the historical account information are obtained. The current account information is the account information entered by the user when the account information is locked, and the historical account information is the account information of the previous one or the previous five times the current account information is entered by the user. The specific number of times is not limited in this embodiment of the application.
[0071] Step Sb2: Calculate the account accuracy based on the current account information, historical account information, preset account information, and preset weights.
[0072] In this embodiment of the application, the database stores correct account information (i.e., preset account information). Preset account information includes: a preset username and a preset password. Current account information includes: the current username and the current password. Historical account information includes: historical usernames and historical passwords. Preset weights include: a preset current weight and a preset historical weight. The preset current weight is the weight corresponding to the current accuracy rate, and the preset historical weight is the weight corresponding to the historical accuracy rate. By comparing the current username with the preset username, the preset account information corresponding to the current username is obtained. After obtaining the corresponding preset account information, the current password is compared with the corresponding historical password to obtain the correct number of digits in the current password, i.e., the current accuracy rate. The historical account information is also compared with the preset account information to obtain the historical accuracy rate. For example, if the current password is 154263, the historical password is 189263, and the preset password is 144263, then the accuracy rate of the current password is 5, and the accuracy rate of the historical password is 4. The account accuracy rate is calculated comprehensively using the current accuracy rate, the historical accuracy rate, and the preset weights. The preset weights can be preset by engineers or the system. For example, based on... Where ρ represents the current accuracy, ω1 represents the preset current weight, μ represents the historical accuracy, and ω2 represents the preset historical weight.
[0073] Step Sb3: If the account accuracy rate is greater than the preset threshold, then send verification information based on the preset account information.
[0074] In this embodiment of the application, the preset account information further includes a phone number. When the account accuracy rate is greater than a preset threshold, verification information is sent based on the phone number, such as "Your phone number is:", to verify whether the current incorrect account information is a brute-force attack. The user's reply verification information is obtained. If the reply verification information is correct, then the incorrect account information is not a brute-force attack. By verifying the current account information, the security of the call is improved.
[0075] Another possible implementation of this application embodiment includes further comprising: obtaining first account information, the first account information including: account information entered by the user for the first time; and caching the first account information. In this application embodiment, the user needs to log in to their account information before making a call. To improve call efficiency, the user's first login account information is obtained and cached so that the user can log in to their account information again before making another call. The account information may also include: a single sign-on system unique code, the organization to which the user belongs, and the role to which the user belongs. By caching the account information, the time spent by the user entering account information is reduced, thereby improving call efficiency.
[0076] Furthermore, a possible implementation of the embodiments of this application is described through a specific scenario, such as... Figure 3 As shown, the system integrates call status, call handling functions, call logs, and recording. When the original caller detects that the original caller (i.e., customer service) clicks the "Dial" option through the call entry, the outbound dial pad is displayed, and an information area is shown on the original caller's screen. The information area includes the caller's number and the calling method (single call or double call). The caller selects the calling method. Taking single call as an example, after selecting single call, the original caller enters or selects the called number. When dialing the called number, the aforementioned display device shows the call status, call duration, and operation method, such as hang up, mute, and unmute. When the original caller or called party's hang-up command is detected, the outbound call result is obtained, such as the call duration and ringing duration. If the call fails, it displays "Call Failed" and prompts the original caller to re-dial. After the call is connected and ends, the call log and call charges are received, and the original caller displays the outbound call result. The electronic device sends the call duration and call charges to the original caller. When the call fails, the original caller can choose to dial again.
[0077] Furthermore, it should be noted that in the embodiments of this application, both "original calling party" and "called party" refer to the device.
[0078] The above embodiments describe a method for making a call from the perspective of the process flow. The following embodiments describe a device for making a call from the perspective of a virtual module or virtual unit. For details, please refer to the following embodiments.
[0079] This application provides a calling device, such as... Figure 4 As shown, the calling device 40 may specifically include: a first acquisition module 41, a first determination module 42, a second acquisition module 43, a first search module 44, and a first establishment module 45, wherein, The first acquisition module 41 is used to acquire network requests, called phone numbers, and the first correspondence between called phone numbers and called IP addresses; The first determining module 42 is used to determine the original calling party's original calling IP address based on the network request; The second acquisition module 43 is used to acquire the called party's called phone number and the first correspondence between the called phone number and the called IP address; The first lookup module 44 is used to look up the called IP address based on the first correspondence and the called phone number; The first establishment module 45 is used to establish the first call connection between the original calling party and the called party based on the called party's IP address and the original calling party's IP address.
[0080] In one possible implementation of this application embodiment, the apparatus 40 further includes: a third acquisition module, a second search module, and a second establishment module, wherein... The third acquisition module is used to acquire the caller's phone number; The second search module is used to find the calling IP address that matches the calling phone number; The second establishment module is used to establish a second call connection between the original caller and the current caller based on the original caller's IP address and the current caller's IP address when the caller's answer instruction is detected.
[0081] In another possible implementation of this application embodiment, the apparatus 40 further includes: a third establishing module, wherein... The third module is used to establish a second correspondence between the calling phone number and the calling IP address.
[0082] In another possible implementation of this application embodiment, the apparatus further includes: a fourth establishment module, wherein the fourth establishment module is used to establish a third call connection between the calling party and the called party based on the calling IP address and the called IP address.
[0083] In another possible implementation of this application embodiment, when the first establishing module 45 establishes a first call connection between the original calling party and the called party based on the called party's IP address and the original calling party's IP address, it is specifically used for: Based on the original calling IP address, the calling IP address, the called IP address, the second call connection, and the third call connection, establish the first call connection between the original calling party and the called party's IP addresses.
[0084] In another possible implementation of this application embodiment, the apparatus 40 further includes: a fourth acquisition module and a first transmission module, wherein... The fourth acquisition module is used to acquire the calling and called voice information and store the original calling and called voice information. The first sending module is used to send the calling party's voice information to the called party; The second sending module is used to send the called party's voice information back to the original calling party based on the original calling party's IP address. In another possible implementation of this application embodiment, the device 40 further includes: a fifth acquisition module, a calculation module, and a third sending module, wherein... The fifth acquisition module is used to acquire current account information and historical account information when an account information locking instruction is detected; the calculation module is used to calculate the account accuracy rate based on the current account information, historical account information, preset account information, and preset weights. The third sending module is used to send verification information if the account accuracy rate is greater than a preset threshold.
[0085] This application provides a calling device. Compared with related technologies, in this application, a network request is obtained, and the original calling IP address of the original caller is determined based on the network request. The original calling IP address can be the IP address of a mobile terminal or the IP address of a fixed device. After obtaining the network request, the called party's called phone number and the first correspondence between the called phone number and the called IP address are obtained. The called IP address is then searched based on the first correspondence and the called phone number. After obtaining the called IP address and the original calling IP address, a first call connection is established between the original caller and the called party based on the called IP address and the original calling IP address. This enables the called party and the calling party to communicate through the network. The calling party does not need to be in a specific environment to communicate with the called party, thereby improving the flexibility of the call and further improving the efficiency of the call.
[0086] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the calling device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0087] This application provides an electronic device, such as... Figure 5 As shown, Figure 5 The illustrated electronic device 50 includes a processor 501 and a memory 503. The processor 501 and the memory 503 are connected, for example, via a bus 502. Optionally, the electronic device 50 may also include a transceiver 504. It should be noted that in practical applications, the transceiver 504 is not limited to one unit, and the structure of this electronic device 50 does not constitute a limitation on the embodiments of this application.
[0088] Processor 501 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 501 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0089] Bus 502 may include a pathway for transmitting information between the aforementioned components. Bus 502 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 502 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The symbol is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0090] The memory 503 may be a ROM (Read Only Memory) or other type of static storage device capable of storing static information and instructions, RAM (Random Access Memory) or other type of dynamic storage device capable of storing information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0091] The memory 503 is used to store application code that executes the solution of this application, and its execution is controlled by the processor 501. The processor 501 is used to execute the application code stored in the memory 503 to implement the content shown in the foregoing method embodiments.
[0092] Electronic devices include, but are not limited to: mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Servers can also be included. Figure 5 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0093] This application provides a computer-readable storage medium storing a computer program that, when run on a computer, enables the computer to execute the corresponding content in the aforementioned method embodiments. Compared with related technologies, in this application embodiment, by obtaining a network request and determining the original calling party's IP address based on the network request, after obtaining the network request, the called party's phone number and a first correspondence between the called phone number and the called IP address are obtained. Based on the first correspondence and the called phone number, the called IP address is searched. After obtaining the called IP address and the original calling party's IP address, a first call connection is established between the original calling party and the called party based on the called IP address and the original calling party's IP address. This enables the called party and the calling party to communicate via the network, eliminating the need for the calling party to be in a specific environment to communicate with the called party, thereby improving call flexibility and further enhancing call efficiency.
[0094] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0095] The above are only some embodiments of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method of making a call, characterized in that, include: Obtain the network request, which is the original caller's request to log in to the website; The original calling party's IP address is determined based on the network request. Obtain the called party's phone number and the first correspondence between the called phone number and the called IP address; Based on the first correspondence and the called phone number, the called IP address is located; Based on the called party's IP address and the original calling party's IP address, a first call connection is established between the original calling party and the called party. Obtaining the called party's phone number, previously also included: Obtain the caller's phone number; Find the calling IP address that matches the calling phone number; When a caller's answer instruction is detected, a second call connection is established between the original caller and the calling party based on the original caller's IP address and the calling party's IP address. Establish a second correspondence between the calling phone number and the calling IP address; Obtain the called party's phone number, and then include: A third call connection is established between the calling party and the called party based on the calling IP address and the called IP address. The step of establishing a first call connection between the original caller and the called party based on the called party's IP address and the original caller's IP address includes: Based on the original calling IP address, the calling IP address, the called IP address, the second call connection, and the third call connection, a first call connection is established between the original calling party and the called party.
2. The method according to claim 1, characterized in that, The process of establishing a first call connection between the original caller and the called party based on the called party's IP address and the original caller's IP address further includes: Obtain the original caller's voice information and the called party's voice information, and store the original caller's voice information and the called party's voice information; The calling party's voice information is sent to the called party based on the called party's IP address; The called party's voice information is sent to the original caller based on the original caller's IP address.
3. The method according to claim 1, characterized in that, Before obtaining the network request, the process also includes: When an account information locking command is detected, obtain the current account information and historical account information; The account accuracy rate is calculated based on the current account information, the historical account information, the preset account information, and the preset weight. If the accuracy of the account is greater than a preset threshold, then a verification message is sent.
4. A calling device, characterized in that, Performing the method as described in any one of claims 1-3 includes: The first acquisition module is used to acquire network requests; The first determining module is used to determine the original calling party's original calling IP address based on the network request; The second acquisition module is used to acquire the called party's called phone number and the first correspondence between the called phone number and the called IP address; The first lookup module is used to look up the called IP address based on the first correspondence and the called phone number; The first establishment module is used to establish a first call connection between the original caller and the called party based on the called party's IP address and the original caller's IP address.
5. An electronic device, characterized in that, include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to: perform a method of a call according to any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements a method of calling as described in any one of claims 1 to 3.
Citation Information
Patent Citations
A routing method for IP telephone system
CN1522012A
