Compare Revisions

The credentials to download the source code are:
 Username: svnusers
 Password: svnusers

Ignore whitespace Rev 61 → Rev 62

/trunk/ttcn/LibIms_Steps.ttcn
29,7 → 29,7
 
/*
*
* @desc setting of BYE header fields (IMS addresses)
* @desc sets BYE header fields (IMS addresses)
* extension of general settings from LibSip basic function
* @param p_cSeq_s current cSeq
* @param p_to_user user_profile id of the user to send Bye
49,7 → 49,7
/**
*
* @desc function set headers for forward request from AS in case if AS acts as Proxy
* @desc sets headers for forward request from AS in case if AS acts as Proxy
*/
function f_setHeadersForwardRequestFromAS (inout CSeq p_cSeq_s) runs on ImsComponent
{
64,7 → 64,7
/**
*
* @desc function set headers for forward request from AS in case if AS acts as Proxy
* @desc sets header fields for forward request from AS in case if AS acts as Proxy
*/
function f_setHeadersForwardResponseFromAS (inout CSeq p_cSeq_s) runs on ImsComponent
{
79,11 → 79,11
}// end function f_setHeadersForwardResponse
 
/*
*
* @desc setting of Invite header fields (IMS addresses)
* extension of general settings from LibSip basic function
* @param p_cSeq_s current cSeq
* @param p_to_user user_profile id of the user to be invited
*
* @desc sets Invite header fields (IMS addresses)
* extension of general settings from LibSip basic function
* @param p_cSeq_s current cSeq
* @param p_to_user user_profile id of the user to be invited
* @verdict
*/
function f_setHeadersINVITE(inout CSeq p_cSeq_s, in integer p_to_user) runs on ImsComponent
105,7 → 105,7
/*
*
* @desc setting of Message header fields (IMS addresses)
* @desc sets Message header fields (IMS addresses)
* extension of general settings from LibSip basic function
* @param p_cSeq_s current cSeq
* @param p_to_user user_profile id of the user to be invited
125,7 → 125,7
 
/*
*
* @desc setting of Notify header fields (IMS addresses)
* @desc sets Notify header fields (IMS addresses)
* extension of general settings from LibSip basic function
* @param p_cSeq_s current cSeq
* @param p_to_user user_profile id of the user to be invited
143,14 → 143,14
}// end f_setHeadersNOTIFY
/*
*
* @desc setting of Subscribe header fields (IMS addresses)
* extension of general settings from LibSip basic function
* @param p_cSeq_s current cSeq
* @param p_to_user user_profile id of the user to be invited
* @verdict
*/
/**
**
* @desc sets Subscribe header fields (IMS addresses)
* extension of general settings from LibSip basic function
* @param p_cSeq_s current cSeq
* @param p_to_user user_profile id of the user to be invited
* @verdict
*/
function f_setHeadersSUBSCRIBE(inout CSeq p_cSeq_s, in SipUrl p_to_user) runs on ImsComponent
{
vc_to := { fieldName := TO_E,
171,6 → 171,10
}// end f_setHeadersSUBSCRIBE
/**
* @desc sets headers for ReINVITE method on terminating side
* @param p_cSeq_s current cSeq
*/
function f_setHeadersReINVITE (inout CSeq p_cSeq_s) runs on ImsComponent
{
f_setHeadersGeneral(p_cSeq_s, "INVITE"); // cseq, contact, branch, via
184,8 → 188,8
}// end function f_setHeadersReINVITE
/**
*
* @desc function set headers for ReINVITE method on terminating side e.g. UE2
* @desc sets headers for ReINVITE method on terminating side
* @param p_cSeq_s current cSeq
*/
function f_setHeadersReINVITE_ (inout CSeq p_cSeq_s) runs on ImsComponent
{
202,13 → 206,13
}// end function f_setHeadersReINVITE
/**
*
* @desc function for setting of component variables related to message header fields
*
* @desc sets component variables related to message header fields
* when sending requests from the home I-CSCF (TS) to the visited P-CSCF (SUT)
* (message type independent: CSeq, contact, via), function uses information from
* userprofile and interfaceprofile
*
* @param p_cSeq_s CSeq parameter
*
* @param p_cSeq_s CSeq parameter
* @param p_method method name for cSeq header field
*/
function f_setHeadersGeneral_ICSCF(inout CSeq p_cSeq_s, in charstring p_method) runs on SipComponent
234,9 → 238,9
}// end function f_setHeadersGeneral_ICSCF
/**
*
* @desc function sets header field for the next outgoing REGISTER message
* from the visited P-CSCF to the home I-CSCF
*
* @desc sets header field for the next outgoing REGISTER message
* from the visited P-CSCF to the home I-CSCF
* @param p_cSeq_s CSeq parameter to be applied
*/
function f_setHeaders_REGISTER_PCSCF(inout CSeq p_cSeq_s) runs on SipComponent
286,7 → 290,7
/*
*
* @desc setting of REFER header fields (IMS addresses)
* @desc sets REFER header fields (IMS addresses)
* extension of general settings from LibSip basic function
* @param p_cSeq_s current cSeq
* @param p_to_user user_profile id of the user to be invited
310,7 → 314,7
}// end f_setHeadersREFER
/*
* @desc setting of REFER header fields (IMS addresses)
* @desc sets REFER header fields (IMS addresses)
* extension of general settings from LibSip basic function
* @param p_cSeq_s current cSeq
* @param p_uri SipUrl for request URI and To header
351,9 → 355,9
group globalSteps {
/*
*
* @desc setting of user parameters with PIXIT values
* @param p_user identifies the selected user configuration and location
*
* @desc sets user parameters with PIXIT values
* @param p_user identifies the selected user configuration and location
* @verdict
*/
function f_init_userprofile(in integer p_user) runs on ImsComponent
691,7 → 695,7
 
/*
*
* @desc setting of user parameters with PIXIT values
* @desc sets user parameters with PIXIT values
* @param p_user identifies the selected user configuration and location
* @verdict
*/
748,7 → 752,7
/*
*
* @desc retrieve HostPort value of the interface profile
* @desc retrieves HostPort value of the interface profile
* @param p_interface identifies the selected interface
* @return HostPort template
*/
759,7 → 763,7
/*
*
* @desc retrieve DomainPort value of the interface profile
* @desc retrieves DomainPort value of the interface profile
* @param p_interface identifies the selected interface
* @return DomainPort template
*/
769,7 → 773,7
}
/*
* @desc retrieve SipUrl of the interface profile
* @desc retrieves SipUrl of the interface profile
* @param p_interface identifies the selected interface
* @return SipUrl template
*/
861,7 → 865,7
/*
*
* @desc Set variables and default initialization for user profile where proxy role is present
* @desc Sets variables and default initialization for user profile where proxy role is present
* @param p_userprofile user profile of call
* @param p_cSeq_s cseq parameter
*/
875,9 → 879,9
}
/*
*
* @desc Set variables and default initialization for user profile
* @param p_userprofile user profile of call
*
* @desc Sets variables and default initialization for user profile
* @param p_userprofile user profile of call
* @param p_cSeq_s cseq parameter
*/
function f_IMS_preamble_woRegistration(in integer p_userprofile, inout CSeq p_cSeq_s) runs on ImsComponent
892,12 → 896,12
}
 
