Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
/*
* @author STF 346
* @version $Id$
* @desc This module provides the types used by the test component
* for SIP-IMS tests. Module become from STF306 and STF334-336
*/
module LibSip_Templates
{
//LibSip
import from LibSip_SIPTypesAndValues all;
import from LibSip_SDPTypes all;
import from LibSip_Interface all;
import from LibSip_PIXITS all;
import from LibSip_XMLTypes all;
group SubFields
{
template Addr_Union m_AddrUnion_NameAddr(template NameAddr p_nameAddr) :=
{
nameAddr := p_nameAddr
}
template Addr_Union m_AddrUnion_DisplayAndSipUrl(template charstring p_displayName, template SipUrl p_addrSpec) :=
{
nameAddr := m_CallingAddr(p_displayName, p_addrSpec)
}
template NameAddr m_CallingAddr(template charstring p_displayName, template SipUrl p_addrSpec) :=
{
displayName := p_displayName,
addrSpec := p_addrSpec
}
template CommaParam_List mw_digestResponse(in GenericParam p_genericParam) :=
{
*,p_genericParam,* // c_Integrity_protected_yes
}
template SemicolonParam_List m_cpc :=
{{"cpc",PX_SIP_ISUP_CPC_VALUE}};
template SemicolonParam_List m_ReasonParams
(template charstring p_cause, template charstring p_text) :=
{m_Cause(p_cause),m_Text(p_text)};
template ReasonValue m_ReasonValue
(template charstring p_cause, template charstring p_text) :=
{
token := "Q.850",
reasonParams := m_ReasonParams(p_cause,p_text)
};
template RouteBody mw_routeBody (template SipUrl p_sipurl):=
{
nameAddr :=
{
displayName := *,
addrSpec := p_sipurl
},
rrParam := *
}
template SentProtocol m_SentProtocol (charstring p_protocol) :=
{protocolName := c_sipName,
protocolVersion:= c_sipVersion,
transport:= p_protocol};
template SipUrl m_SipUrl_currDomain(in SipUserProfile p_userprofile) := // SIP-URL of the test system on SIP side
{
scheme := c_sipScheme, // contains "sip"
userInfo := // optional
{
userOrTelephoneSubscriber := p_userprofile.publUsername,// charstring
password := omit // optional charstring
},
hostPort :=
{
host := p_userprofile.homeDomain, // hostname, IPv4 or IPv6 as a charstring
portField := omit //p_userprofile.currPort //optional integer
},
urlParameters := omit,
headers := omit
}
template SipUrl m_SipUrl_contactIpaddr(in SipUserProfile p_userprofile) := // SIP-URL of the test system on SIP side
{
scheme := c_sipScheme, // contains "sip"
userInfo := // optional
{
userOrTelephoneSubscriber := p_userprofile.publUsername,// charstring
password := omit // optional charstring
},
hostPort :=
{
host := p_userprofile.contactIpaddr, // hostname, IPv4 or IPv6 as a charstring
portField := p_userprofile.contactPort //optional integer
},
urlParameters := omit,
headers := omit
}
template SipUrl m_SipUrl_contactIpaddrAndCpc(in SipUserProfile p_userprofile) := // SIP-URL of the test system on SIP side
{
scheme := c_sipScheme, // contains "sip"
userInfo := // optional
{
userOrTelephoneSubscriber := p_userprofile.publUsername & "; cpc=" & PX_SIP_ISUP_CPC_VALUE,// charstring
password := omit // optional charstring
},
hostPort :=
{
host := p_userprofile.contactIpaddr, // hostname, IPv4 or IPv6 as a charstring
portField := p_userprofile.contactPort //optional integer
},
urlParameters := omit,
headers := omit
}
template SipUrl m_SipUrl_currIpaddr(in SipUserProfile p_userprofile) := // SIP-URL of the test system on SIP side
{
scheme := c_sipScheme, // contains "sip"
userInfo := // optional
{
userOrTelephoneSubscriber := p_userprofile.publUsername,// charstring
password := omit // optional charstring
},
hostPort :=
{
host := p_userprofile.currIpaddr, // hostname, IPv4 or IPv6 as a charstring
portField := p_userprofile.currPort //optional integer
},
urlParameters := omit,
headers := omit
}
template SipUrl m_SipUrl_Anonymous := // SIP-URL with a calles party number
{
scheme := c_sipScheme, // contains "sip"
userInfo := // optional
{
userOrTelephoneSubscriber := "Anonymous",// charstring
password := omit // optional charstring
},
hostPort :=
{
host := "Anonymous.invalid", // hostname, IPv4 or IPv6 as a charstring
portField := omit //optional integer
},
urlParameters := omit,
headers := omit
};
template SipUrl m_TelUrl_publUser(in SipUserProfile p_userprofile) := // SIP-URL of the test system on SIP side
{
scheme := c_telScheme, // contains "tel"
userInfo := // optional
{
userOrTelephoneSubscriber := p_userprofile.publUsername,// charstring
password := omit // optional charstring
},
hostPort :=
{
host := omit, // hostname, IPv4 or IPv6 as a charstring
portField := omit //p_userprofile.currPort //optional integer
},
urlParameters := omit,
headers := omit
}
template SipUrl mw_TelSip_unavailableInvalidUri :=
{
scheme := (c_telScheme,c_sipScheme),
userInfo := {userOrTelephoneSubscriber:="unavailable", password:=omit},
hostPort := {host:="anonymous.invalid", portField:=c_defaultSipPort},
urlParameters := omit,
headers := omit
};
template SipUrl mw_TelSip_unavailableUri (charstring p_host):=
{
scheme := (c_telScheme,c_sipScheme),
userInfo := {userOrTelephoneSubscriber:="unavailable", password:=omit},
hostPort := {host:=p_host, portField:=c_defaultSipPort},
urlParameters := omit,
headers := omit
};
template SipUrl mw_SipUrl_Number(charstring p_number) := // SIP-URL with a calling party number
{
scheme := c_sipScheme, // contains "sip"
userInfo:= {userOrTelephoneSubscriber:=p_number, password:=*},
hostPort := ?,
urlParameters := *,
headers := *
};
Loading
Loading full blame…