From 48c07f08b1ee66c1006f980b0ad1ad782b362a40 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 8 Sep 2013 22:22:01 +0200 Subject: make use of local IP address of #sigtran_peer actually work --- src/ss7_link_m3ua.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ss7_link_m3ua.erl') diff --git a/src/ss7_link_m3ua.erl b/src/ss7_link_m3ua.erl index d04e4bf..15ba837 100644 --- a/src/ss7_link_m3ua.erl +++ b/src/ss7_link_m3ua.erl @@ -57,8 +57,9 @@ init(L = #sigtran_link{type = m3ua, name = Name, linkset_name = LinksetName, #sigtran_peer{ip = LocalIp, port = LocalPort} = Local, #sigtran_peer{ip = RemoteIp, port = RemotePort} = Remote, % start the M3UA link to the SG - Opts = [{user_pid, self()}, {sctp_remote_ip, RemoteIp}, - {sctp_remote_port, RemotePort}, {sctp_local_port, LocalPort}, + Opts = [{user_pid, self()}, + {sctp_remote_ip, RemoteIp}, {sctp_remote_port, RemotePort}, + {sctp_local_ip, LocalIp}, {sctp_local_port, LocalPort}, {user_fun, fun m3ua_tx_to_user/2}, {user_args, self()}], {ok, M3uaPid} = m3ua_core:start_link(Opts), % FIXME: register this link with SCCP_SCRC -- cgit v1.2.3