根据session获取channel

 

switch_channel_t *channel = switch_core_session_get_channel(session);

你可能感兴趣的:(Freeswitch)