diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-02-21 10:50:46 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-02-22 12:09:41 +0100 |
commit | 6414a0cb223f5ec0651ff3423c7cf9f66d4e0909 (patch) | |
tree | 6f4f962e35b11d3945e73089a679b5db821e3e3e /openbsc/src/mgcp/mgcp_protocol.c | |
parent | 8d188eda158c77b0d7c06cc4e990f645267d16f3 (diff) |
[mgcp] Make the creation of the mgcp message public.
Diffstat (limited to 'openbsc/src/mgcp/mgcp_protocol.c')
-rw-r--r-- | openbsc/src/mgcp/mgcp_protocol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c index 88273fa55..f7588cd38 100644 --- a/openbsc/src/mgcp/mgcp_protocol.c +++ b/openbsc/src/mgcp/mgcp_protocol.c @@ -324,7 +324,7 @@ static struct msgb *mgcp_msgb_alloc(void) return msg; } -static struct msgb *create_response_with_data(int code, const char *msg, const char *trans, +struct msgb *mgcp_create_response_with_data(int code, const char *msg, const char *trans, const char *data) { int len; @@ -347,7 +347,7 @@ static struct msgb *create_response_with_data(int code, const char *msg, const c static struct msgb *create_response(int code, const char *msg, const char *trans) { - return create_response_with_data(code, msg, trans, NULL); + return mgcp_create_response_with_data(code, msg, trans, NULL); } static struct msgb *create_response_with_sdp(struct mgcp_endpoint *endp, @@ -368,7 +368,7 @@ static struct msgb *create_response_with_sdp(struct mgcp_endpoint *endp, endp->ci, addr, endp->rtp_port, endp->cfg->audio_payload, endp->cfg->audio_payload, endp->cfg->audio_name); - return create_response_with_data(200, msg, trans_id, sdp_record); + return mgcp_create_response_with_data(200, msg, trans_id, sdp_record); } /* send a static record */ |