/*
*
* @desc Set 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
*/
*
* @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_withRegistration (in integer p_userprofile, inout CSeq p_cSeq_s, template REGISTER_Request p_register) runs on ImsComponent
{
911,10 → 915,10
}
 
/*
*
* @desc Set 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
* (basic registration template)
* @param p_userprofile user profile of call
* @param p_userprofile user profile of call
* @param p_cSeq_s cseq parameter
*/
function f_IMS_preamble_withRegistrationBasic (in integer p_userprofile, inout CSeq p_cSeq_s) runs on ImsComponent
933,6 → 937,11
group postambles {
/*
*
* @desc Sets variables and default initialization for user profile and handle deregistration
* @param p_cSeq_s cseq parameter
*/
function f_IMS_postamble_withDeRegistration (CSeq p_CSeq) runs on ImsComponent {
f_RemoveRegistration(p_CSeq); // TODO check if applicable for IMS
999,7 → 1008,7
/**
*
* @desc function send BYE and awaits reponse
* @desc sends BYE and awaits response
* @param p_CallId parameter for outgoing BYE
* @param p_cSeq parameter for outgoing BYE
* @param p_from parameter for outgoing BYE
1030,7 → 1039,7
/**
*
* @desc function send BYE and awaits reponse
* @desc sends BYE and awaits response
* @param p_CallId parameter for outgoing BYE
* @param p_cSeq parameter for outgoing BYE
* @param p_from parameter for outgoing BYE
/trunk/ttcn/LibIms_Templates.ttcn
84,8 → 84,8
}
}
 
/*
* @desc Path header field expectation with at least one path value
/*
* @desc Path header field expectation with at least one path value
* @param p_sipUrl value of the last element in the list of path values
*/
template Path mw_path (SipUrl p_sipUrl):=
293,8 → 293,8
/*
* @desc WWW-Authenticate header field
* @param p_challenge value
*/
* @param p_challenge value
*/
template WwwAuthenticate m_wwwAuthenticate (Challenge p_challenge):=
{
fieldName := WWW_AUTHENTICATE_E,
301,10 → 301,10
challenge := p_challenge
}
 
/*
* @desc WWW-Authenticate header field
* @param p_challenge value
*/
/*
* @desc WWW-Authenticate header field
* @param p_challenge value
*/
template WwwAuthenticate mw_wwwAuthenticate (template SemicolonParam_List p_semicolonParam_List):=
{
fieldName := WWW_AUTHENTICATE_E,
782,9 → 782,9
},
comm_div_ntfy_info := omit,
any_1 := omit
}
 
}
 
 
} // end grouup CDIVNTemplates
 
