WO2020143307A1 - Virtual telephone state switching method, device, computer device, and storage medium - Google Patents

Virtual telephone state switching method, device, computer device, and storage medium Download PDF

Info

Publication number
WO2020143307A1
WO2020143307A1 PCT/CN2019/117633 CN2019117633W WO2020143307A1 WO 2020143307 A1 WO2020143307 A1 WO 2020143307A1 CN 2019117633 W CN2019117633 W CN 2019117633W WO 2020143307 A1 WO2020143307 A1 WO 2020143307A1
Authority
WO
WIPO (PCT)
Prior art keywords
check
user
state
information
instruction
Prior art date
Application number
PCT/CN2019/117633
Other languages
French (fr)
Chinese (zh)
Inventor
王旭
梁洪涛
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020143307A1 publication Critical patent/WO2020143307A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt

Definitions

  • the present application relates to a virtual phone state switching method, device, computer equipment and storage medium.
  • a soft phone is a virtual phone installed in a communication terminal device. It has the same functions as a real phone and is often used to provide end users with good voice quality voice services.
  • the biggest advantage of the virtual phone is its ease of use and scalability. Therefore, in order to facilitate work, most enterprises now configure virtual phone plug-ins for employee terminals for their use. Among them, the virtual phone state switching function is usually provided to prevent business personnel from missing the call.
  • the inventor realized that the state switching function traditionally provided can only be manually switched by the business personnel, which is likely to cause the business personnel to forget to manually switch back and miss the phone when the business personnel switch to indicate busy and delay the work, resulting in reduced work efficiency.
  • a virtual phone switching method, device, computer device, and storage medium are provided.
  • a virtual phone state switching method includes:
  • the state switching task is started according to the time interval to switch the busy state to the idle state.
  • a virtual telephone state switching device includes:
  • a receiving module configured to receive a system startup instruction sent by a user terminal, and obtain a configuration file according to the system startup instruction
  • a loading module used to load the configuration file to complete the system startup, and simultaneously start the virtual phone plug-in;
  • the receiving module is also used to receive a check-in instruction sent by a user terminal, where the check-in instruction carries user check-in information;
  • a startup module used to complete the user check-in according to the user check-in information in response to the check-in instruction, and start a regular polling task;
  • a polling module configured to obtain a time interval if the virtual phone plug-in is busy according to the periodic polling task
  • the switching module is configured to start a state switching task according to the time interval to switch the busy state to the idle state.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the one or more processors are executed The following steps:
  • the state switching task is started according to the time interval to switch the busy state to the idle state.
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the computer-readable instructions When executed by one or more processors, the one or more processors perform the following steps:
  • the state switching task is started according to the time interval to switch the busy state to the idle state.
  • FIG. 1 is an application scenario diagram of a virtual phone state switching method according to one or more embodiments.
  • FIG. 2 is a schematic flowchart of a virtual phone state switching method according to one or more embodiments.
  • FIG. 3 is a schematic flowchart of a virtual phone state switching method according to another embodiment or multiple embodiments.
  • FIG. 4 is a schematic flowchart of a step of acquiring a time interval according to one or more embodiments to obtain that the virtual phone plug-in is busy according to the periodic polling task.
  • FIG. 5 is a block diagram of a virtual phone state switching device according to one or more embodiments.
  • Figure 6 is a block diagram of a computer device in accordance with one or more embodiments.
  • the virtual phone state switching method provided by this application can be applied to the application environment shown in FIG. 1.
  • the user terminal 102 communicates with the server 104 through the network, and the server 104 communicates with the telephone platform server 106 through the network.
  • the server 104 receives the system startup instruction sent by the user terminal 102, and the server 104 obtains the configuration file according to the system startup instruction.
  • the server 104 loads the configuration file to complete the system startup, and simultaneously starts the virtual phone plug-in.
  • the server 104 receives the check-in instruction sent by the user terminal 102, and the check-in instruction carries user check-in information.
  • the server 104 responds to the check-in instruction to complete the user check-in based on the user check-in information, and initiates a regular polling task.
  • the server 104 obtains that the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained.
  • the server 104 starts the state switching task according to the time interval to switch the busy state to the idle state.
  • the user terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server 104 may be implemented by an independent server or a server cluster composed of multiple servers.
  • a virtual phone state switching method is provided.
  • the method is applied to the server in FIG. 1 as an example for illustration, including the following steps:
  • Step S202 Receive a system startup instruction sent by the user terminal, and obtain a configuration file according to the system startup instruction.
  • the system startup instruction refers to that when the user terminal is operated by the user to start the software system, the system startup request automatically sent to the server is generated.
  • the configuration file refers to the combination of environment settings and files required when starting the system. That is, when the server receives the system startup instruction sent by the user terminal, it obtains a pre-configured system configuration file in response to the system startup instruction.
  • the user terminal when the user opens the software system containing the virtual phone plug-in through touch operation or mouse operation on the user terminal, the user terminal automatically generates a system startup instruction according to the user operation, and sends the system startup instruction to the server.
  • the server After the server receives the system startup instruction sent by the user terminal, it can be determined that the user terminal needs to obtain the configuration file corresponding to the software system to complete the system startup, and the server obtains the system configuration file corresponding to the software system in response to the system startup instruction.
  • step S204 the configuration file is loaded to complete the system startup, and the virtual phone plug-in is started synchronously.
  • the server After the server obtains the configuration file corresponding to the system, it loads the configuration file corresponding to the system to build the environment required by the system to complete the system startup.
  • the virtual phone plug-in is set in the system in advance, and is set in the configuration file to start synchronously with the start of the system. Therefore, when the server loads the configuration file, the virtual phone software is started synchronously.
  • Step S206 Receive a check-in instruction sent by the user terminal, where the check-in instruction carries user check-in information.
  • the check-in instruction refers to a request that the user operates the user terminal to send to the server through the login interface of the system to register with the corresponding telephone platform server.
  • the user check-in information includes the user account and password, that is, the account and password when logging in to the system. Accounts include but are not limited to mobile phone numbers, user names and email addresses.
  • the user can perform corresponding operations on the system at the user terminal.
  • the user completes the system login through the login interface to obtain the system usage right, and sends a check-in instruction carrying the user's check-in information to the server through the system login synchronization, which is used to instruct the server to obtain the use right of the virtual phone for the logged-in user. That is to say, when the user performs a login operation on the system login interface, if the system login is successful, but the check-in is not successful, the user does not have permission to use the virtual phone, and can only use the permissions of other functions that the system opens for it.
  • Step S208 respond to the check-in instruction to complete the user check-in according to the user check-in information, and start a regular polling task.
  • Polling refers to a way for the CPU to decide how to provide peripheral device servers, also known as program-controlled input and output.
  • the CPU issues a query at regular intervals, asking whether each peripheral device needs its service, and if there is, it will be given the service. After the service is over, the next peripheral device will be asked, and then it will continue to repeat.
  • the periodic polling task is set in advance, and then a server periodically sends a query to the user terminal according to a preset time, and obtains the status of the virtual phone plug-in through the query.
  • the server responds to the check-in instruction and sends a check-in request to the corresponding telephone platform according to the check-in information.
  • the phone platform returns the information that the user has checked in successfully, the user is granted the right to use the virtual phone, and at the same time, the preset periodic polling task is started to query the status of the virtual phone plug-in used by the user.
  • step S210 if the virtual phone plug-in is busy according to the periodic polling task, the time interval is acquired.
  • the busy state refers to the state where the virtual phone cannot answer the call. Generally, when the agent leaves the seat temporarily or cannot answer the call, the virtual phone state is switched to busy. Agent refers to the general name of the person who answers the call in the call center, that is, the user who uses the virtual phone.
  • the time interval refers to the time preset for the countdown. For example, when the task is started after the preset time interval, when the preset time interval is 10s, it means that the task is started after 10s.
  • the server determines that the busy status needs to be switched to display Idle state. Then a preset scheduled task configuration file is obtained, and a preset time interval is obtained from the scheduled task configuration file.
  • step S212 the state switching task is started according to the time interval to switch the busy state to the idle state.
  • the idle state refers to the state where the virtual phone can answer the call. Specifically, when the server determines that the virtual phone status is busy according to the scheduled polling task, and the preset time interval is obtained from the preset scheduled task configuration file. Then the state switching task is started according to the time interval, and the busy state of the virtual phone is switched to the idle state.
  • the start time of the state switching task is set according to the time interval, and once the state switching task is started, the busy state is switched to the idle state. For example, if the time interval is 10s and the current system time is 12:10:20, the start time of the state switching task is set at 12:10:30. When the system time is from 12:00 to 10:30, the status is switched from busy to idle.
  • the time interval can be set according to the actual situation.
  • the configuration file is first obtained through the system startup instruction received from the user terminal, and then the configuration file is loaded to complete the system startup, and the virtual phone plug-in is started synchronously, thereby ensuring that the virtual phone plug-in starts synchronously when the system starts. Then, according to the check-in instruction sent by the user terminal and the user check-in information, the regular polling task is started after completing the user check-in, thereby ensuring that the virtual phone is being used when the polling state is in progress. Finally, if the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained. The state switching task is started according to the time interval to switch the busy state to the idle state.
  • the above method realizes automatic switching of the state of the virtual phone plug-in, thereby keeping the virtual phone unblocked and improving work efficiency.
  • step S210 if the virtual phone plug-in is obtained as busy according to the periodic polling task, after the acquisition interval, It includes the following steps:
  • Step S2101 Identify whether the virtual phone plug-in is in a call state.
  • the call state means that the virtual phone is in the process of talking, and the state of the call is the virtual phone state and the state of being unable to answer the call, that is, the busy state.
  • the acquisition interval starts the switching task to switch the state and cut off the call.
  • the server obtains the virtual phone plug-in as a busy state according to the periodic polling task and obtains the time interval, the server obtains whether the call function of the virtual phone is turned on, and if so, it indicates that the virtual phone is in a call.
  • step S2102 if yes, the periodic polling task is closed, and the periodic polling task is restarted after the end of the call state.
  • the periodic polling task When it is recognized that the virtual phone is in a call, the periodic polling task is closed, and at the same time, the monitoring task is started to monitor when the call ends. Once the call state ends, the periodic polling task is restarted.
  • the periodic polling task sends an inquiry request to the user terminal again to inquire about the state of the virtual phone until it is recognized that the state of the virtual phone is the busy state. If the recognized virtual phone state is not in the call state, the state switching task is started according to the acquired time interval to switch the state.
  • whether to perform state switching is determined by identifying whether the virtual phone is in a call state, thereby ensuring the accuracy of the switching.
  • responding to the check-in instruction completes user check-in based on user check-in information, and initiates a regular polling task including the steps of: sending the check-in instruction and user check-in information to the phone platform server; receiving phone platform server feedback
  • the check-in message is generated by the phone platform server in response to the check-in instruction and registered based on the user's check-in information; if the check-in message is recognized as a successful registration, the user's check-in is completed and a regular polling task is initiated.
  • the telephone platform refers to a communication company that interfaces with the system to which the virtual telephone belongs.
  • the virtual phone needs to be connected with the phone platform to obtain the call function. Therefore, after the server receives the check-in instruction sent by the user terminal, the server sends the check-in instruction and the corresponding user check-in information to the phone platform server to complete the check-in.
  • Registration means that the phone platform server saves the user's check-in information locally and recognizes that the user has the call right.
  • the phone platform server After the server sends the check-in instruction and the user's check-in information to the phone platform server, after the phone platform server receives the check-in instruction, it can determine that the docked server needs to register to obtain the call permission, and then the received user Check in information to register and return the corresponding check-in message.
  • the user's check-in information pre-agreed with the server determines whether the user's check-in information sent this time should be eligible for registration. If the registration is qualified, the registration is performed and the successful check-in information is returned To the server.
  • the server receives the check-in information as registration failure, the server does not open the API interface provided to the virtual phone. If the server receives the check-in information as successful registration, the server opens the API interface provided to the virtual phone to allow the virtual phone to directly interface with the outside world through the API interface. Open the corresponding API interface to complete the user check-in, and start the periodic polling task synchronously when the API interface is opened. When the user terminal sends the checkout instruction, the server directly closes the API interface.
  • starting the state switching task according to the time interval to switch the busy state to the idle state includes the steps of: setting a start time of the state switching task according to the time interval; starting the state switching task based on the starting time and generating a state switching instruction ; Send the state switching instruction and the status indicator showing the idle state to the phone platform server; if the switch success message fed back by the phone platform server is received, the busy state is switched to the idle state.
  • the server Since the server can be successfully connected by registering through the phone platform, it is also necessary to send instructions to the phone platform to switch when the state is switched.
  • the start time of the state switching task is set according to the time interval.
  • the start state switching task When the start time is up, the start state switching task generates a state switching instruction and obtains a state identifier that needs to be switched. For example, if it is necessary to switch the busy state to the idle state, the switching indicator of the idle state is acquired.
  • the server sends the state switching instruction and the state identifier of the state to be switched to the telephone platform server.
  • the phone platform server receives the switching instruction and the state identifier, it determines the state to be switched according to the state identifier.
  • the phone platform server changes the user's authority from the registration information according to the instruction, so that the user cannot temporarily answer the call. If it is switched from the busy state to the idle state, it indicates that the user has manually switched the state to busy, that is, the corresponding function has been turned off on the phone platform server. Then, when the phone platform server receives the status indicator of the idle state, it changes the changed authority back from the registration information again, that is, switches the busy state back to the idle state, so that the user has the corresponding authority again.
  • the phone platform server returns the switching success information to the server, and the server can instruct the user terminal to close the control corresponding to the busy status button of the virtual phone and open the control corresponding to the idle status button to indicate that the user is now in the idle state State switching.
  • the acquisition interval includes the following steps:
  • Step S402 Send a status query request to the user terminal according to the periodic polling task.
  • the status query request refers to an instruction sent by the server to the user terminal for querying the status of the virtual phone. Specifically, when the server starts a periodic polling task, a status query request is generated at regular intervals. After the status query request is generated, it is sent to the user terminal.
  • Step S404 Receive the virtual phone plug-in status returned by the user terminal.
  • the virtual phone plug-in status is obtained from the virtual phone plug-in by the user terminal in response to the status inquiry request.
  • the user terminal When the user terminal receives the status inquiry request sent by the server, it determines that the server needs to feedback the current state of the virtual phone.
  • the user terminal obtains the working status of each button in the virtual phone plug-in and returns it to the server. For example, the user terminal may obtain the control state of the control corresponding to the current busy button of the virtual phone. If the control is in the closed state, it means that the corresponding busy button is turned on, that is, the busy display of the virtual phone is turned on and is in the busy state.
  • the user terminal returns to the server that the busy button is turned on, and the server determines that the virtual phone is in the busy state according to the information.
  • step S406 if the virtual phone plug-in state is a busy state, the process information of the currently running process is acquired.
  • Step S408 when it is judged based on the process information that there is no preset process in the preset process table in the currently running process, the time interval is obtained.
  • the process refers to the program that the server is running.
  • the process information includes the process name and the process user name.
  • the process name is the name of the process.
  • the process user name indicates the name of the user who runs the process. It is usually used to identify the user who runs the process.
  • the preset process table is a pre-stored process file, and the preset process contains information such as the process name.
  • the server when the server obtains the virtual phone as being busy, it obtains the process information of the currently running process from the running memory. Based on the process information, it is determined whether there is a preset process in the preset process table in the currently running process. If no preset process with the same process name is found from the preset process table according to the process name, it means that the process currently running by the user does not belong to the preset process in the preset process table, that is, the user is not because Run some programs that cannot make calls and switch the virtual phone status to busy.
  • the server obtains the time interval and starts the state switching task according to the time interval to switch the state.
  • a preset process with the same name as its process is found in the preset process table, it means that the user is running a program that cannot make a call, so the virtual phone status is switched to busy, and the time is not obtained. Perform state switching tasks at intervals.
  • the server mistakenly switches the status back to idle, which improves the accuracy of switching.
  • determining whether there is a preset process in the preset process table in the currently running process based on the process information includes the steps of: obtaining the process user name and process name from the process information; obtaining from the currently running process according to the process user name The process run by the user; whether the process is the preset process in the preset process table is determined according to the process name.
  • the processes with the process user names SYSTEM, LOCAL, SERVICE, and SVCHOST are the processes required for the system to run, and the processes with other process user names are generally the processes used by the user of the user terminal.
  • the process user name is used to exclude processes with the process user names SYSTEM, LOCAL, SERVICE, and SVCHOST, and the remaining process user names are the processes that the user runs.
  • the server obtains the process name of the process run by the user, and finds from the preset process table whether there is the same process name of the preset process according to the process name.
  • the preset process in the table that is, the user may switch the virtual phone status to busy due to running a program that cannot make a call, for example, an online video conference is in progress.
  • the server does not acquire the time interval, so it cannot start the state switching task according to the time interval.
  • the method when the server periodically polls the status according to the periodic polling task, the method further includes the steps of: acquiring the user identification of the user terminal; when identifying the user as the preset occupation according to the user identification, sending the user terminal according to the periodic polling task Send a change information inquiry request; receive the state change information returned by the user terminal in response to the change information inquiry request; update the change log file corresponding to the user ID based on the state change information.
  • the user ID refers to the number of the user querying the corresponding user information, and the check-in instruction can be sent together at the user terminal.
  • the status change information refers to information indicating that the user manually changes the status frequency within a polling cycle, including information such as the number of changes and the time of change.
  • the change information query request refers to an instruction used by the server to instruct the user terminal to return status change information.
  • the polling cycle is the time interval between this poll and the last poll. Change log files are files used to store change information.
  • the server obtains the user information of the corresponding user according to the user identification, and determines whether the preset occupation, such as customer service, is based on the occupation in the user information. If the user's occupation is the preset occupation, when the server sends the inquiry request according to the periodic polling task, the change information inquiry request is also sent. When the user terminal receives the change information inquiry request, it can be determined that the corresponding state change information needs to be fed back. The user terminal returns the state change information to the server, and the state change information is collected by the user terminal according to the buried point rule.
  • the preset occupation such as customer service
  • the server After the server receives the status change information, it obtains the change log file corresponding to the user through the user ID, stores the number of changes in the status change information and the corresponding change time in the change log file, and counts the total number of changes according to the number of times. To the log file. For example, one change corresponds to one change time, and the total number of changes is a small number of changes.
  • the server sends the change log file to the monitoring terminal, and processes the user accordingly through the monitoring terminal.
  • the preset value can be set according to actual needs. In this embodiment, the change information of the preset occupation is reflected in the statistical record to reflect the working status of the employee.
  • steps in the flowcharts of FIGS. 2-4 are displayed in order according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless clearly stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least some of the steps in FIGS. 2-4 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps or stages The execution order of is not necessarily sequential, but may be executed in turn or alternately with at least a part of other steps or sub-steps or stages of other steps.
  • a virtual telephone state switching device including: a receiving module 502, a loading module 504, a starting module 506, a polling module 508, and a switching module 510, wherein:
  • the receiving module 502 is configured to receive a system startup instruction sent by a user terminal, and obtain a configuration file according to the system startup instruction.
  • the loading module 504 is used to load the configuration file to complete the system startup, and simultaneously start the virtual phone plug-in.
  • the receiving module 502 is also used to receive the check-in instruction sent by the user terminal, and the check-in instruction carries user check-in information.
  • the startup module 506 is used to complete the user check-in according to the user check-in information in response to the check-in instruction, and start a regular polling task.
  • the polling module 508 is used to obtain a time interval if the virtual phone plug-in is busy according to the periodic polling task.
  • the switching module 510 is configured to start a state switching task according to a time interval to switch the busy state to the idle state.
  • it further includes an identification module for identifying whether the virtual phone plug-in is in a call state; if it is, the periodic polling task is closed, and the periodic polling task is restarted after the call state ends.
  • the startup module 506 is also used to send the check-in instruction and the user's check-in information to the phone platform server; receive the check-in message fed back by the phone platform server, and the phone platform server responds to the check-in instruction, It is generated according to the user's check-in information; if the check-in message is recognized as a successful registration, the user's check-in is completed and a regular polling task is started.
  • the switching module 510 is further used to set the start time of the state switching task according to the time interval; start the state switching task based on the starting time, generate the state switching instruction; send the state switching instruction and the status indicator indicating the idle state To the telephone platform server; if the switch success message fed back by the telephone platform server is received, the busy state is switched to the idle state.
  • the polling module 508 is further configured to send a status query request to the user terminal according to the periodic polling task; receive the virtual phone plug-in status returned by the user terminal, and the virtual phone plug-in status is responded by the user terminal to the status query request from the virtual Obtained from the phone plug-in; if the virtual phone plug-in is in the busy state, the process information of the currently running process is obtained; when it is determined based on the process information that there is no preset process in the preset process table in the currently running process, the time interval is obtained.
  • the polling module 508 is also used to obtain the process user name and process name from the process information; obtain the process that the user is running from the currently running process according to the process user name; determine whether the process is preset according to the process name The preset process in the process table.
  • the polling module 508 is further used to obtain the user identification of the user terminal, and when the user is identified as the preset occupation according to the user identification, send a change information query request to the user terminal according to the periodic polling task; receive the user terminal Respond to the status change information returned by the change information query request; update the change log file corresponding to the user ID based on the status change information.
  • the above virtual phone state switching device first obtains the configuration file through the system startup instruction received from the user terminal, then loads the configuration file to complete the system startup, and starts the virtual phone plug-in synchronously, thereby ensuring that the virtual phone plug-in starts synchronously when the system starts. Then, according to the check-in instruction sent by the user terminal and the user check-in information, the regular polling task is started after completing the user check-in, thereby ensuring that the virtual phone is being used when the polling state is in progress. Finally, if the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained. The state switching task is started according to the time interval to switch the busy state to the idle state, which realizes the automatic switching of the virtual phone plug-in state, thereby keeping the virtual phone unblocked and improving work efficiency.
  • Each module in the above virtual telephone state switching device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above modules may be embedded in the hardware form or independent of the processor in the computer device, or may be stored in the memory in the computer device in the form of software so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be the server in FIG. 1, and the internal structure diagram thereof may be as shown in FIG. 6.
  • the computer device includes a processor, memory, network interface, and database connected by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer-readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the database of the computer device is used to store data.
  • the network interface of the computer device is used to communicate with external terminals through a network connection.
  • the computer-readable instructions are executed by the processor to implement a virtual phone state switching method.
  • FIG. 6 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Include more or less components than shown in the figure, or combine certain components, or have a different arrangement of components.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the one or more processors execute the virtual telephone of each embodiment of the present application. Steps of state switching method.
  • One or more non-volatile computer-readable storage media storing computer-readable instructions, when the computer-readable instructions are executed by one or more processors, cause the one or more processors to perform virtual operations in various embodiments of the present application The steps of the phone state switching method.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM random access memory
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain (Synchlink) DRAM
  • RDRAM direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A distributed system-based virtual telephone state switching method, comprising: receiving a system startup instruction transmitted by a user terminal, acquiring a configuration file on the basis of the system startup instruction; loading the configuration file to complete system startup and simultaneously starting a virtual telephone plug-in; receiving a sign-in instruction transmitted by the user terminal, the sign-in instruction carrying user sign-in information; in response to the sign-in instruction, completing user sign-in on the basis of the user sign-in information and starting a regular polling task; if the virtual telephone plug-in is detected to be in a busy state on the basis of the regular polling task, then acquiring a time interval; and starting a state switching task on the basis of the time interval to switch from the busy state to an idle state.

