summaryrefslogtreecommitdiffstats
path: root/src/ss7_link_m3ua.erl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-09-08 22:22:01 +0200
committerHarald Welte <laforge@gnumonks.org>2013-09-08 22:22:29 +0200
commit48c07f08b1ee66c1006f980b0ad1ad782b362a40 (patch)
tree6b9bc5fb9d8e9bc2225fc9b7d1e64eac0267bc3c /src/ss7_link_m3ua.erl
parente126068ec8ae05d73a07eb02af1c62e493b145de (diff)
make use of local IP address of #sigtran_peer actually work
Diffstat (limited to 'src/ss7_link_m3ua.erl')
-rw-r--r--src/ss7_link_m3ua.erl5
1 files changed, 3 insertions, 2 deletions
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