Loading LibSip_Steps.ttcn +51 −2 Original line number Diff line number Diff line Loading @@ -1615,6 +1615,21 @@ group SDPOperations{ return(false); } /** * @desc * check if message body include precondition mechanism (a=des and * a=curr) retrun true, else false * @param loc_sdp SDP message */ function f_check_precondition(in SDP_Message loc_sdp) runs on SipComponent return boolean { if (f_check_attribute(loc_sdp, mw_attribute_des) or f_check_attribute(loc_sdp, mw_attribute_curr)) {return(true);} return(false); } /** * @desc check if message body include SDP media direction return true, else false * Loading Loading @@ -1649,6 +1664,36 @@ group SDPOperations{ return true } /** * @desc replace the first curr media attribute with the given value. * @param p_sdp SDP message to modify * @param p_curr new curr attribute */ function f_replace_curr_attribute(inout SDP_Message p_sdp, in SDP_attribute_curr p_curr) { if(ispresent(p_sdp.media_list)) { var integer mn := sizeof(p_sdp.media_list[0].attributes); for(var integer i := 0; i<=mn; i := i+1) { if(ischosen(p_sdp.media_list[0].attributes[i].curr)){ p_sdp.media_list[0].attributes[i].curr := p_curr; i:=mn; } } } } /** * @desc append new media attribute to the first media description. * @param p_sdp SDP message to modify * @param p_att SDP attribute to appand */ function f_append_media_attribute(inout SDP_Message p_sdp, in SDP_attribute p_att) { if(ispresent(p_sdp.media_list)) { var integer mn := sizeof(p_sdp.media_list[0].attributes); p_sdp.media_list[0].attributes[mn] := p_att; } } /** * @desc append new media to the existing media list in SDP * Loading Loading @@ -2069,6 +2114,10 @@ group SDPOperations{ } } function f_qos_inital_offer(SDP_Message p_sdp) runs on SipComponent { } }//end group SDPOperations Loading Loading
LibSip_Steps.ttcn +51 −2 Original line number Diff line number Diff line Loading @@ -1615,6 +1615,21 @@ group SDPOperations{ return(false); } /** * @desc * check if message body include precondition mechanism (a=des and * a=curr) retrun true, else false * @param loc_sdp SDP message */ function f_check_precondition(in SDP_Message loc_sdp) runs on SipComponent return boolean { if (f_check_attribute(loc_sdp, mw_attribute_des) or f_check_attribute(loc_sdp, mw_attribute_curr)) {return(true);} return(false); } /** * @desc check if message body include SDP media direction return true, else false * Loading Loading @@ -1649,6 +1664,36 @@ group SDPOperations{ return true } /** * @desc replace the first curr media attribute with the given value. * @param p_sdp SDP message to modify * @param p_curr new curr attribute */ function f_replace_curr_attribute(inout SDP_Message p_sdp, in SDP_attribute_curr p_curr) { if(ispresent(p_sdp.media_list)) { var integer mn := sizeof(p_sdp.media_list[0].attributes); for(var integer i := 0; i<=mn; i := i+1) { if(ischosen(p_sdp.media_list[0].attributes[i].curr)){ p_sdp.media_list[0].attributes[i].curr := p_curr; i:=mn; } } } } /** * @desc append new media attribute to the first media description. * @param p_sdp SDP message to modify * @param p_att SDP attribute to appand */ function f_append_media_attribute(inout SDP_Message p_sdp, in SDP_attribute p_att) { if(ispresent(p_sdp.media_list)) { var integer mn := sizeof(p_sdp.media_list[0].attributes); p_sdp.media_list[0].attributes[mn] := p_att; } } /** * @desc append new media to the existing media list in SDP * Loading Loading @@ -2069,6 +2114,10 @@ group SDPOperations{ } } function f_qos_inital_offer(SDP_Message p_sdp) runs on SipComponent { } }//end group SDPOperations Loading