group ResourceListsTemplates {
823,7 → 823,7
p_user.hostPort.host,
any_1 := omit,
anyAttributes := omit
}
}
}// end grouup ResourceListsTemplates
 
group Ims3gppTemplates {
1070,8 → 1070,8
/*
*
* @desc INFO message
*
*/
*
*/
template INFO_Request m_INFO_Request_IMS
(SipUrl p_requestUri, CallId p_callId, CSeq p_cSeq, From p_from, To p_to,
Via p_via, template MessageBody p_mb )
1087,10 → 1087,10
}
/*
*
* @desc INFO message
*
*/
*
* @desc INFO message
*
*/
template INFO_Request m_INFO_Request_Mime_IMS
(SipUrl p_requestUri, CallId p_callId, CSeq p_cSeq, From p_from, To p_to,
Via p_via, template MessageBody p_mb )
1154,8 → 1154,8
/*
*
* @desc INVITE message exchanged at Mw
*
* @desc INVITE message exchanged at Mw
*
*/
template INVITE_Request m_INVITE_Request_IMS
1295,8 → 1295,8
}
 
/*
*
* @desc INVITE message exchanged at Mw
*
* @desc INVITE message exchanged at Mw
*
*/
template INVITE_Request m_INVITE_Request_PAssertedService_IMS
1415,8 → 1415,8
}
/*
*
* @desc INVITE message exchanged at Mw
*
* @desc INVITE message exchanged at Mw
*
*/
template INVITE_Request m_INVITE_Request_minSE_IMS
1574,8 → 1574,8
contentLength := {fieldName := CONTENT_LENGTH_E, len:= f_MessageBodyLength(valueof(p_mb))},
contentType := {fieldName := CONTENT_TYPE_E, mediaType := c_xmlAplication},
event := {fieldName:=EVENT_E, eventType:="conference",eventParams:=omit},
subscriptionState:={fieldName:=SUBSCRIPTION_STATE_E, subState:="active",substateParams:=omit}//,
//expires:={fieldName:=EXPIRES_E, deltaSec:="3600"}
subscriptionState:={fieldName:=SUBSCRIPTION_STATE_E, subState:="active",substateParams:=omit},
expires:={fieldName:=EXPIRES_E, deltaSec:="3600"}
},
messageBody := p_mb
1891,7 → 1891,7
}
 
/*
*
*
* @desc Await INVITE using topology hiding
*/
template INVITE_Request mw_INVITE_Request_TH modifies mw_INVITE_Request_Base