aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/mgcpgw_client.c
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-28 18:22:46 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2017-06-28 18:22:46 +0200
commit8761c965ff0b3d5f225a55411914313173758db9 (patch)
treeada1ff51e0c9c7eba8a068ba3babcc63917e3964 /openbsc/src/libmgcp/mgcpgw_client.c
parent40703dd1f441ee754a3b9b8b838feb66bc8e032d (diff)
mgcp: Fix missing call id in DLCXpmaier/aoip
The call id field in the DLCX message is missing. Use the endpoint id as call id in all CRCX and DLCX messages.
Diffstat (limited to 'openbsc/src/libmgcp/mgcpgw_client.c')
-rw-r--r--openbsc/src/libmgcp/mgcpgw_client.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/openbsc/src/libmgcp/mgcpgw_client.c b/openbsc/src/libmgcp/mgcpgw_client.c
index f21983ed6..1910a9f35 100644
--- a/openbsc/src/libmgcp/mgcpgw_client.c
+++ b/openbsc/src/libmgcp/mgcpgw_client.c
@@ -606,12 +606,11 @@ struct msgb *mgcp_msg_mdcx(struct mgcpgw_client *mgcp,
rtp_port);
}
-struct msgb *mgcp_msg_dlcx(struct mgcpgw_client *mgcp, uint16_t rtp_endpoint)
+struct msgb *mgcp_msg_dlcx(struct mgcpgw_client *mgcp, uint16_t rtp_endpoint,
+ unsigned int call_id)
{
mgcp_trans_id_t trans_id = mgcpgw_client_next_trans_id(mgcp);
return mgcp_msg_from_str(trans_id,
- "DLCX %u %x@mgw MGCP 1.0\r\n"
- ,
- trans_id,
- rtp_endpoint);
+ "DLCX %u %x@mgw MGCP 1.0\r\n"
+ "C: %x\r\n", trans_id, rtp_endpoint, call_id);
}