Loading ttcn/LibIms_Steps.ttcn +23 −23 Original line number Original line Diff line number Diff line Loading @@ -179,7 +179,7 @@ module LibIms_Steps { vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); vc_callId := { vc_callId := { fieldName := CALL_ID_E, fieldName := CALL_ID_E, callid := f_getRndCallId(p_cSeq_s) & c_AT & vc_userprofile.currIpaddr callid := f_getRndCallId() & c_AT & vc_userprofile.currIpaddr }; }; } } } // end function f_setHeadersForwardRequest } // end function f_setHeadersForwardRequest Loading Loading @@ -451,7 +451,7 @@ module LibIms_Steps { vc_callId := { vc_callId := { fieldName := CALL_ID_E, fieldName := CALL_ID_E, callid := f_getRndCallId(p_cSeq_s) & c_AT & vc_userprofile.currIpaddr callid := f_getRndCallId() & c_AT & vc_userprofile.currIpaddr }; }; vc_callIdReg := vc_callId; vc_callIdReg := vc_callId; Loading Loading @@ -726,7 +726,7 @@ module LibIms_Steps { f_SendREGISTER(m_REGISTER_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via_REG, vc_contact, m_add_Authorization_digest(vc_authorization, {c_Integrity_protected_yes}), p_host, p_port)); // LibSip f_SendREGISTER(m_REGISTER_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via_REG, vc_contact, m_add_Authorization_digest(vc_authorization, {c_Integrity_protected_yes}), p_host, p_port)); // LibSip // awaiting 200 OK REGISTER // awaiting 200 OK REGISTER f_awaitingOkResponse(p_cSeq_s); f_awaitingOkResponse(p_cSeq_s); f_getServiceRouteMapIntoRouteInRegistration(p_cSeq_s, vc_response); f_getServiceRouteMapIntoRouteInRegistration(vc_response); } } [] SIPP.receive(mw_Response_Base(c_statusLine200, vc_callId, p_cSeq_s)) { [] SIPP.receive(mw_Response_Base(c_statusLine200, vc_callId, p_cSeq_s)) { tc_ack.stop; tc_ack.stop; Loading @@ -737,7 +737,7 @@ module LibIms_Steps { } } else { else { f_awaitingOkResponse(p_cSeq_s); f_awaitingOkResponse(p_cSeq_s); f_getServiceRouteMapIntoRouteInRegistration(p_cSeq_s, vc_response); f_getServiceRouteMapIntoRouteInRegistration(vc_response); } } } // end function f_Registration_IMS } // end function f_Registration_IMS Loading Loading @@ -856,7 +856,7 @@ module LibIms_Steps { } } [] SIPP.receive(mw_Response_Base(c_statusLine200, vc_callIdReg, p_cSeq_s)) -> value vc_response { [] SIPP.receive(mw_Response_Base(c_statusLine200, vc_callIdReg, p_cSeq_s)) -> value vc_response { tc_ack.stop; tc_ack.stop; f_setHeadersOnReceiptOfResponse(vc_cSeq, vc_response); f_setHeadersOnReceiptOfResponse(vc_response); log("*** " & __SCOPE__ & ": INFO: Authorization was not requested as expected ***"); log("*** " & __SCOPE__ & ": INFO: Authorization was not requested as expected ***"); } } } } Loading Loading @@ -903,7 +903,7 @@ module LibIms_Steps { // Preamble // Preamble //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_dyn, PX_SIP_SDP_encoding), vc_userprofile)); vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_DYN, PX_SIP_SDP_ENCODING), vc_userprofile)); vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); } } Loading @@ -925,7 +925,7 @@ module LibIms_Steps { // Preamble // Preamble //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_dyn, PX_SIP_SDP_encoding), vc_userprofile)); vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_DYN, PX_SIP_SDP_ENCODING), vc_userprofile)); } } /** /** Loading Loading @@ -1035,7 +1035,7 @@ module LibIms_Steps { // Preamble // Preamble //NOTE STF471: removed f_init_interfaceprofile(p_interface); //NOTE STF471: removed f_init_interfaceprofile(p_interface); //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_dyn, PX_SIP_SDP_encoding), vc_userprofile)); vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_DYN, PX_SIP_SDP_ENCODING), vc_userprofile)); vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); } } Loading Loading @@ -1321,7 +1321,7 @@ module LibIms_Steps { // ignore 181 if flag is set (following TS 183004 §4.5.2.1) // ignore 181 if flag is set (following TS 183004 §4.5.2.1) [vc_ignore181] SIPP.receive(mw_Response_Base(c_statusLine181, vc_callId, vc_cSeq)) -> value v_response sender vc_sent_label { [vc_ignore181] SIPP.receive(mw_Response_Base(c_statusLine181, vc_callId, vc_cSeq)) -> value v_response sender vc_sent_label { v_cSeq := valueof(v_response.msgHeader.cSeq); v_cSeq := valueof(v_response.msgHeader.cSeq); f_setHeadersOnReceiptOfResponse(v_cSeq, v_response); f_setHeadersOnReceiptOfResponse(v_response); repeat; repeat; } } // according to SIP chap.8.1.3.2 // according to SIP chap.8.1.3.2 Loading @@ -1334,7 +1334,7 @@ module LibIms_Steps { } } [vc_ignore4xx] SIPP.receive(mw_Response_Base(mw_statusLine4xx, vc_callId, ?)) -> value v_response sender vc_sent_label { [vc_ignore4xx] SIPP.receive(mw_Response_Base(mw_statusLine4xx, vc_callId, ?)) -> value v_response sender vc_sent_label { v_cSeq := valueof(v_response.msgHeader.cSeq); v_cSeq := valueof(v_response.msgHeader.cSeq); f_setHeadersOnReceiptOfResponse(v_cSeq, v_response); f_setHeadersOnReceiptOfResponse(v_response); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); repeat; repeat; } } Loading Loading @@ -1392,7 +1392,7 @@ module LibIms_Steps { log("*** " & testcasename() & ": FAIL: Unexpected 4xx response received. ***"); log("*** " & testcasename() & ": FAIL: Unexpected 4xx response received. ***"); setverdict(fail); setverdict(fail); v_cSeq := valueof(v_response.msgHeader.cSeq); v_cSeq := valueof(v_response.msgHeader.cSeq); f_setHeadersOnReceiptOfResponse(v_cSeq, v_response); f_setHeadersOnReceiptOfResponse(v_response); LibSip_Steps.f_setHeadersACK(); LibSip_Steps.f_setHeadersACK(); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); action("Please de-register"); action("Please de-register"); Loading @@ -1404,7 +1404,7 @@ module LibIms_Steps { log("*** " & testcasename() & ": FAIL: Unexpected 5xx response received. ***"); log("*** " & testcasename() & ": FAIL: Unexpected 5xx response received. ***"); setverdict(fail); setverdict(fail); v_cSeq := valueof(v_response.msgHeader.cSeq); v_cSeq := valueof(v_response.msgHeader.cSeq); f_setHeadersOnReceiptOfResponse(v_cSeq, v_response); f_setHeadersOnReceiptOfResponse(v_response); LibSip_Steps.f_setHeadersACK(); LibSip_Steps.f_setHeadersACK(); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); action("Please de-register"); action("Please de-register"); Loading Loading
ttcn/LibIms_Steps.ttcn +23 −23 Original line number Original line Diff line number Diff line Loading @@ -179,7 +179,7 @@ module LibIms_Steps { vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); vc_callId := { vc_callId := { fieldName := CALL_ID_E, fieldName := CALL_ID_E, callid := f_getRndCallId(p_cSeq_s) & c_AT & vc_userprofile.currIpaddr callid := f_getRndCallId() & c_AT & vc_userprofile.currIpaddr }; }; } } } // end function f_setHeadersForwardRequest } // end function f_setHeadersForwardRequest Loading Loading @@ -451,7 +451,7 @@ module LibIms_Steps { vc_callId := { vc_callId := { fieldName := CALL_ID_E, fieldName := CALL_ID_E, callid := f_getRndCallId(p_cSeq_s) & c_AT & vc_userprofile.currIpaddr callid := f_getRndCallId() & c_AT & vc_userprofile.currIpaddr }; }; vc_callIdReg := vc_callId; vc_callIdReg := vc_callId; Loading Loading @@ -726,7 +726,7 @@ module LibIms_Steps { f_SendREGISTER(m_REGISTER_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via_REG, vc_contact, m_add_Authorization_digest(vc_authorization, {c_Integrity_protected_yes}), p_host, p_port)); // LibSip f_SendREGISTER(m_REGISTER_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via_REG, vc_contact, m_add_Authorization_digest(vc_authorization, {c_Integrity_protected_yes}), p_host, p_port)); // LibSip // awaiting 200 OK REGISTER // awaiting 200 OK REGISTER f_awaitingOkResponse(p_cSeq_s); f_awaitingOkResponse(p_cSeq_s); f_getServiceRouteMapIntoRouteInRegistration(p_cSeq_s, vc_response); f_getServiceRouteMapIntoRouteInRegistration(vc_response); } } [] SIPP.receive(mw_Response_Base(c_statusLine200, vc_callId, p_cSeq_s)) { [] SIPP.receive(mw_Response_Base(c_statusLine200, vc_callId, p_cSeq_s)) { tc_ack.stop; tc_ack.stop; Loading @@ -737,7 +737,7 @@ module LibIms_Steps { } } else { else { f_awaitingOkResponse(p_cSeq_s); f_awaitingOkResponse(p_cSeq_s); f_getServiceRouteMapIntoRouteInRegistration(p_cSeq_s, vc_response); f_getServiceRouteMapIntoRouteInRegistration(vc_response); } } } // end function f_Registration_IMS } // end function f_Registration_IMS Loading Loading @@ -856,7 +856,7 @@ module LibIms_Steps { } } [] SIPP.receive(mw_Response_Base(c_statusLine200, vc_callIdReg, p_cSeq_s)) -> value vc_response { [] SIPP.receive(mw_Response_Base(c_statusLine200, vc_callIdReg, p_cSeq_s)) -> value vc_response { tc_ack.stop; tc_ack.stop; f_setHeadersOnReceiptOfResponse(vc_cSeq, vc_response); f_setHeadersOnReceiptOfResponse(vc_response); log("*** " & __SCOPE__ & ": INFO: Authorization was not requested as expected ***"); log("*** " & __SCOPE__ & ": INFO: Authorization was not requested as expected ***"); } } } } Loading Loading @@ -903,7 +903,7 @@ module LibIms_Steps { // Preamble // Preamble //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_dyn, PX_SIP_SDP_encoding), vc_userprofile)); vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_DYN, PX_SIP_SDP_ENCODING), vc_userprofile)); vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); } } Loading @@ -925,7 +925,7 @@ module LibIms_Steps { // Preamble // Preamble //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_dyn, PX_SIP_SDP_encoding), vc_userprofile)); vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_DYN, PX_SIP_SDP_ENCODING), vc_userprofile)); } } /** /** Loading Loading @@ -1035,7 +1035,7 @@ module LibIms_Steps { // Preamble // Preamble //NOTE STF471: removed f_init_interfaceprofile(p_interface); //NOTE STF471: removed f_init_interfaceprofile(p_interface); //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable //NOTE STF471: removed f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_dyn, PX_SIP_SDP_encoding), vc_userprofile)); vc_sdp_local := valueof(m_SDP_bandwidth(m_media_dynPT(PX_SIP_SDP_DYN, PX_SIP_SDP_ENCODING), vc_userprofile)); vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); vc_contact := m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)); } } Loading Loading @@ -1321,7 +1321,7 @@ module LibIms_Steps { // ignore 181 if flag is set (following TS 183004 §4.5.2.1) // ignore 181 if flag is set (following TS 183004 §4.5.2.1) [vc_ignore181] SIPP.receive(mw_Response_Base(c_statusLine181, vc_callId, vc_cSeq)) -> value v_response sender vc_sent_label { [vc_ignore181] SIPP.receive(mw_Response_Base(c_statusLine181, vc_callId, vc_cSeq)) -> value v_response sender vc_sent_label { v_cSeq := valueof(v_response.msgHeader.cSeq); v_cSeq := valueof(v_response.msgHeader.cSeq); f_setHeadersOnReceiptOfResponse(v_cSeq, v_response); f_setHeadersOnReceiptOfResponse(v_response); repeat; repeat; } } // according to SIP chap.8.1.3.2 // according to SIP chap.8.1.3.2 Loading @@ -1334,7 +1334,7 @@ module LibIms_Steps { } } [vc_ignore4xx] SIPP.receive(mw_Response_Base(mw_statusLine4xx, vc_callId, ?)) -> value v_response sender vc_sent_label { [vc_ignore4xx] SIPP.receive(mw_Response_Base(mw_statusLine4xx, vc_callId, ?)) -> value v_response sender vc_sent_label { v_cSeq := valueof(v_response.msgHeader.cSeq); v_cSeq := valueof(v_response.msgHeader.cSeq); f_setHeadersOnReceiptOfResponse(v_cSeq, v_response); f_setHeadersOnReceiptOfResponse(v_response); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); repeat; repeat; } } Loading Loading @@ -1392,7 +1392,7 @@ module LibIms_Steps { log("*** " & testcasename() & ": FAIL: Unexpected 4xx response received. ***"); log("*** " & testcasename() & ": FAIL: Unexpected 4xx response received. ***"); setverdict(fail); setverdict(fail); v_cSeq := valueof(v_response.msgHeader.cSeq); v_cSeq := valueof(v_response.msgHeader.cSeq); f_setHeadersOnReceiptOfResponse(v_cSeq, v_response); f_setHeadersOnReceiptOfResponse(v_response); LibSip_Steps.f_setHeadersACK(); LibSip_Steps.f_setHeadersACK(); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); action("Please de-register"); action("Please de-register"); Loading @@ -1404,7 +1404,7 @@ module LibIms_Steps { log("*** " & testcasename() & ": FAIL: Unexpected 5xx response received. ***"); log("*** " & testcasename() & ": FAIL: Unexpected 5xx response received. ***"); setverdict(fail); setverdict(fail); v_cSeq := valueof(v_response.msgHeader.cSeq); v_cSeq := valueof(v_response.msgHeader.cSeq); f_setHeadersOnReceiptOfResponse(v_cSeq, v_response); f_setHeadersOnReceiptOfResponse(v_response); LibSip_Steps.f_setHeadersACK(); LibSip_Steps.f_setHeadersACK(); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); f_SendACK(m_ACK_Request_route(vc_requestUri, vc_callId, v_response.msgHeader.cSeq, vc_from, vc_to, vc_via, vc_route)); action("Please de-register"); action("Please de-register"); Loading