mgw: Fix mixed-up MGW / local IP address

Change-Id: Ie4f6da896f53e9fabd7275fe6d8f8c6309e02d14
This commit is contained in:
Harald Welte 2018-03-29 18:01:16 +02:00
parent 935cb8f6ba
commit edc887435e
1 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@ module MGCP_Test {
if (one_phase) {
/* Connect flow to MGW */
cmd := ts_CRCX(get_next_trans_id(), ep, "sendrecv", call_id);
cmd.sdp := ts_SDP(flow.em.hostname, flow.mgw.hostname, "23", "42",
cmd.sdp := ts_SDP(flow.em.hostname, flow.em.hostname, "23", "42",
flow.em.portnr, { int2str(flow.pt) },
{ valueof(ts_SDP_rtpmap(flow.pt, flow.codec)),
valueof(ts_SDP_ptime(20)) });
@ -275,7 +275,7 @@ module MGCP_Test {
/* then connect it to the emulation-side RTP socket using SDP */
cmd := ts_MDCX(get_next_trans_id(), ep, "sendrecv", call_id, flow.mgcp_conn_id);
cmd.sdp := ts_SDP(flow.em.hostname, flow.mgw.hostname, "23", "42",
cmd.sdp := ts_SDP(flow.em.hostname, flow.em.hostname, "23", "42",
flow.em.portnr, { int2str(flow.pt) },
{ valueof(ts_SDP_rtpmap(flow.pt, flow.codec)),
valueof(ts_SDP_ptime(20)) });