aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-22 13:06:24 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:16 +0800
commitf42f45bf6a624a2f8f8c023509bb510c6d474925 (patch)
tree455259c6734d5f380d854d6aed8b16ab25beeac3 /openbsc
parent7b7eef62c195c1d99e959fab432cb147c0961ad7 (diff)
nat: Use hex for the endpoint names
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index 7bba41342..79bd2a5d6 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -113,7 +113,7 @@ static void bsc_mgcp_send_mdcx(struct bsc_connection *bsc, struct mgcp_endpoint
int len;
len = snprintf(buf, sizeof(buf),
- "MDCX 23 %d@mgw MGCP 1.0\r\n"
+ "MDCX 23 %x@mgw MGCP 1.0\r\n"
"Z: noanswer\r\n"
"\r\n"
"c=IN IP4 %s\r\n"
@@ -133,7 +133,7 @@ static void bsc_mgcp_send_dlcx(struct bsc_connection *bsc, int endpoint)
int len;
len = snprintf(buf, sizeof(buf),
- "DLCX 23 %d@mgw MGCP 1.0\r\n"
+ "DLCX 23 %x@mgw MGCP 1.0\r\n"
"Z: noanswer\r\n", endpoint);
if (len < 0) {
LOGP(DMGCP, LOGL_ERROR, "snprintf for DLCX failed.\n");