Compare Revisions

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

Ignore whitespace Rev 118 → Rev 119

/trunk/ttcn/LibIms_Templates.ttcn
30,6 → 30,11
with {
extension "File:../xsd/ResourceList.xsd"
}
 
import from urn_ietf_params_xml_ns_reginfo language "XSD" all except{type Contact}
with {
extension "File:../xsd/regInfo.xsd"
}
import from http_uri_etsi_org_ngn_params_xml_simservs_xcap language "XSD" all
with {
552,6 → 557,31
// {
// cdivn := p_cdivn
// };
 
template XmlBody m_XmlBody_Reginfo(template Reginfo p_regInfo) :=
{
regInfo := p_regInfo
};
template MessageBody m_messageBodyXML(template XmlBody p_xmlBody) :=
{
xmlBody := p_xmlBody
};
template Reginfo m_reginfo (template XSDAUX.anyURI p_user):= {
0,
full,
{m_registration(p_user)},
omit
}
template Registration m_registration (template XSDAUX.anyURI p_user):= {
p_user, // XSDAUX.anyURI aor
"", // XSDAUX.string id
init, //enumerated {active,init,terminated} state,
omit, // record of Contact contact_list optional,
omit // record of anytype elem_list optional
}
template XmlBody mw_XmlBody_ConfInfo(template Conference_type p_confInfo) :=
{
587,6 → 617,11
{
resourceLists := p_resourceLists
};
template XmlBody mw_XmlBody_Reginfo(template Reginfo p_regInfo) :=
{
regInfo := p_regInfo
};
}// end group XMLTemplates
 
1947,6 → 1982,25
}
template NOTIFY_Request m_NOTIFY_Request_Xml_IMS_RegInfo
(SipUrl p_requestUri, CallId p_callId, CSeq p_cSeq, From p_from, To p_to,
Via p_via, Contact p_contact, template MessageBody p_mb )
modifies m_NOTIFY_Request_Base
:=
{
msgHeader :=
{
contact := p_contact,
contentLength := {fieldName := CONTENT_LENGTH_E, len:= f_MessageBodyLength(valueof(p_mb))},
contentType := {fieldName := CONTENT_TYPE_E, mediaType := c_xmlreginfoAplication},
event := m_Event_reg,
subscriptionState:=m_SubscriptionState_active,
expires:={fieldName:=EXPIRES_E, deltaSec:="3600"}
},
messageBody := p_mb
}
template PRACK_Request m_PRACK_Request_sdp (SipUrl p_requestUri, CallId p_callId, CSeq p_cSeq,
From p_from, To p_to, Via p_via, RAck p_RAck, template MessageBody p_mb)
modifies m_PRACK_Request_Base :=