diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-11-29 20:19:32 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-16 11:33:27 +0100 |
commit | 9b2474490a738665247ea3a04648f96411a78d6d (patch) | |
tree | 7520d11b2a24075f2686f0f5c069a826bbedd82c /include | |
parent | 611d238a681ebbe48839a725648ac185305733a3 (diff) |
mgcp: Begin handling of the RQNT message as needed for DTMF
Introduce a callback for the request and forward the signalrequest
to the callback. This is not a full implementation of MGCP RQNT.
Manual merge and backport from OpenBSC.
Diffstat (limited to 'include')
-rw-r--r-- | include/mgcp/mgcp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mgcp/mgcp.h b/include/mgcp/mgcp.h index e02da08..cde4594 100644 --- a/include/mgcp/mgcp.h +++ b/include/mgcp/mgcp.h @@ -1,8 +1,8 @@ /* A Media Gateway Control Protocol Media Gateway: RFC 3435 */ /* - * (C) 2009-2011 by Holger Hans Peter Freyther <zecke@selfish.org> - * (C) 2009-2011 by On-Waves + * (C) 2009-2012 by Holger Hans Peter Freyther <zecke@selfish.org> + * (C) 2009-2012 by On-Waves * All Rights Reserved * * This program is free software; you can redistribute it and/or modify @@ -83,6 +83,7 @@ typedef int (*mgcp_realloc)(struct mgcp_trunk_config *cfg, int endpoint); typedef int (*mgcp_change)(struct mgcp_trunk_config *cfg, int endpoint, int state); typedef int (*mgcp_policy)(struct mgcp_trunk_config *cfg, int endpoint, int state, const char *transactio_id); typedef int (*mgcp_reset)(struct mgcp_trunk_config *cfg); +typedef int (*mgcp_rqnt)(struct mgcp_endpoint *endp, char tone, const char *data); #define PORT_ALLOC_STATIC 0 #define PORT_ALLOC_DYNAMIC 1 @@ -165,6 +166,7 @@ struct mgcp_config { mgcp_policy policy_cb; mgcp_reset reset_cb; mgcp_realloc realloc_cb; + mgcp_rqnt rqnt_cb; void *data; /* trunk handling */ |