CN111756694B - Dynamic processing method of session media, storage medium and server - Google Patents
Dynamic processing method of session media, storage medium and server Download PDFInfo
- Publication number
- CN111756694B CN111756694B CN202010429845.8A CN202010429845A CN111756694B CN 111756694 B CN111756694 B CN 111756694B CN 202010429845 A CN202010429845 A CN 202010429845A CN 111756694 B CN111756694 B CN 111756694B
- Authority
- CN
- China
- Prior art keywords
- media
- calling
- service
- called
- media service
- 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
Links
- 238000003672 processing method Methods 0.000 title abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 35
- 238000004590 computer program Methods 0.000 claims description 2
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 5
- 230000011664 signaling Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 2
- 102100035373 Cyclin-D-binding Myb-like transcription factor 1 Human genes 0.000 description 1
- 101000804518 Homo sapiens Cyclin-D-binding Myb-like transcription factor 1 Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/1045—Proxies, e.g. for session initiation protocol [SIP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
Abstract
The invention discloses a session media dynamic processing method, a storage medium and a server, wherein the method comprises the following steps: receiving a call request, acquiring calling and called information, and acquiring a media service level according to the calling and called information; and selecting one working mode of a media agent or a media bypass according to the media service grade, and processing media stream data in the conversation process. The invention has at least the following beneficial effects: by analyzing the calling and called information, different processing methods are used for dynamically processing the media stream data, so that the occupation of system resources can be effectively reduced while the normal conversation is ensured, and the efficiency of the system is improved; unnecessary economic payment is avoided, and economic cost is saved.
Description
Technical Field
The invention relates to the technical field of Session Initiation Protocol (SIP) conversation, in particular to a session media dynamic processing method, a storage medium and a server.
Background
The SIP server may implement different methods in terms of media processing during a session: media bypass, media proxy, media negotiation transcoding, etc., which is typically set and fixed at system build time. Different processing modes have different expenses on system resources, and under the media bypass, the SIP server only needs proxy signaling, so that the signaling data volume is small, and the expenses on the system are also small. When the SIP server performs media proxy, the relay of media stream data consumes a lot of server system resources.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a dynamic processing method of session media, which can effectively reduce the consumption of system resources.
The invention also provides a storage medium for storing the session media dynamic processing method.
The invention also provides a server using the session media dynamic processing method.
The session media dynamic processing method according to the embodiment of the first aspect of the invention comprises the following steps: receiving a call request, acquiring calling and called information, and acquiring a media service level according to the calling and called information; and selecting one working mode of a media agent or a media bypass according to the media service level, and processing media stream data in the conversation process.
The session media dynamic processing method according to the embodiment of the invention at least has the following beneficial effects: by analyzing the calling and called information, different processing methods are used for dynamically processing the media stream data, so that the occupation of system resources can be effectively reduced and the system efficiency is improved while the normal conversation is ensured; unnecessary economic payment is avoided, and economic cost is saved.
According to some embodiments of the invention, the method for acquiring the media service level comprises: and obtaining service customization data of the calling account and the called account according to the calling information and the called information, and obtaining the media service level according to the service customization data.
According to some embodiments of the invention, the method of deriving the media service level from the traffic customization data comprises: judging whether the service customization data comprises a media service or not; if the service customization data comprises the media service, the media service level is a necessary agent; if the service customization data does not include the media service, the media service level is a non-essential agent.
According to some embodiments of the present invention, the method for determining whether the service customization data includes the media service comprises: at least one of a table lookup or a rule matching.
According to some embodiments of the invention, the media service comprises: DTMF dialing, recording and voice recognition.
According to some embodiments of the invention, the media proxy is implemented by modifying the SDP information of the calling and called parties. The server modifies the SDP information to cause the media stream data to flow through the stream itself to implement the media proxy.
According to some embodiments of the invention, the method for acquiring the media service level further comprises: acquiring IP information of the calling and called telephones according to the calling and called information, determining IP classification, and judging whether the calling and called telephones are in the same local area network; and if the calling party and the called party are in the same local area network, the media service level is a non-essential agent.
According to some embodiments of the invention, further comprising: and if the media service level is the unnecessary agent, performing media agent on the media stream data according to a preset agent switch state.
A storage medium according to an embodiment of the second aspect of the invention has stored thereon a computer program which, when executed by a processor, performs the method of an embodiment of the first aspect of the invention.
The server according to the third embodiment of the present invention includes a processor, configured to execute the method according to the first embodiment of the present invention, and configured to perform corresponding processing on media stream data during a call.
The server according to the embodiment of the present invention may dynamically adjust the media processing method according to the caller/callee information, and has at least the following advantages as the same as the embodiments of the first aspect of the present invention.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic illustration of the method steps of an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating one of the detailed steps of the method according to the embodiment of the present invention;
FIG. 3 is a second detailed step diagram of the method according to the embodiment of the present invention;
FIG. 4 is a diagram illustrating a media agent in a method according to an embodiment of the invention;
fig. 5 is a schematic diagram of media bypassing in the method according to the embodiment of the present invention.
Reference numerals:
a phone 100 and a SIP server 200.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
The noun explains:
SIP protocol: SIP (Session Initiation Protocol) is a multimedia communication Protocol established by IETF (Internet Engineering Task Force).
SDP: session Description Protocol, a Session Description format Protocol.
DTMF dialing: double Tone Multiple Frequency (DTMF) is a coding technique that uses two specific single Tone combined signals to represent a digital signal to perform its function.
Referring to fig. 1, the method of the embodiment of the present invention mainly includes: the server receives the call request, acquires the calling party information and the called party information (hereinafter, called party information) in the call request, and determines the media service level according to the calling party information and the called party information; and determining a corresponding working mode according to the media service level, selecting one of a media agent or a media bypass, and performing corresponding processing on the media stream data in the conversation process.
Referring to fig. 2, in one embodiment of the present invention, an SIP server receives a call request, acquires calling and called information, acquires calling and called account information according to the calling and called information, acquires service customization data of a calling party account and a called party account from a database, and determines whether at least one of the calling and called parties customizes a media service, if at least one of the parties customizes the media service, the media service level is a necessary proxy, the SIP server will operate in a media proxy mode for the call, and a final effect diagram refers to fig. 4, that is, after a call connection is established between phone terminals 100, media stream data and signaling in the call process are transmitted through an SIP server 200. The method for judging whether the media service is customized according to the service customization data comprises the following steps: through table lookup or rule matching, it is determined whether a customized service includes a call service that must be completed through a media proxy, for example: DMTF dialing, recording service, voice recognition, and the like. If both parties do not customize the media service, the media service level is an unnecessary agent, in some embodiments of the present invention, the SIP server 200 only transmits the signaling generated in the call process for the call that will work in the media bypass mode, the media stream data generated in the call process does not pass through the SIP server 200, and the point-to-point transmission between the phone terminals is directly realized, and the final effect is shown in fig. 5. In other embodiments of the present invention, further comprising: some media proxy switches are set in the SIP server 200 in advance according to the types of call services, and the media service classes of the call services are unnecessary proxies, that is, media proxy may be performed or proxy may not be performed. The SIP server finds that at least one party of the calling party and the called party customizes a call service with a media service level as an unnecessary proxy, and if a corresponding media proxy switch is turned on, the SIP server processes the call in a media proxy mode; otherwise, the call is processed in a media bypassing way.
Referring to fig. 3, in the second embodiment of the present invention, an SIP server receives a call request, acquires calling and called information, acquires calling and called account information according to the calling and called information, acquires service customization data of a calling party account and a called party account from a database, and determines whether at least one of the calling and called parties customizes a media service, if at least one of the parties customizes the media service, the media service level is a necessary proxy, and the SIP server will operate in a media proxy mode for the call; otherwise, further judging whether the call services which are customized and opened by the calling party and the called party comprise the call services of which the preset proxy switch state is open, if so, processing the call in a media proxy mode by the SIP server. In this embodiment of the present invention, it is also determined whether to restrict media proxies within the same lan, i.e., whether the corresponding default proxy switch state is off. If the calling party is closed, IP information of the calling party and the called party is extracted from the calling party and the called party information acquired from the call request, IP classification is determined, and whether the calling party and the called party are in the same local area network or not is judged. If the two terminals are in the same local area network, the SIP server does not need a media proxy, and the final effect is as shown in fig. 5, that is, the SIP server only transmits signaling, and media stream data is directly transmitted between the phone terminals 100. If the calling and called telephone IP are in the same LAN but the corresponding preset proxy switch is already turned on, obviously, the SIP server will process the call in the media proxy mode. It should be understood that, in some embodiments of the present invention, it may also be possible to first determine whether the calling IP and the called IP are in the same lan, and then determine the state of the corresponding preset switch.
In the embodiment of the invention, the media service level of the calling and called communication services of the same local area network can be regarded as the unnecessary agent, so that the corresponding preset agent switch can be uniformly managed with the preset agent switches of the communication services of which the other media service levels are the unnecessary agents. In some embodiments of the invention, an interactive interface is provided, and an agent condition is preset by checking or not, so that the SIP server is controlled to perform dynamic media processing aiming at a single call; in other embodiments of the present invention, an editing interface is provided to directly preset proxy conditions and control the SIP server to perform dynamic media processing. The SIP server receives the call request, acquires service customization data according to the calling and called information, judges whether at least one of the calling and called parties customizes the media service, and performs media proxy on the call process if any party customizes the media service; otherwise, according to the preset proxy condition (which can be expressed as a configuration script or a switch form, etc.), judging the corresponding condition, if the condition is met, processing the call in a media proxy mode; otherwise, the media is processed in a media bypass mode. Taking the same local area network IP as an example, if the corresponding preset proxy switch state is off (or the preset condition includes that media proxy is restricted to be used in the same local area), the SIP server needs to check whether the calling and called IPs are in the same local area network, and if the calling and called IPs are in the same local area network, the media detours.
When the SIP server determines that the call is processed in a media proxy mode, the SDP information of a calling party and a called party is modified firstly, so that media stream data flows through the SIP server, and the media stream data is forwarded to the calling party and the called party through the SIP server at the moment, and reference is made to fig. 4; if the media bypass is used, only the called party is called directly without modifying the SDP information, and finally the media stream data is transmitted directly between the calling and called parties, as shown in fig. 5.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.
Claims (8)
1. A method for dynamically processing session media is characterized by comprising the following steps:
receiving a call request and acquiring calling and called information;
obtaining service customization data of a calling account and a called account according to the calling information and the called information, and obtaining a media service grade according to the service customization data, wherein the service customization data comprises information representing whether a user account customizes a media service or not; the method for acquiring the media service level further comprises the following steps: acquiring IP information of the calling and called telephones according to the calling and called information, determining IP classification, and judging whether the calling and called telephones are in the same local area network; if the calling party and the called party are in the same local area network, the media service level is a non-essential agent;
and selecting one working mode of a media agent or a media bypass according to the media service level, and processing media stream data in the conversation process.
2. The method of claim 1, wherein the step of deriving the media service level according to the service customization data comprises:
judging whether the service customization data comprises a media service or not;
if the service customization data comprises the media service, the media service level is a necessary agent;
if the service customization data does not include the media service, the media service level is a non-essential agent.
3. The method of claim 2, wherein the step of determining whether the media service is included in the service customization data comprises: at least one of a table lookup or a rule matching.
4. The method for dynamically processing session media according to claim 2, wherein the media service includes: DTMF dialing, recording and voice recognition.
5. The method for dynamically processing session media according to claim 1 or 2, further comprising: and if the media service level is the unnecessary agent, performing the media agent on the media stream data according to a preset agent switch state.
6. The method of claim 1, wherein the media proxy is implemented by modifying SDP information of a caller or a callee.
7. A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1 to 6.
8. A server, characterized in that it comprises a processor for executing the method of any one of claims 1 to 6, and correspondingly processing the media stream data during the call.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010429845.8A CN111756694B (en) | 2020-05-20 | 2020-05-20 | Dynamic processing method of session media, storage medium and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010429845.8A CN111756694B (en) | 2020-05-20 | 2020-05-20 | Dynamic processing method of session media, storage medium and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111756694A CN111756694A (en) | 2020-10-09 |
CN111756694B true CN111756694B (en) | 2022-06-24 |
Family
ID=72673257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010429845.8A Active CN111756694B (en) | 2020-05-20 | 2020-05-20 | Dynamic processing method of session media, storage medium and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111756694B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1491014A (en) * | 2002-10-16 | 2004-04-21 | 深圳市中兴通讯股份有限公司 | Method for realizing user's self difined recording by media gate control protocol |
CN101656715A (en) * | 2008-08-21 | 2010-02-24 | 华为技术有限公司 | Method, system and device for media bypass |
CN103685234A (en) * | 2013-11-14 | 2014-03-26 | 大唐移动通信设备有限公司 | IMS media business data processing method and device |
CN110913084A (en) * | 2019-12-18 | 2020-03-24 | 迈普通信技术股份有限公司 | Session recording method and device, electronic equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
ATE281734T1 (en) * | 2002-08-08 | 2004-11-15 | Cit Alcatel | LEGAL INTERCEPTION FOR VOIP CALLS IN AN IP COMMUNICATION NETWORK |
US8687640B2 (en) * | 2011-03-22 | 2014-04-01 | Metaswitch Networks Ltd. | Controlling communication sessions |
-
2020
- 2020-05-20 CN CN202010429845.8A patent/CN111756694B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1491014A (en) * | 2002-10-16 | 2004-04-21 | 深圳市中兴通讯股份有限公司 | Method for realizing user's self difined recording by media gate control protocol |
CN101656715A (en) * | 2008-08-21 | 2010-02-24 | 华为技术有限公司 | Method, system and device for media bypass |
CN103685234A (en) * | 2013-11-14 | 2014-03-26 | 大唐移动通信设备有限公司 | IMS media business data processing method and device |
CN110913084A (en) * | 2019-12-18 | 2020-03-24 | 迈普通信技术股份有限公司 | Session recording method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111756694A (en) | 2020-10-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7898974B2 (en) | Method for obtaining QoS information of a session | |
CN100444550C (en) | Method for multiple early media services in one call process | |
US8705519B2 (en) | Method and apparatus for localized voice over internet protocol usage | |
CN102595350B (en) | Method, system and device for realizing multimedia coloring ring back tone service | |
US11546741B2 (en) | Call routing using call forwarding options in telephony networks | |
US8644482B2 (en) | Method and apparatus for implementing and filtering customized ringing signals | |
US20080039150A1 (en) | Video Communication Method, Video Communication System And Integrated Media Resource Server | |
US20030202507A1 (en) | VoIP network system | |
JPH10336325A (en) | Network independent communication system | |
CN109040495B (en) | Voice call control method and device, mobile terminal and storage medium | |
CN102065188B (en) | Packet headers as a trigger for automatic activation of special-purpose softphone applications | |
CN110177368A (en) | A kind of call-establishing method and system, Video Communication Server | |
KR20050088397A (en) | Method and apparatus for providing a voiced call alert | |
KR20070051237A (en) | System and method for multimedia contents in a communication system | |
EP4262180A1 (en) | Call processing method, call processing apparatus and related device | |
CN111756694B (en) | Dynamic processing method of session media, storage medium and server | |
CN115190468B (en) | Redialing method and terminal equipment | |
EP1487167A1 (en) | Method for providing additional services to a called user terminal via an application server, a related call session control network element, a related primary application server | |
US20070003027A1 (en) | Method of providing a mediated communication service | |
CN113014728A (en) | Method, system and computer storage medium for implementing communication assistant service | |
US20040253957A1 (en) | Mobile terminal control of the establishment of multimedia sessions | |
EP2456182A1 (en) | Method, system and parlay x gateway for implementing advanced call | |
CN101459872A (en) | Method for updating media after answering by single session customized ring back tone and color video service | |
US20240114092A1 (en) | Indication of tone support via format specifier | |
US20240114061A1 (en) | Acknowledging the presence of tones being signalled via sdp |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231227 Address after: 519060 No.1, Pingdong 1st Road, Nanping Science and Technology Industrial Park, Zhuhai City, Guangdong Province Patentee after: ZHUHAI COMLEADER INFORMATION TECHNOLOGY Co.,Ltd. Patentee after: HENAN XINDA WANGYU TECHNOLOGY Co.,Ltd. Address before: 519060 No.1, Pingdong 1st Road, Nanping Science and Technology Industrial Park, Zhuhai City, Guangdong Province Patentee before: ZHUHAI COMLEADER INFORMATION TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |