SDP construction method and device, equipment, storage medium and program product

By parsing and generating target SDP signaling, it solves the problem of inability to retain original data and negotiation failure in SDP construction methods in ubiquitous communication scenarios, achieving higher media negotiation success rate and device compatibility.

CN118802860AActive Publication Date: 2024-10-18CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410187675.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-20
Publication Date
2024-10-18
Estimated Expiration
2044-02-20

AI Technical Summary

Technical Problem

Existing SDP construction methods cannot effectively retain the original data of the terminal in ubiquitous communication scenarios, and there are problems with negotiation failure and high error rates in media negotiation.

Method used

By obtaining terminal SDP signaling and structured parameters, use the operation statements in the configuration list to parse and execute, generate target SDP signaling, ensure information integrity, and perform dynamic control and negotiation between the calling end and the called end. Fault tolerance.

Benefits of technology

The original content of the terminal SDP is retained to the greatest extent, meeting the media negotiation requirements in ubiquitous communication scenarios, and improving the negotiation success rate and device compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802860A_ABST
    Figure CN118802860A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and provides an SDP construction method and device, equipment, a storage medium and a program product, and the method comprises the steps: obtaining a terminal SDP signaling of a calling terminal, a structural parameter of the calling terminal and a configuration list; analyzing the terminal SDP signaling to obtain a first signaling parameter, and analyzing each operation statement in the configuration list to obtain a judgment phrase and an operation phrase of each operation statement; determining a first target decision paragraph based on the calling terminal structured parameter and each decision paragraph; executing an operation paragraph corresponding to the first target judgment paragraph based on the first signaling parameter to obtain a corresponding first operation result; and generating a first target SDP signaling based on the first operation result, and sending the first target SDP signaling to the called terminal, so that the called terminal generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the structured parameters of the called terminal. The SDP constructed by the technical scheme provided by the invention can meet the requirements of media negotiation in a ubiquitous communication scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a SDP construction method, device, equipment, storage medium and program product. Background Art

[0002] With the evolution of communication services towards polymorphism and ubiquity, communication carriers are no longer limited to traditional communication terminals such as mobile phones and landlines. Smart devices such as speakers, cameras, desk lamps, and doorbells also have communication service capabilities. Communication scenarios have also expanded from traditional point-to-point calls and video conferencing to intercom, broadcasting, and other scenarios.

[0003] Currently, there are two main ways for communication services to negotiate and build SDP (Session Description Protocol). One is called back-to-back (B2BUA), which divides the communication into two call branches: the calling party and the called party. The server acts as a proxy to establish connections with each branch, maintain communication status, and perform streaming media forwarding related operations. In this process, the proxy service will convert the received requests, SDP, etc. This mode is conducive to the access of heterogeneous devices, but because the server performs the conversion operation, the original information of the terminal is lost, and the task of media negotiation falls entirely on the proxy server, requiring the server to perform a lot of adaptation based on the terminal capabilities, which lacks flexibility. The other is called proxy mode, that is, after the server receives the signaling and SDP from one end, it forwards it to the other end with only a few adjustments. Since the signaling and content between the two communicating parties maintain good integrity, in this mode, it is equivalent to the two communicating parties using the server as a contact to interact, and the server uses proxy forwarding to handle communication calls. In this mode, the capability negotiation is sent to the terminal for completion, and the service has high concurrency performance. However, when the SDP of the communication terminal has incompatible parameters or the device itself is abnormal, the lack of control and participation of the server will lead to negotiation failure and high error rate. In ubiquitous communication services, the different types of devices accessing the terminal, business diversity, device heterogeneity, cross-modal calls and other factors have led to a sharp increase in the complexity of SDP parameters, and more requirements for SDP construction capabilities. The existing SDP cannot meet the requirements of media negotiation in ubiquitous communication scenarios. Summary of the invention

[0004] The present invention provides an SDP construction method, device, equipment, storage medium and program product, which are used to solve the defects of the prior art that the original data of the terminal is lost, and the existing SDP cannot meet the requirements of media negotiation in ubiquitous communication scenarios, and achieve the effect of retaining the original content of the terminal SDP and meeting the requirements of media negotiation in ubiquitous communication scenarios.

[0005] The present invention provides a SDP construction method, which is applied to a calling end, and the method comprises:

[0006] Obtaining the terminal SDP signaling, the calling terminal structured parameters and the configuration list of the calling terminal; wherein the configuration list includes multiple operation statements;

[0007] Parsing the terminal SDP signaling to obtain a first signaling parameter, and parsing each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0008] Determining a first target decision segment based on the calling end structured parameter and each of the decision segments;

[0009] Execute the operation paragraph corresponding to the first target decision paragraph based on the first signaling parameter to obtain a corresponding first operation result;

[0010] A first target SDP signaling is generated based on the first operation result, and the first target SDP signaling is sent to the called end, so that the called end generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters.

[0011] According to a SDP construction method provided by the present invention, the determining of the first target decision paragraph based on the calling end structured parameter and each decision paragraph includes:

[0012] Based on the order of the operation statements in the configuration list, the calling end structured parameters are used as input parameters of a preset predicate decision engine, and the preset predicate decision engine traverses and executes each of the decision sections until the decision result of executing the decision section is true;

[0013] The judgment paragraph corresponding to the true judgment result is used as the first target judgment paragraph.

[0014] According to an SDP construction method provided by the present invention, the step of executing the operation paragraph corresponding to the first target decision paragraph based on the first signaling parameter to obtain the corresponding first operation result includes:

[0015] The first signaling parameter is used as an input parameter of a preset SDP execution engine, and each operation command in the operation statement corresponding to the first target decision paragraph is executed by the preset SDP execution engine to obtain the first operation result.

[0016] According to a SDP construction method provided by the present invention, before obtaining the terminal SDP signaling, the calling terminal structured parameters and the configuration list of the calling terminal, the method further includes:

