mgw: Allow setting udp ip/port with wildcard osmux in f_flow_create_osmux()

This will be needed once IPv4+IPv6 support is used, since we want to set
the remote IP addr in CRCX for convinience to get an IP adr from ther
same family during CRCX, while still allowing for testing Osmux CID
wildcard value.

Change-Id: I3abd80b1c0053004aab3d03e09fada1129a59765
This commit is contained in:
Pau Espin 2020-09-08 14:27:43 +02:00 committed by pespin
parent 08005d7475
commit 71387aac71
1 changed files with 7 additions and 4 deletions

View File

@ -417,10 +417,13 @@ module MGCP_Test {
* part that tells the MGW where we are listening for Osmux streams
* that come from the MGW. We get a fully working connection in
* one go. */
rx_hdl := c_OsmuxemDefaultRxHandle;
rx_hdl.cid := flow.osmux_cid;
f_osmuxem_register_rxhandle(pt, rx_hdl);
flow.osmux_cid_sent := true;
if (flow.osmux_cid != -1) {
/* We may still want to negotiate osmux CID later at MDCX */
rx_hdl := c_OsmuxemDefaultRxHandle;
rx_hdl.cid := flow.osmux_cid;
f_osmuxem_register_rxhandle(pt, rx_hdl);
flow.osmux_cid_sent := true;
}
cmd := ts_CRCX_osmux(get_next_trans_id(), ep, mode, call_id, flow.osmux_cid);
cmd.sdp := ts_SDP(flow.em.hostname, flow.em.hostname, "23", "42",
flow.em.portnr, { int2str(flow.pt) }, attributes);