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

By parsing the terminal SDP signaling and processing it through the engine, the target SDP signaling is constructed, which solves the problems of terminal information loss and negotiation failure in ubiquitous communication scenarios and realizes the flexibility and dynamic control of SDP construction.

CN118802860BActive Publication Date: 2025-11-04CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing SDP construction methods cannot meet the requirements of retaining the original terminal data and media negotiation in ubiquitous communication scenarios, resulting in high rates of terminal information loss or negotiation failure.

Method used

By parsing the terminal's SDP signaling, the target SDP signaling is constructed based on the configuration list and structured parameters using a preset predicate decision engine and SDP execution engine, while preserving the original terminal content. The final SDP signaling is generated through the execution of decision segments and operation segments.

Benefits of technology

It enables the preservation of the original content of the terminal SDP in ubiquitous communication scenarios, meets the flexibility and dynamic control capabilities of media negotiation, and reduces the negotiation failure rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802860B_ABST
    Figure CN118802860B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of communication, and provides an SDP construction method, device, equipment, storage medium and program product, which acquire terminal SDP signaling of a calling terminal, structured parameters of the calling terminal and a configuration list; the terminal SDP signaling is analyzed to obtain first signaling parameters, and each operation statement in the configuration list is analyzed to obtain a judgment segment and an operation segment of each operation statement; a first target judgment segment is determined based on the structured parameters of the calling terminal and each judgment segment; an operation segment corresponding to the first target judgment segment is executed based on the first signaling parameters 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 a called terminal, so that the called terminal generates a second target SDP signaling based on the first target SDP signaling, the configuration list and structured parameters of the called terminal. The SDP constructed by the technical scheme provided by the application can meet the requirement of media negotiation in a ubiquitous communication scenario.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication technology, and in particular to an SDP construction method, device, equipment, storage medium and program product. BACKGROUND

[0002] With the evolution of "polymorphism, ubiquitous" of communication services, communication carriers are no longer limited to mobile phones, fixed phones and other traditional communication terminals. Smart devices such as sound boxes, cameras, table lamps, and doorbells also have communication service capabilities. Communication scenarios have also evolved from traditional point-to-point calls, video conferences, and other scenarios to intercom, broadcast, and other scenarios.

[0003] Currently, there are two main ways for SDP (Session Description Protocol) negotiation and construction of communication services. One is called back-to-back (B2BUA), which divides the communication into two call branches, the calling and the called. The server acts as a proxy to establish connections with each branch, maintain communication status, and perform stream media forwarding operations. In this process, the proxy service converts the received requests and SDPs. This mode is helpful for the access of heterogeneous devices, but the server performs conversion operations, resulting in the loss of original information from the terminal. Moreover, the media negotiation task is completely left to the proxy server, which requires the server to adapt to the terminal capabilities, lacking flexibility. The other is called proxy mode (Proxy), which means that after receiving the signaling and SDP from one end, the server only makes a few adjustments and forwards them to the other end. Since the signaling and content between the two communication parties remain relatively complete, in this mode, the two communication ends interact using the server as a touch point. The server uses proxy forwarding to handle communication calls. In this mode, the capability negotiation is assigned to the terminal to complete. The service has high concurrency performance, but when the SDP parameters of the communication terminal are incompatible or the device itself is abnormal, the lack of server control participation will lead to negotiation failure and high error rate. In ubiquitous communication services, the types of access terminals are diverse, the business is diverse, the devices are heterogeneous, and cross-modal calls, etc. These factors have led to a sharp increase in SDP parameter complexity, and there are more requirements for SDP construction capabilities. The existing SDP cannot meet the requirements of media negotiation in the ubiquitous communication scenario. SUMMARY

[0004] The present application provides an SDP construction method, device, equipment, storage medium and program product, to solve the defects of terminal original data loss in the prior art and the existing SDP cannot meet the requirements of media negotiation in the ubiquitous communication scenario, to achieve the effect of preserving the original content of the terminal SDP and meeting the requirements of media negotiation in the ubiquitous communication scenario.

[0005] The application provides an SDP construction method applied to a calling terminal, and the method comprises the following steps:

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

[0007] analyzing the terminal SDP signaling to obtain first signaling parameters, and analyzing each operation statement in the configuration list to obtain a judgment segment of each operation statement and an operation segment corresponding to the judgment segment;

[0008] determining a first target judgment segment based on the calling terminal structured parameters and each judgment segment;

[0009] executing an operation segment corresponding to the first target judgment segment based on the first signaling parameters to obtain a corresponding first operation result;

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

[0011] According to the SDP construction method provided by the application, the determination of the first target judgment segment based on the calling terminal structured parameters and each judgment segment comprises the following steps:

[0012] based on the order of the operation statements in the configuration list, taking the calling terminal structured parameters as input parameters of a preset predicate decision engine, and executing each judgment segment through the preset predicate decision engine until the judgment result of the judgment segment is true;

[0013] taking the judgment segment corresponding to the true judgment result as the first target judgment segment.

[0014] According to the SDP construction method provided by the application, the execution of the operation segment corresponding to the first target judgment segment based on the first signaling parameters to obtain the corresponding first operation result comprises the following steps:

[0015] taking the first signaling parameters as input parameters of a preset SDP execution engine, executing each operation command in the operation segment corresponding to the first target judgment segment through the preset SDP execution engine to obtain the first operation result.

[0016] According to the SDP construction method provided by the application, before the step of obtaining the terminal SDP signaling of the calling terminal, the calling terminal structured parameters and the configuration list, the method further comprises the following steps:

[0017] Obtain a SIP protocol, and perform parameter analysis on the SIP protocol to obtain a caller structured parameter of the caller for at least one of a service, a device, and call information.

[0018] The application provides an SDP construction method applied to a called terminal, and the method comprises the following steps:

[0019] Receive a first target SDP signaling sent by a caller, and obtain a called terminal structured parameter and a configuration list; wherein the configuration list comprises a plurality of operation statements;

[0020] Perform analysis on the first target SDP signaling to obtain a second signaling parameter, and perform analysis on 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 terminal structured parameter and each decision segment;

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

[0023] Generate a second target SDP signaling based on the second operation result.

[0024] According to the SDP construction method provided by the application, the determination of the second target decision segment based on the called terminal structured parameter and each decision segment comprises the following steps:

[0025] Based on the order of the operation statements in the configuration list, take the called terminal structured parameter as an input parameter of a preset predicate decision engine, and execute each decision segment through the predicate decision engine until the decision result of the decision segment is true;

[0026] Take the decision segment corresponding to the true decision result as the second target decision segment.

[0027] According to the SDP construction method provided by the application, the execution of the operation segment corresponding to the second target decision segment based on the second signaling parameter to obtain the corresponding second operation result comprises the following steps:

[0028] Take the second signaling parameter as an input parameter of a preset SDP execution engine, execute each operation command in the operation segment corresponding to the second target decision segment through the preset SDP execution engine, and obtain the second operation result.

[0029] According to the SDP construction method provided by the application, before the obtaining of the called terminal structured parameter and the configuration list, the method further comprises the following steps:

[0030] obtain a SIP protocol, and perform parameter analysis on the SIP protocol to obtain a called terminal structured parameter of the called terminal for at least one of a service, a device, and call information.

[0031] The application further provides an SDP construction device applied to a called terminal, and the device comprises:

[0032] an obtaining module configured to obtain a terminal SDP signaling of a calling terminal, a called terminal structured parameter, and a configuration list, wherein the configuration list comprises a plurality of operation statements;

[0033] a first analyzing module configured to analyze the terminal SDP signaling to obtain a first signaling parameter, and analyze each operation statement in the configuration list to obtain a judgment segment of each operation statement and an operation segment corresponding to the judgment segment;

[0034] a first determining module configured to determine a first target judgment segment based on the called terminal structured parameter and each judgment segment;

[0035] a first executing module configured to execute the operation segment corresponding to the first target judgment segment based on the first signaling parameter to obtain a corresponding first operation result;

[0036] a first generating module configured to generate a first target SDP signaling based on the first operation result, and send 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 called terminal structured parameter.

[0037] The application further provides an SDP construction device applied to a called terminal, and the device comprises:

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

[0039] a second analyzing module configured to analyze the first target SDP signaling to obtain a second signaling parameter, and analyze each operation statement in the configuration list to obtain a judgment segment of each operation statement and an operation segment corresponding to the judgment segment;

[0040] a second determining module configured to determine a second target judgment segment based on the called terminal structured parameter and each judgment segment;

[0041] a second executing module configured to execute the operation segment corresponding to the second target judgment segment based on the second signaling parameter to obtain a corresponding second operation result;

[0042] a second generation module, configured to generate a second target SDP signaling based on the second operation result.

[0043] The application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the SDP construction method according to any one of the above when executing the program.

[0044] The application further provides a non-transitory computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the SDP construction method according to any one of the above.

[0045] The application further provides a computer program product, comprising a computer program, wherein the computer program is executed by a processor to implement the SDP construction method according to any one of the above.

[0046] The SDP construction method, device, equipment, storage medium and program product provided by the application can retain the original content of the SDP on the terminal side to the greatest extent by analyzing the terminal SDP signaling to obtain a first signaling parameter, and constructing the final SDP signaling based on the terminal SDP signaling. Meanwhile, each operation statement in the configuration list is analyzed to obtain a decision segment and an operation segment corresponding to each operation statement. A plurality of decision segments are configured in the configuration list, a first target decision segment is determined based on the calling terminal structured parameter and each decision segment, so that the determined first target decision segment can be applied to the calling terminal. Then, the operation segment corresponding to the first target decision segment is executed based on the first signaling parameter to obtain a corresponding first operation result. Then, a first target SDP signaling is generated based on the first operation result, and the first target SDP signaling is sent to the called terminal. The called terminal generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called terminal structured parameter. In the application, the calling terminal configures the decision segment for constructing the SDP based on the configuration list and the calling terminal structured parameter, and the operation segment corresponding to the decision segment is implemented by using the first signaling parameter, so as to meet the requirements of negotiation fault tolerance, dynamic control and other capabilities of the SDP construction in the ubiquitous communication service, and meet the requirements of the SDP construction capability of multiple services and general equipment in the ubiquitous communication scenario. BRIEF DESCRIPTION OF DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the application or prior art, the following will briefly introduce the drawings needed in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor.

[0048] Figure 1 This is a flowchart illustrating the SDP construction method for the calling end provided by the present invention.

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

[0050] Figure 3 This is a schematic diagram of the SDP construction method performed at one end provided by the present invention;

[0051] Figure 4 This is a flowchart illustrating step 130 in an embodiment provided by the present invention;

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

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

[0054] Figure 7 This is a flowchart illustrating the SDP construction method applied to the called end provided by the present invention.

[0055] Figure 8 This is a flowchart illustrating step 730 in an embodiment provided by the present invention;

[0056] Figure 9 This is a schematic diagram of the SDP construction device applied to the calling end provided by the present invention;

[0057] Figure 10 This is a schematic diagram of the SDP construction device applied to the called end provided by the present invention;

[0058] Figure 11 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0059] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0060] The following is combined with Figures 1-8 The SDP construction method of the present invention is described.

[0061] Figure 1 This is a flowchart illustrating an SDP construction method according to an exemplary embodiment. For example... Figure 1As shown, in an exemplary embodiment, the SDP construction method applied to the calling terminal includes steps 110 to 150, which are described in detail as follows:

[0062] In step 110, terminal SDP signaling of the calling terminal, structured parameters of the calling terminal, and a configuration list are obtained; the configuration list includes multiple operation statements.

[0063] In the embodiment of the application, the calling terminal takes the received terminal SDP signaling as reference SDP signaling, and performs subsequent processing based on the reference SDP signaling. The structured parameters of the calling terminal are parameters corresponding to the calling terminal side, and define contents related to services, devices, and call information.

[0064] The configuration list is composed of multiple operation statements, and the operation statements are described using strings. The configuration list is uniformly stored in a database or a data file. In the configuration list, each operation statement includes two parts, i.e., a weight and an expression. The weight represents the execution order, and is executed in descending order, as shown in Table 1 below. In the configuration list, at least one item is reserved as a default configuration item, i.e., default in Table 1.

[0065] Table 1

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

[0067] The expression is described using a series of strings, and is composed according to the structure of "segment separator ## decision segment ## SDP operation segment". The segment separator is used to define a syntax segment. By default, ## is used as the segment separator, and "s new separator" is used to redefine a new separator.

[0068] In step 120, the terminal SDP signaling is parsed to obtain first signaling parameters, and each operation statement in the configuration list is parsed to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment.

[0069] In the embodiment of the application, the lazy algorithm strategy is used to parse the terminal SDP signaling, and SDP content that is not in the execution range of the predicate statement is reserved, so that private information of the terminal in SDP transmission can be reserved, and the integrity of the SDP content is maintained to the greatest extent.

[0070] Each operation statement in the configuration list is parsed to obtain a decision segment and an operation segment corresponding to each operation statement. Specifically, as shown in Table 2 below, two operation statements and an operation statement as a default configuration item are shown in Table 2.

[0071] Table 2

[0072]

[0073]

[0074] As shown in Table 2 above, in the expression corresponding to the weight 1000, the separator of the expression is redefined as '@' using's@', the segment between the two separators '@' is a decision segment, and the last segment is an operation segment. The decision segment uses the calling number and the called number as the judgment condition, and the two conditions are in an 'or' relationship; the operation segment defines the pipe operation of drop and append when the decision segment is satisfied.

[0075] In the expression corresponding to the weight 999, ## is used as the default separator. The first half of the separator is a decision segment, which uses the device type and version number as the decision condition and parses the specific structured parameters of the current device; the second half of the separator is an execution segment, which defines the drop and retain operations.

[0076] In the expression corresponding to the default, the operation of the operation segment is defined, and the operation defined by the default is executed when the previous two decision segments do not match.

[0077] Step 130, determining a first target decision segment based on the calling end structured parameter and each decision segment.

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

[0079] Step 140, executing the operation segment corresponding to the first target decision segment based on the first signaling parameter to obtain a corresponding first operation result.

[0080] In the embodiment of the application, the first signaling parameter is used as the input parameter of the operation segment corresponding to the first target decision segment, and the first operation result is obtained by execution.

[0081] Step 150, 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 parameter.

[0082] In the embodiment of the application, 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. The called end takes the first target SDP signaling as the reference SDP signaling, generates the second target SDP signaling based on the first target SDP signaling, the configuration list and the called end structured parameter.

[0083] In the embodiment of the present application, the terminal SDP signaling is analyzed to obtain a first signaling parameter, and a final SDP signaling is constructed based on the terminal SDP signaling, which can preserve the original content of the SDP at the terminal side to the greatest extent. Meanwhile, each operation statement in the configuration list is analyzed to obtain a decision segment and an operation segment corresponding to each operation statement. A plurality of decision segments are configured in the configuration list, a first target decision segment is determined based on the calling terminal structured parameter and each decision segment, so that the determined first target decision segment can be applicable to the calling terminal. Then, an operation segment corresponding to the first target decision segment is executed based on the first signaling parameter to obtain a corresponding first operation result, and a first target SDP signaling is generated based on the first operation result, and the first target SDP signaling is sent to the called terminal. The called terminal generates a second target SDP signaling based on the first target SDP signaling, the configuration list and the called terminal structured parameter. In the embodiment of the present application, the calling terminal configures the decision segment for constructing the SDP through the configuration list and the calling terminal structured parameter, and the operation segment corresponding to the decision segment is implemented by using the first signaling parameter, so as to meet the requirements of negotiation fault tolerance, dynamic control and other ability requirements of the SDP construction in the ubiquitous communication service, and the requirements of the SDP construction ability of multiple services and general devices in the ubiquitous communication scenario can also be met.

[0084] In the embodiment of the present application, as shown in Figure 2 and Figure 3 , in the process of constructing the SDP, the access terminal such as receiving and sending is abstracted into a channel structure, that is, the calling terminal and the called terminal are abstracted into a channel structure, and as shown in Figure 2 , ClientA and ClientB in the channel respectively represent the calling terminal and the called terminal. The structured parameter analysis, predicate decision, SDP operation and other actions as shown in Figure 3 are respectively executed in the calling terminal and the called terminal. Since the SDP is a negotiation process in the communication process, its content is associated with the capability of the calling terminal and the called terminal. In order to simplify the expression definition and description, the form of SDP segmentation construction is used, that is, each channel only concerns the predicate operation and SDP construction related to its own parameters, and then the SDP constructed by the local end is transmitted to another channel of the other end. The other end also performs the predicate operation to generate the final SDP and sends it to the client.

[0085] Specifically, please refer to Figure 3 , Figure 3The flow of constructing the SDP for the one end traverses the configuration items in the configuration list according to the order of the operation statements in the configuration list, that is, traverses the operation statements, and calls a syntax parser to parse the expressions in the configuration operation statements; the syntax parser parses the expressions into two parts of a decision segment and an operation segment; the structured parameters corresponding to the local end are taken as input parameters, a predicate decision engine is called to execute the decision segment, and a decision result is obtained; when the decision result is false, the next configuration item is jumped to, the operation step is repeatedly executed, and the operation is repeated until the decision result of the currently traversed decision segment is true. When the decision result is true, an SDP execution engine is called, the signaling parameters of the reference SDP signaling corresponding to the local end are taken as operation objects, the operation commands in the operation segment are executed, the pipe operation mode is adopted during the execution, the output of the execution of the previous operation command is taken as the input of the current operation command, and the execution of all the operation commands defined in the operation segment is completed, the final output of the execution of the operation command is taken 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 target SDP signaling generated is the finally constructed SDP signaling.

[0086] In an example embodiment of the present application, refer to Figure 4 In step 130, the determination of the first target decision segment based on the calling end structured parameters and each decision segment includes steps 410 to 420, which are described in detail as follows:

[0087] In step 410, the calling end structured parameters are taken as the input parameters of the preset predicate decision engine based on the order of the operation statements in the configuration list, each decision segment is executed by the preset predicate decision engine until the decision result of the execution of the decision segment is true.

[0088] In the embodiment of the present application, the decision segment is composed of multiple operation calls, which can be function calls, mathematical operations, etc., the operation calls are connected by logical operators, the final result of the execution of the operation calls is bool type, and the obtained decision result is only true or false. The definition of the decision segment is OP1∮OP2∮...∮OPn, wherein OP represents the operation call, and ∮ represents the logical operation.

[0089] The decision operation defined in the decision segment includes the following table 3:

[0090] Table 3

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

[0092] The preset predicate decision engine mainly loads a decision sentence and executes multiple sentences in the decision sentence, and performs logical judgment on the obtained execution result to obtain a final decision result. The control of multiple conditions of the SDP is realized through the syntax definition of the decision sentence, the predicate decision engine and the like, and the problem of the diversity of the SDP parameters under the ubiquitous communication is solved. The overall flow of the execution of the preset predicate decision engine is as shown in Figure 5

[0093] Specifically, based on the order of the operation sentences in the configuration list, first, the expression of the first decision sentence is loaded, and a syntax parser is called to split the expression into multiple operation calls according to the logical operation operators; second, each operation call is instantiated according to the calling terminal structured parameter, and a custom function is mapped, and the function operation is executed in the executor to obtain an execution result; then, the execution results are summarized, and logical operators are used for logical operation according to the logical definition relationship of the decision sentence to obtain a final decision result. When the decision result is false, the expression of the next decision sentence is loaded from the configuration list, and the processing flow of the first decision sentence is executed; when the decision result is true, the decision sentence is taken as the first target decision sentence, and the flow of executing the operation sentence corresponding to the first target decision sentence is entered until the end.

[0094] In step 320, the decision sentence corresponding to the true decision result is taken as the first target decision sentence.

[0095] In the embodiment of the application, when it is determined that the decision result is true in the traversal process, the corresponding decision sentence is directly taken as the first target decision sentence.

[0096] In an example embodiment of the application, the operation sentence corresponding to the first target decision sentence is executed based on the first signaling parameter in step 140 to obtain a corresponding first operation result, which includes the following steps, and the details are as follows:

[0097] The first signaling parameter is taken as an input parameter of a preset SDP execution engine, each operation command in the operation sentence corresponding to the first target decision sentence is executed through the preset SDP execution engine, and the first operation result is obtained.

[0098] In the embodiment of the application, the operation sentence is a text description, and the text is executed by the preset SDP execution engine. The content operation mode of the SDP is mainly defined in the operation sentence, which is composed of a series of operation commands, and multiple operation commands are connected by using a pipe operator "|". The pipe operation is used in the execution process, that is, the output result of the previous operation command is taken as the operation object of the next operation command.

[0099] ​In the embodiment of the present application, the syntax structure of the operation segment is composed of three parts of function, parameter list and pipe symbol, and the structure definition is: func1(args1) | func2(args2) |... funcn(args n ), wherein func represents function name, args n represents function parameter of the nth function, and | represents pipe operator.

[0100] The syntax content of the operation segment mainly defines the operation object of the SDP, and mainly includes segment operation and attribute operation, and the specific content is shown in Table 4 as follows:

[0101] Table 4

[0102]

[0103]

[0104] After the syntax structure and syntax definition of the operation segment are defined, the operation, parameter and the like of the SDP described by the text are modified based on the first signaling parameter.

[0105] The preset SDP execution engine executes the definition in the operation segment, converts the statement description into function call, and generates the first operation result. The syntax definition of the operation segment, the SDP execution engine and the like realize the specific execution action of the SDP content, effectively modify the SDP content through the pipe execution mode, and guarantee the dynamic execution of the SDP content. The main process of the preset SDP execution engine is shown in Figure 6 .

[0106] Specifically, first, the pipe analysis is performed on the operation segment, the operation segment is segmented into several pipes by using the pipe operation, and the pipe connection is established. Secondly, syntax analysis is performed on each pipe, mainly including parameter analysis and function mapping. The parameter analysis is the instantiation operation on the parsed parameters, and the parameter expansion operation is performed on the reference type parameters. The function mapping is to map the function in the description to the function execution program, and the executor is called to execute the action. After the current pipe is executed, the intermediate result is obtained, and the intermediate result is input as an execution parameter into the next pipe, and the next pipe is called to continue the above execution syntax analysis and the like. It should be noted that in the initial execution, the first signaling parameter is used as the operation object. When all the pipes are executed, the final first operation result is obtained.

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

[0108] The SIP protocol is acquired, and parameter analysis is performed on the SIP protocol to obtain a calling terminal structured parameter of the calling terminal for at least one of a service, a device, and call information.

[0109] In the embodiment of the application, the SIP protocol (Session Initiation Protocol) is subjected to parameter analysis, and specifically, a parameter analysis engine can acquire a calling terminal structured parameter of the calling terminal for at least one of a service, a device, and call information from the SIP protocol. The calling terminal structured parameter obtained is shown in Table 5 below.

[0110] Table 5

[0111]

[0112]

[0113] In another embodiment of the application, the calling terminal structured parameter can be set in advance through parameter presetting.

[0114] In the embodiment of the application, if it is necessary to extend the calling terminal structured parameter, the parameter analysis engine or the parameter structure definition can be added. The calling terminal structured parameter acquired is used as an execution parameter of a function in a subsequent decision-making section to control conditional decision-making operation.

[0115] In the embodiment of the application, through definition of the calling terminal structured parameter, a connection between SDP operation and the service, the device, and the call is established to meet various application requirements under ubiquitous communication.

[0116] Figure 7 Fig. 1 is a flowchart of an SDP construction method according to an example embodiment. As shown in Fig. 1, in an example embodiment, the SDP construction method applied to a calling terminal includes steps 110 to 150, which are described in detail as follows. Figure 7

[0117] Step 110, a first target SDP signaling sent by a called terminal is received, and a calling terminal structured parameter and a configuration list are acquired; wherein the configuration list includes a plurality of operation statements.

[0118] In the embodiment of the application, the called terminal takes the received first target SDP signaling as a reference SDP signaling, and performs subsequent processing on the basis of the reference SDP signaling. The calling terminal structured parameter is a parameter corresponding to the calling terminal, and is similar to the calling terminal structured parameter, and defines content related to the service, the device, and the call information. The configuration list in the called terminal is the same as the configuration list in the calling terminal, and thus is not described herein.

[0119] ​Step 720, the first target SDP signaling is parsed to obtain a second signaling parameter, and each operation statement in the configuration list is parsed to obtain a decision segment of each operation statement and an operation segment corresponding to the decision segment.

[0120] In the embodiment of the application, the lazy algorithm strategy is adopted to parse the first target SDP signaling, and the SDP content not in the execution range of the predicate statement is reserved, so that the private information of the terminal in the SDP transmission can be reserved, and the integrity of the SDP content is maintained 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, and the description of the decision segment and the operation segment is consistent with the description in the foregoing step 120, and will not be repeated here.

[0122] Step 730, a second target decision segment is determined based on the called terminal structured parameter and each decision segment.

[0123] In the embodiment of the application, the called terminal structured parameter is taken as the input parameter of the decision segment, and the second target decision segment is determined from all the decision segments of the configuration list.

[0124] Step 740, an operation segment corresponding to the second target decision segment is executed based on the second signaling parameter to obtain a corresponding second operation result.

[0125] In the embodiment of the application, the second signaling parameter is taken as the input parameter of the operation segment corresponding to the second target decision segment, and the operation is executed to obtain the corresponding second operation result.

[0126] Step 750, a second target SDP signaling is generated based on the second operation result.

[0127] In the embodiment of the application,

[0128] In the embodiment of the present application, the received first target SDP signaling is parsed to obtain a second signaling parameter, the first target SDP signaling is obtained based on a terminal SDP signaling, and the original content of the terminal side for the SDP is retained to the maximum extent; meanwhile, each operation statement in the configuration list is parsed to obtain a decision segment and an operation segment corresponding to each operation statement; a plurality of decision segments are configured in the configuration list, a second target decision segment is determined based on the called terminal structured parameter and each decision segment, so that the determined second target decision segment can be applicable to the called terminal, and then an operation segment corresponding to the second target decision segment is executed based on the second signaling parameter to obtain a corresponding second operation result, and further a second target SDP signaling is generated based on the second operation result. In the embodiment of the present application, the called terminal configures and constructs the decision segment of the SDP through the configuration list and the called terminal structured parameter, and the operation segment corresponding to the decision segment is implemented by using the second signaling parameter, so as to meet the requirements of negotiation fault tolerance, dynamic control and other ability requirements of the SDP construction in the ubiquitous communication service, and at the same time, the requirements of the SDP construction ability of multiple services and ubiquitous devices in the ubiquitous communication scene can be met.

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

[0130] In step 810, the called terminal structured parameter is taken as an input parameter of a preset predicate decision engine based on the order of the operation statement in the configuration list, each decision segment is executed through the predicate decision engine until the decision result of the decision segment is true.

[0131] In the embodiment of the present application, the preset predicate decision engine mainly loads the decision segment and executes a plurality of statements in the decision segment, and performs logical judgment on the obtained execution result to obtain a final decision result. The control of the plurality of conditions of the SDP is realized through the syntax definition of the decision segment and the predicate decision engine, and the problem of the diversity of the SDP parameters under the ubiquitous communication is solved. The overall flow of the execution of the preset predicate decision engine is as shown in Figure 5 .

[0132] Specifically, based on the order of the operation statements in the configuration list, firstly, the expression of the first decision phrase is loaded, and a syntax parser is called to split the expression into multiple operation calls according to the logical operators; secondly, each operation call is instantiated according to the called-end structured parameters, and a custom function is mapped, and the function operation is executed in the executor to obtain the execution result; then, the execution results are summarized, and the logical decision maker is used for logical operation according to the logical definition relationship of the decision phrase to obtain the final decision result. When the decision result is false, the expression of the next decision phrase is loaded from the configuration list, and the processing flow of the first decision phrase is executed; when the decision result is true, the decision phrase is taken as the second target decision phrase, and the flow of executing the second target decision phrase is entered until the end.

[0133] In step 820, the decision phrase corresponding to the true decision result is taken as the second target decision phrase.

[0134] In the embodiment of the application, in the process of traversal, when it is determined that the decision result is true, the corresponding decision phrase is directly taken as the second target decision phrase.

[0135] In an exemplary embodiment of the application, the operation phrase corresponding to the second target decision phrase is executed based on the second signaling parameter in step 740 to obtain a corresponding second operation result, which includes the following steps, and is described in detail as follows:

[0136] The second signaling parameter is taken as an input parameter of a preset SDP execution engine, each operation command in the operation phrase corresponding to the second target decision phrase is executed through the preset SDP execution engine, and the second operation result is obtained.

[0137] In the embodiment of the application, the preset SDP execution engine executes the definition in the operation phrase, converts the statement description into a function call, and generates the second operation result. The syntax definition of the operation phrase, the SDP execution engine and the like realize the specific execution action of the SDP content, effectively modify the SDP content through the pipeline execution mode, and guarantee the dynamic execution of the SDP content. The main flow of the preset SDP execution engine is as shown in Figure 6

[0138] ​Specifically, first, pipeline analysis is performed on the operation sentence, and the operation sentence is divided into several pipelines by using pipeline operation, and pipeline connection is established. Secondly, syntax analysis is performed on each pipeline, mainly including parameter analysis and function mapping. The parameter analysis is an instantiation operation on the parsed parameters, and parameter expansion operation is performed on the reference type parameters. The function mapping is to map the function in the description to the function execution program, and the executor is called to execute the action. After the current pipeline is executed, the intermediate result is obtained, and the intermediate result is input as an execution parameter into the next pipeline, and the next pipeline is called to continue the above-mentioned syntax analysis operation. It should be noted that, as shown in the first execution, the second signaling parameter is used as an operation object. When all the pipelines are executed, the final second operation result is obtained. Figure 2

[0139] In an example embodiment of the present application, before the step 710 of obtaining the called terminal structured parameter and the configuration list, the method further includes the following steps, which are described in detail as follows.

[0140] The SIP protocol is obtained, and parameter analysis is performed on the SIP protocol to obtain the called terminal structured parameter for at least one of the service, the device, and the call information of the called terminal.

[0141] In the embodiment of the present application, the SIP protocol (Session Initiation Protocol) is subjected to parameter analysis. Specifically, the parameter analysis engine can obtain the called terminal structured parameter for at least one of the service, the device, and the call information from the SIP protocol. The obtained called terminal structured parameter can be as shown in Table 5.

[0142] In another embodiment of the present application, the called terminal structured parameter can be set in advance by parameter presetting.

[0143] In the embodiment of the present application, if it is necessary to expand the called terminal structured parameter, it can be added in the parameter analysis engine or the parameter structure definition. The obtained called terminal structured parameter is used as an execution parameter of the function in the subsequent decision sentence to control the conditional decision operation.

[0144] In the embodiment of the present application, by defining the called terminal structured parameter, the connection between the SDP operation and the service, the device, and the call is established to meet various application requirements under ubiquitous communication.

[0145] ​The SDP construction device provided by the present application is described below. The SDP construction device described below can be referred to the SDP construction method described above. It should be noted that the device provided in the following embodiments belongs to the same concept as the method provided in the above embodiments, and the specific operation of each module and unit has been described in detail in the method embodiments, which will not be described here.

[0146] In an example embodiment of the present application, referring to Figure 9 , Figure 9 The SDP construction device applied to a calling terminal according to an example embodiment includes:

[0147] The obtaining module 910 is configured to obtain a terminal SDP signaling of the calling terminal, a calling terminal structured parameter, and a configuration list. The configuration list includes a plurality of operation statements.

[0148] The first analysis module 920 is configured to analyze the terminal SDP signaling to obtain a first signaling parameter, and analyze 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.

[0149] The first determination module 930 is configured to determine a first target decision segment based on the calling terminal structured parameter and each decision segment.

[0150] The 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 generation 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 a called terminal, so that the called terminal generates a second target SDP signaling based on the first target SDP signaling, the configuration list, and a called terminal structured parameter.

[0152] In an example embodiment of the present application, the first determination module 930 includes:

[0153] The first execution submodule is configured to take the calling terminal structured parameter as an input parameter of a preset predicate decision engine based on the order of the operation statement in the configuration list, execute each decision segment through the preset predicate decision engine until the decision result of the decision segment is true.

[0154] The first as submodule is configured to take the decision segment corresponding to the true decision result as the first target decision segment.

[0155] In an example embodiment of the present application, the first execution module 940 comprises:

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

[0157] In an example embodiment of the present application, the SDP construction device further comprises:

[0158] The third analysis module is configured to acquire a SIP protocol, and perform parameter analysis on the SIP protocol to obtain a calling terminal structured parameter of the calling terminal for at least one of a service, a device, and call information.

[0159] In an example embodiment of the present application, refer to Figure 10 , Figure 10 An SDP construction device applied to a called terminal is shown according to an example embodiment, comprising:

[0160] The receiving module 1010 is configured to receive a first target SDP signaling sent by a calling terminal, and acquire a called terminal structured parameter and a configuration list; wherein the configuration list comprises a plurality of operation statements;

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

[0162] The second determination module 1030 is configured to determine a second target decision sentence based on the called terminal structured parameter and each decision sentence;

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

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

[0165] In an example embodiment of the present application, the second determination module 1030 comprises:

[0166] The third execution submodule is configured to take the called terminal structured parameter as an input parameter of a preset predicate decision engine based on the order of the operation statement in the configuration list, execute each decision sentence through the predicate decision engine until the decision result of the decision sentence is true.

[0167] The second module is configured to use the judgment segment corresponding to the judgment result being true as the second target judgment segment.

[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 the input parameter of the preset SDP execution engine, and execute each operation command in the operation segment corresponding to the second target decision segment through the preset SDP execution engine to obtain the second operation result.

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

[0171] The fourth parsing module is configured to obtain the SIP protocol and parse the parameters of the SIP protocol to obtain the called party's structured parameters for at least one of the following: service, device, and call information.

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

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

[0174] The terminal SDP signaling is parsed to obtain the first signaling parameters, and each operation statement in the configuration list is parsed to obtain the decision segment of each operation statement and the operation segment corresponding to the decision segment.

[0175] The first target decision segment is determined based on the calling end structured parameters and each of the decision segments;

[0176] Based on the first signaling parameters, the operation segment corresponding to the first target decision segment is executed to obtain the corresponding first operation result;

[0177] generate a first target SDP signaling based on the first operation result, and send 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 called terminal structured parameter;

[0178] The SDP construction method applied to the called terminal comprises:

[0179] receiving the first target SDP signaling sent by the calling terminal, and obtaining the called terminal structured parameter and the configuration list; wherein the configuration list comprises a plurality of operation statements;

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

[0181] determining a second target judgment segment based on the called terminal structured parameter and each judgment segment;

[0182] executing the operation segment corresponding to the second target judgment segment based on the second signaling parameter to obtain a corresponding second operation result;

[0183] generating a second target SDP signaling based on the second operation result.

[0184] In addition, the logical instructions in the memory 1130 described above can be implemented in the form of a software function unit and sold or used as an independent product, which can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0185] On the other hand, the present application also provides a computer program product, which comprises a computer program, the computer program can be stored on a non-transitory computer readable storage medium, and the computer program is executed by a processor, so that the computer can execute the SDP construction method applied to the calling terminal and the SDP construction method applied to the called terminal provided by the above-mentioned methods, the SDP construction method applied to the calling terminal comprises:

[0186] obtaining terminal SDP signaling of the calling terminal, calling terminal structured parameters and a configuration list, wherein the configuration list comprises a plurality of operation statements;

[0187] parsing the terminal SDP signaling to obtain first signaling parameters, 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 terminal structured parameters and each decision segment;

[0189] executing an operation segment corresponding to the first target decision segment based on the first signaling parameters 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 terminal, so that the called terminal generates a second target SDP signaling based on the first target SDP signaling, the configuration list and called terminal structured parameters;

[0191] An SDP construction method applied to a called terminal, comprising:

[0192] receiving a first target SDP signaling sent by a calling terminal, and obtaining called terminal structured parameters and a configuration list, wherein the configuration list comprises a plurality of operation statements;

[0193] parsing the first target SDP signaling to obtain second signaling parameters, 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] determining a second target decision segment based on the called terminal structured parameters and each decision segment;

[0195] executing an operation segment corresponding to the second target decision segment based on the second signaling parameters to obtain a corresponding second operation result;

[0196] generating a second target SDP signaling based on the second operation result.

[0197] In another aspect, the present application also provides a non-transitory computer readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the SDP construction method applied to a calling terminal and the SDP construction method applied to a called terminal provided by the above-mentioned methods, the SDP construction method applied to a calling terminal comprising:

[0198] obtain terminal SDP signaling of a calling terminal, structured parameters of the calling terminal and a configuration list, wherein the configuration list comprises a plurality of operation statements;

[0199] analyze the terminal SDP signaling to obtain first signaling parameters, and analyze each operation statement in the configuration list to obtain a judgment segment of each operation statement and an operation segment corresponding to the judgment segment;

[0200] determine a first target judgment segment based on the structured parameters of the calling terminal and each judgment segment;

[0201] execute an operation segment corresponding to the first target judgment segment based on the first signaling parameters to obtain a corresponding first operation result;

[0202] generate a first target SDP signaling based on the first operation result, and send the first target SDP signaling to a called terminal, so that the called terminal generates a second target SDP signaling based on the first target SDP signaling, the configuration list and structured parameters of the called terminal;

[0203] An SDP construction method applied to a called terminal, comprising:

[0204] receive a first target SDP signaling sent by a calling terminal, and obtain structured parameters of the called terminal and a configuration list, wherein the configuration list comprises a plurality of operation statements;