[0017] The SIP protocol is acquired, and parameters of the SIP protocol are parsed to obtain a calling end structured parameter of the calling end for at least one of a service, a device, and a call information.

[0018] The present invention provides an SDP construction method, which is applied to a called party, and the method comprises:

[0019] Receive the first target SDP signaling sent by the calling end, and obtain the structured parameters and configuration list of the called end; wherein the configuration list includes multiple operation statements;

[0020] Parsing the first target SDP signaling to obtain a second signaling parameter, and parsing each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0021] Determine a second target decision segment based on the called end structured parameter and each of the decision segments;

[0022] Execute the operation paragraph corresponding to the second target decision paragraph based on the second signaling parameter to obtain a corresponding second operation result;

[0023] A second target SDP signaling is generated based on the second operation result.

[0024] According to a SDP construction method provided by the present invention, the determining of the second target decision paragraph based on the called end structured parameter and each of the decision paragraphs includes:

[0025] Based on the order of the operation statements in the configuration list, the called end structured parameters are used as input parameters of a preset predicate decision engine, and the predicate decision engine traverses and executes each decision statement segment until the decision result of executing the decision statement segment is true;

[0026] The judgment paragraph corresponding to the true judgment result is used as the second target judgment paragraph.

[0027] According to an SDP construction method provided by the present invention, the step of executing the operation paragraph corresponding to the second target decision paragraph based on the second signaling parameter to obtain the corresponding second operation result includes:

[0028] The second signaling parameter is used as an input parameter of a preset SDP execution engine, and each operation command in the operation paragraph corresponding to the second target decision paragraph is executed by the preset SDP execution engine to obtain the second operation result.

[0029] According to a SDP construction method provided by the present invention, before obtaining the structured parameters and configuration list of the called party, the method further includes:

[0030] The SIP protocol is acquired, and parameters of the SIP protocol are parsed to obtain a structured parameter of the called end for at least one of the service, equipment, and call information of the called end.

[0031] The present invention also provides an SDP construction device, which is applied to a calling end, and the device comprises:

[0032] An acquisition module configured to acquire the terminal SDP signaling of the calling party, the calling party structured parameters and a configuration list; wherein the configuration list includes a plurality of operation statements;

[0033] A first parsing module is configured to parse the terminal SDP signaling to obtain the first signaling parameter, and parse each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0034] A first determination module is configured to determine a first target decision segment based on the calling end structured parameter and each of the decision segments;

[0035] A first execution module, configured to execute the operation segment corresponding to the first target decision segment based on the first signaling parameter to obtain a corresponding first operation result;

[0036] The first generating module is configured to generate a first target SDP signaling based on the first operation result, and send the first target SDP signaling to the called end, so that the called end generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters.

[0037] The present invention also provides an SDP construction device, which is applied to a called terminal, and the device comprises:

[0038] A receiving module, configured to receive a first target SDP signaling sent by the calling end, and obtain a structured parameter and a configuration list of the called end; wherein the configuration list includes a plurality of operation statements;

[0039] A second parsing module is configured to parse the first target SDP signaling to obtain a second signaling parameter, and parse each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0040] A second determination module is configured to determine a second target decision segment based on the called end structured parameter and each of the decision segments;

[0041] A second execution module is configured to execute the operation segment corresponding to the second target decision segment based on the second signaling parameter to obtain a corresponding second operation result;

[0042] The second generating module is configured to generate a second target SDP signaling based on the second operation result.

[0043] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-mentioned SDP construction methods is implemented.

[0044] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the SDP construction method described in any one of the above is implemented.

[0045] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned SDP construction methods.

[0046] The SDP construction method, device, equipment, storage medium and program product provided by the present invention can obtain the first signaling parameter by parsing the terminal SDP signaling, and construct the final SDP signaling based on the terminal SDP signaling, so as to retain the original content of the terminal side for the SDP to the greatest extent; at the same time, each operation statement in the configuration list is parsed to obtain the judgment segment and operation segment corresponding to each operation statement; multiple judgment segments are configured in the configuration list, and the first target judgment segment is determined based on the calling end structured parameters and each judgment segment, so that the determined first target judgment segment can be applicable to the calling end, and then the operation segment corresponding to the first target judgment segment is executed based on the first signaling parameter to obtain the corresponding first operation result, and then the first target SDP signaling is generated based on the first operation result, and the first target SDP signaling is sent to the called end, and the called end generates the second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters. In the present invention, the calling end configures the decision segment of SDP by configuring the list and the calling end structured parameters, and uses the first signaling parameter to implement the operation segment corresponding to the decision segment, thereby meeting the negotiation fault tolerance, dynamic control and other capability requirements for SDP construction in ubiquitous communication services, and at the same time can meet the SDP construction capability requirements for multiple services and ubiquitous devices in ubiquitous communication scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 It is a flow chart of the SDP construction method applied to the calling end provided by the present invention;

[0049] Figure 2 It is a schematic diagram of the SDP construction method provided by the present invention;

[0050] Figure 3 It is a schematic diagram of a method for constructing an SDP executed by one end provided by the present invention;

[0051] Figure 4 is a flow chart of step 130 in the embodiment provided by the present invention;

[0052] Figure 5 is a schematic diagram of the execution of the predicate decision engine in the embodiment provided by the present invention;

[0053] Figure 6 It is a schematic diagram of the execution of the SDP execution engine in the embodiment provided by the present invention;

[0054] Figure 7 It is a flow chart of the SDP construction method applied to the called party provided by the present invention;

[0055] Figure 8 is a flow chart of step 730 in the embodiment provided by the present invention;

[0056] Fig. 9 It is a structural schematic diagram of an SDP construction device applied to a calling end provided by the present invention;

[0057] Fig.10 It is a structural schematic diagram of an SDP construction device applied to a called party provided by the present invention;

[0058] Fig.11 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Combine the following Figure 1-Figure 8 The SDP construction method of the present invention is described.

