Commit df469923 authored by garciay's avatar garciay
Browse files

Add emergency support

parent 73ce10a5
Loading
Loading
Loading
Loading
+24 −1
Original line number Original line Diff line number Diff line
@@ -930,7 +930,7 @@ module LibIms_Steps
				scheme := c_urnScheme,  			// contains "urn"
				scheme := c_urnScheme,  			// contains "urn"
                components := { urn:= {
                components := { urn:= {
                        				namespaceId := "service",
                        				namespaceId := "service",
                    					namespaceSpecificString := "sos"}},
                    					namespaceSpecificString := PX_IMS_SUT_EMERGENCY_SERVICE_namespaceSpecificString}},
				urlParameters := omit,
				urlParameters := omit,
				headers := omit};
				headers := omit};
				
				
@@ -1333,7 +1333,9 @@ module LibIms_Steps
			//Preamble
			//Preamble
			f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable
			f_init_userprofile(p_userprofile); // assignment of PIXIT values to component variable
			vc_sdp_local := valueof(m_SDP_bandwidth(valueof(m_media_dynPT(PX_SIP_SDP_dyn, PX_SIP_SDP_encoding)), vc_userprofile));
			vc_sdp_local := valueof(m_SDP_bandwidth(valueof(m_media_dynPT(PX_SIP_SDP_dyn, PX_SIP_SDP_encoding)), vc_userprofile));

			vc_contact := valueof(m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)));
			vc_contact := valueof(m_Contact(m_SipUrl_contactIpaddr(vc_userprofile)));

		}
		}


		/*
		/*
@@ -1361,6 +1363,27 @@ module LibIms_Steps


		}
		}


        /*
        *
        * @desc  Sets variables and default initialization for user profile and handle registration and authentication with MD5 
        * @param p_userprofile   	user profile of call
        * @param p_cSeq_s		  	cseq parameter
        * @param p_register		register template
        */
        function f_IMS_preamble_withEmergencyRegistration (in integer p_userprofile, in integer p_interface, inout CSeq p_cSeq_s, template REGISTER_Request p_register) runs on ImsComponent
        {

            f_init_interfaceprofile(p_interface);
            //Variables & defaults initialization
            f_IMS_preamble_woRegistration(p_userprofile, p_cSeq_s);
            //Preamble
            f_Registration(p_cSeq_s, p_register, PX_SIP_REGISTER_AUTHENTICATION_ENABLED, true);

            //	deregistration in case of successful registration
            vc_DeregDone := false;
						
        }

		/*
		/*
		 * 
		 * 
		 * @desc  Sets variables and default initialization for user profile and handle registration and authentication with MD5 
		 * @desc  Sets variables and default initialization for user profile and handle registration and authentication with MD5