Description

虚拟电话状态切换方法、装置、计算机设备和存储介质Virtual telephone state switching method, device, computer equipment and storage medium
本申请要求于2019年01月07日提交中国专利局,申请号为201910017663.7,申请名称为“虚拟电话状态切换方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires priority to be submitted to the China Patent Office on January 07, 2019, with the application number 201910017663.7, and the priority of the Chinese patent application titled "Virtual Phone State Switching Method, Device, Computer Equipment, and Storage Media." The reference is incorporated in this application.
技术领域Technical field
本申请涉及一种虚拟电话状态切换方法、装置、计算机设备和存储介质。The present application relates to a virtual phone state switching method, device, computer equipment and storage medium.
背景技术Background technique
软电话是一种通信终端设备安装的虚拟电话,与真实电话具有相同的功能,常用于向终端用户提供良好通话质量的语音服务。而虚拟电话最大的优势在其使用方便,功能可扩展性。因此,现大多数企业为了便捷工作则在员工终端为其配置虚拟电话插件供其使用。其中,为防止业务人员错过电话通常会提供虚拟电话状态切换功能。A soft phone is a virtual phone installed in a communication terminal device. It has the same functions as a real phone and is often used to provide end users with good voice quality voice services. The biggest advantage of the virtual phone is its ease of use and scalability. Therefore, in order to facilitate work, most enterprises now configure virtual phone plug-ins for employee terminals for their use. Among them, the virtual phone state switching function is usually provided to prevent business personnel from missing the call.
然而,发明人意识到,传统提供的状态切换功能只能由业务人员进行手动切换,容易造成当业务人员切换示忙后而忘记手动切换回来错过电话而耽误工作,导致工作效率降低。However, the inventor realized that the state switching function traditionally provided can only be manually switched by the business personnel, which is likely to cause the business personnel to forget to manually switch back and miss the phone when the business personnel switch to indicate busy and delay the work, resulting in reduced work efficiency.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种虚拟电话切换方法、装置、计算机设备和存储介质。According to various embodiments disclosed in the present application, a virtual phone switching method, device, computer device, and storage medium are provided.
一种虚拟电话状态切换方法包括:A virtual phone state switching method includes:
接收用户终端发送的系统启动指令,根据所述系统启动指令获取配置文件;Receiving a system startup instruction sent by a user terminal, and obtaining a configuration file according to the system startup instruction;
加载所述配置文件完成系统启动,并同步启动虚拟电话插件;Load the configuration file to complete the system startup, and start the virtual phone plug-in synchronously;
接收用户终端发送的签入指令,所述签入指令携带有用户签入信息;Receiving a check-in instruction sent by a user terminal, the check-in instruction carrying user check-in information;
响应所述签入指令根据用户签入信息完成用户签入,并启动定期轮询任务;Respond to the check-in instruction to complete the user check-in according to the user check-in information, and start a regular polling task;
若根据所述定期轮询任务获取到所述虚拟电话插件为示忙状态,则获取时间间隔;及If the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained; and
根据所述时间间隔启动状态切换任务将所述示忙状态切换为示闲状态。The state switching task is started according to the time interval to switch the busy state to the idle state.
一种虚拟电话状态切换装置包括:A virtual telephone state switching device includes:
接收模块,用于接收用户终端发送的系统启动指令,根据所述系统启动指令获取配置文件;A receiving module, configured to receive a system startup instruction sent by a user terminal, and obtain a configuration file according to the system startup instruction;
加载模块,用于加载所述配置文件完成系统启动,并同步启动虚拟电话插件;A loading module, used to load the configuration file to complete the system startup, and simultaneously start the virtual phone plug-in;
所述接收模块还用于接收用户终端发送的签入指令,所述签入指令携带有用户签入信息;The receiving module is also used to receive a check-in instruction sent by a user terminal, where the check-in instruction carries user check-in information;
启动模块,用于响应所述签入指令根据用户签入信息完成用户签入,并启动定期轮询任务;A startup module, used to complete the user check-in according to the user check-in information in response to the check-in instruction, and start a regular polling task;
轮询模块,用于若根据所述定期轮询任务获取到所述虚拟电话插件为示忙状态,则获取时间间隔;及A polling module, configured to obtain a time interval if the virtual phone plug-in is busy according to the periodic polling task; and
切换模块,用于根据所述时间间隔启动状态切换任务将所述示忙状态切换为示闲状态。The switching module is configured to start a state switching task according to the time interval to switch the busy state to the idle state.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the one or more processors are executed The following steps:
接收用户终端发送的系统启动指令,根据所述系统启动指令获取配置文件;Receiving a system startup instruction sent by a user terminal, and obtaining a configuration file according to the system startup instruction;
加载所述配置文件完成系统启动,并同步启动虚拟电话插件;Load the configuration file to complete the system startup, and start the virtual phone plug-in synchronously;
接收用户终端发送的签入指令,所述签入指令携带有用户签入信息;Receiving a check-in instruction sent by a user terminal, the check-in instruction carrying user check-in information;
响应所述签入指令根据用户签入信息完成用户签入,并启动定期轮询任务;Respond to the check-in instruction to complete the user check-in according to the user check-in information, and start a regular polling task;
若根据所述定期轮询任务获取到所述虚拟电话插件为示忙状态,则获取时间间隔;及If the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained; and
根据所述时间间隔启动状态切换任务将所述示忙状态切换为示闲状态。The state switching task is started according to the time interval to switch the busy state to the idle state.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors perform the following steps:
接收用户终端发送的系统启动指令,根据所述系统启动指令获取配置文件;Receiving a system startup instruction sent by a user terminal, and obtaining a configuration file according to the system startup instruction;
加载所述配置文件完成系统启动,并同步启动虚拟电话插件;Load the configuration file to complete the system startup, and start the virtual phone plug-in synchronously;
接收用户终端发送的签入指令,所述签入指令携带有用户签入信息;Receiving a check-in instruction sent by a user terminal, the check-in instruction carrying user check-in information;
响应所述签入指令根据用户签入信息完成用户签入,并启动定期轮询任务;Respond to the check-in instruction to complete the user check-in according to the user check-in information, and start a regular polling task;
若根据所述定期轮询任务获取到所述虚拟电话插件为示忙状态,则获取时间间隔;及If the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained; and
根据所述时间间隔启动状态切换任务将所述示忙状态切换为示闲状态。The state switching task is started according to the time interval to switch the busy state to the idle state.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the drawings and description below. Other features and advantages of this application will become apparent from the description, drawings, and claims.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly explain the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.
图1为根据一个或多个实施例中虚拟电话状态切换方法的应用场景图。FIG. 1 is an application scenario diagram of a virtual phone state switching method according to one or more embodiments.
图2为根据一个或多个实施例中虚拟电话状态切换方法的流程示意图。FIG. 2 is a schematic flowchart of a virtual phone state switching method according to one or more embodiments.
图3为根据另一个或多个实施例中虚拟电话状态切换方法的流程示意图。FIG. 3 is a schematic flowchart of a virtual phone state switching method according to another embodiment or multiple embodiments.
图4为根据一个或多个实施例中根据定期轮询任务获取到虚拟电话插件为示忙状态,则获取时间间隔步骤的流程示意图。FIG. 4 is a schematic flowchart of a step of acquiring a time interval according to one or more embodiments to obtain that the virtual phone plug-in is busy according to the periodic polling task.
图5为根据一个或多个实施例中虚拟电话状态切换装置的框图。FIG. 5 is a block diagram of a virtual phone state switching device according to one or more embodiments.
图6为根据一个或多个实施例中计算机设备的框图。Figure 6 is a block diagram of a computer device in accordance with one or more embodiments.
具体实施方式detailed description
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical solutions and advantages of the present application more clear, the following describes the present application in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
本申请提供的虚拟电话状态切换方法,可以应用于如图1所示的应用环境中。用户终端102通过网络与服务器104进行通信,服务器104通过网络与电话平台服务器106通信。服务器104接收用户终端102发送的系统启动指令,服务器104根据系统启动指令获取配置文件。服务器104加载配置文件完成系统启动,并同步启动虚拟电话插件。服务器104 接收用户终端102发送的签入指令,签入指令携带有用户签入信息。服务器104响应签入指令根据用户签入信息完成用户签入,并启动定期轮询任务。服务器104若根据定期轮询任务获取到虚拟电话插件为示忙状态,则获取时间间隔。服务器104根据时间间隔启动状态切换任务将示忙状态切换为示闲状态。用户终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The virtual phone state switching method provided by this application can be applied to the application environment shown in FIG. 1. The user terminal 102 communicates with the server 104 through the network, and the server 104 communicates with the telephone platform server 106 through the network. The server 104 receives the system startup instruction sent by the user terminal 102, and the server 104 obtains the configuration file according to the system startup instruction. The server 104 loads the configuration file to complete the system startup, and simultaneously starts the virtual phone plug-in. The server 104 receives the check-in instruction sent by the user terminal 102, and the check-in instruction carries user check-in information. The server 104 responds to the check-in instruction to complete the user check-in based on the user check-in information, and initiates a regular polling task. If the server 104 obtains that the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained. The server 104 starts the state switching task according to the time interval to switch the busy state to the idle state. The user terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server 104 may be implemented by an independent server or a server cluster composed of multiple servers.
在其中一个实施例中,如图2所示,提供了一种虚拟电话状态切换方法,以该方法应用于图1中的服务器为例进行说明,包括以下步骤:In one of the embodiments, as shown in FIG. 2, a virtual phone state switching method is provided. The method is applied to the server in FIG. 1 as an example for illustration, including the following steps:
步骤S202,接收用户终端发送的系统启动指令,根据系统启动指令获取配置文件。Step S202: Receive a system startup instruction sent by the user terminal, and obtain a configuration file according to the system startup instruction.
系统启动指令是指当用户终端被用户操作启动软件系统时自动生成向服务器发送的启动系统的请求。而配置文件则是指在启动系统时所需环境的设置和文件的结合。即,当服务器接收到用户终端发送的系统启动指令时,响应该系统启动指令获取预先配置好的系统配置文件。The system startup instruction refers to that when the user terminal is operated by the user to start the software system, the system startup request automatically sent to the server is generated. The configuration file refers to the combination of environment settings and files required when starting the system. That is, when the server receives the system startup instruction sent by the user terminal, it obtains a pre-configured system configuration file in response to the system startup instruction.
具体地,用户通过触控或者鼠标在用户终端操作打开含有虚拟电话插件的软件系统时,用户终端根据用户操作自动生成系统启动指令,并将系统启动指令发送至服务器。当服务器接收到用户终端发送的系统启动指令后,即可确定用户终端需要获取该软件系统对应的配置文件完成系统的启动,则服务器响应该系统启动指令获取该软件系统对应的系统配置文件。Specifically, when the user opens the software system containing the virtual phone plug-in through touch operation or mouse operation on the user terminal, the user terminal automatically generates a system startup instruction according to the user operation, and sends the system startup instruction to the server. After the server receives the system startup instruction sent by the user terminal, it can be determined that the user terminal needs to obtain the configuration file corresponding to the software system to complete the system startup, and the server obtains the system configuration file corresponding to the software system in response to the system startup instruction.
步骤S204,加载配置文件完成系统启动,并同步启动虚拟电话插件。In step S204, the configuration file is loaded to complete the system startup, and the virtual phone plug-in is started synchronously.
当服务器获取到系统对应的配置文件后,加载该系统对应的配置文件搭建系统所需要的环境从而完成系统启动。然而,由于虚拟电话插件预先设置在该系统当中,并且在配置文件中设置成与系统的启动同步启动。所以,当服务器加载配置文件时同步完成虚拟电话软件的启动。After the server obtains the configuration file corresponding to the system, it loads the configuration file corresponding to the system to build the environment required by the system to complete the system startup. However, since the virtual phone plug-in is set in the system in advance, and is set in the configuration file to start synchronously with the start of the system. Therefore, when the server loads the configuration file, the virtual phone software is started synchronously.
步骤S206,接收用户终端发送的签入指令,签入指令携带有用户签入信息。Step S206: Receive a check-in instruction sent by the user terminal, where the check-in instruction carries user check-in information.
签入指令是指用户操作用户终端通过系统的登陆界面向服务器发送的用于在对应的电话平台服务器进行注册的请求。用户签入信息则包括用户账号和密码,即登陆系统时的账号和密码。账号包括但不限于手机号码、用户名以及邮箱等。The check-in instruction refers to a request that the user operates the user terminal to send to the server through the login interface of the system to register with the corresponding telephone platform server. The user check-in information includes the user account and password, that is, the account and password when logging in to the system. Accounts include but are not limited to mobile phone numbers, user names and email addresses.
具体地,当服务器根据用户终端的系统启动指令完成系统的启动后,用户即可在用户终端对该系统进行相应的操作。用户通过登录界面完成系统的登陆获取系统使用权,并且通过系统登录同步向服务器发送携带有用户签入信息的签入指令,用于指示服务器为该登陆的用户获取虚拟电话的使用权。也就是说,当用户在系统登陆界面进行登陆操作时,若系统登陆成功,但是没有签入成功,则该用户没有虚拟电话使用的权限,只能使用系统为其开放的其它功能的权限。Specifically, after the server completes system startup according to the system startup instruction of the user terminal, the user can perform corresponding operations on the system at the user terminal. The user completes the system login through the login interface to obtain the system usage right, and sends a check-in instruction carrying the user's check-in information to the server through the system login synchronization, which is used to instruct the server to obtain the use right of the virtual phone for the logged-in user. That is to say, when the user performs a login operation on the system login interface, if the system login is successful, but the check-in is not successful, the user does not have permission to use the virtual phone, and can only use the permissions of other functions that the system opens for it.
步骤S208,响应签入指令根据用户签入信息完成用户签入,并启动定期轮询任务。Step S208, respond to the check-in instruction to complete the user check-in according to the user check-in information, and start a regular polling task.
轮询是指一种CPU决策如何提供周边设备服务器的方式,又称程控输出入。一般由CPU定时发出询问,询问每一个周边设备是否需要其服务,有则给予服务,服务结束后再问下一个周边设备,接着不断周而复始。则本实施例定期轮询任务即是通过预先设置,然后有服务器根据预设时间定期向用户终端发送询问,通过询问获取虚拟电话插件的状态。Polling refers to a way for the CPU to decide how to provide peripheral device servers, also known as program-controlled input and output. Generally, the CPU issues a query at regular intervals, asking whether each peripheral device needs its service, and if there is, it will be given the service. After the service is over, the next peripheral device will be asked, and then it will continue to repeat. In this embodiment, the periodic polling task is set in advance, and then a server periodically sends a query to the user terminal according to a preset time, and obtains the status of the virtual phone plug-in through the query.
具体地,当用户终端向服务器发送携带有用户签入信息的签入指令后,服务器响应签入指令,根据签入信息向对应的电话平台发送签入请求。当电话平台返回用户签入成功的信息时,则向该用户开放虚拟电话的使用权限,并且同时启动预设的定期轮询任务,用于询问该用户所使用的虚拟电话插件的状态。Specifically, after the user terminal sends a check-in instruction carrying the user's check-in information to the server, the server responds to the check-in instruction and sends a check-in request to the corresponding telephone platform according to the check-in information. When the phone platform returns the information that the user has checked in successfully, the user is granted the right to use the virtual phone, and at the same time, the preset periodic polling task is started to query the status of the virtual phone plug-in used by the user.
步骤S210,若根据定期轮询任务获取到虚拟电话插件为示忙状态,则获取时间间隔。In step S210, if the virtual phone plug-in is busy according to the periodic polling task, the time interval is acquired.
示忙状态是指虚拟电话不能接听电话的状态,一般当坐席临时离开座位或者不能接听电话时将虚拟电话状态切换为示忙。坐席是指呼叫中心接听来电人员的总称,即使用该虚拟电话的用户。时间间隔是指预设用于倒计时的时间,例如,预设时间间隔后启动任务,则当预设时间间隔为10s,则是指当10s后启动任务。The busy state refers to the state where the virtual phone cannot answer the call. Generally, when the agent leaves the seat temporarily or cannot answer the call, the virtual phone state is switched to busy. Agent refers to the general name of the person who answers the call in the call center, that is, the user who uses the virtual phone. The time interval refers to the time preset for the countdown. For example, when the task is started after the preset time interval, when the preset time interval is 10s, it means that the task is started after 10s.
具体地,当定期轮询任务定期向用户终端询问虚拟电话状态时,用户终端根据服务器的询问所反馈的信息表示该虚拟电话状态为示忙状态时,服务器则确定需要将示忙状态切换为示闲状态。则获取预设的定时任务配置文件,从定时任务配置文件中获取预设的时间间隔。Specifically, when the periodic polling task periodically asks the user terminal for the virtual phone status, and the user terminal indicates that the virtual phone status is busy according to the information returned by the server's query, the server determines that the busy status needs to be switched to display Idle state. Then a preset scheduled task configuration file is obtained, and a preset time interval is obtained from the scheduled task configuration file.
步骤S212,根据时间间隔启动状态切换任务将示忙状态切换为示闲状态。In step S212, the state switching task is started according to the time interval to switch the busy state to the idle state.
示闲状态是指虚拟电话可以接听电话的状态。具体地,当服务器根据定时轮询任务确定虚拟电话状态为示忙,且从预设的定时任务配置文件中获取到预设的时间间隔。则根据 时间间隔启动状态切换任务,将虚拟电话的示忙状态切换为示闲状态。The idle state refers to the state where the virtual phone can answer the call. Specifically, when the server determines that the virtual phone status is busy according to the scheduled polling task, and the preset time interval is obtained from the preset scheduled task configuration file. Then the state switching task is started according to the time interval, and the busy state of the virtual phone is switched to the idle state.
具体地,根据时间间隔设定状态切换任务的启动时间,一旦状态切换任务启动,则将示忙状态切换为示闲状态。例如,若时间间隔为10s,当前系统时间为12时10分20秒,则将状态切换任务的启动时间设定在12时10分30秒。当系统时间一到12时10分30秒,则将状态从示忙切换为示闲。时间间隔的设置可根据实际情况进行设定。Specifically, the start time of the state switching task is set according to the time interval, and once the state switching task is started, the busy state is switched to the idle state. For example, if the time interval is 10s and the current system time is 12:10:20, the start time of the state switching task is set at 12:10:30. When the system time is from 12:00 to 10:30, the status is switched from busy to idle. The time interval can be set according to the actual situation.
上述虚拟电话状态切换方法中,首先通过从用户终端接收的系统启动指令获取配置文件,然后加载配置文件完成系统启动,并同步启动虚拟电话插件,从而确保虚拟电话插件跟随系统启动时同步启动。然后根据用户终端发送的签入指令和用户签入信息完成用户签入后启动定期轮询任务,从而确保轮询状态时虚拟电话是正在被使用。最后若根据定期轮询任务获取到虚拟电话插件为示忙状态,则获取时间间隔。根据时间间隔启动状态切换任务将示忙状态切换为示闲状态。上述方法实现了虚拟电话插件状态的自动切换,从而保持虚拟电话畅通,提高工作效率。In the above virtual phone state switching method, the configuration file is first obtained through the system startup instruction received from the user terminal, and then the configuration file is loaded to complete the system startup, and the virtual phone plug-in is started synchronously, thereby ensuring that the virtual phone plug-in starts synchronously when the system starts. Then, according to the check-in instruction sent by the user terminal and the user check-in information, the regular polling task is started after completing the user check-in, thereby ensuring that the virtual phone is being used when the polling state is in progress. Finally, if the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained. The state switching task is started according to the time interval to switch the busy state to the idle state. The above method realizes automatic switching of the state of the virtual phone plug-in, thereby keeping the virtual phone unblocked and improving work efficiency.
在其中一个实施例中,如图3所示,提供另一种虚拟电话状态切换方法,在步骤S210,若根据定期轮询任务获取到虚拟电话插件为示忙状态,则获取时间间隔之后,还包括以下步骤:In one of the embodiments, as shown in FIG. 3, another virtual phone state switching method is provided. In step S210, if the virtual phone plug-in is obtained as busy according to the periodic polling task, after the acquisition interval, It includes the following steps:
步骤S2101,识别虚拟电话插件是否处于通话状态。Step S2101: Identify whether the virtual phone plug-in is in a call state.
通话状态是指虚拟电话正在通话过程中,正在通话是虚拟电话状态也是处于无法接听电话的状态,即示忙状态。则为了防止用户正在通话时,被定期轮询到虚拟电话状态是示忙状态时获取时间间隔启动切换任务进行状态切换而切断通话。则服务器根据定期轮询任务获取到虚拟电话插件为示忙状态获取到时间间隔后,服务器则获取虚拟电话的通话功能是否处于开启中,若是,则表示虚拟电话处于通话中。The call state means that the virtual phone is in the process of talking, and the state of the call is the virtual phone state and the state of being unable to answer the call, that is, the busy state. In order to prevent the user from being periodically polled until the virtual phone status is busy, the acquisition interval starts the switching task to switch the state and cut off the call. Then, after the server obtains the virtual phone plug-in as a busy state according to the periodic polling task and obtains the time interval, the server obtains whether the call function of the virtual phone is turned on, and if so, it indicates that the virtual phone is in a call.
步骤S2102,若是,则关闭定期轮询任务,直到通话状态结束后重新启动定期轮询任务。In step S2102, if yes, the periodic polling task is closed, and the periodic polling task is restarted after the end of the call state.
当识别到虚拟电话处于通话中,则关闭定期轮询任务,并且同时启动监听任务去监听通话何时结束。一旦通话状态结束,则重新启动定期轮询任务。定期轮询任务重新向用户终端发送询问请求,询问虚拟电话状态,直到识别到虚拟电话的状态为示忙状态。若识别到的虚拟电话状态没有处于通话状态中,则根据获取的时间间隔启动状态切换任务进行状 态的切换。When it is recognized that the virtual phone is in a call, the periodic polling task is closed, and at the same time, the monitoring task is started to monitor when the call ends. Once the call state ends, the periodic polling task is restarted. The periodic polling task sends an inquiry request to the user terminal again to inquire about the state of the virtual phone until it is recognized that the state of the virtual phone is the busy state. If the recognized virtual phone state is not in the call state, the state switching task is started according to the acquired time interval to switch the state.
在本实施例中,在启动状态切换任务之前通过识别虚拟电话是否在通话状态中的识别结果决定是否进行状态切换,保证了切换的准确性。In this embodiment, before starting the state switching task, whether to perform state switching is determined by identifying whether the virtual phone is in a call state, thereby ensuring the accuracy of the switching.
在其中一个实施例中,响应签入指令根据用户签入信息完成用户签入,并启动定期轮询任务包括步骤:将签入指令以及用户签入信息发送至电话平台服务器;接收电话平台服务器反馈的签入消息,签入消息由电话平台服务器响应签入指令,根据用户签入信息注册生成;若识别到签入消息为成功注册,则完成用户签入并启动定期轮询任务。In one embodiment, responding to the check-in instruction completes user check-in based on user check-in information, and initiates a regular polling task including the steps of: sending the check-in instruction and user check-in information to the phone platform server; receiving phone platform server feedback The check-in message is generated by the phone platform server in response to the check-in instruction and registered based on the user's check-in information; if the check-in message is recognized as a successful registration, the user's check-in is completed and a regular polling task is initiated.
电话平台是指与虚拟电话所属系统对接的通信公司。而虚拟电话获取通话功能均需要与电话平台进行。因此,当服务器接收到用户终端发送的签入指令后,服务器将签入指令和对应的用户签入信息发送至电话平台服务器完成签入。注册即是指电话平台服务器将用户的签入信息保存至本地,并认可该用户具有通话权限。The telephone platform refers to a communication company that interfaces with the system to which the virtual telephone belongs. The virtual phone needs to be connected with the phone platform to obtain the call function. Therefore, after the server receives the check-in instruction sent by the user terminal, the server sends the check-in instruction and the corresponding user check-in information to the phone platform server to complete the check-in. Registration means that the phone platform server saves the user's check-in information locally and recognizes that the user has the call right.
具体地,当服务器将签入指令和用户签入信息发送至电话平台服务器后,电话平台服务器接收到签入指令后即可确定该对接的服务器需要进行注册获取通话权限,则将接收到的用户签入信息进行注册并返回相应的签入消息。电话平台服务器进行注册时,通过与服务器预先约定好的用户签入信息判断本次发送过来的用户签入信息是否应具备注册资格,若具备注册资格才进行注册,并返回注册成功的签入信息至服务器。若本次发送过来的用户签入信息不属于预先约定好的用户签入信息,则表示本次注册用户不具备注册资格,即没有通话权限,则返回注册失败的签入信息至服务器。当服务器接收到签入信息为注册失败时,服务器则不打开提供给虚拟电话的API接口。若服务器接收到签入信息为成功注册时,服务器则将提供给虚拟电话的API接口打开让虚拟电话通过该API接口与外界直接进行对接。开启对应的API接口即完成了用户签入,且开启API接口时同步启动定期轮询任务。当用户终端发送签出指令时,服务器则直接关闭API接口即可。Specifically, after the server sends the check-in instruction and the user's check-in information to the phone platform server, after the phone platform server receives the check-in instruction, it can determine that the docked server needs to register to obtain the call permission, and then the received user Check in information to register and return the corresponding check-in message. When registering on the phone platform server, the user's check-in information pre-agreed with the server determines whether the user's check-in information sent this time should be eligible for registration. If the registration is qualified, the registration is performed and the successful check-in information is returned To the server. If the user check-in information sent this time does not belong to the pre-agreed user check-in information, it means that the registered user does not have the registration qualification, that is, there is no call authority, and then the failed check-in information is returned to the server. When the server receives the check-in information as registration failure, the server does not open the API interface provided to the virtual phone. If the server receives the check-in information as successful registration, the server opens the API interface provided to the virtual phone to allow the virtual phone to directly interface with the outside world through the API interface. Open the corresponding API interface to complete the user check-in, and start the periodic polling task synchronously when the API interface is opened. When the user terminal sends the checkout instruction, the server directly closes the API interface.
在其中一个实施例中,根据时间间隔启动状态切换任务将示忙状态切换为示闲状态包括步骤:根据时间间隔设定状态切换任务的启动时间;基于启动时间启动状态切换任务,生成状态切换指令;将状态切换指令和示闲状态的状态标识发送至电话平台服务器;若接收到电话平台服务器反馈的切换成功信息,则将示忙状态切换为示闲状态。In one of the embodiments, starting the state switching task according to the time interval to switch the busy state to the idle state includes the steps of: setting a start time of the state switching task according to the time interval; starting the state switching task based on the starting time and generating a state switching instruction ; Send the state switching instruction and the status indicator showing the idle state to the phone platform server; if the switch success message fed back by the phone platform server is received, the busy state is switched to the idle state.
由于服务器通过电话平台对接进行注册才能顺利通话,则状态切换时同样需要向电话 平台发送指令进行切换。也就是说,当服务器获取到时间间隔后,根据时间间隔设定状态切换任务的启动时间。当启动时间一到则启动状态切换任务生成状态切换指令,并获取需要切换状态的状态标识。例如,需要将示忙状态切换为示闲状态,则获取示闲状态的切换标识。服务器将该状态切换指令以及需切换状态的状态标识发送至电话平台服务器,电话平台服务器接收到切换指令和状态标识时,则根据状态标识确定要切换的状态。若为示忙状态,则电话平台服务器根据该指令从注册信息中更改该用户的权限,使得该用户暂时无法接听电话。若是从示忙状态切换为示闲状态,则表明该用户之前已经通过手动将状态切换为示忙了,也就是已经在电话平台服务器关闭了相应的功能。则当电话平台服务器接收到示闲状态的状态标识时,再次从注册信息中将被更改的权限更改回来,也就是将示忙切换回示闲,使得该用户重新拥有相应的权限。并且,电话平台服务器返回切换成功信息给服务器,服务器则可以指示用户终端将虚拟电话示忙状态按钮对应的控件关闭,打开示闲状态按钮对应的控件,用于指示用户现在为示闲状态即完成状态切换。Since the server can be successfully connected by registering through the phone platform, it is also necessary to send instructions to the phone platform to switch when the state is switched. In other words, after the server obtains the time interval, the start time of the state switching task is set according to the time interval. When the start time is up, the start state switching task generates a state switching instruction and obtains a state identifier that needs to be switched. For example, if it is necessary to switch the busy state to the idle state, the switching indicator of the idle state is acquired. The server sends the state switching instruction and the state identifier of the state to be switched to the telephone platform server. When the phone platform server receives the switching instruction and the state identifier, it determines the state to be switched according to the state identifier. If it is busy, the phone platform server changes the user's authority from the registration information according to the instruction, so that the user cannot temporarily answer the call. If it is switched from the busy state to the idle state, it indicates that the user has manually switched the state to busy, that is, the corresponding function has been turned off on the phone platform server. Then, when the phone platform server receives the status indicator of the idle state, it changes the changed authority back from the registration information again, that is, switches the busy state back to the idle state, so that the user has the corresponding authority again. In addition, the phone platform server returns the switching success information to the server, and the server can instruct the user terminal to close the control corresponding to the busy status button of the virtual phone and open the control corresponding to the idle status button to indicate that the user is now in the idle state State switching.
在其中一个实施例中,如图4所示,若根据定期轮询任务获取到虚拟电话插件为示忙状态,则获取时间间隔包括以下步骤:In one of the embodiments, as shown in FIG. 4, if the virtual phone plug-in is busy according to the periodic polling task, the acquisition interval includes the following steps:
步骤S402,根据定期轮询任务向用户终端发送状态询问请求。Step S402: Send a status query request to the user terminal according to the periodic polling task.
状态询问请求是指服务器向用户终端发送的用于询问虚拟电话状态的指令。具体地,当服务器启动了定期轮询任务,则根据定期的时间定时生成状态询问请求。生成状态询问请求后即发送给用户终端。The status query request refers to an instruction sent by the server to the user terminal for querying the status of the virtual phone. Specifically, when the server starts a periodic polling task, a status query request is generated at regular intervals. After the status query request is generated, it is sent to the user terminal.
步骤S404,接收用户终端返回的虚拟电话插件状态,虚拟电话插件状态由用户终端响应状态询问请求从虚拟电话插件中获取。Step S404: Receive the virtual phone plug-in status returned by the user terminal. The virtual phone plug-in status is obtained from the virtual phone plug-in by the user terminal in response to the status inquiry request.
当用户终端接收到服务器发送的状态询问请求时,即确定服务器需要反馈当前虚拟电话的状态。用户终端则获取虚拟电话插件中各个按钮的工作状态返回给服务器。例如,用户终端可以获取当前虚拟电话示忙按钮对应控件的控件状态,若该控件处于关闭状态,则表示对应示忙按钮是被开启的,即虚拟电话的示忙被开启,处于示忙状态。用户终端即将示忙按钮被开启这一信息返回服务器,服务器则根据该信息确定虚拟电话为示忙状态。When the user terminal receives the status inquiry request sent by the server, it determines that the server needs to feedback the current state of the virtual phone. The user terminal obtains the working status of each button in the virtual phone plug-in and returns it to the server. For example, the user terminal may obtain the control state of the control corresponding to the current busy button of the virtual phone. If the control is in the closed state, it means that the corresponding busy button is turned on, that is, the busy display of the virtual phone is turned on and is in the busy state. The user terminal returns to the server that the busy button is turned on, and the server determines that the virtual phone is in the busy state according to the information.
步骤S406,若虚拟电话插件状态为示忙状态,则获取当前运行进程的进程信息。In step S406, if the virtual phone plug-in state is a busy state, the process information of the currently running process is acquired.
步骤S408,当基于进程信息判断当前运行进程中无预设进程表中的预设进程时,获 取时间间隔。Step S408, when it is judged based on the process information that there is no preset process in the preset process table in the currently running process, the time interval is obtained.
进程是指服务器正运行的程序。进程信息包括进程名称和进程用户名,进程名称为进程的名称,进程用户名为表示运行该进程的用户名称,通常用于识别运行该进程的使用者。预设进程表为预先存储的进程文件,预设进程包含进程名称等信息。The process refers to the program that the server is running. The process information includes the process name and the process user name. The process name is the name of the process. The process user name indicates the name of the user who runs the process. It is usually used to identify the user who runs the process. The preset process table is a pre-stored process file, and the preset process contains information such as the process name.
具体地,当服务器获取到虚拟电话为示忙时,则从运行内存中获取当前正在运行进程的进程信息。基于进程信息判断当前运行进程中是否有预设进程表中的预设进程。若根据该进程名称从预设的进程表中没有查找到与其进程名称相同的预设进程,则表示用户当前所运行的进程有不属于预设进程表中的预设进程,即用户不是因为正在运行一些无法进行通话的程序而将虚拟电话状态切换为示忙的。服务器则获取时间间隔,根据时间间隔启动状态切换任务进行状态的切换。相反的,若从预设的进程表中查找到了与其进程名称相同的预设进程,则表示用户是因为正在运行无法进行通话的程序,从而将虚拟电话状态切换为示忙的,则不获取时间间隔进行状态切换任务。在本实施例中,防止当用户正在运行一些无法进行通话的程序而将虚拟电话状态切换为示忙时,服务器误将状态切换回示闲,提高了切换的准确性。Specifically, when the server obtains the virtual phone as being busy, it obtains the process information of the currently running process from the running memory. Based on the process information, it is determined whether there is a preset process in the preset process table in the currently running process. If no preset process with the same process name is found from the preset process table according to the process name, it means that the process currently running by the user does not belong to the preset process in the preset process table, that is, the user is not because Run some programs that cannot make calls and switch the virtual phone status to busy. The server obtains the time interval and starts the state switching task according to the time interval to switch the state. Conversely, if a preset process with the same name as its process is found in the preset process table, it means that the user is running a program that cannot make a call, so the virtual phone status is switched to busy, and the time is not obtained. Perform state switching tasks at intervals. In this embodiment, when the user is running some programs that cannot make a call and the virtual phone status is switched to busy, the server mistakenly switches the status back to idle, which improves the accuracy of switching.
在其中一个实施例中,基于进程信息判断当前运行进程中是否有预设进程表中的预设进程包括步骤:从进程信息中获取进程用户名和进程名称;根据进程用户名从当前运行进程中获取用户所运行的进程;根据进程名称判断进程是否为预设进程表中的预设进程。In one of the embodiments, determining whether there is a preset process in the preset process table in the currently running process based on the process information includes the steps of: obtaining the process user name and process name from the process information; obtaining from the currently running process according to the process user name The process run by the user; whether the process is the preset process in the preset process table is determined according to the process name.
具体地,通常进程用户名为SYSTEM、LOCAL SERVICE以及SVCHOST的进程为系统运行所需进程,其他进程用户名的进程则一般是用户终端的用户使用所运行的进程。服务器获取当前正在运次的进程后,通过进程用户名,排除进程用户名为SYSTEM、LOCAL SERVICE以及SVCHOST的进程,剩余的进程用户名则为用户所运行的进程。服务器则获取用户所运行进程的进程名称,根据该进程名称从预设的进程表中查找是否有其相同的预设进程的进程名称,若有,则表示用户所运行的进程有属于预设进程表中的预设进程,即用户可能是由于正在运行一些无法进行通话的程序而将虚拟电话状态切换为示忙的,例如正在进行在线视频会议。服务器则不获取时间间隔,也就无法根据时间间隔启动状态切换任务。Specifically, the processes with the process user names SYSTEM, LOCAL, SERVICE, and SVCHOST are the processes required for the system to run, and the processes with other process user names are generally the processes used by the user of the user terminal. After the server obtains the currently running process, the process user name is used to exclude processes with the process user names SYSTEM, LOCAL, SERVICE, and SVCHOST, and the remaining process user names are the processes that the user runs. The server obtains the process name of the process run by the user, and finds from the preset process table whether there is the same process name of the preset process according to the process name. If so, it indicates that the process run by the user belongs to the preset process The preset process in the table, that is, the user may switch the virtual phone status to busy due to running a program that cannot make a call, for example, an online video conference is in progress. The server does not acquire the time interval, so it cannot start the state switching task according to the time interval.
在其中一个实施例中,当服务器根据定期轮询任务定期轮询状态时还包括步骤:获取 用户终端的用户标识;当根据用户标识识别用户为预设职业时,根据定期轮询任务向用户终端发送变更信息询问请求;接收用户终端响应变更信息询问请求所返回的状态变更信息;基于状态变更信息更新用户标识对应的变更日志文件。In one of the embodiments, when the server periodically polls the status according to the periodic polling task, the method further includes the steps of: acquiring the user identification of the user terminal; when identifying the user as the preset occupation according to the user identification, sending the user terminal according to the periodic polling task Send a change information inquiry request; receive the state change information returned by the user terminal in response to the change information inquiry request; update the change log file corresponding to the user ID based on the state change information.
用户标识是指用户查询对应用户信息的编号,可以在用户终端发送签入指令是一并发送过来。状态变更信息是指一个轮询周期内表示用户手动变更状态频率等信息,包括变更次数、变更时间等信息。而变更信息询问请求是指服务器用于指示用户终端返回状态变更信息的指令。轮询周期为本次轮询与上次轮询的时间间隔。变更日志文件则是用于存储变更信息的文件。The user ID refers to the number of the user querying the corresponding user information, and the check-in instruction can be sent together at the user terminal. The status change information refers to information indicating that the user manually changes the status frequency within a polling cycle, including information such as the number of changes and the time of change. The change information query request refers to an instruction used by the server to instruct the user terminal to return status change information. The polling cycle is the time interval between this poll and the last poll. Change log files are files used to store change information.
具体地,服务器根据用户标识获取对应用户的用户信息,通过用户信息中的职业判断是否为预设职业,例如客服等。若用户的职业为预设职业,则当服务器根据定期轮询任务发送询问请求时一并发送变更信息询问请求。当用户终端接收到变更信息询问请求时,即可确定还需要反馈相应的状态变更信息。用户终端即将状态变更信息返回给服务器,状态变更信息由用户终端根据埋点规则所采集。当服务器接收到状态变更信息后,通过用户标识获取该用户对应的变更日志文件,将状态变更信息中的变更次数和对应的变更时间存储至变更日志文件中,并根据次数统计出变更总次数存储至日志文件中。例如,一次变更对应一个变更时间,一共有少次的变更次数则变更总次数是多少。当变更日志文件中的变更总次数超过预设值,服务器则将变更日志文件发送至监控终端,通过监控终端对该用户进行相应的处理,预设值可根据实际需求设置。在本实施例中,通过统计记录预设职业的变更信息反映员工的工作状态。Specifically, the server obtains the user information of the corresponding user according to the user identification, and determines whether the preset occupation, such as customer service, is based on the occupation in the user information. If the user's occupation is the preset occupation, when the server sends the inquiry request according to the periodic polling task, the change information inquiry request is also sent. When the user terminal receives the change information inquiry request, it can be determined that the corresponding state change information needs to be fed back. The user terminal returns the state change information to the server, and the state change information is collected by the user terminal according to the buried point rule. After the server receives the status change information, it obtains the change log file corresponding to the user through the user ID, stores the number of changes in the status change information and the corresponding change time in the change log file, and counts the total number of changes according to the number of times. To the log file. For example, one change corresponds to one change time, and the total number of changes is a small number of changes. When the total number of changes in the change log file exceeds the preset value, the server sends the change log file to the monitoring terminal, and processes the user accordingly through the monitoring terminal. The preset value can be set according to actual needs. In this embodiment, the change information of the preset occupation is reflected in the statistical record to reflect the working status of the employee.
应该理解的是,虽然图2-4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 2-4 are displayed in order according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless clearly stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least some of the steps in FIGS. 2-4 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps or stages The execution order of is not necessarily sequential, but may be executed in turn or alternately with at least a part of other steps or sub-steps or stages of other steps.
在其中一个实施例中,如图5所示,提供了一种虚拟电话状态切换装置,包括:接收模块502、加载模块504、启动模块506、轮询模块508和切换模块510,其中:In one of the embodiments, as shown in FIG. 5, a virtual telephone state switching device is provided, including: a receiving module 502, a loading module 504, a starting module 506, a polling module 508, and a switching module 510, wherein:
接收模块502,用于接收用户终端发送的系统启动指令,根据系统启动指令获取配置文件。The receiving module 502 is configured to receive a system startup instruction sent by a user terminal, and obtain a configuration file according to the system startup instruction.
加载模块504,用于加载配置文件完成系统启动,并同步启动虚拟电话插件。The loading module 504 is used to load the configuration file to complete the system startup, and simultaneously start the virtual phone plug-in.
接收模块502还用于接收用户终端发送的签入指令,签入指令携带有用户签入信息。The receiving module 502 is also used to receive the check-in instruction sent by the user terminal, and the check-in instruction carries user check-in information.
启动模块506,用于响应签入指令根据用户签入信息完成用户签入,并启动定期轮询任务。The startup module 506 is used to complete the user check-in according to the user check-in information in response to the check-in instruction, and start a regular polling task.
轮询模块508,用于若根据定期轮询任务获取到虚拟电话插件为示忙状态,则获取时间间隔。The polling module 508 is used to obtain a time interval if the virtual phone plug-in is busy according to the periodic polling task.
切换模块510,用于根据时间间隔启动状态切换任务将示忙状态切换为示闲状态。The switching module 510 is configured to start a state switching task according to a time interval to switch the busy state to the idle state.
在其中一个实施例中,还包括识别模块,用于识别虚拟电话插件是否处于通话状态;若是,则关闭定期轮询任务,直到通话状态结束后重新启动定期轮询任务。In one of the embodiments, it further includes an identification module for identifying whether the virtual phone plug-in is in a call state; if it is, the periodic polling task is closed, and the periodic polling task is restarted after the call state ends.
在其中一个实施例中,启动模块506还用于将签入指令以及用户签入信息发送至电话平台服务器;接收电话平台服务器反馈的签入消息,签入消息由电话平台服务器响应签入指令,根据用户签入信息注册生成;若识别到签入消息为成功注册,则完成用户签入并启动定期轮询任务。In one of the embodiments, the startup module 506 is also used to send the check-in instruction and the user's check-in information to the phone platform server; receive the check-in message fed back by the phone platform server, and the phone platform server responds to the check-in instruction, It is generated according to the user's check-in information; if the check-in message is recognized as a successful registration, the user's check-in is completed and a regular polling task is started.
在其中一个实施例中,切换模块510还用于根据时间间隔设定状态切换任务的启动时间;基于启动时间启动状态切换任务,生成状态切换指令;将状态切换指令和示闲状态的状态标识发送至电话平台服务器;若接收到电话平台服务器反馈的切换成功信息,则将示忙状态切换为示闲状态。In one of the embodiments, the switching module 510 is further used to set the start time of the state switching task according to the time interval; start the state switching task based on the starting time, generate the state switching instruction; send the state switching instruction and the status indicator indicating the idle state To the telephone platform server; if the switch success message fed back by the telephone platform server is received, the busy state is switched to the idle state.
在其中一个实施例中,轮询模块508还用于根据定期轮询任务向用户终端发送状态询问请求;接收用户终端返回的虚拟电话插件状态,虚拟电话插件状态由用户终端响应状态询问请求从虚拟电话插件中获取;若虚拟电话插件状态为示忙状态,则获取当前运行进程的进程信息;当基于进程信息判断当前运行进程中无预设进程表中的预设进程时,获取时间间隔。In one of the embodiments, the polling module 508 is further configured to send a status query request to the user terminal according to the periodic polling task; receive the virtual phone plug-in status returned by the user terminal, and the virtual phone plug-in status is responded by the user terminal to the status query request from the virtual Obtained from the phone plug-in; if the virtual phone plug-in is in the busy state, the process information of the currently running process is obtained; when it is determined based on the process information that there is no preset process in the preset process table in the currently running process, the time interval is obtained.
在其中一个实施例中,轮询模块508还用于从进程信息中获取进程用户名和进程名 称;根据进程用户名从当前运行进程中获取用户所运行的进程;根据进程名称判断进程是否为预设进程表中的预设进程。In one of the embodiments, the polling module 508 is also used to obtain the process user name and process name from the process information; obtain the process that the user is running from the currently running process according to the process user name; determine whether the process is preset according to the process name The preset process in the process table.
在其中一个实施例中,轮询模块508还用于获取用户终端的用户标识,当根据用户标识识别用户为预设职业时,根据定期轮询任务向用户终端发送变更信息询问请求;接收用户终端响应变更信息询问请求所返回的状态变更信息;基于状态变更信息更新用户标识对应的变更日志文件。In one of the embodiments, the polling module 508 is further used to obtain the user identification of the user terminal, and when the user is identified as the preset occupation according to the user identification, send a change information query request to the user terminal according to the periodic polling task; receive the user terminal Respond to the status change information returned by the change information query request; update the change log file corresponding to the user ID based on the status change information.
上述虚拟电话状态切换装置,首先通过从用户终端接收的系统启动指令获取配置文件,然后加载配置文件完成系统启动,并同步启动虚拟电话插件,从而确保虚拟电话插件跟随系统启动时同步启动。然后根据用户终端发送的签入指令和用户签入信息完成用户签入后启动定期轮询任务,从而确保轮询状态时虚拟电话是正在被使用。最后若根据定期轮询任务获取到虚拟电话插件为示忙状态,则获取时间间隔。根据时间间隔启动状态切换任务将示忙状态切换为示闲状态,实现了虚拟电话插件状态的自动切换,从而保持虚拟电话畅通,提高工作效率。The above virtual phone state switching device first obtains the configuration file through the system startup instruction received from the user terminal, then loads the configuration file to complete the system startup, and starts the virtual phone plug-in synchronously, thereby ensuring that the virtual phone plug-in starts synchronously when the system starts. Then, according to the check-in instruction sent by the user terminal and the user check-in information, the regular polling task is started after completing the user check-in, thereby ensuring that the virtual phone is being used when the polling state is in progress. Finally, if the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained. The state switching task is started according to the time interval to switch the busy state to the idle state, which realizes the automatic switching of the virtual phone plug-in state, thereby keeping the virtual phone unblocked and improving work efficiency.
关于虚拟电话状态切换装置的具体限定可以参见上文中对于虚拟电话状态切换方法的限定,在此不再赘述。上述虚拟电话状态切换装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the virtual phone state switching device, reference may be made to the above definition of the virtual phone state switching method, which will not be repeated here. Each module in the above virtual telephone state switching device may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in the hardware form or independent of the processor in the computer device, or may be stored in the memory in the computer device in the form of software so that the processor can call and execute the operations corresponding to the above modules.
在其中一个实施例中,提供了一种计算机设备,该计算机设备可以是图1中的服务器,其内部结构图可以如图6所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种虚拟电话状态切换方法。In one of the embodiments, a computer device is provided. The computer device may be the server in FIG. 1, and the internal structure diagram thereof may be as shown in FIG. 6. The computer device includes a processor, memory, network interface, and database connected by a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer-readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with external terminals through a network connection. The computer-readable instructions are executed by the processor to implement a virtual phone state switching method.
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构 的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 6 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may Include more or less components than shown in the figure, or combine certain components, or have a different arrangement of components.
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器执行本申请各个实施例的虚拟电话状态切换方法的步骤。A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the one or more processors execute the virtual telephone of each embodiment of the present application. Steps of state switching method.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行本申请各个实施例的虚拟电话状态切换方法的步骤。One or more non-volatile computer-readable storage media storing computer-readable instructions, when the computer-readable instructions are executed by one or more processors, cause the one or more processors to perform virtual operations in various embodiments of the present application The steps of the phone state switching method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art may understand that all or part of the process in the method of the foregoing embodiments may be completed by instructing relevant hardware through computer-readable instructions, and the computer-readable instructions may be stored in a non-volatile computer In a readable storage medium, when the computer-readable instructions are executed, they may include the processes of the foregoing method embodiments. Any references to memory, storage, databases, or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be arbitrarily combined. In order to simplify the description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered as the scope described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and their descriptions are more specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present application, a number of modifications and improvements can also be made, which all fall within the protection scope of the present application. Therefore, the protection scope of the patent of this application shall be subject to the appended claims.