[0061] Figure 1 FIG. 1 is a flow chart of a method for constructing an SDP according to an exemplary embodiment. Figure 1As shown, in an exemplary embodiment, the SDP construction method applied to the calling end includes steps 110 to 150, which are described in detail as follows:

[0062] Step 110, obtaining the terminal SDP signaling of the calling party, the calling party structured parameters and the configuration list; wherein the configuration list includes a plurality of operation statements.

[0063] In the embodiment of the present invention, the calling end uses the received terminal SDP signaling as the reference SDP signaling and performs subsequent processing based on it. The calling end structured parameters are parameters corresponding to the calling end side, and define content related to services, equipment, and call information.

[0064] The configuration list consists of multiple operation statements, which are described by strings. The configuration lists are stored in a database or data file. In the configuration list, each operation statement consists of two parts: weight and expression. The weight represents the execution order, which is executed in descending order, as shown in List 1. In the configuration list, at least one item is reserved as the default configuration item, which is default in List 1.

[0065] Table 1

[0066] 1000 Expression 1000 999 Expression 999 ··· ··· default Expression 0

[0067] The expression is described by a series of strings, which are composed of the structure of "segment separator##decision segment##SDPSDP operation segment". The segment separator is used to define the grammatical segmentation. By default, ## is used as the segment separator. Use "s new separator" to redefine the new separator.

[0068] Step 120: parse the terminal SDP signaling to obtain the first signaling parameter, and parse each operation statement in the configuration list to obtain the decision segment of each operation statement and the operation segment corresponding to the decision segment.

[0069] In the embodiment of the present invention, the terminal SDP signaling is parsed, and a lazy algorithm strategy is adopted to retain the SDP content that is not within the execution scope of the predicate statement, thereby retaining the private information of the terminal in the SDP transmission and maintaining the integrity of the SDP content to the greatest extent.

[0070] Each operation statement in the configuration list is parsed to obtain the judgment paragraph and operation paragraph corresponding to each operation statement, as shown in Table 2 below. Table 2 shows two specific operation statements and an operation statement as a default configuration item.

[0071] Table 2

[0072]

[0073]

[0074] As shown in Table 2 above, in the expression corresponding to weight 1000, 's@' is used to redefine the separator of the expression to '@', the judgment section is between the two separators '@', and the last is the operation section. The judgment section uses the calling and called numbers as judgment conditions, and the two conditions are in an 'or' relationship; the operation section defines the pipeline operations of drop and append when the judgment section is satisfied.

[0075] In the expression corresponding to weight 999, ## is used as the default separator. The first half of the separator is the judgment paragraph, which uses the device type and version number as the judgment conditions and the specific structured parameter parsing of the current device; the second half of the separator is the execution paragraph, which defines the two operations of drop and retain.

[0076] In the expression corresponding to Default, the operation of the operation paragraph is defined. When the previous two judgment paragraphs do not meet the requirements, the operation defined by default will be executed.

[0077] Step 130: determine a first target decision segment based on the calling end structured parameter and each of the decision segments.

[0078] In the embodiment of the present invention, the calling end structured parameter is used as an input parameter of the decision segment, and a first target decision segment is determined from all the decision segments in the configuration list.

[0079] Step 140: Execute the operation paragraph corresponding to the first target decision paragraph based on the first signaling parameter to obtain a corresponding first operation result.

[0080] In the embodiment of the present invention, the first signaling parameter is used as an input parameter of the operation paragraph corresponding to the first target decision paragraph, and is executed to obtain a corresponding first operation result.

[0081] Step 150: Generate a first target SDP signaling based on the first operation result, and send the first target SDP signaling to the called end, so that the called end generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters.

[0082] In an embodiment of the present invention, a first target SDP signaling is generated based on the first operation result, and the first target SDP signaling is sent to the called end. The called end uses the first target SDP signaling as the reference SDP signaling, and generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters.

[0083] In an embodiment of the present invention, the terminal SDP signaling is parsed to obtain the first signaling parameter, and the final SDP signaling is constructed based on the terminal SDP signaling, which can retain the original content of the terminal side for the SDP to the greatest extent; at the same time, each operation statement in the configuration list is parsed to obtain the judgment segment and operation segment corresponding to each operation statement; multiple judgment segments are configured in the configuration list, and the first target judgment segment is determined based on the calling end structured parameters and each judgment segment, so that the determined first target judgment segment can be applicable to the calling end, and then the operation segment corresponding to the first target judgment segment is executed based on the first signaling parameter to obtain the corresponding first operation result, and then the first target SDP signaling is generated based on the first operation result, and the first target SDP signaling is sent to the called end, and the called end generates the second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters. In an embodiment of the present invention, the calling end configures the decision segment for constructing the SDP by configuring a list and the calling end structured parameters, and uses the first signaling parameter to implement the operation segment corresponding to the decision segment, thereby meeting the negotiation fault tolerance, dynamic control and other capability requirements for SDP construction in ubiquitous communication services, and at the same time being able to meet the SDP construction capability requirements for multiple services and ubiquitous devices in ubiquitous communication scenarios.

[0084] In the embodiment of the present invention, Figure 2 and Figure 3 As shown in the figure, in the process of constructing SDP, the receiving and sending access terminals are abstracted into a channel structure, that is, the calling end and the called end are abstracted into a channel structure, such as Figure 2 ClientA and ClientB in the figure represent the calling end and the called end respectively. Figure 3 The structured parameter parsing, predicate judgment, SDP operation and other actions are shown. Since SDP is a negotiation process during the communication process, its content is related to the capabilities of the calling and called ends. In order to simplify the expression definition and description, the SDP segment construction form is used, that is, each channel only focuses on the predicate operation and SDP construction related to its own parameters, and then passes the SDP constructed by this end to the other end channel. The other end also performs predicate operations to generate the final SDP and sends it to the client.

