CS_EXECUTE - Channel is executing it's dialplan. CS_EXCHANGE_MEDIA - Channel is exchanging media with another channel. CS_PARK - Channel is accepting media awaiting commands. CS_CONSUME_MEDIA - Channel is consuming all media and dropping it. CS_HIBERNATE - Channel is in a sleep state. CS_...
executed when the state changes to exchange_media*/switch_state_handler_t on_exchange_media;/*! executed when the state changes to soft_execute*/switch_state_handler_t on_soft_execute;/*! executed when the state changes to consume_media*/switch_state_handler_t on_consume_media;/*! executed...
如果fs版本较高也可以改成 ignore_early_media=true 改成 ignore_early_media=consume 就可以了。如果fs版本比较低需要用 wait_for_answer_da 代替这个变量比如 originate {execute_on_pre_answer=start_da2}sofia/external/da1@47.97.5.205:16080 wait_for_answer_da,transfer:’dest XML public’ inline wait...
static const switch_state_handler_table_t uuid_bridge_state_handlers = { /*.on_init */ NULL, /*.on_routing */ NULL, /*.on_execute */ NULL, /*.on_hangup */ NULL, /*.on_exchange_media */ NULL, /*.on_soft_execute */ uuid_bridge_on_soft_execute, /*.on_consume_media */ ...
• CS_CONSUME_MEDIA originate_on_routing 修改状态机的状态:CS_ROUTING -> CS_CONSUME_MEDIA switch_channel_set_state(channel, CS_CONSUME_MEDIA); switch_core_session_run 状态机处理状态变化 STATE_MACRO(consume_media, "CONSUME_MEDIA"); on_ consume_media 即 : NULL switch_core_standard_on_consume...
originate_on_routing 修改状态机的状态:CS_ROUTING -> CS_CONSUME_MEDIA switch_channel_set_state(channel, CS_CONSUME_MEDIA); switch_core_session_run 状态机处理状态变化 STATE_MACRO(consume_media, "CONSUME_MEDIA"); on_ consume_media 即 : NULL switch_core_standard_on_consume_media ...
originate_on_routing 修改状态机的状态:CS_ROUTING -> CS_CONSUME_MEDIA switch_channel_set_state(channel, CS_CONSUME_MEDIA); switch_core_session_run 状态机处理状态变化 STATE_MACRO(consume_media, "CONSUME_MEDIA"); on_ consume_media 即 : NULL switch_core_standard_on_consume_media ...
/*.on_exchange_media */ rtc_on_exchange_media, /*.on_soft_execute */ rtc_on_soft_execute, /*.on_consume_media */ NULL, /*.on_hibernate */ rtc_on_hibernate, /*.on_reset */ rtc_on_reset, /*.on_park */ NULL, /*.on_reporting */ NULL, ...
5)外部应答,session状态机变迁未CONSUME_MEDIA; 6)程序通过esl接口,发送执行application命令,同时session的状态变迁未EXECUTE。 freeswitch 2011-11-23 21:34:14|分类:默认分类|标签:|字号大中小订阅 比较零散,先放这留个脚印,慢慢添加整理。 1 . freeswitch分机号都保存在conf/directory目录下 ...
ignore_early_media 【被叫设置】忽略早期媒体,可选的值 true:忽略 consume:忽略但是可以获取数据,ring_ready:183改成180 bridge_early_media 【被叫设置】 主叫可以听到早期媒体,透传还是转码,暂时未测试 ringback 【主叫设置】设置呼叫彩铃 ,中国标准的回铃:$${cn-ring} 实际值:%(1000,4000,450) ...