[0205] analyze the first target SDP signaling to obtain second signaling parameters, and analyze each operation statement in the configuration list to obtain a judgment segment of each operation statement and an operation segment corresponding to the judgment segment;

[0206] determine a second target judgment segment based on the structured parameters of the called terminal and each judgment segment;

[0207] execute an operation segment corresponding to the second target judgment segment based on the second signaling parameters to obtain a corresponding second operation result;

[0208] generate a second target SDP signaling based on the second operation result.

[0209] The apparatus embodiments described above are merely illustrative, wherein the units shown as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments. Those skilled in the art can understand and implement without creative labor.

[0210] Those skilled in the art can clearly understand the implementation of the embodiments by means of software and necessary general hardware platforms through the description of the above embodiments, and of course, the embodiments can also be implemented by hardware. Based on such understanding, the above technical solutions 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 a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.

[0211] Finally, it should be noted that: the above examples are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing examples, or make equivalent replacement for some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method of SDP construction, characterized by, Applied to a calling terminal, the method comprises: obtaining terminal SDP signaling of the calling terminal, calling terminal structured parameters and a configuration list; wherein the configuration list comprises multiple operation statements; parsing the terminal SDP signaling to obtain first signaling parameters, 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 terminal structured parameters and each decision segment; executing the operation segment corresponding to the first target decision segment based on the first signaling parameters to obtain a corresponding first operation result; generating a first target SDP signaling based on the first operation result, and sending the first target SDP signaling to a called terminal, so that the called terminal generates a second target SDP signaling based on the first target SDP signaling, the configuration list and called terminal structured parameters.

2. The SDP construction method of claim 1, wherein, The method further comprises, before the obtaining terminal SDP signaling of the calling terminal, calling terminal structured parameters and a configuration list: obtaining a SIP protocol, and performing parameter analysis on the SIP protocol to obtain calling terminal structured parameters of the calling terminal for at least one of a service, a device and call information. Applied to a calling terminal, the method comprises:

3. The SDP construction method of claim 1, wherein, receiving a first target SDP signaling sent by a calling terminal, and obtaining called terminal structured parameters and a configuration list; wherein the configuration list comprises multiple operation statements; parsing the first target SDP signaling to obtain second signaling parameters, 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; 4. The SDP building method of any of claims 1 to 3, wherein, determining a second target decision segment based on the called terminal structured parameters and each decision segment; executing the operation segment corresponding to the second target decision segment based on the second signaling parameters to obtain a corresponding second operation result; 5. A method of SDP construction, characterized by, generating a second target SDP signaling based on the second operation result. The method further comprises, before the receiving a first target SDP signaling sent by a calling terminal, and obtaining called terminal structured parameters and a configuration list: obtaining a SIP protocol, and performing parameter analysis on the SIP protocol to obtain calling terminal structured parameters of the calling terminal for at least one of a service, a device and call information. ​ ​ ​ 6. The SDP building method of claim 5, wherein, ​ Based on the order of the operation statements in the configuration list, the called terminal structured parameter is taken as an input parameter of a preset predicate decision engine, each of the decision statements is executed by the predicate decision engine until the decision result of the decision statement is true; The decision statement corresponding to the true decision result is taken as the second target decision statement.

7. The SDP construction method of claim 5, wherein, The operation statement corresponding to the second target decision statement is executed based on the second signaling parameter, and a corresponding second operation result is obtained, which includes: The second signaling parameter is taken as an input parameter of a preset SDP execution engine, each operation command in the operation statement corresponding to the second target decision statement is executed by the preset SDP execution engine, and the second operation result is obtained.

8. The SDP building method of any of claims 5 to 7, wherein, Before the called terminal structured parameter and the configuration list are obtained, the method further includes: A SIP protocol is obtained, and the SIP protocol is parameter parsed to obtain the called terminal structured parameter for at least one of a service, a device, and call information.

9. An SDP constructing apparatus, characterized by comprising: Applied to a calling terminal, the device includes: An obtaining module configured to obtain a terminal SDP signaling of the calling terminal, a calling terminal structured parameter, and a configuration list; the configuration list includes multiple operation statements; A first parsing module configured to parse the terminal SDP signaling to obtain a first signaling parameter, and parse each operation statement in the configuration list to obtain a decision statement of each operation statement and an operation statement corresponding to the decision statement; A first determining module configured to determine a first target decision statement based on the calling terminal structured parameter and each decision statement; A first executing module configured to execute the operation statement corresponding to the first target decision statement based on the first signaling parameter to obtain a corresponding first operation result; A first generating module configured to generate a first target SDP signaling based on the first operation result, and send the first target SDP signaling to a called terminal, so that the called terminal generates a second target SDP signaling based on the first target SDP signaling, the configuration list, and a called terminal structured parameter.

10. An SDP constructing apparatus, characterized by comprising: Applied to a called terminal, the device includes: A receiving module configured to receive a first target SDP signaling sent by a calling terminal, and obtain a called terminal structured parameter and a configuration list; the configuration list includes multiple operation statements; A second parsing module 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 statement of each operation statement and an operation statement corresponding to the decision statement; A second determining module configured to determine a second target decision statement based on the called terminal structured parameter and each decision statement; A second executing module configured to execute the operation statement corresponding to the second target decision statement based on the second signaling parameter to obtain a corresponding second operation result; A second generating module 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 on the memory and executable on the processor, characterized in that, The processor implements the SDP construction method in any one of claims 1 to 8 when executing the program.

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

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

Citation Information

Patent Citations

  • 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