[0085] For details, please refer to Figure 3 , Figure 3The process of building SDP for one end is to traverse the configuration items from the configuration list in the order of the operation statements in the configuration list, that is, to traverse the operation statements, and call the syntax parser to parse the expressions in the configuration operation statements; the syntax parser parses the expressions into two parts: the judgment section and the operation section; the structured parameters corresponding to the local end are used as input parameters, and the predicate judgment engine is called to execute the judgment section to obtain the judgment result. When the judgment result is false, jump to traverse the next configuration item and repeat the operation steps until the judgment result of the currently traversed judgment section is true. When the judgment result is true, call the SDP execution engine, take the signaling parameters of the benchmark SDP signaling corresponding to the local end as the operation object, and execute the operation command in the operation section. During execution, the pipeline operation mode is adopted, and the output of the previous operation command is used as the input of the current operation command until all the operation commands defined in the operation section are executed. The final output of the execution of the operation command is used as the operation result corresponding to the local end, and the target SDP signaling corresponding to the local end is constructed according to the operation result. When the local end is the calling end, the target SDP signaling generated by the local end is sent to the called end. When the local end is the called end, the generated target SDP signaling is the finally constructed SDP signaling.

[0086] In an exemplary embodiment of the present invention, see Figure 4 In step 130, the first target decision segment is determined based on the calling end structured parameter and each decision segment, including steps 410 to 420, which are described in detail as follows:

[0087] Step 410, based on the order of the operation statements in the configuration list, the calling end structured parameters are used as input parameters of a preset predicate decision engine, and the preset predicate decision engine traverses and executes each of the decision segments until the decision result of executing the decision segment is true.

[0088] In the embodiment of the present invention, the judgment statement is composed of multiple operation calls, which can be function calls, mathematical operations, etc. The operation calls are connected using logical operators. The final result of executing the operation calls is a bool type, and the judgment results obtained are only true or false. The definition of the judgment statement is: OP1∮OP2∮...∮OPn, where OP represents the operation call and ∮ represents the logical operation.

[0089] The decision operation defined in the decision paragraph includes the following contents in Table 3:

[0090] Table 3

[0091] entry Example Logical operators &&、||、! Comparison Operators >、>=、<、<=、==、!= Mathematical operators +、-、 / 、*、% Function call operator () Character function strlen, match, contain, toupper, tolowwer Extension Functions Version comparison functions (vergt, verge), etc.

[0092] The preset predicate decision engine mainly loads the decision segment and executes multiple statements in the decision segment, and performs logical judgment on the execution results to obtain the final decision result. The control of multiple SDP conditions is achieved through the grammatical definition of the decision segment and the predicate decision engine, which solves the problem of SDP parameter diversity under ubiquitous communication. The overall execution process of the preset predicate decision engine is as follows: Figure 5 shown.

[0093] Specifically, based on the order of the operation statements in the configuration list, first, the expression of the first judgment segment is loaded, and the syntax parser is called to split the expression into multiple operation calls according to the logical operator; secondly, each operation call is instantiated according to the structured parameters of the calling end, and the custom function is mapped, loaded into the executor to execute the function operation, and the execution result is obtained; then, the execution results are summarized, and according to the logical definition relationship of the judgment segment, the logical judge is used to perform logical operations to obtain the final judgment result. When the judgment result is false, the expression of the next judgment segment is loaded from the configuration list, and the processing flow of the first judgment segment is executed; when the judgment result is true, the judgment segment is used as the first target judgment segment, and the process of executing the operation segment corresponding to the first target judgment segment is entered until it ends.

[0094] Step 320: The judgment paragraph corresponding to the true judgment result is used as the first target judgment paragraph.

[0095] In the embodiment of the present invention, during the traversal process, when it is determined that the judgment result is true, the corresponding judgment paragraph is directly used as the first target judgment paragraph.

[0096] In an exemplary embodiment of the present invention, executing the operation paragraph corresponding to the first target decision paragraph based on the first signaling parameter in step 140 to obtain the corresponding first operation result includes the following steps, which are described in detail as follows:

[0097] The first signaling parameter is used as an input parameter of a preset SDP execution engine, and each operation command in the operation statement corresponding to the first target decision paragraph is executed by the preset SDP execution engine to obtain the first operation result.

[0098] In the embodiment of the present invention, the operation paragraph is a text description, which is executed by a preset SDP execution engine. The operation paragraph mainly defines the content operation mode of the SDP, which consists of a series of operation commands, and uses the pipeline operator "|" to connect multiple operation commands. Pipeline operation is used during the execution process, that is, the output result of the previous operation command is used as the operation object of the next operation command.

[0099] In the embodiment of the present invention, the grammatical structure of the operation segment consists of three parts: function, parameter list, and pipe character. The structure definition is: func1(args1)|func2(args2)|...funcn(args n ), where func represents the function name, args n Represents the function parameter of the nth function, and | represents the pipeline operator.

[0100] The grammatical content of the operation segment mainly defines the operation object of SDP, which mainly includes two parts: segment operation and attribute operation. The specific content is shown in Table 4 below:

[0101] Table 4

[0102]

[0103]

[0104] After defining the syntax structure and syntax definition of SDP, the operation paragraph can describe the operations and parameters of SDP through text description, and then flexibly modify the terminal SDP signaling based on the first signaling parameter.

[0105] The preset SDP execution engine executes the definition in the operation paragraph, converts the statement description into a function call, and generates a first operation result. The syntax definition of the operation paragraph, the SDP execution engine, etc. implement the specific execution action of the SDP content, effectively modify the SDP content through pipeline execution, and ensure the dynamic execution of the SDP content. The main process of the preset SDP execution engine is as follows: Figure 6 shown.

