[go: up one dir, main page]

CN114710473B - Method and system for realizing interaction between applet and SIP contact center audio and video - Google Patents

Method and system for realizing interaction between applet and SIP contact center audio and video Download PDF

Info

Publication number
CN114710473B
CN114710473B CN202210254995.9A CN202210254995A CN114710473B CN 114710473 B CN114710473 B CN 114710473B CN 202210254995 A CN202210254995 A CN 202210254995A CN 114710473 B CN114710473 B CN 114710473B
Authority
CN
China
Prior art keywords
contact center
sip
media stream
applet
sent
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202210254995.9A
Other languages
Chinese (zh)
Other versions
CN114710473A (en
Inventor
彭勇
曹瑞生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jingxing Information Technology Co ltd
Original Assignee
Shanghai Jingxing Information Technology Co ltd
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 Shanghai Jingxing Information Technology Co ltd filed Critical Shanghai Jingxing Information Technology Co ltd
Priority to CN202210254995.9A priority Critical patent/CN114710473B/en
Publication of CN114710473A publication Critical patent/CN114710473A/en
Application granted granted Critical
Publication of CN114710473B publication Critical patent/CN114710473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/50Centralised arrangements for answering calls; Centralised arrangements for recording messages for absent or busy subscribers ; Centralised arrangements for recording messages
    • H04M3/51Centralised call answering arrangements requiring operator intervention, e.g. call or contact centers for telemarketing

Landscapes

  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请涉及一种实现小程序与SIP联络中心音视频交互的方法及系统,涉及网络通信的技术领域,其方法包括:在接收到小程序发送的呼叫座席请求后,根据呼叫座席请求发送第一SIP信息至SIP联络中心;在座席接听后,将接收的小程序发送的媒体流转换为SIP联络中心支持的第一文件格式的媒体流,将第一文件格式的媒体流发送至SIP联络中心;第一文件格式的媒体流用于触发SIP联络中心将第一文件格式的媒体流发送至座席;以及,在座席接听后,将SIP联络中心发送的媒体流转换为小程序支持的第二文件格式的媒体流,将第二文件格式的媒体流发送至小程序。本申请具有实现小程序与SIP联络中心进行音视频交互的效果。

The present application relates to a method and system for realizing audio and video interaction between a mini program and a SIP contact center, and relates to the technical field of network communication. The method includes: after receiving a call agent request sent by a mini program, sending a first SIP message to the SIP contact center according to the call agent request; after the agent answers the call, converting the media stream sent by the received mini program into a media stream in a first file format supported by the SIP contact center, and sending the media stream in the first file format to the SIP contact center; the media stream in the first file format is used to trigger the SIP contact center to send the media stream in the first file format to the agent; and after the agent answers the call, converting the media stream sent by the SIP contact center into a media stream in a second file format supported by the mini program, and sending the media stream in the second file format to the mini program. The present application has the effect of realizing audio and video interaction between a mini program and a SIP contact center.

Description

Method and system for realizing interaction between applet and SIP contact center audio and video
Technical Field
The application relates to the technical field of network communication, in particular to a method for realizing audio-video interaction between an applet and an SIP contact center.
Background
With the development of SIP contact center applications, channels for accessing SIP contact centers are not limited to mobile phones or fixed-line call-in, and more APP applications integrate VOIP (Voice Over IP) functions, so that users can call in to the enterprise SIP contact center through VOIP. The communication mode can carry more application data and can also more conveniently associate user information. There are many VOIP applications SDKs based on SIP protocols on android, IOS platforms at present.
Applets have a large number of instant-to-use applications across platforms and are therefore favored by more and more users.
Aiming at the related technology, the inventor finds that the applet does not have a channel for accessing voice and video to the SIP contact center, and can not realize the data interaction between the applet and the SIP contact center.
Disclosure of Invention
In order to realize the audio-video interaction between the applet and the SIP contact center, the application provides a method for realizing the audio-video interaction between the applet and the SIP contact center.
In a first aspect, the method for implementing audio-video interaction between an applet and an SIP contact center provided by the present application adopts the following technical scheme.
A method for implementing applet interaction with SIP contact center audio video, comprising:
after receiving a call seat request sent by an applet, sending first SIP information to an SIP contact center according to the call seat request, wherein the first SIP information is used for triggering the SIP contact center to distribute the first SIP information to a seat;
After the seat answers, converting the received media stream sent by the applet into a media stream in a first file format supported by the SIP contact center, sending the media stream in the first file format to the SIP contact center, wherein the media stream in the first file format is used for triggering the SIP contact center to send the media stream in the first file format to the seat, and
After the seat answers, converting the media stream sent by the SIP contact center into a media stream in a second file format supported by the applet, and sending the media stream in the second file format to the applet, wherein the media stream sent by the SIP contact center is sent to the SIP contact center by the seat.
By adopting the technical scheme, the calling seat request sent by the small program is converted into the first SIP information of the SIP protocol, after the seat is connected, the media stream sent by the seat is converted into the media stream format supported by the small program, and the media stream sent by the small program is converted into the media stream format supported by the seat, so that the voice and video interaction between the small program and the seat is realized.
Optionally, after sending the first SIP information to the SIP contact center, the method further includes:
receiving the seat state information sent by the SIP contact center, wherein the seat state information is sent by the SIP contact center according to the response state of the seat after the seat receives the first SIP information, and
And sending the seat state information to the applet.
By adopting the technical scheme, the seat state information is sent to the applet, so that the applet can know the state of the seat conveniently.
Optionally, the applet is pre-registered, and the applet registering step includes:
Receiving a registration request sent by the applet, wherein the registration request is generated by the applet based on an account number, a user name and a password distributed by the SIP contact center;
transmitting SIP registration information to the SIP contact center based on the registration request;
Receiving the registration result information sent by the SIP contact center and
And sending the registration result information to the applet.
By adopting the technical proposal, the applet is registered in advance, and when the applet exchanges data with the seat, the seat is convenient to know the information of the applet terminal,
Optionally, after the applet is successfully registered, the method further includes:
receiving the heartbeat message sent by the applet, and
Judging whether the communication connection with the applet is successful or not based on the heartbeat information, and if not, canceling the registration state of the applet.
By adopting the technical scheme, the heartbeat message is convenient for knowing whether the applet fails or is stopped when the applet fails, so that whether the registration state of the applet is maintained is convenient for judgment.
Optionally, the method further comprises:
After receiving a call applet request sent by an SIP contact center, sending a call request to a corresponding applet based on the call applet request, wherein the call applet is received by the SIP contact center from a seat;
After the applet selects to answer, converting the received media stream sent by the applet into a media stream of a first file format supported by the SIP contact center, sending the media stream of the first file format to the SIP contact center, wherein the media stream of the first file format is used for triggering the SIP contact center to send the media stream of the first file format to a seat, and
After the applet selects to answer, converting the media stream sent by the SIP contact center into a media stream in a second file format supported by the applet, and sending the media stream in the second file format to the applet, wherein the media stream sent by the SIP contact center is sent to the SIP contact center by the seat.
By adopting the technical scheme, the seat is convenient to directly contact with registered applets.
Optionally, the method further comprises:
After receiving the hang-up request sent by the applet terminal, sending first hang-up information to the SIP contact center and stopping the conversion of the media stream, wherein the first hang-up information is used for triggering the SIP contact center to send the hang-up information to the seat, or
And after receiving the hanging-up request sent by the SIP contact center, sending second hanging-up information to the applet, and stopping the conversion of the media stream.
Optionally, converting the received media stream sent by the applet into a media stream in a first file format supported by the SIP contact center, including converting ACC-encoded voice information sent by the applet into an RTP stream of PCMA 8 k;
the method for converting the media stream sent by the SIP contact center into the media stream in the second file format supported by the applet comprises the steps of converting the RTP stream of PCMA 8k into ACC coded voice information and converting the RTP stream into H264 coded video information.
In a second aspect, the system for implementing audio-video interaction between the applet and the SIP contact center provided by the present application adopts the following technical scheme.
A system for enabling applet interaction with SIP contact center audio and video, comprising:
the receiving module is used for sending first SIP information to the SIP contact center according to the calling seat request after receiving the calling seat request sent by the applet, wherein the first SIP information is used for triggering the SIP contact center to distribute the first SIP information to the seat;
The first media stream conversion module is used for converting the received media stream sent by the applet into a media stream of a first file format supported by the SIP contact center after the seat answers, sending the media stream of the first file format to the SIP contact center, triggering the SIP contact center to send the media stream of the first file format to the seat, and
The second media stream conversion module is used for converting the media stream sent by the SIP contact center into the media stream in the second file format supported by the applet, and sending the media stream in the second file format to the applet, wherein the media stream sent by the SIP contact center is sent to the SIP contact center by the seat.
In a third aspect, the application discloses a computer device comprising a memory and a server, the memory having stored thereon a computer program loaded by the server and performing any of the methods described above.
In a fourth aspect, the present application discloses a computer readable storage medium storing a computer program capable of being loaded by a server and executing any of the methods described above.
Drawings
FIG. 1 is an exemplary system framework for implementing a method of applet interaction with SIP contact center audio video in accordance with the present application;
FIG. 2 is a flow chart of a method of implementing applet interaction with a SIP contact center audio video in accordance with the present application;
FIG. 3 is a flow chart of a applet registration step of the present application;
FIG. 4 is a system framework of a system for implementing applet interaction with an SIP contact center audio video in accordance with an embodiment of the present application;
in the figure, 401 is a receiving module, 402 is a first media stream conversion module, 403 is a second media stream conversion module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings 1 to 4 and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Applets have numerous instant use applications and are therefore favored by more and more users. In the related art, the applet does not support the UDP protocol as a media transmission channel, and the voice and video applications of the applet only support the RTMP protocol based on TCP, but most of the enterprise SIP contact centers at present are based on SIP architecture, so that the application based on the applet cannot access the SIP contact center through the standard SIP protocol.
In order to solve the technical problems, the application discloses a method for realizing audio-video interaction between an applet and an SIP contact center.
Referring to fig. 1, fig. 1 illustrates an exemplary system architecture to which the methods of the present application may be applied. The system architecture may include applet terminals, protocol conversion gateways, SIP contact centers (also referred to as call centers), and agent SIP terminals (simply referred to as agents). It should be understood that the numbers in fig. 1 are merely illustrative, and that any number of applet terminals and any number of seats may be selected as desired for implementation.
Referring to fig. 2, as an embodiment of a method for implementing audio-video interaction between an applet and a SIP contact center, the method is applied to a protocol conversion gateway, and the method includes the steps of:
And step 101, after receiving a call seat request sent by the applet, sending first SIP information to the SIP contact center according to the call seat request, wherein the first SIP information is used for triggering the SIP contact center to distribute the first SIP information to the seat.
Specifically, the user may initiate a call seat request to the protocol conversion gateway through the applet terminal according to the called object (i.e., SIP contact center or seat). After receiving the call seat request, the protocol conversion gateway sends first SIP information to the SIP contact center according to the call seat request, and the SIP contact center distributes the first SIP information to the seat.
In one embodiment of step 101, after receiving the call seat request, the protocol conversion gateway generates SIP INVITE a message (i.e., first SIP information) according to the information such as the calling number, the called number, the domain name, etc., and generates an SDP message body according to the IP of the machine in which the protocol conversion gateway is located, and then the protocol conversion gateway sends SIP INVITE a message to the SIP contact center, after receiving the SIP INVITE message, the SIP contact center allocates a seat, and sends SIP INVITE a message to the allocated seat.
Step 102, after the seat is received, converting the media stream sent by the received applet into a media stream in a first file format supported by the SIP contact center.
Specifically, since the audio and video formats supported by the applet are different from those supported by the SIP contact center, it is necessary to convert the media stream transmitted by the applet into the media stream of the first format supported by the SIP contact center after the seat is listened to.
And step 103, sending the media stream in the first file format to the SIP contact center, wherein the media stream in the first file format is used for triggering the SIP contact center to send the media stream in the first file format to the seat.
Specifically, the media stream in the first file format is sent to the SIP contact center, and the SIP contact center receives the media stream in the first file format and then sends the media stream to the previously allocated seat, so that the seat can receive the video and the audio sent by the applet.
And 104, after the seat answers, converting the media stream sent by the SIP contact center into a media stream in a second file format supported by the applet. The media stream sent by the SIP contact center is sent by the agent to the SIP contact center.
Specifically, the order in which the two parties send information is not constant when performing voice or video interaction, and thus the numerical order of step 104 and step 102 is not intended to limit the order in which step 104 follows step 102. After the media stream sent by the seat is received by the SIP contact center, the SIP contact center sends the media stream to the protocol conversion gateway, and the protocol conversion gateway converts the media stream sent by the SIP contact center into a media stream in a second file format.
Step 105, the media stream in the second file format is sent to the applet.
Specifically, the protocol conversion gateway converts the media stream sent by the SIP contact center into the media stream in the second file format, and sends the media stream to the applet, so that the applet can receive the voice and video information sent by the seat, and further data interaction of voice and video between the applet and the seat is realized.
As another implementation mode of the method for realizing the interaction of the applet and the audio and video of the SIP contact center, the method for converting the received media stream sent by the applet into the media stream in the first file format supported by the SIP contact center comprises the steps of converting ACC-coded voice information sent by the applet into RTP stream of PCMA 8k, and converting H264-coded video information sent by the applet into RTP stream;
converting the media stream sent by the SIP contact center into the media stream in the second file format supported by the applet comprises converting the RTP stream of PCMA 8k into ACC coded voice information and converting the RTP stream into H264 coded video information.
Specifically, after the seat is turned on, the protocol conversion gateway starts to establish a media transmission channel. The applet terminal pushes the collected media streams (voice and video) to the protocol conversion gateway through the live-pusher component (according to the difference of the media stream collection components supported by the applet, the live-pusher component can also be replaced by other media stream collection components), and meanwhile, the applet terminal receives and plays the media streams sent by the protocol conversion gateway through the live-player component (according to the difference of the audio and video play components supported by the applet, the live-player component can be replaced by other audio and video play components).
In one embodiment, if the voice code supported by the applet is AAC and the video code supported by the applet is H264, the SIP switch of the SIP contact center does not support AAC code, and the voice packet transmission protocol of the SIP switch is RTP, so that the protocol conversion gateway needs to implement the interconversion from the RTMP data stream to the RTP protocol and simultaneously needs to interconvert the AAC voice code and the voice PCMA code to implement the voice and video interaction between the applet and the seat.
The applet pushes the collected media stream (voice and video) to a protocol conversion gateway through a live-pusher component, after the protocol conversion gateway receives the applet and sends the media stream, the AAC format voice stream is converted into an RTP stream of PCMA 8k, the RTP stream of PCMA 8k is sent to an SIP switch of an SIP contact center, the protocol conversion gateway directly converts the H264 format video stream into an RTP stream, and the RTP stream is sent to the SIP switch of the SIP contact center. The protocol conversion gateway may send the ip and port of the server RTP in the SIP 200OK SDP message via the UDP protocol. Meanwhile, the protocol conversion gateway needs to monitor the RTP media stream sent by the SIP switch from the SIP contact center, the voice code sent by the SIP contact center is PCMA 8k, at the moment, the protocol conversion gateway needs to convert the media stream into the media stream of the RTMP protocol, and meanwhile, the converted media stream is pushed to the RTMP url2 address, and the applet terminal monitors the media stream from the RTMP url2 through the live-layer component, so that voice sent by the seat terminal is played by the applet terminal, and voice interaction is realized. Because the call in the video information contains the voice information, if the SIP switch supports H264 coding, the video information is not required to be transcoded, and the protocol conversion gateway combines the voice stream and the video stream into an RTMP stream to be pushed to the applet, so that the video interaction is realized.
As another embodiment of the method for implementing the interaction between the applet and the audio and video of the SIP contact center, after sending the first SIP information to the SIP contact center, the method further includes the following steps:
The method comprises the steps of receiving the position state information sent by an SIP contact center, wherein the position state information is sent by the SIP contact center according to the response state of the position after the position receives the first SIP information, and
And sending the seat state information to the applet.
Specifically, after receiving the call seat request, the protocol conversion gateway creates SIP INVITE a message, and then the protocol conversion gateway sends SIP INVITE a message to the SIP contact center, after receiving the SIP INVITE a message, the SIP contact center allocates a seat, and sends SIP INVITE a message to the allocated seat. The protocol conversion gateway forwards corresponding state information to the applet through websocket information according to the state of the seat response (ringing, answering, hanging up and other states). If the applet call fails, the protocol conversion gateway sends a corresponding error code (such as no number exists, no answer by the called person, etc.) to the applet, and the applet terminal displays the call state according to the seat state information sent by the protocol conversion gateway, so that the applet terminal can know the current communication state conveniently.
As another embodiment of a method for implementing applet interaction with SIP contact center audio video, the applet is pre-registered. The applet registering step includes the steps of:
step 201, receiving a registration request sent by an applet, wherein the registration request is generated by the applet based on an account number, a user name and a password distributed by an SIP contact center;
Step 202, SIP registration information is sent to an SIP contact center based on a registration request;
Step 203, receiving the registration result information sent by the SIP contact center, and
Step 204, the registration result information is sent to the applet.
Specifically, the applet generates a registration request based on an account number assigned by the SIP contact center, a set user name, and a set password. The applet sends the registration request to the protocol conversion gateway via websocket. After receiving the registration request, the protocol conversion gateway establishes a new SIP UAC object to form SIP registration information (i.e. SIP REGISTER message) of the extension account and the password, and then the protocol conversion gateway sends the SIP registration information to the SIP switch of the SIP contact center through the SIP UDP protocol. The protocol conversion gateway receives the registration result information sent by the SIP contact center and forwards the registration result information to the applet terminal through websocket information. The applet displays the success or failure of registration in the applet terminal according to the registration result.
As another embodiment of the method for implementing the interaction between the applet and the SIP contact center audio and video, after the applet is successfully registered, the method further includes:
receiving heartbeat messages sent by the applet, and
And judging whether the communication connection with the applet is successful or not based on the heartbeat information, and if not, canceling the registration state of the applet.
Specifically, the successfully registered applet needs to periodically send a heartbeat message to the protocol conversion gateway to keep the websocket connection clear, where the heartbeat message (Heartbeat Message) is a message sent from the sender to the receiver, and this message allows the receiver to determine whether and when the sender has failed or terminated. The protocol conversion gateway will save the check certificate when the user registers, and if the heartbeat information sent by the applet is not broken, the protocol conversion gateway will periodically send SIP REGISTER a request to the applet. After detecting that the connection of the applet is disconnected, the protocol conversion gateway automatically sends UnRegister a request to the SIP switch to cancel the registration state of the applet terminal.
As another embodiment of the method for implementing the interaction between the applet and the SIP contact center audio and video, the method for implementing the interaction between the applet and the SIP contact center audio and video further includes:
After receiving a call applet request sent by the SIP contact center, sending a call request to a corresponding applet based on the call applet request;
After the applet selects to answer, converting the received media stream sent by the applet into a media stream of a first file format supported by the SIP contact center, and sending the media stream of the first file format to the SIP contact center, wherein the media stream of the first file format is used for triggering the SIP contact center to send the media stream of the first file format to the seat, and
After the applet is selected to answer, converting the media stream sent by the SIP contact center into the media stream in the second file format supported by the applet, and sending the media stream in the second file format to the applet, wherein the media stream sent by the SIP contact center is sent to the SIP contact center by a seat.
Specifically, for applet terminals that are successfully registered, the agent of the SIP contact center may actively outbound the applet. The protocol conversion gateway receives a call applet request (Invite request) from the SIP contact center, converts the call applet request into a call request (i.e. an incoming call ringing request), sends the call request to the applet terminal through the websocket protocol, and after receiving the call request, the applet terminal can bounce the screen to allow the user to select to be switched on or reject, if the applet terminal is switched on, the applet starts to call the live-layer component and the live-pusher component to accept and send a media stream, and the conversion process of the media stream is consistent with the process of calling the seat of the SIP contact center as a calling party, which is not repeated herein. Through the arrangement, the interaction of voice and video between the seat end and registered applets is facilitated.
As another implementation mode of the method for realizing the interaction of the applet and the audio and video of the SIP contact center, after receiving the hang-up request sent by the applet terminal, the method sends first hang-up information to the SIP contact center and stops the conversion of the media stream, wherein the first hang-up information is used for triggering the SIP contact center to send the hang-up information to the seat, or
And after receiving the hanging-up request sent by the SIP contact center, sending second hanging-up information to the applet, and stopping the conversion of the media stream.
Specifically, when the seat or the applet transmits the hang-up request, the hang-up request is converted into information of a corresponding communication protocol through the protocol conversion gateway. For example, the seat end sends a hang-up request, the protocol conversion gateway converts the hang-up request into information of websocket protocol and then sends the information to the applet terminal, and simultaneously, the transmission of RTP message and the transmission of RTMP media stream are closed. When the applet terminal sends the hang-up request, the protocol conversion gateway converts the hang-up request into information of the SIP protocol and sends the information to the SIP switch, and simultaneously, the transmission of the RTP message and the transmission of the RTMP media stream are closed.
Referring to fig. 4, the present application further provides a system for implementing audio/video interaction between an applet and a SIP contact center, including:
The receiving module 401 is configured to send first SIP information to the SIP contact center according to the call seat request after receiving the call seat request sent by the applet;
a first media stream conversion module 402, configured to convert, after the seat is in answer, a media stream sent by the received applet into a media stream in a first file format supported by the SIP contact center, send the media stream in the first file format to the SIP contact center, the media stream in the first file format is used to trigger the SIP contact center to send the media stream in the first file format to the seat, and
The second media stream conversion module 403 is configured to convert a media stream sent by the SIP contact center into a media stream in a second file format supported by the applet, and send the media stream in the second file format to the applet, where the media stream sent by the SIP contact center is sent by the agent to the SIP contact center.
The embodiment of the application also discloses computer equipment.
Specifically, the device comprises a memory and a server, wherein the memory stores a computer program which can be loaded by the server and execute any method for realizing the audio-video interaction between the applet and the SIP contact center.
The embodiment of the application also discloses a computer readable storage medium.
Specifically, the computer readable storage medium stores a computer program that can be loaded by a server and execute any of the methods for implementing the audio/video interaction between an applet and a SIP contact center, and includes, for example, a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, and other various media capable of storing program codes.
The foregoing description of the preferred embodiments of the application is not intended to limit the scope of the application in any way, including the abstract and drawings, in which case any feature disclosed in this specification (including abstract and drawings) may be replaced by alternative features serving the same, equivalent purpose, unless expressly stated otherwise. That is, each feature is one example only of a generic series of equivalent or similar features, unless expressly stated otherwise.

Claims (7)

1.一种实现小程序与SIP联络中心音视频交互的方法,其特征在于,包括:1. A method for realizing audio and video interaction between a mini program and a SIP contact center, characterized by comprising: 在接收到小程序发送的呼叫座席请求后,根据所述呼叫座席请求发送第一SIP信息至SIP联络中心;所述第一SIP信息用于触发所述SIP联络中心将所述第一SIP信息分配至座席;具体地,协议转换网关收到呼叫座席请求后,根据主叫号码、被叫号码、域名生成SIPInvite消息,所述SIP Invite消息就是第一SIP信息,同时根据协议转换网关所在机器的IP生成SDP消息体,此后协议转换网关向SIP联络中心发送SIP Invite消息;SIP联络中心收到SIP Invite消息后分配座席,将SIP Invite消息发送给分配的座席;After receiving the call seat request sent by the applet, a first SIP message is sent to the SIP contact center according to the call seat request; the first SIP message is used to trigger the SIP contact center to assign the first SIP message to the seat; specifically, after receiving the call seat request, the protocol conversion gateway generates a SIP Invite message according to the calling number, the called number, and the domain name, and the SIP Invite message is the first SIP message. At the same time, an SDP message body is generated according to the IP of the machine where the protocol conversion gateway is located. After that, the protocol conversion gateway sends a SIP Invite message to the SIP contact center; after receiving the SIP Invite message, the SIP contact center assigns an agent and sends the SIP Invite message to the assigned agent; 发送第一SIP信息至SIP联络中心后,还包括:接收所述SIP联络中心发送的座席状态信息;所述座席状态信息是所述SIP联络中心在所述座席接收到所述第一SIP信息后,根据所述座席的响应状态发出的;将所述座席状态信息发送至所述小程序;After sending the first SIP message to the SIP contact center, the method further includes: receiving agent status information sent by the SIP contact center; the agent status information is sent by the SIP contact center according to the response status of the agent after the agent receives the first SIP message; and sending the agent status information to the mini program; 在所述座席接听后,将接收的所述小程序发送的媒体流转换为所述SIP联络中心支持的第一文件格式的媒体流;After the agent answers the call, converting the received media stream sent by the applet into a media stream in a first file format supported by the SIP contact center; 将所述第一文件格式的媒体流发送至所述SIP联络中心;所述第一文件格式的媒体流用于触发所述SIP联络中心将所述第一文件格式的媒体流发送至此前分配的座席;以及,sending the media stream in the first file format to the SIP contact center; the media stream in the first file format is used to trigger the SIP contact center to send the media stream in the first file format to the previously assigned seat; and, 在所述座席接听后,将所述SIP联络中心发送的媒体流转换为所述小程序支持的第二文件格式的媒体流,将所述第二文件格式的媒体流发送至所述小程序;所述SIP联络中心发送的所述媒体流是所述座席发送给SIP联络中心的;After the agent answers the call, the media stream sent by the SIP contact center is converted into a media stream in a second file format supported by the applet, and the media stream in the second file format is sent to the applet; the media stream sent by the SIP contact center is sent by the agent to the SIP contact center; 所述方法还包括:The method further comprises: 接收到SIP联络中心发送的呼叫小程序请求后,基于所述呼叫小程序请求向对应的小程序发送通话请求;所述呼叫小程序请求是SIP联络中心从座席处接收的;After receiving a call applet request sent by the SIP contact center, sending a call request to the corresponding applet based on the call applet request; the call applet request is received by the SIP contact center from the agent; 在所述小程序选择接听后,将接收的所述小程序发送的媒体流转换为所述SIP联络中心支持的第一文件格式的媒体流,将所述第一文件格式的媒体流发送至所述SIP联络中心;所述第一文件格式的媒体流用于触发所述SIP联络中心将所述第一文件格式的媒体流发送至座席;以及,After the mini-program selects to answer the call, converting the received media stream sent by the mini-program into a media stream in a first file format supported by the SIP contact center, and sending the media stream in the first file format to the SIP contact center; the media stream in the first file format is used to trigger the SIP contact center to send the media stream in the first file format to the agent; and, 在所述小程序选择接听后,将所述SIP联络中心发送的媒体流转换为所述小程序支持的第二文件格式的媒体流,将所述第二文件格式的媒体流发送至所述小程序;所述SIP联络中心发送的所述媒体流是所述座席发送给SIP联络中心的;After the mini program chooses to answer the call, the media stream sent by the SIP contact center is converted into a media stream in a second file format supported by the mini program, and the media stream in the second file format is sent to the mini program; the media stream sent by the SIP contact center is sent by the agent to the SIP contact center; 具体地,对于注册成功的小程序终端,SIP联络中心的座席主动外呼小程序;协议转换网关接收到来自SIP联络中心的呼叫小程序请求,将呼叫小程序请求转化为通话请求,即来电振铃请求,通过websocket协议将通话请求发送给小程序终端,小程序终端收到通话请求后会弹屏让用户选择接通或者拒绝,如果小程序终端接通,小程序开始调用liveplayer组件和livepusher组件接受和发送媒体流;Specifically, for the mini program terminal that has successfully registered, the agent of the SIP contact center actively calls the mini program; the protocol conversion gateway receives the mini program call request from the SIP contact center, converts the mini program call request into a call request, that is, an incoming call ringing request, and sends the call request to the mini program terminal through the websocket protocol. After receiving the call request, the mini program terminal will pop up a screen to let the user choose to connect or reject. If the mini program terminal connects, the mini program starts to call the liveplayer component and the livepusher component to receive and send media streams; 所述小程序是预先注册的,所述小程序注册步骤包括:The mini program is pre-registered, and the mini program registration steps include: 接收所述小程序发送的注册请求;所述注册请求是所述小程序基于所述SIP联络中心分配的账号、用户名及密码生成的;receiving a registration request sent by the mini program; the registration request is generated by the mini program based on the account, user name and password assigned by the SIP contact center; 基于所述注册请求向所述SIP联络中心发送SIP注册信息;Sending SIP registration information to the SIP contact center based on the registration request; 接收所述SIP联络中心发送的注册结果信息;以及,receiving registration result information sent by the SIP contact center; and, 将所述注册结果信息发送至所述小程序。The registration result information is sent to the applet. 2.根据权利要求1所述的方法,其特征在于,在所述小程序注册成功后,还包括:2. The method according to claim 1, characterized in that after the mini program is successfully registered, it also includes: 接收所述小程序发送的心跳消息;以及,receiving a heartbeat message sent by the applet; and, 基于所述心跳消息判断与所述小程序的通信连接是否成功;如果否,则取消所述小程序的注册状态。Based on the heartbeat message, it is determined whether the communication connection with the applet is successful; if not, the registration status of the applet is cancelled. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, characterized in that the method further comprises: 在接收到所述小程序终端发送的挂断请求后,发送第一挂断信息至所述SIP联络中心,并停止媒体流的转换;所述第一挂断信息用于触发所述SIP联络中心将所述挂断信息发送至所述座席;或者,After receiving the hang-up request sent by the mini-program terminal, sending a first hang-up message to the SIP contact center and stopping the conversion of the media stream; the first hang-up message is used to trigger the SIP contact center to send the hang-up message to the agent; or, 在接收到所述SIP联络中心发送的挂断请求后,发送第二挂断信息至所述小程序,并停止媒体流的转换。After receiving the hang-up request sent by the SIP contact center, a second hang-up message is sent to the applet, and the conversion of the media stream is stopped. 4.根据权利要求1所述的方法,其特征在于:4. The method according to claim 1, characterized in that: 将接收的所述小程序发送的媒体流转换为所述SIP联络中心支持的第一文件格式的媒体流,包括:将所述小程序发送的ACC编码的语音信息转换PCMA 8k的RTP流;将所述小程序发送的H264编码的视频信息转换为RTP流;Converting the received media stream sent by the applet into a media stream of a first file format supported by the SIP contact center, including: converting the ACC-encoded voice information sent by the applet into a PCMA 8k RTP stream; converting the H264-encoded video information sent by the applet into an RTP stream; 将所述SIP联络中心发送的媒体流转换为所述小程序支持的第二文件格式的媒体流,包括:将PCMA 8k的RTP流转换为ACC编码的语音信息;将RTP流转换为H264编码的视频信息。Converting the media stream sent by the SIP contact center into a media stream in a second file format supported by the applet, including: converting the RTP stream of PCMA 8k into ACC-encoded voice information; converting the RTP stream into H264-encoded video information. 5.一种实现小程序与SIP联络中心音视频交互的系统,其特征在于,基于权利要求1-4任一所述的方法,包括:5. A system for realizing audio and video interaction between a mini program and a SIP contact center, characterized in that it is based on the method described in any one of claims 1 to 4, comprising: 接收模块,用于:在接收到小程序发送的呼叫座席请求后,根据所述呼叫座席请求发送第一SIP信息至SIP联络中心;所述第一SIP信息用于触发所述SIP联络中心将所述第一SIP信息分配至座席;A receiving module, configured to: after receiving a call seat request sent by the mini program, send a first SIP message to a SIP contact center according to the call seat request; the first SIP message is used to trigger the SIP contact center to assign the first SIP message to the seat; 第一媒体流转换模块,用于:在所述座席接听后,将接收的所述小程序发送的媒体流转换为所述SIP联络中心支持的第一文件格式的媒体流,将所述第一文件格式的媒体流发送至所述SIP联络中心;所述第一文件格式的媒体流用于触发所述SIP联络中心将所述第一文件格式的媒体流发送至座席;以及,A first media stream conversion module is used to: after the agent answers the call, convert the received media stream sent by the applet into a media stream in a first file format supported by the SIP contact center, and send the media stream in the first file format to the SIP contact center; the media stream in the first file format is used to trigger the SIP contact center to send the media stream in the first file format to the agent; and 第二媒体流转换模块,用于:将所述SIP联络中心发送的媒体流转换为所述小程序支持的第二文件格式的媒体流,将所述第二文件格式的媒体流发送至所述小程序;所述SIP联络中心发送的所述媒体流是所述座席发送给SIP联络中心的。The second media stream conversion module is used to: convert the media stream sent by the SIP contact center into a media stream in a second file format supported by the mini-program, and send the media stream in the second file format to the mini-program; the media stream sent by the SIP contact center is sent by the agent to the SIP contact center. 6.一种计算机设备,其特征在于:包括存储器和服务器,所述存储器上存储有被服务器加载并执行的如权利要求1至4中任一方法的计算机程序。6. A computer device, characterized in that it comprises a memory and a server, wherein the memory stores a computer program according to any one of the methods of claims 1 to 4 which is loaded and executed by the server. 7.一种计算机可读存储介质,其特征在于,存储有能够被服务器加载并执行如权利要求1至4中任一方法的计算机程序。7. A computer-readable storage medium, characterized in that it stores a computer program that can be loaded by a server and execute any one of the methods according to claims 1 to 4.
CN202210254995.9A 2022-03-15 2022-03-15 Method and system for realizing interaction between applet and SIP contact center audio and video Active CN114710473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210254995.9A CN114710473B (en) 2022-03-15 2022-03-15 Method and system for realizing interaction between applet and SIP contact center audio and video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210254995.9A CN114710473B (en) 2022-03-15 2022-03-15 Method and system for realizing interaction between applet and SIP contact center audio and video

Publications (2)

Publication Number Publication Date
CN114710473A CN114710473A (en) 2022-07-05
CN114710473B true CN114710473B (en) 2024-11-29

Family

ID=82167937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210254995.9A Active CN114710473B (en) 2022-03-15 2022-03-15 Method and system for realizing interaction between applet and SIP contact center audio and video

Country Status (1)

Country Link
CN (1) CN114710473B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514739B (en) * 2022-11-09 2023-04-28 北京拓课网络科技有限公司 Method and device for multimedia data interaction between applet platform and online classroom
CN116346985A (en) * 2023-02-27 2023-06-27 上海井星信息科技有限公司 A method, system, medium and device for capturing and recording multi-platform packets
CN116233048A (en) * 2023-03-14 2023-06-06 北京有竹居网络技术有限公司 Customer service session request processing method and related equipment
CN117596231B (en) * 2024-01-18 2024-05-28 深圳星网信通科技股份有限公司 Communication method, terminal device, system and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306430A (en) * 2011-08-04 2012-01-04 中国工商银行股份有限公司 Self-help system and equipment for realizing AV (audio/video) integration
CN110740217A (en) * 2019-09-12 2020-01-31 平安科技(深圳)有限公司 multi-channel data integration interaction method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8259923B2 (en) * 2007-02-28 2012-09-04 International Business Machines Corporation Implementing a contact center using open standards and non-proprietary components
CN106921613B (en) * 2015-12-24 2020-01-10 华为数字技术(苏州)有限公司 Method and system for signaling transmission
CN110475029A (en) * 2018-05-09 2019-11-19 北京京东尚科信息技术有限公司 The processing method and processing device of call business, computer storage medium, electronic equipment
CN110636177B (en) * 2019-09-29 2021-02-19 广西东信易通科技有限公司 Distributed call center system with request and call separated
CN111263016A (en) * 2020-01-10 2020-06-09 深圳追一科技有限公司 Communication assistance method, communication assistance device, computer equipment and computer-readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306430A (en) * 2011-08-04 2012-01-04 中国工商银行股份有限公司 Self-help system and equipment for realizing AV (audio/video) integration
CN110740217A (en) * 2019-09-12 2020-01-31 平安科技(深圳)有限公司 multi-channel data integration interaction method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114710473A (en) 2022-07-05

Similar Documents

Publication Publication Date Title
CN114710473B (en) Method and system for realizing interaction between applet and SIP contact center audio and video
US8447019B2 (en) Method and system for providing call screening in a packet-switched network
US8718238B2 (en) Method and a system for implementing a multimedia ring back tone service
US8369311B1 (en) Methods and systems for providing telephony services to fixed and mobile telephonic devices
CN101242663B (en) Call switching method, system and equipment based on same-number mobile terminal and soft terminal
TWI401927B (en) Method for associating a telephone call with a conversation according to a computer protocol (such as SIP) and computer readable medium
US20060229093A1 (en) Push to talk over cellular (half-duplex) to full-duplex voice conferencing
KR100905608B1 (en) Service providing method in communication system based on IP multimedia subsystem
US8184559B2 (en) Key telephone system using a SIP and method of receiving and answering an incoming call for a representative group in the key telephone system
KR20070006894A (en) Communication method
WO2001039441A1 (en) Internet protocol telephony voice/video message deposit and retrieval
US20060230161A1 (en) System and method for providing service in a communication system
US7480260B1 (en) Method and apparatus for implementing a presence-based universal camp-on feature in packet-based telephony systems
JP2007006047A (en) Voice IP telephone method and apparatus.
CN105530389A (en) Voice message method and device based on IMS network
US20150222753A1 (en) Method for Handling a Call from a Calling Subscriber Towards a Called Subscriber
US7809839B2 (en) Method and system for call set-up between mobile communication terminals
US7738638B1 (en) Voice over internet protocol call recording
JP4973172B2 (en) Call management system and message processing server system
US9071690B2 (en) Call transfer processing in SIP mode
KR101069530B1 (en) Device and method for receiving call path in next generation communication network, multimedia information service system and method using same
CN102664863B (en) Method, device, and system for realizing call waiting by user equipment
US8121280B1 (en) Expedited call setup
CN115361362A (en) IMS-based coal mine call system and method
US20080137647A1 (en) VoIP terminal and method for providing multi-call service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant