diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-10 15:50:09 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-10 16:25:47 +0100 |
commit | 65856e5b84775c09436cb5bac474b1320684508b (patch) | |
tree | 23a25844d243b49aa8543f7d5035cd6cfd13cdf7 /include/mgcp/mgcp.h | |
parent | 099e5135feb4d606139386fbe72de1d7030b6a32 (diff) |
mgcp: Merge the current MGCP code from OpenBSCzecke/mgcp-merge
There were several changes in the upstream code. These include
statistics, DTMF/RQNT, changes in the parsing code and re-transmission
handling. The last item is the main reason to do the merge now.
Diffstat (limited to 'include/mgcp/mgcp.h')
-rw-r--r-- | include/mgcp/mgcp.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/mgcp/mgcp.h b/include/mgcp/mgcp.h index cde4594..ad88bfd 100644 --- a/include/mgcp/mgcp.h +++ b/include/mgcp/mgcp.h @@ -83,7 +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); +typedef int (*mgcp_rqnt)(struct mgcp_endpoint *endp, char tone); #define PORT_ALLOC_STATIC 0 #define PORT_ALLOC_DYNAMIC 1 @@ -116,6 +116,8 @@ struct mgcp_trunk_config { int audio_payload; int audio_loop; + int omit_rtcp; + /* spec handling */ int force_realloc; @@ -188,12 +190,12 @@ int mgcp_vty_init(void); int mgcp_endpoints_allocate(struct mgcp_trunk_config *cfg); void mgcp_free_endp(struct mgcp_endpoint *endp); int mgcp_reset_transcoder(struct mgcp_config *cfg); +void mgcp_format_stats(struct mgcp_endpoint *endp, char *stats, size_t size); /* * format helper functions */ struct msgb *mgcp_handle_message(struct mgcp_config *cfg, struct msgb *msg); -struct msgb *mgcp_create_response_with_data(int code, const char *txt, const char *msg, const char *trans, const char *data); /* adc helper */ static inline int mgcp_timeslot_to_endpoint(int multiplex, int timeslot) @@ -212,5 +214,8 @@ static inline void mgcp_endpoint_to_timeslot(int endpoint, int *multiplex, int * *timeslot = endpoint % 32; } +int mgcp_send_reset_ep(struct mgcp_endpoint *endp, int endpoint); +int mgcp_send_reset_all(struct mgcp_config *cfg); + #endif |