[0106] Specifically, first, pipeline parsing is performed on the operation segment, and the operation segment is divided into several pipelines using pipeline operations, and pipeline connections are established. Secondly, syntax parsing is performed on each pipeline, mainly including parameter parsing and function mapping. Parameter parsing is to instantiate the parsed parameters and perform parameter expansion operations on the referential parameters. Function mapping is to map the function in the description to the function execution program and call the executor to perform the action. After the current pipeline is executed, the intermediate result is obtained, and the intermediate result is input into the next pipeline as an execution parameter, and the next pipeline is called to continue the above-mentioned execution syntax parsing and other operations. It should be noted that during the initial execution, the first signaling parameter is used as the operation object. When all pipelines are executed, the final first operation result is obtained.

[0107] In an exemplary embodiment of the present invention, before obtaining the terminal SDP signaling, the calling terminal structured parameters and the configuration list of the calling terminal in step 110, the method further includes the following steps, which are described in detail as follows:

[0108] The SIP protocol is acquired, and parameters of the SIP protocol are parsed to obtain a calling end structured parameter of the calling end for at least one of a service, a device, and a call information.

[0109] In the embodiment of the present invention, the SIP protocol (Session Initiation Protocol) is parsed for parameters. Specifically, the parameter parsing engine can obtain the calling party structured parameters for at least one of the service, device, and call information from the SIP protocol. The obtained calling party structured parameters are shown in the following table 5.

[0110] Table 5

[0111]

[0112]

[0113] In another embodiment of the present invention, the calling end structural parameters can be set in advance by parameter preset.

[0114] In the embodiment of the present invention, if the calling end structured parameters need to be extended, they can be added in the parameter parsing engine or parameter structure definition. The acquired calling end structured parameters are used as execution parameters of the subsequent functions in the judgment paragraph to control the conditional judgment operation.

[0115] In the embodiment of the present invention, the connection between SDP operation and service, equipment and call is established through the definition of the calling end structured parameters, so as to meet various application requirements under ubiquitous communication.

[0116] Figure 7 FIG. 1 is a flow chart of a method for constructing an SDP according to an exemplary embodiment. Figure 7 As shown, in an exemplary embodiment, the SDP construction method applied to the called party includes steps 710 to 750, which are described in detail as follows:

[0117] Step 710: Receive the first target SDP signaling sent by the calling end, and obtain the structured parameters and configuration list of the called end; wherein the configuration list includes multiple operation statements.

[0118] In the embodiment of the present invention, the called end uses the received first target SDP signaling as the reference SDP signaling and performs subsequent processing based on it. The called end structured parameters are parameters corresponding to the called end side, similar to the calling end structured parameters, and define content related to services, equipment, and call information. The configuration list in the called end is the same as the configuration list in the calling end, and will not be repeated here.

[0119] Step 720: parse the first target SDP signaling to obtain the second signaling parameter, and parse each operation statement in the configuration list to obtain the decision segment of each operation statement and the operation segment corresponding to the decision segment.

[0120] In the embodiment of the present invention, the first target SDP signaling is parsed, and a lazy algorithm strategy is adopted to retain the SDP content that is not within the execution scope of the predicate statement, thereby retaining the private information of the terminal in the SDP transmission and maintaining the integrity of the SDP content to the greatest extent.

[0121] Each operation statement in the configuration list is parsed to obtain a decision segment and an operation segment corresponding to each operation statement. The specific description of the decision segment and the operation segment is consistent with the description in the aforementioned step 120 and will not be repeated here.

[0122] Step 730: Determine a second target decision segment based on the called end structured parameter and each of the decision segments.

[0123] In the embodiment of the present invention, the called end structured parameter is used as an input parameter of the decision segment, and a second target decision segment is determined from all the decision segments in the configuration list.

[0124] Step 740: Execute the operation paragraph corresponding to the second target decision paragraph based on the second signaling parameter to obtain a corresponding second operation result.

[0125] In the embodiment of the present invention, the second signaling parameter is used as an input parameter of the operation paragraph corresponding to the second target decision paragraph, and is executed to obtain a corresponding second operation result.

[0126] Step 750: Generate a second target SDP signaling based on the second operation result.

[0127] In the embodiment of the present invention,

[0128] In the embodiment of the present invention, the received first target SDP signaling is parsed to obtain the second signaling parameter, the first target SDP signaling is obtained based on the terminal SDP signaling, and the original content of the terminal side for SDP is retained to the greatest extent; at the same time, each operation statement in the configuration list is parsed to obtain the judgment segment and operation segment corresponding to each operation statement; multiple judgment segments are configured in the configuration list, and the second target judgment segment is determined based on the called end structured parameters and each judgment segment, so that the determined second target judgment segment can be applicable to the called end, and then the operation segment corresponding to the second target judgment segment is executed based on the second signaling parameter to obtain the corresponding second operation result, and then the second target SDP signaling is generated based on the second operation result. In the embodiment of the present invention, the called end configures the judgment segment of SDP through the configuration list and the called end structured parameters, and uses the second signaling parameters to implement the operation segment corresponding to the judgment segment, thereby meeting the negotiation fault tolerance, dynamic control and other capability requirements for SDP construction in ubiquitous communication services, and can also meet the SDP construction capability requirements of multiple services and ubiquitous devices in ubiquitous communication scenarios.

[0129] In an exemplary embodiment of the present invention, see Figure 8 In step 730, the second target decision segment is determined based on the called terminal structure parameter and each decision segment, including steps 810 to 820, which are described in detail as follows:

[0130] Step 810: Based on the order of the operation statements in the configuration list, the called end structured parameters are used as input parameters of a preset predicate decision engine, and the predicate decision engine traverses and executes each decision segment until the decision result of executing the decision segment is true.

[0131] In the embodiment of the present invention, the preset predicate decision engine mainly loads the decision segment and executes multiple statements in the decision segment, and performs logical judgment on the obtained execution result to obtain the final decision result. The control of multiple SDP conditions is achieved through the grammatical definition of the decision segment, the predicate decision engine, etc., which solves the problem of SDP parameter diversity under ubiquitous communication. The overall process of the execution of the preset predicate decision engine is as follows: Figure 5 shown.

