Voice outbound method, device and equipment
By creating voice communication services and voice session links during the registration process of the software development toolkit, detecting and replacing the communication registration information of the existing page, the problem that the software development toolkit does not support single-domain registration in the prior art is solved. It realizes flexible registration operations and improves voice call efficiency.
Patent Information
- Application Number
- CN202411330797.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-02-07
AI Technical Summary
In the prior art, the software development toolkit of the outgoing call system does not support single-device non-blocking registration, resulting in users being unable to flexibly register the software development toolkit, affecting the efficiency of voice outgoing call.
By creating voice communication services and voice session links during the registration process of the software development toolkit, the communication status of the user is detected. If there is communication registration information on existing pages, use voice communication services to replace it and transfer to the software development toolkit. The usage status is registration successful, enabling flexible software development kit registration.
It simplifies the registration operation of the software development tool kit during the voice out call process, improves the efficiency of voice out call, and avoids the cumbersome process of users paying attention to whether the software development tool kit is cancelled in the previous page.
Smart Images

Figure CN119402589A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent conversation technology, and in particular to a voice outbound calling method, device and equipment. Background Art
[0002] With the continuous growth of corporate communication needs, voice outbound calls have become a key link between companies and customers. In order to better meet the personalized needs of enterprises for voice outbound calls, the software development kit for the outbound call front end came into being to implement voice outbound calls through the software development kit.
[0003] Related technologies In the process of voice outbound calls, the same type of technology only supports registering software development tools through seats, calling the specified methods exposed by the software development tools to initiate or end outbound calls, and returning events at each stage of the current process to inform the user of the current state of the outbound call, so that the user can make corresponding processing. However, because the software development toolkit at the front end of the outbound call system does not support the single-device registration mechanism, the user cannot implement single-device non-blocking registration, that is, after the same user registers the software development toolkit, if he does not actively log out or the automatic logout logic is not triggered, the software development toolkit cannot be re-registered. This causes the software development toolkit of the outbound call system to have certain constraints on users, affecting the efficiency of voice outbound calls. Summary of the invention
[0004] In view of this, the present application provides a voice outbound calling method, device and equipment, the main purpose of which is to solve the problem that the software development tool kit of the outbound calling system in the prior art has certain constraints on users and affects the efficiency of voice outbound calling.
[0005] According to a first aspect of the present application, a voice outbound calling method is provided, comprising:
[0006] Creating a voice communication service and a voice session link during the registration process of the software development kit, wherein the voice call service is used to establish a communication connection between the client and the server, and the voice session link is used to establish a communication session based on the communication connection;
[0007] When the user has communication registration information of an existing page, the communication registration information of the existing page is replaced by the voice communication service to obtain the voice communication service of the current page;
[0008] The use state of the software development kit is transferred to successful registration according to the voice communication service of the current page and the voice session link, so as to make a voice outbound call through the successfully registered software development kit.
[0009] Further, the creating of the voice communication service and the voice session link during the registration process of the software development kit includes:
[0010] In response to a user's instruction to register the software development kit through the current page, a registration interface is called according to the user's identifier;
[0011] Creating a voice communication service according to the protocol configuration information returned by the registration interface;
[0012] A voice session link is created according to the link configuration information returned by the registration interface.
[0013] Furthermore, before calling the registration interface according to the user identifier, the method further includes:
[0014] Obtain the outbound call status of the user according to the user ID;
[0015] When the user is in an outbound call state, a registration prompt message is generated, wherein the registration prompt message is used to prompt the user that the software development kit cannot be registered at present;
[0016] When the user is not in an outbound call state, the registration interface is called according to the user ID.
[0017] Furthermore, before acquiring the outbound call status of the user according to the user identifier, the method further includes:
[0018] Determine whether the user has existing page registration information in the historical outbound call process according to the user identifier;
[0019] If so, the outbound call status of the user is obtained according to the user ID; otherwise, the registration interface is called according to the user ID.
[0020] Further, after creating the voice communication service and the voice session link in the registration process of the software development kit, the method further comprises:
[0021] The user identifier is transmitted to the server according to the voice communication service, so that the server obtains the connection status of the user in the historical outbound call process according to the user identifier;
[0022] If the user has a long connection of an existing page in the historical outbound call process, it is determined that the user has communication registration information of an existing page;
[0023] Correspondingly, when the user has communication registration information of an existing page, the communication registration information of the existing page is replaced by the voice communication service to obtain the voice communication service of the current page, including:
[0024] When the user has communication registration information of an existing page, the voice communication service is used to destroy the long connection of the existing page;
[0025] A persistent connection of the current page is created on the basis of destroying the persistent connection of the existing page, so as to replace the communication registration information of the existing page through the persistent connection of the current page, and obtain the voice communication service of the current page.
[0026] Furthermore, before creating the voice communication service and the voice session link in the registration process of the software development kit, the method further includes:
[0027] Obtain the communication protocol provided by the user;
[0028] Accordingly, the voice communication service and the voice session link are created during the registration process of the software development kit, including:
[0029] If the user provides a custom communication protocol, a customized voice communication service is created according to the custom communication protocol during the registration process of the software development kit, and a customized voice session link is created based on the customized voice communication service;
[0030] If the user does not provide a custom communication protocol, a default voice communication service is created according to the default communication protocol during the registration process of the software development kit, and a default voice session link is created based on the default voice communication service.
[0031] Furthermore, before creating the voice communication service and the voice session link, the method further includes:
[0032] Track key nodes in the entire link of outbound voice calls and obtain tracking interfaces.
[0033] The tracking point data reported by the key nodes are stored in the database by calling the tracking point interface, so as to obtain the operation status of the current stage according to the tracking point data reported by the key nodes;
[0034] If there is an abnormality in the running status of the current stage, the database is queried according to the user identifier to conduct a stage-by-stage check of the buried data in chronological order.
[0035] According to a second aspect of the present application, a voice outbound calling device is provided, comprising:
[0036] A creation unit, used to create a voice communication service and a voice session link during the registration process of the software development kit, wherein the voice call service is used to establish a communication connection between the client and the server, and the voice session link is used to establish a communication session based on the communication connection;
[0037] A replacement unit, used to replace the communication registration information of an existing page with the voice communication service when the user has communication registration information of the existing page, so as to obtain the voice communication service of the current page;
[0038] The outbound calling unit is used to transfer the use state of the software development kit to successful registration according to the voice communication service of the current page and the voice session link, so as to make a voice outbound call through the successfully registered software development kit.
[0039] Furthermore, the creation unit is specifically used to:
[0040] In response to a user's instruction to register the software development kit through the current page, a registration interface is called according to the user's identifier;
[0041] Creating a voice communication service according to the protocol configuration information returned by the registration interface;
[0042] A voice session link is created according to the link configuration information returned by the registration interface.
[0043] Furthermore, the creation unit is further configured to:
[0044] Before calling the registration interface according to the user identifier, obtaining the user's outbound call status according to the user identifier;
[0045] When the user is in an outbound call state, a registration prompt message is generated, wherein the registration prompt message is used to prompt the user that the software development kit cannot be registered at present;
[0046] When the user is not in an outbound call state, the registration interface is called according to the user ID.
[0047] Furthermore, the creation unit is further configured to:
[0048] Before obtaining the outbound calling status of the user according to the user identifier, judging whether the user has existing page registration information in the historical outbound calling process according to the user identifier;
[0049] If so, the outbound call status of the user is obtained according to the user ID; otherwise, the registration interface is called according to the user ID.
[0050] Furthermore, the device also includes:
[0051] A transmitting unit, configured to transmit the user identifier to the server according to the voice communication service after the voice communication service and the voice session link are created in the registration process of the software development kit, so that the server obtains the connection status of the user in the historical outbound call process according to the user identifier;
[0052] A determination unit, configured to determine that the user has communication registration information of an existing page if the user has a long connection of an existing page in a historical outbound call process;
[0053] Accordingly, the replacement unit is specifically used for:
[0054] When the user has communication registration information of an existing page, the voice communication service is used to destroy the long connection of the existing page;
[0055] A persistent connection of the current page is created on the basis of destroying the persistent connection of the existing page, so as to replace the communication registration information of the existing page through the persistent connection of the current page, and obtain the voice communication service of the current page.
[0056] Furthermore, the device also includes:
[0057] An acquisition unit, used for acquiring a communication protocol provided by a user before creating a voice communication service and a voice session link in the registration process of the software development kit;
[0058] Accordingly, the creation unit is specifically used for:
[0059] If the user provides a custom communication protocol, a customized voice communication service is created according to the custom communication protocol during the registration process of the software development kit, and a customized voice session link is created based on the customized voice communication service;
[0060] If the user does not provide a custom communication protocol, a default voice communication service is created according to the default communication protocol during the registration process of the software development kit, and a default voice session link is created based on the default voice communication service.
[0061] Furthermore, the device also includes:
[0062] A tracking unit, used for tracking key nodes on the entire link of the outbound voice call before creating the voice communication service and the voice session link in the registration process of the software development kit, to obtain a tracking interface;
[0063] The storage unit is used to store the tracking data reported by the key nodes in the database by calling the tracking interface, so as to obtain the operation status of the current stage according to the tracking data reported by the key nodes;
[0064] The troubleshooting unit is used to query the database according to the user identifier if there is an abnormality in the operating status of the current stage, so as to conduct a stage-by-stage troubleshooting of the buried point data in chronological order.
[0065] According to a third aspect of the present application, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the voice outbound call method described in the first aspect are implemented.
[0066] According to a fourth aspect of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the voice outbound call method described in the first aspect are implemented.
[0067] By means of the above technical scheme, the present application provides a method, apparatus and equipment for voice outbound calling. Compared with the current prior art method of using a software development kit that does not support a single-device non-blocking registration mechanism to make voice outbound calls, the present application creates a voice communication service and a voice session link during the registration process of the software development kit. The voice call service is used to establish a communication connection between the client and the server, and the voice session link is used to establish a communication session based on the communication connection. When the user has communication registration information of an existing page, the voice communication service is used to replace the communication registration information of the existing page to obtain the voice communication service of the current page. According to the voice communication service and the voice session link of the current page, the use status of the software development kit is transferred to successful registration, so that a voice outbound call can be made through the successfully registered software development kit. The entire process determines the communication status of the user during the process of registering the software development kit. If the user has communication registration information on an existing page, the registered voice communication service will be automatically deregistered and replaced by the voice communication service on the current page. The user does not need to pay attention to whether the software development kit on the previous page is deregistered, and can flexibly register the software development kit, which greatly simplifies the user's registration operation for the software development kit during voice outbound calls and improves the efficiency of voice outbound calls.
[0068] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0070] Figure 1 It is a flowchart of a voice outbound calling method provided by an embodiment of the present application;
[0071] Figure 2 yes Figure 1 A schematic flow chart of a specific implementation of step 101;
[0072] Figure 3 It is a flowchart of a voice outbound calling method provided by another embodiment of the present application;
[0073] Figure 4 is based on Figure 3 A schematic flow chart of a specific implementation of step 102 is provided;
[0074] Figure 5 is a flowchart of a voice outbound calling method in another embodiment of the present application;
[0075] Figure 6 It is a flowchart of a registration software development kit provided in an embodiment of the present application;
[0076] Figure 7 is a flowchart of a registration software development kit provided by another embodiment of the present application;
[0077] Figure 8 This is a flowchart of link point reporting during a voice outbound call provided by an embodiment of the present application;
[0078] Fig. 9 It is a structural diagram of a voice outbound calling device in one embodiment of the present application;
[0079] Fig.10 It is a schematic diagram of the device structure of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0080] Now the content of the present invention will be discussed with reference to several exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and thus implement the content of the present invention, rather than implying any limitation on the scope of the present invention.
[0081] As used herein, the term "including" and variations thereof are to be interpreted as open-ended terms meaning "including but not limited to." The term "based on" is to be interpreted as "based, at least in part, on." The terms "one embodiment" and "an embodiment" are to be interpreted as "at least one embodiment." The term "another embodiment" is to be interpreted as "at least one other embodiment."
[0082] Related technologies In the process of voice outbound calls, the same type of technology only supports registering software development tools through seats, calling the specified methods exposed by the software development tools to initiate or end outbound calls, and returning events at each stage of the current process to inform the user of the current state of the outbound call, so that the user can make corresponding processing. However, because the software development toolkit at the front end of the outbound call system does not support the single-device registration mechanism, the user cannot implement single-device non-blocking registration, that is, after the same user registers the software development toolkit, if he does not actively log out or the automatic logout logic is not triggered, the software development toolkit cannot be re-registered. This causes the software development toolkit of the outbound call system to have certain constraints on users, affecting the efficiency of voice outbound calls.
[0083] In order to solve this problem, this embodiment provides a voice outbound calling method, such as Figure 1 As shown, the method is applied to the platform side of the voice outbound call, including the following steps:
[0084] 101. Create a voice communication service and a voice session link during the registration process of the software development kit.
[0085] Normally, during the process of voice outbound calling, the user needs to register the software development kit through the page, so as to use the successfully registered software development kit to make voice outbound calls. The user here refers to the seat or position of the customer service or call center. The scenarios in which the user uses voice outbound calling include but are not limited to telephone, online chat, email or other channels to communicate with customers, such as answering questions, handling complaints, providing information or making sales. Here, the software development kit is equivalent to a set of tools, libraries, documents and sample codes, which are provided to developers to create applications or integrate specific functions. The software development kit in the voice outbound calling scenario has a voice outbound calling function, which allows users or outbound calling systems to automatically call out to customers.
[0086] It is understandable that the registration of the software development kit requires voice communication services and voice session links. Among them, the voice call service is used to establish a communication connection between the client and the server, which can be created through the network communication protocol of the voice call service. The network communication protocol allows a persistent two-way connection to be established between the client and the server. Unlike traditional network communication protocols, the network protocol of the voice call service here can send and receive data between the two parties in real time once the connection is established, without the need to frequently establish new connections, which is suitable for voice outbound call scenarios. The voice session link is used to establish a communication session on the basis of the communication connection, which can be created through the application layer protocol of the voice session link, and is used to establish, manage and terminate multimedia communication sessions in the IP network, such as voice calls, video conferences and instant messages. It should be noted that the application layer protocol of the voice session link depends on the network communication protocol of the voice session service, that is, the creation of the voice session link requires the network communication protocol of the voice session service to complete the registration.
[0087] The execution subject of this embodiment can be a voice outbound call device or equipment, which can be configured on the platform side of the voice outbound call. Before the user makes a voice outbound call through the current browser page, the user needs to register the software development kit in the current browser page, and there is no duplicate registration information on the current browser page. In this way, the user can create a voice communication service and a voice session link through the software development kit tool to complete the registration process of the software development kit tool, and use the successfully registered software development kit tool to make a voice outbound call.
[0088] 102. When the user has communication registration information of an existing page, the user uses the voice communication service to replace the communication registration information of the existing page to obtain the voice communication service of the current page.
[0089] It is understandable that, during the registration process of the software development kit, one device corresponds to one browser page. When a user has registered the software development kit through a browser page, and then opens a new browser page to register the software development kit tool, as long as the software development kit of the previous browser page is still in the registered state, the current browser page cannot register the software development kit, that is, the user cannot use the software development kit to make a voice call through the current browser page. The embodiment of the present invention can detect the communication status of the user making a voice call through the browser page during the registration process of the software development kit. If the user has made a voice call through the browser page, the user has communication registration information of the existing page. At this time, the voice communication service can be used to replace the communication registration information of the existing page to ensure that the voice communication service of the current page is available, and the user does not need to manually cancel the voice communication service of the existing page, thereby simplifying the user's registration operation of the voice call service in the software development kit.
[0090] Specifically, in the process of creating a voice communication service, the user identifier needs to be transmitted to the server so that the server can establish a long connection between the server and the client through the user identifier. After receiving the user identifier, the server will determine whether the user has an established long connection based on the user identifier. Since one user identifier can only correspond to one long connection, if the user has an established long connection, it means that the user has created a voice communication service on other pages and there is corresponding page registration information. At this time, the voice communication service can be used to replace the communication registration information of the existing page, that is, the communication protocol of the existing page can be cancelled and replaced with the communication protocol of the current page to obtain the voice communication service of the current page.
[0091] In this embodiment, the user can repeatedly register the voice call service on the current page during the process of registering the software development kit. The voice call service on the existing page will be notified to go offline to ensure that the instance constructed by the user in the software development kit through the current page is in an available state.
[0092] 103. According to the voice communication service of the current page and the voice session link, the use state of the software development kit is transferred to successful registration, so as to make a voice outbound call through the successfully registered software development kit.
[0093] It can be understood that after the voice communication service and voice session link of the current page are successfully established, it means that the software development kit registered on the current page can realize the voice outbound call function through the voice communication service and the voice session link, and then the use status of the software development kit is transferred to successful registration. Accordingly, the software development kit can call the server-side outbound call interface to implement the following two aspects. On the one hand, it pushes the events monitored by the voice communication service during the outbound call process; on the other hand, it calls the communication platform through the server-side outbound call interface to send a call request to the voice session link and feedback the establishment result of the call request to the communication platform, and builds voice, video and instant messaging applications such as telephone systems, conference systems, etc. according to the establishment result of the call request.
[0094] Further, after the voice communication service is created, the registered communication information of the existing page can be replaced through the voice communication service, and then the communication connection can be established inside the software development kit using the current voice communication service. The communication connection can monitor the events of the communication service pushed during the voice outbound call. The events of the communication service can be whether the call is successfully established, the other party answers / hangs up, and the call ends. After the voice session link is created, a voice session is established inside the software development kit through the voice session link. The voice session can receive the session signaling of the voice session, which is used to receive events such as incoming calls and call hang-ups sent by the communication service.
[0095] The voice outbound call method provided in the embodiment of the present application is compared with the current prior art method of using a software development kit that does not support a single-device non-blocking registration mechanism to make voice outbound calls. The present application creates a voice communication service and a voice session link during the registration process of the software development kit. The voice call service is used to establish a communication connection between the client and the server, and the voice session link is used to establish a communication session based on the communication connection. When the user has communication registration information of an existing page, the voice communication service is used to replace the communication registration information of the existing page to obtain the voice communication service of the current page. According to the voice communication service and the voice session link of the current page, the use status of the software development kit is transferred to successful registration, so that a voice outbound call can be made through the successfully registered software development kit. The entire process determines the communication status of the user during the process of registering the software development kit. If the user has communication registration information on an existing page, the registered voice communication service will be automatically deregistered and replaced by the voice communication service on the current page. The user does not need to pay attention to whether the software development kit on the previous page is deregistered, and can flexibly register the software development kit, which greatly simplifies the user's registration operation for the software development kit during voice outbound calls and improves the efficiency of voice outbound calls.
[0096] In one possible implementation, the registration process of the software development kit requires calling a registration interface. Specifically, in the above embodiment, Figure 2 As shown, step 101 includes the following steps:
[0097] 201. In response to a user's instruction to register a software development kit through the current page, a registration interface is called according to a user identifier.
[0098] 202. Create a voice communication service according to the protocol configuration information returned by the registration interface.
[0099] 203. Create a voice session link according to the link configuration information returned by the registration interface.
[0100] In this embodiment, when the user registers the software development kit through the current page, the user identification will be sent to the software development kit. The user identification here is unique. When the software development kit obtains the user identification, considering that the registration process of the software development kit needs to rely on the communication status of the user on other pages, if the user has registered the software development kit on other pages, it means that the user has called the registration interface on other pages. The user's outbound call status can be further obtained based on the page registration information of the user in the historical outbound call process. Specifically, before calling the registration interface according to the user identification, the user's outbound call status can be obtained according to the user identification. When the user is in the outbound call status, a registration prompt information is generated. The registration prompt information is used to prompt the user that the software development kit cannot be registered at present. When the user is not in the outbound call status, the registration interface is called according to the user identification.
[0101] Furthermore, the user's registration of the software development kit on other pages does not reflect the user's call status on other pages. If the user is not in a call state, it means that the user has registered the software development kit on other pages but has not used the software development kit to make voice outbound calls through other pages. At this time, the registration interface can be called according to the user to realize the registration of the software development kit. If the user is in a call state, it means that the user has registered the software development kit on his page and used the software development kit on other pages to make voice outbound calls. At this time, the user cannot call the registration interface to realize the registration of the software development kit. Specifically, before obtaining the user's outbound call status according to the user ID, it can be determined according to the user ID whether the user has existing page registration information in the historical outbound call process. If so, the user's outbound call status is obtained according to the user ID; otherwise, the registration interface is called according to the user ID.
[0102] In this embodiment, by performing a double determination of the page registration status and the outbound call status of the user during the registration of the software development kit, the registration process of the software development kit by the user can be reduced. Specifically, when the user registers the software development kit for voice outbound calls on the first page and then opens another page to continue registering the software development kit for voice outbound calls, there is no need to pay attention to whether the registered software development kit on the previous page has been cancelled. It only needs to determine that the previous software development kit is not in the outbound call state, and then the software development kit can be registered on the current page. In other words, after registering the software development kit, the user can register the software development kit again if the registered software development kit is in a non-call state, which greatly reduces the cumbersomeness of the user's page operations.
[0103] Furthermore, in the above embodiment, if Figure 3 As shown, after step 101, the method further includes the following steps:
[0104] 301. According to the voice communication service, a user identifier is transmitted to a server, so that the server obtains a connection status of the user in a historical outbound call process according to the user identifier.
[0105] 302. If the user has a long connection of an existing page in the historical outbound call process, it is determined that the user has communication registration information of the existing page.
[0106] It is understandable that the voice communication service can only register one long connection in the software tool development kit, that is, the user cannot implement the voice outbound call function through multiple pages. When the user opens a new page, in order to allow the user to implement the software development kit registration process through the new page, the user identifier can be passed to the server according to the voice communication service. Since the server will record the user identifier when establishing a long connection, the server can obtain the connection status of the user in the historical outbound call process according to the user identifier. If the user has established a long connection, it means that the user has communication registration information of an existing page, that is, the user has a long connection of an existing page in the historical outbound call process, and the long connection needs to be eliminated before the long connection can be established on the new page. Otherwise, the user cannot establish a long connection.
[0107] Accordingly, step 102 includes the following steps:
[0108] 401. When the user has communication registration information of an existing page, the voice communication service is used to destroy the long connection of the existing page.
[0109] 402. Create a persistent connection for the current page based on destroying the persistent connection for the existing page, so as to replace the communication registration information for the existing page with the persistent connection for the current page, and obtain the voice communication service for the current page.
[0110] Specifically, after the user registers the software development kit, if the software development kit is in a non-call state and a new page is opened to re-register the software development kit, the server will push a mutual kick event to the software development kit of the existing page under the condition of the communication registration information of the existing page. After the software development kit of the existing page receives the mutual kick event through the voice conversation service, it determines whether the instance of the existing page can be kicked offline based on the mutual kick event. If it can be kicked offline, a corresponding text prompt is given, and the voice conversation service of the existing page receives the information that "the current terminal has been replaced by other pages", and then terminates the instance of the software development kit on the existing page and obtains the voice communication service of the current page.
[0111] In actual application scenarios, since the conversation protocol of the voice session link that the voice outbound calling process of the software development kit tool relies on is created based on the communication protocol of the voice communication service, if the user wants to customize the logic at the communication protocol level, it is impossible to achieve it. At the same time, if there is an abnormality in the software development kit during the voice outbound calling process, it cannot be attributed. In order to enable the user to customize the underlying communication protocol, the communication protocol provided by the user can be obtained before creating the voice communication service and the voice session link. The communication protocol can be a default communication protocol or a custom communication protocol. The constructor of the custom communication protocol can be run in the script library corresponding to the software development kit to provide more voice session services. Accordingly, in the process of creating the voice communication service and the voice session link during the registration process of the software development kit, if the communication protocol provided by the user is a customized communication protocol, a customized voice communication service is created according to the custom communication protocol during the registration process of the software development kit, and a customized voice session link is created based on the customized voice communication service; if the user does not provide a custom communication protocol, a customized voice communication service is created according to the default communication protocol during the registration process of the software development kit, and a default voice session link is created based on the default voice communication service.
[0112] Specifically, if the user wants to customize the underlying conversation protocol, the constructor of the custom communication protocol can be passed into the software development kit. The software development kit will use the passed-in constructor for instantiation to create a customized voice communication service through the instantiated communication protocol. Accordingly, a customized voice conversation link is created based on the customized voice communication service.
[0113] It can be understood that the above-mentioned customized processing flow is applicable to the registration stage of the software development kit. During the registration process of the software development kit, the user can pass in a custom communication protocol, so that the registered software development kit can perform customized processing when receiving and sending session signaling through the constructor of the custom communication protocol. If the user does not pass in a custom communication protocol, the registered software development kit uses the constructor of the default communication protocol to create a voice session link.
[0114] Furthermore, considering the process of abnormal monitoring of the software development kit by voice outbound calls over the entire link, in the above embodiment, Figure 5 As shown, before step 101, the method further includes the following steps:
[0115] 501. Track key nodes in the entire link of the outbound voice call and obtain a tracking interface.
[0116] 502. The tracking point data reported by the key node is stored in the database by calling the tracking point interface, so as to obtain the operation status of the current stage according to the tracking point data reported by the key node.
[0117] 503. If there is an abnormality in the running status of the current stage, query the database according to the user identifier to conduct a stage-by-stage check of the buried data in chronological order.
[0118] In this embodiment, the full link of the voice outbound call may include but is not limited to various stages of the voice outbound call process, for example, the registration stage of the software development kit, the voice initiation stage, and the voice hang-up stage. The key nodes can be selected in any stage. Specifically, in the registration stage of the software development kit, event push can be selected as the key node, and in the voice initiation stage, calling the server-side outbound call interface can be selected as the key node. The selection of key nodes is not limited here.
[0119] It can be understood that by performing tracking of key nodes in the entire link of voice outbound calls, the software development kit supports the tracking reporting function of key nodes. When the user calls the software development kit, the software development kit obtains the tracking data when the code runs to the key node. The tracking data may include but is not limited to a series of information such as the name of the called method, the current time, the user identifier, the execution result, the input and output parameters, the events pushed by the event pool, and the parameters carried by the event. Then, the tracking data is reported to the database by calling the tracking interface. If the user subsequently reports abnormal problems in the connection, the corresponding tracking data in the database can be queried by the user identifier, so as to troubleshoot abnormal tracking data in the link through time sorting.
[0120] Further, as Figure 1-5 The specific implementation of the method, Figure 6A flowchart of registering a software development kit during a voice outbound call is provided, such as Figure 6 As shown, after the user initiates a voice outbound call through the browser page, the user identifier is transmitted to the software development kit for the voice outbound call. Accordingly, the software development kit calls the registration method according to the user identifier to determine whether the user has registration information for other pages. If the user has registration information for other pages, it determines whether the other pages are in a call state. If so, the user is informed that the registration has failed, and is prompted that the software development kit cannot be registered in the call state. If not, the registration interface is called. Similarly, if the user does not have registration information for other pages, the registration interface is called. On the one hand, the communication service configuration is returned through the registration interface, and a voice communication service is created according to the communication service configuration. According to the voice communication service, it is determined whether there is a registered communication protocol, if there is a registered communication protocol, then the communication protocol of the current page is deregistered according to the communication protocol of the previous page, the user is notified that the current page has been replaced by other terminals, the current voice communication service is closed (that is, the voice communication service of the previous page is not closed), and the communication protocol of the current page is registered to obtain the voice communication service of the current page. On the other hand, the session link configuration is returned through the registration interface, and a voice session link is created according to the session link configuration. If there is no registered communication protocol, it is determined whether the voice communication service and the voice session link are all created successfully. If so, the voice communication service and the voice session link are pushed according to the event to complete the registration of the software development kit, and the software development kit is set to an available state.
[0121] Further, as Figure 1-5 The specific implementation of the method, when the user calls the software development kit, if you want to customize the sending and receiving of session signaling during the voice outbound call, specifically, Figure 7 Another flowchart of registering a software development kit during an outbound voice call is provided, such as Figure 7 As shown, when the registration method of the software development kit is called, if the user provides a custom communication protocol, a customized communication protocol is created, and a voice communication service and a customized voice session link are created based on the customized communication protocol; if the user does not provide a custom communication protocol, a default communication protocol is created, and a default voice communication service and a default voice session link are created based on the default communication protocol.
[0122] Further, as Figure 1-5 The specific implementation of the method is to monitor the abnormality of the entire voice outbound call link. Figure 8 Provides a flowchart of link tracking reporting during voice outbound calls, as shown below: Figure 8As shown, in the entire voice outbound call link, a tracking point is pre-set in the outbound call method of the software development kit, so that the user calls the tracking point interface to report data during the process of calling the outbound call method of the software development kit for voice outbound call, and a tracking point is pre-set in the voice communication event push, so that the user calls the tracking point interface to report data during the event push process in the event subscription pool, and the reported data is stored in the tracking point database.
[0123] Further, as Figure 1-5 The specific implementation of the method, the embodiment of the present application provides a voice outbound calling device, such as Fig. 9 As shown, the device includes: a creation unit 61, a replacement unit 62, and a circulation unit 63.
[0124] A creation unit 61, configured to create a voice communication service and a voice session link during the registration process of the software development kit, wherein the voice call service is used to establish a communication connection between the client and the server, and the voice session link is used to establish a communication session based on the communication connection;
[0125] A replacement unit 62, configured to, when the user has communication registration information of an existing page, use the voice communication service to replace the communication registration information of the existing page, so as to obtain the voice communication service of the current page;
[0126] The outbound calling unit 63 is used to transfer the use state of the software development kit to successful registration according to the voice communication service of the current page and the voice session link, so as to make a voice outbound call through the successfully registered software development kit.
[0127] The voice outbound call device provided by the embodiment of the present invention is compared with the current existing method of using a software development kit that does not support a single-device non-blocking registration mechanism to make voice outbound calls. The present application creates a voice communication service and a voice session link during the registration process of the software development kit. The voice call service is used to establish a communication connection between the client and the server, and the voice session link is used to establish a communication session based on the communication connection. When the user has communication registration information of an existing page, the voice communication service is used to replace the communication registration information of the existing page to obtain the voice communication service of the current page. According to the voice communication service and the voice session link of the current page, the use status of the software development kit is transferred to successful registration, so that a voice outbound call can be made through the successfully registered software development kit. The entire process determines the communication status of the user during the process of registering the software development kit. If the user has communication registration information on an existing page, the registered voice communication service will be automatically deregistered and replaced by the voice communication service on the current page. The user does not need to pay attention to whether the software development kit on the previous page is deregistered, and can flexibly register the software development kit, which greatly simplifies the user's registration operation for the software development kit during voice outbound calls and improves the efficiency of voice outbound calls.
[0128] In a specific application scenario, the creation unit is specifically used to:
[0129] In response to a user's instruction to register the software development kit through the current page, a registration interface is called according to the user's identifier;
[0130] Creating a voice communication service according to the protocol configuration information returned by the registration interface;
[0131] A voice session link is created according to the link configuration information returned by the registration interface.
[0132] In a specific application scenario, the creation unit is further used to:
[0133] Before calling the registration interface according to the user identifier, obtaining the user's outbound call status according to the user identifier;
[0134] When the user is in an outbound call state, a registration prompt message is generated, wherein the registration prompt message is used to prompt the user that the software development kit cannot be registered at present;
[0135] When the user is not in an outbound call state, the registration interface is called according to the user ID.
[0136] In a specific application scenario, the creation unit is further used to:
[0137] Before obtaining the outbound calling status of the user according to the user identifier, judging whether the user has existing page registration information in the historical outbound calling process according to the user identifier;
[0138] If so, the outbound call status of the user is obtained according to the user ID; otherwise, the registration interface is called according to the user ID.
[0139] In a specific application scenario, the device further includes:
[0140] A transmitting unit, configured to transmit the user identifier to the server according to the voice communication service after the voice communication service and the voice session link are created in the registration process of the software development kit, so that the server obtains the connection status of the user in the historical outbound call process according to the user identifier;
[0141] A determination unit, configured to determine that the user has communication registration information of an existing page if the user has a long connection of an existing page in a historical outbound call process;
[0142] Accordingly, the replacement unit is specifically used for:
[0143] When the user has communication registration information of an existing page, the voice communication service is used to destroy the long connection of the existing page;
[0144] A persistent connection of the current page is created on the basis of destroying the persistent connection of the existing page, so as to replace the communication registration information of the existing page through the persistent connection of the current page, and obtain the voice communication service of the current page.
[0145] In a specific application scenario, the device further includes:
[0146] An acquisition unit, used for acquiring a communication protocol provided by a user before creating a voice communication service and a voice session link in the registration process of the software development kit;
[0147] Accordingly, the creation unit is specifically used for:
[0148] If the user provides a custom communication protocol, a customized voice communication service is created according to the custom communication protocol during the registration process of the software development kit, and a customized voice session link is created based on the customized voice communication service;
[0149] If the user does not provide a custom communication protocol, a default voice communication service is created according to the default communication protocol during the registration process of the software development kit, and a default voice session link is created based on the default voice communication service.
[0150] In a specific application scenario, the device further includes:
[0151] A tracking unit, used for tracking key nodes on the entire link of the outbound voice call before creating the voice communication service and the voice session link in the registration process of the software development kit, to obtain a tracking interface;
[0152] The storage unit is used to store the tracking data reported by the key nodes in the database by calling the tracking interface, so as to obtain the operation status of the current stage according to the tracking data reported by the key nodes;
[0153] The troubleshooting unit is used to query the database according to the user identifier if there is an abnormality in the operating status of the current stage, so as to conduct a stage-by-stage troubleshooting of the buried point data in chronological order.
[0154] It should be noted that for other corresponding descriptions of the functional units involved in the voice outbound calling device provided in this embodiment, reference can be made to Figure 1-Figure 5 The corresponding description in will not be repeated here.
[0155] Based on the above Figure 1-Figure 5 The method shown in the embodiment of the present application accordingly provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned Figure 1-Figure 5 The voice outbound calling method shown.
[0156] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0157] Based on the above Figure 1-Figure 5 The method shown, and Fig. 9 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides a physical device for voice outbound calling, which can be a computer, a smart phone, a tablet computer, a smart watch, a server, or a network device, etc. The physical device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1-Figure 5 The voice outbound calling method shown.
[0158] Optionally, the physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0159] In an exemplary embodiment, see Fig.10 The physical device includes a communication bus, a processor, a memory and a communication interface, and may also include an input / output interface and a display device, wherein each functional unit can communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the voice outbound call method in the above embodiment.
[0160] Those skilled in the art will appreciate that the physical device structure for voice outbound calls provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0161] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device for the above-mentioned voice outbound call, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0162] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the technical solution of the present application, compared with the current existing methods, the present application judges the communication status of the user during the process of the user registering the software development kit. If the user has communication registration information of an existing page, the registered voice communication service will automatically cancel the registration and be replaced by the voice communication service of the current page, so that the user does not need to pay attention to whether the software development kit in the previous page is cancelled, and can flexibly register the software development kit, which greatly simplifies the user's registration operation of the software development kit during the voice outbound call process and improves the efficiency of voice outbound calls.
[0163] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.
[0164] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.
Claims
1. A voice outbound calling method, characterized in that: include: Creating a voice communication service and a voice session link during the registration process of the software development kit, wherein the voice call service is used to establish a communication connection between the client and the server, and the voice session link is used to establish a communication session based on the communication connection; When the user has communication registration information of an existing page, the communication registration information of the existing page is replaced by the voice communication service to obtain the voice communication service of the current page; The use state of the software development kit is transferred to successful registration according to the voice communication service of the current page and the voice session link, so as to make a voice outbound call through the successfully registered software development kit.
2. The method according to claim 1, characterized in that The creation of the voice communication service and the voice session link during the registration process of the software development kit includes: In response to a user's instruction to register the software development kit through the current page, a registration interface is called according to the user's identifier; Creating a voice communication service according to the protocol configuration information returned by the registration interface; A voice session link is created according to the link configuration information returned by the registration interface.
3. The method according to claim 2, characterized in that Before calling the registration interface according to the user identifier, the method further includes: Obtain the outbound call status of the user according to the user ID; When the user is in an outbound call state, a registration prompt message is generated, wherein the registration prompt message is used to prompt the user that the software development kit cannot be registered at present; When the user is not in an outbound call state, the registration interface is called according to the user ID.
4. The method according to claim 3, characterized in that Before acquiring the outbound call status of the user according to the user identifier, the method further includes: Determine whether the user has existing page registration information in the historical outbound call process according to the user identifier; If so, the outbound call status of the user is obtained according to the user ID; otherwise, the registration interface is called according to the user ID.
5. The method according to any one of claims 1 to 4, characterized in that After creating the voice communication service and the voice session link in the registration process of the software development kit, the method further comprises: The user identifier is transmitted to the server according to the voice communication service, so that the server obtains the connection status of the user in the historical outbound call process according to the user identifier; If the user has a long connection of an existing page in the historical outbound call process, it is determined that the user has communication registration information of an existing page; Correspondingly, when the user has communication registration information of an existing page, the communication registration information of the existing page is replaced by the voice communication service to obtain the voice communication service of the current page, including: When the user has communication registration information of an existing page, the voice communication service is used to destroy the long connection of the existing page; A persistent connection of the current page is created on the basis of destroying the persistent connection of the existing page, so as to replace the communication registration information of the existing page through the persistent connection of the current page, and obtain the voice communication service of the current page.
6. The method according to any one of claims 1 to 4, characterized in that Before creating the voice communication service and the voice session link in the registration process of the software development kit, the method further includes: Obtain the communication protocol provided by the user; Accordingly, the voice communication service and the voice session link are created during the registration process of the software development kit, including: If the user provides a custom communication protocol, a customized voice communication service is created according to the custom communication protocol during the registration process of the software development kit, and a customized voice session link is created based on the customized voice communication service; If the user does not provide a custom communication protocol, a default voice communication service is created according to the default communication protocol during the registration process of the software development kit, and a default voice session link is created based on the default voice communication service.
7. The method according to any one of claims 1 to 4, characterized in that Before creating the voice communication service and the voice session link, the method further includes: Track key nodes in the entire link of outbound voice calls and obtain tracking interfaces. The tracking point data reported by the key nodes are stored in the database by calling the tracking point interface, so as to obtain the operation status of the current stage according to the tracking point data reported by the key nodes; If there is an abnormality in the running status of the current stage, the database is queried according to the user identifier to conduct a stage-by-stage check of the buried data in chronological order.
8. A voice outbound calling device, characterized in that: include: A creation unit, used to create a voice communication service and a voice session link during the registration process of the software development kit, wherein the voice call service is used to establish a communication connection between the client and the server, and the voice session link is used to establish a communication session based on the communication connection; A replacement unit, used to replace the communication registration information of an existing page with the voice communication service when the user has communication registration information of the existing page, so as to obtain the voice communication service of the current page; The outbound calling unit is used to transfer the use state of the software development kit to successful registration according to the voice communication service of the current page and the voice session link, so as to make a voice outbound call through the successfully registered software development kit.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the voice outbound calling method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the voice outbound calling method according to any one of claims 1 to 7 are implemented.