Claims (20)

  1. 一种虚拟电话状态切换方法,包括:A virtual phone state switching method, including:
    接收用户终端发送的系统启动指令,根据所述系统启动指令获取配置文件;Receiving a system startup instruction sent by a user terminal, and obtaining a configuration file according to the system startup instruction;
    加载所述配置文件完成系统启动,并同步启动虚拟电话插件;Load the configuration file to complete the system startup, and start the virtual phone plug-in synchronously;
    接收用户终端发送的签入指令,所述签入指令携带有用户签入信息;Receiving a check-in instruction sent by a user terminal, the check-in instruction carrying user check-in information;
    响应所述签入指令根据用户签入信息完成用户签入,并启动定期轮询任务;Respond to the check-in instruction to complete the user check-in according to the user check-in information, and start a regular polling task;
    若根据所述定期轮询任务获取到所述虚拟电话插件为示忙状态,则获取时间间隔;及If the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained; and
    根据所述时间间隔启动状态切换任务将所述示忙状态切换为示闲状态。The state switching task is started according to the time interval to switch the busy state to the idle state.
  2. 根据权利要求1所述的方法,其特征在于,在所述响应所述签入指令根据用户签入信息完成用户签入,并启动定期轮询任务之后,所述方法还包括:The method according to claim 1, wherein after the responding to the check-in instruction completes the user check-in based on the user check-in information and starts a regular polling task, the method further comprises:
    识别所述虚拟电话插件是否处于通话状态;及Identify whether the virtual phone plug-in is in a call state; and
    若是,则关闭所述定期轮询任务,直到所述通话状态结束后重新启动所述定期轮询任务。If yes, the periodic polling task is closed, and the periodic polling task is restarted after the call state ends.
  3. 根据权利要求1所述的方法,其特征在于,所述响应所述签入指令根据用户签入信息完成用户签入,并启动定期轮询任务,包括:The method according to claim 1, wherein the responding to the check-in instruction completes user check-in based on user check-in information, and initiates a regular polling task, including:
    将所述签入指令以及用户签入信息发送至电话平台服务器;Send the check-in instruction and user check-in information to the phone platform server;
    接收电话平台服务器反馈的签入消息,所述签入消息由电话平台服务器响应所述签入指令,根据所述用户签入信息注册生成;及Receiving a check-in message fed back by the phone platform server, the check-in message is registered and generated by the phone platform server in response to the check-in instruction, based on the user check-in information; and
    若识别到所述签入消息为成功注册,则完成用户签入并启动定期轮询任务。If it is recognized that the check-in message is successful registration, the user check-in is completed and a regular polling task is started.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述时间间隔启动状态切换任务将所述示忙状态切换为示闲状态,包括:The method according to claim 1, wherein the starting the state switching task according to the time interval to switch the busy state to the idle state comprises:
    根据所述时间间隔设定状态切换任务的启动时间;Setting the start time of the state switching task according to the time interval;
    基于所述启动时间启动状态切换任务,生成状态切换指令;Start a state switching task based on the starting time, and generate a state switching instruction;
    将所述状态切换指令和所述示闲状态的状态标识发送至电话平台服务器;及Sending the state switching instruction and the state identifier indicating the idle state to the telephone platform server; and
    若接收到电话平台服务器反馈的切换成功信息,则将所述示忙状态切换为示闲状态。If the switching success information fed back by the telephone platform server is received, the busy state is switched to the idle state.
  5. 根据权利要求1所述的方法,其特征在于,所述若根据所述定期轮询任务获取到所述虚拟电话插件为示忙状态,则获取时间间隔,包括:The method according to claim 1, wherein, if the virtual phone plug-in is busy according to the periodic polling task, the obtaining time interval includes:
    根据所述定期轮询任务向所述用户终端发送状态询问请求;Sending a status query request to the user terminal according to the periodic polling task;
    接收用户终端返回的虚拟电话插件状态,所述虚拟电话插件状态由用户终端响应所述状态询问请求从所述虚拟电话插件中获取;Receiving the virtual phone plug-in status returned by the user terminal, the virtual phone plug-in status is obtained from the virtual phone plug-in by the user terminal in response to the status query request;
    若所述虚拟电话插件状态为示忙状态,则获取当前运行进程的进程信息;及If the state of the virtual phone plug-in is a busy state, obtain process information of the currently running process; and
    当基于所述进程信息判断当前运行进程中无预设进程表中的预设进程时,获取时间间隔。When it is determined that there is no preset process in the preset process table in the currently running process based on the process information, the time interval is obtained.
  6. 根据权利要求5所述的方法,其特征在于,基于所述进程信息判断当前运行进程中是否有预设进程表中的预设进程的方式,包括:The method according to claim 5, wherein the method of determining whether there is a preset process in a preset process table in the currently running process based on the process information includes:
    从所述进程信息中获取进程用户名和进程名称;Obtain the process user name and process name from the process information;
    根据进程用户名从当前运行进程中获取用户所运行的进程;及Obtain the process that the user is running from the currently running process according to the process user name; and
    根据所述进程名称判断所述进程是否为预设进程表中的预设进程。According to the process name, determine whether the process is a preset process in a preset process table.
  7. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    获取用户终端的用户标识;Obtain the user ID of the user terminal;
    当根据所述用户标识识别用户为预设职业时,根据所述定期轮询任务向用户终端发送变更信息询问请求;When the user is identified as the preset occupation according to the user identification, send a change information query request to the user terminal according to the periodic polling task;
    接收用户终端响应所述变更信息询问请求所返回的状态变更信息;及Receiving status change information returned by the user terminal in response to the change information inquiry request; and
    基于所述状态变更信息更新所述用户标识对应的变更日志文件。The change log file corresponding to the user ID is updated based on the state change information.
  8. 一种虚拟电话状态切换装置,包括:A virtual telephone state switching device, including:
    接收模块,用于接收用户终端发送的系统启动指令,根据所述系统启动指令获取配置文件;A receiving module, configured to receive a system startup instruction sent by a user terminal, and obtain a configuration file according to the system startup instruction;
    加载模块,用于加载所述配置文件完成系统启动,并同步启动虚拟电话插件;A loading module, used to load the configuration file to complete the system startup, and simultaneously start the virtual phone plug-in;
    所述接收模块还用于接收用户终端发送的签入指令,所述签入指令携带有用户签入信息;The receiving module is also used to receive a check-in instruction sent by a user terminal, where the check-in instruction carries user check-in information;
    启动模块,用于响应所述签入指令根据用户签入信息完成用户签入,并启动定期轮询任务;A startup module, used to complete the user check-in according to the user check-in information in response to the check-in instruction, and start a regular polling task;
    轮询模块,用于若根据所述定期轮询任务获取到所述虚拟电话插件为示忙状态,则获 取时间间隔;及A polling module, configured to obtain a time interval if the virtual phone plug-in is busy according to the periodic polling task; and
    切换模块,用于根据所述时间间隔启动状态切换任务将所述示忙状态切换为示闲状态。The switching module is configured to start a state switching task according to the time interval to switch the busy state to the idle state.
  9. 根据权利要求8所述的装置,其特征在于,所述装置还包括识别模块,用于识别所述虚拟电话插件是否处于通话状态;及若是,则关闭所述定期轮询任务,直到所述通话状态结束后重新启动所述定期轮询任务。The device according to claim 8, characterized in that the device further comprises an identification module for identifying whether the virtual phone plug-in is in a call state; and if so, the periodic polling task is closed until the call After the state ends, the periodic polling task is restarted.
  10. 根据权利要求8所述的装置,其特征在于,所述启动模块还用于将所述签入指令以及用户签入信息发送至电话平台服务器;接收电话平台服务器反馈的签入消息,所述签入消息由电话平台服务器响应所述签入指令,根据所述用户签入信息注册生成;及若识别到所述签入消息为成功注册,则完成用户签入并启动定期轮询任务。The device according to claim 8, wherein the activation module is further configured to send the check-in instruction and user check-in information to a phone platform server; receive a check-in message fed back by the phone platform server, the sign The login message is generated by the telephone platform server in response to the check-in instruction, and is registered and generated according to the user check-in information; and if the check-in message is recognized as a successful registration, the user check-in is completed and a regular polling task is started.
  11. 根据权利要求8所述的装置,其特征在于,所述切换模块还用于根据所述时间间隔设定状态切换任务的启动时间;基于所述启动时间启动状态切换任务,生成状态切换指令;将所述状态切换指令和所述示闲状态的状态标识发送至电话平台服务器;及若接收到电话平台服务器反馈的切换成功信息,则将所述示忙状态切换为示闲状态。The device according to claim 8, wherein the switching module is further configured to set a start time of the state switching task according to the time interval; start the state switching task based on the starting time and generate a state switching instruction; The state switching instruction and the state indicator of the idle state are sent to the server of the telephone platform; and if the successful switching information fed back by the server of the telephone platform is received, the busy state is switched to the idle state.
  12. 根据权利要求8所述的装置,其特征在于,所述轮询模块还用于根据所述定期轮询任务向所述用户终端发送状态询问请求;接收用户终端返回的虚拟电话插件状态,所述虚拟电话插件状态由用户终端响应所述状态询问请求从所述虚拟电话插件中获取;若所述虚拟电话插件状态为示忙状态,则获取当前运行进程的进程信息;及当基于所述进程信息判断当前运行进程中无预设进程表中的预设进程时,获取时间间隔。The device according to claim 8, wherein the polling module is further configured to send a status query request to the user terminal according to the periodic polling task; receive the virtual phone plug-in status returned by the user terminal, the The virtual phone plug-in state is obtained from the virtual phone plug-in by the user terminal in response to the status query request; if the virtual phone plug-in state is a busy state, the process information of the currently running process is obtained; and when the process information is based on the process information When it is judged that there is no preset process in the preset process table in the current running process, the time interval is obtained.
  13. 根据权利要求12所述的装置,其特征在于,所述轮询模块还用于从所述进程信息中获取进程用户名和进程名称;根据进程用户名从当前运行进程中获取用户所运行的进程;及根据所述进程名称判断所述进程是否为预设进程表中的预设进程。The apparatus according to claim 12, wherein the polling module is further configured to obtain a process user name and a process name from the process information; obtain a process run by the user from the currently running process according to the process user name; And judging whether the process is a preset process in a preset process table according to the process name.
  14. 根据权利要求12所述的装置,其特征在于,所述轮询模块还用于获取用户终端的用户标识;当根据所述用户标识识别用户为预设职业时,根据所述定期轮询任务向用户终端发送变更信息询问请求;接收用户终端响应所述变更信息询问请求所返回的状态变更信息;及基于所述状态变更信息更新所述用户标识对应的变更日志文件。The apparatus according to claim 12, wherein the polling module is further used to obtain the user identification of the user terminal; when the user is identified as the preset occupation according to the user identification, the The user terminal sends a change information inquiry request; receives the state change information returned by the user terminal in response to the change information inquiry request; and updates the change log file corresponding to the user ID based on the state change information.
  15. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the one or more Each processor performs the following steps:
    接收用户终端发送的系统启动指令,根据所述系统启动指令获取配置文件;Receiving a system startup instruction sent by a user terminal, and obtaining a configuration file according to the system startup instruction;
    加载所述配置文件完成系统启动,并同步启动虚拟电话插件;Load the configuration file to complete the system startup, and start the virtual phone plug-in synchronously;
    接收用户终端发送的签入指令,所述签入指令携带有用户签入信息;Receiving a check-in instruction sent by a user terminal, the check-in instruction carrying user check-in information;
    响应所述签入指令根据用户签入信息完成用户签入,并启动定期轮询任务;Respond to the check-in instruction to complete the user check-in according to the user check-in information, and start a regular polling task;
    若根据所述定期轮询任务获取到所述虚拟电话插件为示忙状态,则获取时间间隔;及If the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained; and
    根据所述时间间隔启动状态切换任务将所述示忙状态切换为示闲状态。The state switching task is started according to the time interval to switch the busy state to the idle state.
  16. 根据权利要求15所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device of claim 15, wherein the processor further executes the following steps when executing the computer-readable instructions:
    识别所述虚拟电话插件是否处于通话状态;及Identify whether the virtual phone plug-in is in a call state; and
    若是,则关闭所述定期轮询任务,直到所述通话状态结束后重新启动所述定期轮询任务。If yes, the periodic polling task is closed, and the periodic polling task is restarted after the call state ends.
  17. 根据权利要求15所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device of claim 15, wherein the processor further executes the following steps when executing the computer-readable instructions:
    将所述签入指令以及用户签入信息发送至电话平台服务器;Send the check-in instruction and user check-in information to the phone platform server;
    接收电话平台服务器反馈的签入消息,所述签入消息由电话平台服务器响应所述签入指令,根据所述用户签入信息注册生成;及Receiving a check-in message fed back by the phone platform server, the check-in message is registered and generated by the phone platform server in response to the check-in instruction, based on the user check-in information; and
    若识别到所述签入消息为成功注册,则完成用户签入并启动定期轮询任务。If it is recognized that the check-in message is successful registration, the user check-in is completed and a regular polling task is started.
  18. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
    接收用户终端发送的系统启动指令,根据所述系统启动指令获取配置文件;Receiving a system startup instruction sent by a user terminal, and obtaining a configuration file according to the system startup instruction;
    加载所述配置文件完成系统启动,并同步启动虚拟电话插件;Load the configuration file to complete the system startup, and start the virtual phone plug-in synchronously;
    接收用户终端发送的签入指令,所述签入指令携带有用户签入信息;Receiving a check-in instruction sent by a user terminal, the check-in instruction carrying user check-in information;
    响应所述签入指令根据用户签入信息完成用户签入,并启动定期轮询任务;Respond to the check-in instruction to complete the user check-in according to the user check-in information, and start a regular polling task;
    若根据所述定期轮询任务获取到所述虚拟电话插件为示忙状态,则获取时间间隔;及If the virtual phone plug-in is busy according to the periodic polling task, the time interval is obtained; and
    根据所述时间间隔启动状态切换任务将所述示忙状态切换为示闲状态。The state switching task is started according to the time interval to switch the busy state to the idle state.
  19. 根据权利要求18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 18, wherein when the computer-readable instructions are executed by the processor, the following steps are further performed:
    识别所述虚拟电话插件是否处于通话状态;及Identify whether the virtual phone plug-in is in a call state; and
    若是,则关闭所述定期轮询任务,直到所述通话状态结束后重新启动所述定期轮询任务。If yes, the periodic polling task is closed, and the periodic polling task is restarted after the call state ends.
  20. 根据权利要求18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 18, wherein when the computer-readable instructions are executed by the processor, the following steps are further performed:
    将所述签入指令以及用户签入信息发送至电话平台服务器;Send the check-in instruction and user check-in information to the phone platform server;
    接收电话平台服务器反馈的签入消息,所述签入消息由电话平台服务器响应所述签入指令,根据所述用户签入信息注册生成;及Receiving a check-in message fed back by the phone platform server, the check-in message is registered and generated by the phone platform server in response to the check-in instruction, based on the user check-in information; and
    若识别到所述签入消息为成功注册,则完成用户签入并启动定期轮询任务。If it is recognized that the check-in message is successful registration, the user check-in is completed and a regular polling task is started.