[0132] Specifically, based on the order of the operation statements in the configuration list, first, the expression of the first judgment segment is loaded, and the syntax parser is called to split the expression into multiple operation calls according to the logical operator; secondly, each operation call is instantiated according to the structured parameters of the called end, and the custom function is mapped, loaded into the executor to execute the function operation, and the execution result is obtained; then, the execution results are summarized, and according to the logical definition relationship of the judgment segment, the logical judge is used to perform logical operations to obtain the final judgment result. When the judgment result is false, the expression of the next judgment segment is loaded from the configuration list, and the processing flow of the first judgment segment is executed; when the judgment result is true, the judgment segment is used as the second target judgment segment, and the process of executing the second target judgment segment is entered until it ends.

[0133] Step 820: Use the judgment paragraph corresponding to the true judgment result as the second target judgment paragraph.

[0134] In the embodiment of the present invention, during the traversal process, when it is determined that the judgment result is true, the corresponding judgment paragraph is directly used as the second target judgment paragraph.

[0135] In an exemplary embodiment of the present invention, the step 740 of executing the operation paragraph corresponding to the second target decision paragraph based on the second signaling parameter to obtain the corresponding second operation result includes the following steps, which are described in detail as follows:

[0136] The second signaling parameter is used as an input parameter of a preset SDP execution engine, and each operation command in the operation paragraph corresponding to the second target decision paragraph is executed by the preset SDP execution engine to obtain the second operation result.

[0137] In the embodiment of the present invention, the preset SDP execution engine executes the definition in the operation paragraph, converts the statement description into a function call, and generates a second operation result. The syntax definition of the operation paragraph, the SDP execution engine, etc. realize the specific execution action of the SDP content, effectively modify the SDP content through pipeline execution, and ensure the dynamic execution of the SDP content. The main process of the preset SDP execution engine is as follows: Figure 6 shown.

[0138] Specifically, first, pipeline parsing is performed on the operation segment, and the operation segment is divided into several pipelines using pipeline operations, and pipeline connections are established. Secondly, syntax parsing is performed on each pipeline, mainly including parameter parsing and function mapping. Parameter parsing is to instantiate the parsed parameters and perform parameter expansion operations on referential parameters. Function mapping is to map the function in the description to the function execution program and call the executor to perform the action. After the current pipeline is executed, the intermediate result is obtained, and the intermediate result is input into the next pipeline as an execution parameter, and the next pipeline is called to continue the above-mentioned syntax parsing and other operations. It should be noted that at the first execution, such as Figure 2 As shown, the second signaling parameter is used as the operation object. When all pipelines are executed, the final second operation result is obtained.

[0139] In an exemplary embodiment of the present invention, before obtaining the called party structured parameters and configuration list in step 710, the method further includes the following steps, which are described in detail as follows:

[0140] The SIP protocol is acquired, and parameters of the SIP protocol are parsed to obtain a structured parameter of the called end for at least one of the service, equipment, and call information of the called end.

[0141] In the embodiment of the present invention, the SIP protocol (Session Initiation Protocol) is parsed for parameters. Specifically, the parameter parsing engine can obtain the called end structured parameters for at least one of the service, device, and call information from the SIP protocol. The obtained called end structured parameters can be shown in the aforementioned Table 5.

[0142] In another embodiment of the present invention, the called end structured parameters can be set in advance by parameter preset.

[0143] In the embodiment of the present invention, if the called end structured parameters need to be extended, they can be added in the parameter parsing engine or parameter structure definition. The acquired called end structured parameters are used as execution parameters of the subsequent functions in the decision paragraph to control the conditional decision operation.

[0144] In the embodiment of the present invention, the connection between SDP operation and service, equipment and call is established through the definition of structured parameters of the called end, so as to meet various application requirements under ubiquitous communication.

[0145] The SDP construction device provided by the present invention is described below. The SDP construction device described below and the SDP construction method described above can be referred to each other. It should be noted that the device provided in the following embodiment and the method provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, which will not be repeated here.

[0146] In an exemplary embodiment of the present invention, see Fig. 9 , Fig. 9 An SDP construction device applied to a calling end is shown according to an exemplary embodiment, including:

[0147] The acquisition module 910 is configured to acquire the terminal SDP signaling of the calling party, the calling party structured parameters and the configuration list; wherein the configuration list includes multiple operation statements;

[0148] The first parsing module 920 is configured to parse the terminal SDP signaling to obtain the first signaling parameter, and parse each operation statement in the configuration list to obtain the decision segment of each operation statement and the operation segment corresponding to the decision segment;

[0149] A first determination module 930 is configured to determine a first target decision segment based on the calling end structured parameter and each of the decision segments;

[0150] A first execution module 940 is configured to execute the operation segment corresponding to the first target decision segment based on the first signaling parameter to obtain a corresponding first operation result;

[0151] The first generating module 950 is configured to generate a first target SDP signaling based on the first operation result, and send the first target SDP signaling to the called end, so that the called end generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters.

[0152] In an exemplary embodiment of the present invention, the first determining module 930 includes:

[0153] A first execution submodule is configured to use the calling end structured parameters as input parameters of a preset predicate decision engine based on the order of the operation statements in the configuration list, and traverse and execute each of the decision sections through the preset predicate decision engine until the decision result of executing the decision section is true;

[0154] The first submodule is configured to use the judgment paragraph corresponding to a true judgment result as the first target judgment paragraph.

[0155] In an exemplary embodiment of the present invention, the first execution module 940 includes:

[0156] The second execution submodule is configured to use the first signaling parameter as an input parameter of a preset SDP execution engine, and execute each operation command in the operation statement corresponding to the first target judgment segment through the preset SDP execution engine to obtain the first operation result.

[0157] In an exemplary embodiment of the present invention, the SDP construction device further includes:

[0158] The third parsing module is configured to obtain the SIP protocol and perform parameter parsing on the SIP protocol to obtain the calling end structured parameter of the calling end for at least one of the service, equipment, and call information.

