Index: channels/chan_skinny.c =================================================================== --- channels/chan_skinny.c (revision 280158) +++ channels/chan_skinny.c (working copy) @@ -2866,11 +2962,19 @@ return 0; } +static format_t skinny_get_codec(struct ast_channel *chan) +{ + struct skinny_subchannel *sub = chan->tech_pvt; + struct skinny_line *p = sub->parent; + return p->capability; +} + static struct ast_rtp_glue skinny_rtp_glue = { .type = "Skinny", .get_rtp_info = skinny_get_rtp_peer, .get_vrtp_info = skinny_get_vrtp_peer, .update_peer = skinny_set_rtp_peer, + .get_codec = skinny_get_codec, }; static char *handle_skinny_set_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)