SIP_Emulation: Rename component id
Remove the dash character, since it makes it impossible to reference the component name under TESTPORT_PARAMETERS in .default/.cfg files. While at it, actually, allow the test to provide a full id instead of always appending the suffix to it. This provides more freedom on the testsuite to provide a fitting component name. Change-Id: Iecefe7d98a5842872f1efc55e013f672186ef1a8
This commit is contained in:
parent
0266017299
commit
1a77134664
|
@ -66,7 +66,7 @@ private function f_init_ami() runs on test_CT {
|
|||
|
||||
function f_init() runs on test_CT {
|
||||
f_init_ami();
|
||||
f_init_sip(vc_SIP, "Asterisk_Test");
|
||||
f_init_sip(vc_SIP, "Asterisk_Test_SIP_EMU");
|
||||
log("end of f_init");
|
||||
}
|
||||
|
||||
|
|
|
@ -226,9 +226,7 @@ type record SipOps {
|
|||
SipCreateCallback create_cb
|
||||
};
|
||||
|
||||
function f_init_sip(inout SIP_Emulation_CT ct, charstring id) {
|
||||
id := id & "-SIP";
|
||||
|
||||
function f_init_sip(inout SIP_Emulation_CT ct, charstring id := "SIP_EMU") {
|
||||
var SipOps ops := {
|
||||
create_cb := refers(SIP_Emulation.ExpectedCreateCallback)
|
||||
};
|
||||
|
|
|
@ -131,7 +131,7 @@ function f_init() runs on test_CT {
|
|||
//f_ipa_ctrl_start_client(mp_osmosip_host, mp_osmosip_port_ctrl);
|
||||
f_init_mncc("SIP_Test");
|
||||
log("end of f_init_mncc");
|
||||
f_init_sip(vc_SIP, "SIP_Test");
|
||||
f_init_sip(vc_SIP, "SIP_Test_SIP_EMU");
|
||||
log("end of f_init_sip");
|
||||
|
||||
map(self:SIPVTY, system:SIPVTY);
|
||||
|
|
Loading…
Reference in New Issue