[0159] In an exemplary embodiment of the present invention, see Fig.10 , Fig.10 According to an exemplary embodiment, a SDP construction device applied to a called party is shown, including:

[0160] The receiving module 1010 is configured to receive the first target SDP signaling sent by the calling end, and obtain the structured parameters and configuration list of the called end; wherein the configuration list includes multiple operation statements;

[0161] The second parsing module 1020 is configured to parse the first target SDP signaling to obtain the second signaling parameter, and parse each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0162] A second determination module 1030 is configured to determine a second target decision segment based on the called end structured parameter and each of the decision segments;

[0163] A second execution module 1040 is configured to execute the operation paragraph corresponding to the second target decision paragraph based on the second signaling parameter to obtain a corresponding second operation result;

[0164] The second generating module 1050 is configured to generate a second target SDP signaling based on the second operation result.

[0165] In an exemplary embodiment of the present invention, the second determining module 1030 includes:

[0166] A third execution submodule is configured to use the called end structured parameters as input parameters of a preset predicate decision engine based on the order of the operation statements in the configuration list, and traverse and execute each of the decision segments through the predicate decision engine until the decision result of executing the decision segment is true;

[0167] The second submodule is configured to use the judgment paragraph corresponding to the true judgment result as the second target judgment paragraph.

[0168] In an exemplary embodiment of the present invention, the second execution module 1040 includes:

[0169] The fourth execution submodule is configured to use the second signaling parameter as an input parameter of a preset SDP execution engine, and execute each operation command in the operation paragraph corresponding to the second target decision paragraph through the preset SDP execution engine to obtain the second operation result.

[0170] In an exemplary embodiment of the present invention, the SDP construction device further includes:

[0171] The fourth parsing module is configured to obtain the SIP protocol and perform parameter parsing on the SIP protocol to obtain the called end structured parameter of the called end for at least one of the service, equipment, and call information.

[0172] Fig.11 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.11 As shown, the electronic device may include: a processor 1110, a communication interface 1120, a memory 1130 and a communication bus 1140, wherein the processor 1110, the communication interface 1120 and the memory 1130 communicate with each other through the communication bus 1140. The processor 1110 may call the logic instructions in the memory 1130 to execute the SDP construction method applied to the calling end and the SDP construction method applied to the called end, and the SDP construction method applied to the calling end includes:

[0173] Obtaining the terminal SDP signaling, the calling terminal structured parameters and the configuration list of the calling terminal; wherein the configuration list includes multiple operation statements;

[0174] Parsing the terminal SDP signaling to obtain a first signaling parameter, and parsing each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0175] Determining a first target decision segment based on the calling end structured parameter and each of the decision segments;

[0176] Execute the operation paragraph corresponding to the first target decision paragraph based on the first signaling parameter to obtain a corresponding first operation result;

[0177] generating a first target SDP signaling based on the first operation result, and sending the first target SDP signaling to the called end, so that the called end generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters;

[0178] The SDP construction method applied to the called party includes:

[0179] Receive the first target SDP signaling sent by the calling end, and obtain the structured parameters and configuration list of the called end; wherein the configuration list includes multiple operation statements;

[0180] Parsing the first target SDP signaling to obtain a second signaling parameter, and parsing each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0181] Determine a second target decision segment based on the called end structured parameter and each of the decision segments;

[0182] Execute the operation paragraph corresponding to the second target decision paragraph based on the second signaling parameter to obtain a corresponding second operation result;

[0183] A second target SDP signaling is generated based on the second operation result.

[0184] In addition, the logic instructions in the above-mentioned memory 1130 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0185] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the SDP construction method applied to the calling end and the SDP construction method applied to the called end provided by the above methods, the SDP construction method applied to the calling end includes:

[0186] Obtaining the terminal SDP signaling, the calling terminal structured parameters and the configuration list of the calling terminal; wherein the configuration list includes multiple operation statements;

[0187] Parsing the terminal SDP signaling to obtain a first signaling parameter, and parsing each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0188] Determining a first target decision segment based on the calling end structured parameter and each of the decision segments;

[0189] Execute the operation paragraph corresponding to the first target decision paragraph based on the first signaling parameter to obtain a corresponding first operation result;

[0190] generating a first target SDP signaling based on the first operation result, and sending the first target SDP signaling to the called end, so that the called end generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters;

[0191] The SDP construction method applied to the called party includes:

[0192] Receive the first target SDP signaling sent by the calling end, and obtain the structured parameters and configuration list of the called end; wherein the configuration list includes multiple operation statements;

[0193] Parsing the first target SDP signaling to obtain a second signaling parameter, and parsing each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0194] Determine a second target decision segment based on the called end structured parameter and each of the decision segments;

[0195] Execute the operation paragraph corresponding to the second target decision paragraph based on the second signaling parameter to obtain a corresponding second operation result;

[0196] A second target SDP signaling is generated based on the second operation result.

[0197] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the SDP construction method applied to the calling end and the SDP construction method applied to the called end provided by the above methods, wherein the SDP construction method applied to the calling end includes:

[0198] Obtaining the terminal SDP signaling, the calling terminal structured parameters and the configuration list of the calling terminal; wherein the configuration list includes multiple operation statements;

[0199] Parsing the terminal SDP signaling to obtain a first signaling parameter, and parsing each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0200] Determining a first target decision segment based on the calling end structured parameter and each of the decision segments;

[0201] Execute the operation paragraph corresponding to the first target decision paragraph based on the first signaling parameter to obtain a corresponding first operation result;

[0202] generating a first target SDP signaling based on the first operation result, and sending the first target SDP signaling to the called end, so that the called end generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters;

[0203] The SDP construction method applied to the called party includes:

[0204] Receive the first target SDP signaling sent by the calling end, and obtain the structured parameters and configuration list of the called end; wherein the configuration list includes multiple operation statements;

