Advertisement

freeswitch call session DTMF callback triggering process

阅读量:

建立Session之后,将触发switch_core_session_thread_launch()函数,从而生成相应的线程。

复制代码
    SWITCH_DECLARE(switch_status_t) switch_core_session_thread_launch(switch_core_session_t *session)
    {
    switch_status_t status = SWITCH_STATUS_FALSE;
    switch_thread_t *thread;
    switch_threadattr_t *thd_attr;
    
    if (switch_test_flag(session, SSF_THREAD_RUNNING) || switch_test_flag(session, SSF_THREAD_STARTED)) {
        status = SWITCH_STATUS_INUSE;
        goto end;
    }
    
    
    if (switch_test_flag((&runtime), SCF_SESSION_THREAD_POOL)) {
        return switch_core_session_thread_pool_launch(session

全部评论 (0)

还没有任何评论哟~