asterisk: Allow configuring a domain servername instead of IP address
Change-Id: I23afdc8b70132dbd947c280f6e5aadbc84849f01
diff --git a/asterisk/Asterisk_Tests.ttcn b/asterisk/Asterisk_Tests.ttcn
index 4ac7eaf..5a51d1d 100644
--- a/asterisk/Asterisk_Tests.ttcn
+++ b/asterisk/Asterisk_Tests.ttcn
@@ -37,6 +37,7 @@
charstring mp_local_ims_host := "127.0.0.3";
integer mp_local_ims_port := 5060;
+ charstring mp_ims_domain := "ims.mnc001.mcc238.3gppnetwork.org"
charstring mp_ims_imsi := "238010000090828";
/* Asterisk AMI: */
@@ -88,6 +89,7 @@
var template (value) IMS_CallPars cp := t_IMS_CallPars(mp_local_sip_host, 1234 + 2*idx);
var template (value) IMS_ConnHdlrPars pars := t_IMS_Pars(mp_local_ims_host,
mp_local_ims_port,
+ mp_ims_domain,
mp_ims_imsi,
cp := cp);
return valueof(pars);
@@ -393,7 +395,7 @@
c_auth_res, c_auth_ck, c_auth_ik);
AMI_CLIENT.receive(tr_AMI_Event_Registry(f_sip_SipAddr_to_str(pars.subscr.local_sip_record),
- "sip:" & mp_local_ims_host,
+ "sip:" & mp_ims_domain,
"Registered"));
/* TODO: test "Action: PJSIPUnregister" */
@@ -449,9 +451,9 @@
sip_pars.cp.calling := sip_pars.registrar_sip_record;
sip_pars.cp.called := valueof(ts_SipAddr(ts_HostPort(sip_pars.remote_sip_host),
ts_UserInfo(c_ext_msisdn)));
- ims_pars.subscr.cp.calling := valueof(ts_SipAddr(ts_HostPort(ims_pars.local_sip_host),
+ ims_pars.subscr.cp.calling := valueof(ts_SipAddr(ts_HostPort(ims_pars.realm),
ts_UserInfo(ims_pars.subscr.msisdn)));
- ims_pars.subscr.cp.called := valueof(ts_SipAddr(ts_HostPort(ims_pars.local_sip_host),
+ ims_pars.subscr.cp.called := valueof(ts_SipAddr(ts_HostPort(ims_pars.realm),
ts_UserInfo(c_ext_msisdn)));
vc_conn_ims := f_start_handler_IMS(refers(f_TC_ims_call_mo), ims_pars);