[0205] Parsing the first target SDP signaling to obtain a second signaling parameter, and parsing each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment;

[0206] Determine a second target decision segment based on the called end structured parameter and each of the decision segments;

[0207] Execute the operation paragraph corresponding to the second target decision paragraph based on the second signaling parameter to obtain a corresponding second operation result;

[0208] A second target SDP signaling is generated based on the second operation result.

[0209] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0210] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0211] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A SDP construction method, characterized in that: Applied to the calling end, the method comprises: Obtaining the terminal SDP signaling, the calling terminal structured parameters and the configuration list of the calling terminal; wherein the configuration list includes multiple operation statements; Parsing the terminal SDP signaling to obtain a first signaling parameter, and parsing each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment; Determining a first target decision segment based on the calling end structured parameter and each of the decision segments; Execute the operation paragraph corresponding to the first target decision paragraph based on the first signaling parameter to obtain a corresponding first operation result; A first target SDP signaling is generated based on the first operation result, and the first target SDP signaling is sent to the called end, so that the called end generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters.

2. The SDP construction method according to claim 1, characterized in that: The determining of the first target decision segment based on the calling end structured parameter and each of the decision segments includes: Based on the order of the operation statements in the configuration list, the calling end structured parameters are used as input parameters of a preset predicate decision engine, and the preset predicate decision engine traverses and executes each of the decision sections until the decision result of executing the decision section is true; The judgment paragraph corresponding to the true judgment result is used as the first target judgment paragraph.

3. The SDP construction method according to claim 1, characterized in that: The executing the operation paragraph corresponding to the first target decision paragraph based on the first signaling parameter to obtain the corresponding first operation result includes: The first signaling parameter is used as an input parameter of a preset SDP execution engine, and each operation command in the operation statement corresponding to the first target decision paragraph is executed by the preset SDP execution engine to obtain the first operation result.

4. The SDP construction method according to any one of claims 1 to 3, characterized in that: Before acquiring the terminal SDP signaling, the calling terminal structured parameters and the configuration list of the calling terminal, the method further includes: The SIP protocol is acquired, and parameters of the SIP protocol are parsed to obtain a calling end structured parameter of the calling end for at least one of a service, a device, and a call information.

5. A SDP construction method, characterized in that: Applied to the called party, the method comprises: Receive the first target SDP signaling sent by the calling end, and obtain the structured parameters and configuration list of the called end; wherein the configuration list includes multiple operation statements; Parsing the first target SDP signaling to obtain a second signaling parameter, and parsing each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment; Determine a second target decision segment based on the called end structured parameter and each of the decision segments; Execute the operation paragraph corresponding to the second target decision paragraph based on the second signaling parameter to obtain a corresponding second operation result; A second target SDP signaling is generated based on the second operation result.

6. The SDP construction method according to claim 5, characterized in that: The determining of the second target decision segment based on the called end structured parameter and each of the decision segments includes: Based on the order of the operation statements in the configuration list, the called end structured parameters are used as input parameters of a preset predicate decision engine, and the predicate decision engine traverses and executes each decision statement segment until the decision result of executing the decision statement segment is true; The judgment paragraph corresponding to the true judgment result is used as the second target judgment paragraph.

7. The SDP construction method according to claim 5, characterized in that: The executing the operation paragraph corresponding to the second target decision paragraph based on the second signaling parameter to obtain the corresponding second operation result includes: The second signaling parameter is used as an input parameter of a preset SDP execution engine, and each operation command in the operation paragraph corresponding to the second target decision paragraph is executed by the preset SDP execution engine to obtain the second operation result.

8. The SDP construction method according to any one of claims 5 to 7, characterized in that: Before obtaining the called terminal structured parameters and configuration list, the method further includes: The SIP protocol is acquired, and parameters of the SIP protocol are parsed to obtain a structured parameter of the called end for at least one of the service, equipment, and call information of the called end.

9. A SDP construction device, characterized in that: Applied to the calling end, the device comprises: An acquisition module configured to acquire the terminal SDP signaling of the calling party, the calling party structured parameters and a configuration list; wherein the configuration list includes a plurality of operation statements; A first parsing module is configured to parse the terminal SDP signaling to obtain the first signaling parameter, and parse each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment; A first determination module is configured to determine a first target decision segment based on the calling end structured parameter and each of the decision segments; A first execution module, configured to execute the operation segment corresponding to the first target decision segment based on the first signaling parameter to obtain a corresponding first operation result; The first generating module is configured to generate a first target SDP signaling based on the first operation result, and send the first target SDP signaling to the called end, so that the called end generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameters.

10. A SDP construction device, characterized in that: Applied to the called party, the device comprises: A receiving module, configured to receive a first target SDP signaling sent by the calling end, and obtain a structured parameter and a configuration list of the called end; wherein the configuration list includes a plurality of operation statements; A second parsing module is configured to parse the first target SDP signaling to obtain a second signaling parameter, and parse each operation statement in the configuration list to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment; A second determination module is configured to determine a second target decision segment based on the called end structured parameter and each of the decision segments; A second execution module is configured to execute the operation segment corresponding to the second target decision segment based on the second signaling parameter to obtain a corresponding second operation result; The second generating module is configured to generate a second target SDP signaling based on the second operation result.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the SDP construction method according to any one of claims 1 to 8 is implemented.

12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the SDP construction method according to any one of claims 1 to 8 is implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the SDP construction method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Manageable P2P (Peer-to-Peer) streaming media live broadcasting system based on IMS (IP Multimedia Subsystem) in NGN (Next Generation Network) and realization method thereof

    CN102340494A

  • VoIP service knowledge base construction method and system

    CN111541645A

  • Device and method for detecting polyphonic ringtone capability of calling video by using SIP (Session Initiation Protocol) signaling

    CN116886820A

  • Media negotiation method, device and system

    CN116962359A

  • Service grading-based ubiquitous terminal IMS communication method and system

    CN117041216A