PCT/CN2019/117633 2019-01-07 2019-11-12 Virtual telephone state switching method, device, computer device, and storage medium WO2020143307A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910017663.7 2019-01-07
CN201910017663.7A CN109814949B (en) 2019-01-07 2019-01-07 Virtual telephone state switching method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020143307A1 true WO2020143307A1 (en) 2020-07-16

Family

ID=66604108

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117633 WO2020143307A1 (en) 2019-01-07 2019-11-12 Virtual telephone state switching method, device, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN109814949B (en)
WO (1) WO2020143307A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433832A (en) * 2020-11-17 2021-03-02 北京沃东天骏信息技术有限公司 Task triggering method, device, equipment and computer readable storage medium
CN114327606A (en) * 2022-03-11 2022-04-12 武汉中科通达高新技术股份有限公司 Configuration management method and device, electronic equipment and computer readable storage medium
CN116955874A (en) * 2023-09-20 2023-10-27 北京中关村科金技术有限公司 Page processing method, page processing device, electronic equipment and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814949B (en) * 2019-01-07 2022-04-22 平安科技(深圳)有限公司 Virtual telephone state switching method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110748A (en) * 2006-07-17 2008-01-23 纬创资通股份有限公司 Network telephone system and method with automatic storage-transmit mechanism
US20080137647A1 (en) * 2006-12-07 2008-06-12 Jae-Hoon Han VoIP terminal and method for providing multi-call service
CN101383877A (en) * 2007-09-06 2009-03-11 耐通信息科技(上海)有限公司 Network situation monitoring method for soft telephone
CN105208233A (en) * 2015-08-26 2015-12-30 无锡华海天和信息科技有限公司 Network telephone system capable of prompting incoming call notification and realization method thereof
CN107861897A (en) * 2017-11-06 2018-03-30 郑州云海信息技术有限公司 One kind is interrupted and poll triggering method, system, equipment and computer-readable storage medium
CN109814949A (en) * 2019-01-07 2019-05-28 平安科技(深圳)有限公司 Virtual telephony state switching method, device, computer equipment and storage medium

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007274165A (en) * 2006-03-30 2007-10-18 Toshiba Corp Ip telephone system
CN101087478A (en) * 2006-09-05 2007-12-12 华为技术有限公司 Control method for call switching, communication system and user device
CN101645951A (en) * 2008-08-04 2010-02-10 优诺威讯国际有限公司 Adaptive network telephone device and method for controlling same
JP5392821B2 (en) * 2009-03-03 2014-01-22 Necアクセステクニカ株式会社 VoIP communication device, communication method of VoIP communication device, and communication system
CN102238267A (en) * 2010-04-28 2011-11-09 鸿富锦精密工业(深圳)有限公司 Mobile terminal and communication service condition conversion control method thereof
CN104333667B (en) * 2013-07-22 2017-04-12 深圳中兴网信科技有限公司 Method and device for determining telephone traffic state
US9298485B2 (en) * 2013-11-19 2016-03-29 International Business Machines Corporation Maintaining virtual machines for cloud-based operators in a streaming application in a ready state
CN104683608B (en) * 2013-11-29 2018-05-25 华为技术有限公司 The method and distributed call center and relevant apparatus of realization distributed call center
CN104935495B (en) * 2014-03-19 2019-04-23 华为技术有限公司 Determine method, unified communication system and the relevant device of User Status
US9800620B2 (en) * 2014-04-03 2017-10-24 Vmware, Inc. Softphone over Desktop-as-a-Service (DaaS)
CN105407241A (en) * 2014-06-10 2016-03-16 华为技术有限公司 Seat equipment switching method, device and system
CN104394133B (en) * 2014-11-14 2017-12-22 百度在线网络技术(北京)有限公司 Login method and login system
US9781265B2 (en) * 2015-10-07 2017-10-03 Google Inc. Systems and methods for syncing data related to voice calls via a dynamically assigned virtual phone number
CN105357108B (en) * 2015-12-03 2018-03-02 河北远东通信系统工程有限公司 A kind of method that instant communication client state is presented
CN105391836A (en) * 2015-12-18 2016-03-09 合肥寰景信息技术有限公司 Computer-assisted telephone interview system operation method
CN107395851B (en) * 2016-05-14 2019-11-12 平安科技(深圳)有限公司 Data processing method and softphone server based on softphone
CN107920174B (en) * 2016-10-08 2020-06-16 腾讯科技(深圳)有限公司 Network telephone calling method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110748A (en) * 2006-07-17 2008-01-23 纬创资通股份有限公司 Network telephone system and method with automatic storage-transmit mechanism
US20080137647A1 (en) * 2006-12-07 2008-06-12 Jae-Hoon Han VoIP terminal and method for providing multi-call service
CN101383877A (en) * 2007-09-06 2009-03-11 耐通信息科技(上海)有限公司 Network situation monitoring method for soft telephone
CN105208233A (en) * 2015-08-26 2015-12-30 无锡华海天和信息科技有限公司 Network telephone system capable of prompting incoming call notification and realization method thereof
CN107861897A (en) * 2017-11-06 2018-03-30 郑州云海信息技术有限公司 One kind is interrupted and poll triggering method, system, equipment and computer-readable storage medium
CN109814949A (en) * 2019-01-07 2019-05-28 平安科技(深圳)有限公司 Virtual telephony state switching method, device, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433832A (en) * 2020-11-17 2021-03-02 北京沃东天骏信息技术有限公司 Task triggering method, device, equipment and computer readable storage medium
CN114327606A (en) * 2022-03-11 2022-04-12 武汉中科通达高新技术股份有限公司 Configuration management method and device, electronic equipment and computer readable storage medium
CN116955874A (en) * 2023-09-20 2023-10-27 北京中关村科金技术有限公司 Page processing method, page processing device, electronic equipment and computer readable storage medium
CN116955874B (en) * 2023-09-20 2023-12-26 北京中关村科金技术有限公司 Page processing method, page processing device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109814949B (en) 2022-04-22
CN109814949A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
WO2020143307A1 (en) Virtual telephone state switching method, device, computer device, and storage medium
US10181974B2 (en) Distributed agent reservation in SIP cluster
CA2784334C (en) Multiplatform management system and method for mobile devices
CN107146074B (en) Work order task cooperative processing method and device and computer readable storage medium
US8644473B1 (en) Method and system for providing telephony services
CN108958949B (en) Calling method and system of application program
CN110943934A (en) Service request processing method, system, terminal and readable storage medium
US10462238B1 (en) Reachability analytics for communications
US20070064914A1 (en) Method for notifying customers of an agent's progress in fulfilling work orders
CN110807537A (en) Conference room reservation processing method and device, electronic equipment and storage medium
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
WO2019205133A1 (en) Vpn line handover method, apparatus and electronic device
CN107835325B (en) Method and server for real-time control of call
US20150264001A1 (en) System and method for contact management
CN115271662A (en) Conference schedule setting method and device, computer equipment and storage medium
JP6043666B2 (en) Telephone connection system and method, program
CN111562947B (en) Service processing method and device and electronic equipment
US10542132B2 (en) Updating contact details for communications
CN113535439A (en) Service request processing method, device, equipment and storage medium
CN112417349A (en) Programming device and network state monitoring method
CN116166891B (en) Event re-pushing method and related device based on real estate management system
CN109450581B (en) Data updating method, device, equipment and storage medium
WO2016131257A1 (en) Method and device for information storage, acquisition, and processing
US10944658B2 (en) Method, apparatus and system for method for start-up of monitoring of monitor objects in a computer-integrated telecommunications environment
US11909805B1 (en) Local device redirection in remote access computing environments

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19909211

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19909211

Country of ref document: EP

Kind code of ref document: A1