typedef struct rtp_info { const char *addr; unsigned int port; } rtp_info_t; /* This is a callback prototype function, called pass DTMF down the RTP. */ typedef int (*send_digit_cb)(unsigned, char); extern send_digit_cb on_send_digit; /* This is a callback prototype function, called to collect the external RTP port from Asterisk. */ typedef rtp_info_t *(*on_connection_cb)(unsigned, const char *); extern on_connection_cb on_create_connection;