Fixed compilation with Asterisk 1.0.X
This commit is contained in:
parent
df6009a9af
commit
effa5cf682
|
@ -3261,7 +3261,9 @@ static int capi_get_codec(struct ast_channel *c)
|
||||||
* RTP callbacks
|
* RTP callbacks
|
||||||
*/
|
*/
|
||||||
static struct ast_rtp_protocol capi_rtp = {
|
static struct ast_rtp_protocol capi_rtp = {
|
||||||
|
#ifdef CC_AST_HAVE_TECH_PVT
|
||||||
.type = channeltype,
|
.type = channeltype,
|
||||||
|
#endif
|
||||||
.get_rtp_info = capi_get_rtp_info,
|
.get_rtp_info = capi_get_rtp_info,
|
||||||
.set_rtp_peer = capi_set_rtp_peer,
|
.set_rtp_peer = capi_set_rtp_peer,
|
||||||
.get_codec = capi_get_codec,
|
.get_codec = capi_get_codec,
|
||||||
|
@ -4015,6 +4017,9 @@ int load_module(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tell the RTP subdriver that we're here */
|
/* Tell the RTP subdriver that we're here */
|
||||||
|
#ifndef CC_AST_HAVE_TECH_PVT
|
||||||
|
capi_rtp.type = channeltype;
|
||||||
|
#endif
|
||||||
ast_rtp_proto_register(&capi_rtp);
|
ast_rtp_proto_register(&capi_rtp);
|
||||||
|
|
||||||
ast_cli_register(&cli_info);
|
ast_cli_register(&cli_info);
|
||||||
|
|
Loading…
Reference in New Issue