summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-04 08:58:53 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-04 09:07:21 +0200
commit5527df78adc08b76df07c4b682263b5bdd6181d4 (patch)
tree46f34d273145bc1956035d87dfbd32b841596e10
parentb3546525024e8a183bb9b2e07eba82ead1397ed0 (diff)
SCOC: When sending a CORE/CR, SUA SRC_ADDR == CallingPartyAddress
SUA uses different semantics (source / destination) address, while SCCP uses Calling/CalledParty. This leads to some confusion. At least in the CR/CORE case, the CallingParty equals the SRC_ADDR. Change-Id: I5a3c27b112148dd539f092cce7618b4f62fde73c
-rw-r--r--src/sccp_scoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sccp_scoc.c b/src/sccp_scoc.c
index 5e91ea4..fbb6ef8 100644
--- a/src/sccp_scoc.c
+++ b/src/sccp_scoc.c
@@ -483,7 +483,7 @@ static struct xua_msg *xua_gen_msg_co(struct sccp_connection *conn, uint32_t eve
xua_msg_add_u32(xua, SUA_IEI_ROUTE_CTX, conn->inst->route_ctx);
xua_msg_add_u32(xua, SUA_IEI_PROTO_CLASS, conn->sccp_class);
xua_msg_add_u32(xua, SUA_IEI_SRC_REF, conn->conn_id);
- xua_msg_add_sccp_addr(xua, SUA_IEI_DEST_ADDR, &conn->called_addr);
+ xua_msg_add_sccp_addr(xua, SUA_IEI_SRC_ADDR, &conn->called_addr);
xua_msg_add_u32(xua, SUA_IEI_SEQ_CTRL, 0); /* TODO */
/* optional: sequence number (class 3 only) */
if (conn->calling_addr.presence)