api_hangup_hook 介绍 在挂断时执行指定API命令 示例 <action application="set"data="api_hangup_hook=jsrun cleanup.js ${uuid}"/>originate{api_hangup_hook='lua confhanguphook.lua',session_in_hangup_hook=true}user/1000&echo()
api_hangup_hookstring Execute an API command on hangup.See also:session_in_hangup_hook api_reporting_hook - like api_hangup_hook but after reporting state (both honor session_in_hangup_hook)Usage<action application="set" data="api_hangup_hook=jsrun cleanup.js ${uuid}"/>...
作用:在LUA脚本中,当会话(session)挂断后,可以通过setHangupHook来调用定义的函数。 function myHangupHook(s, status, arg) freeswitch.consoleLog("NOTICE", "myHangupHook: " .. status .. "\n") -- close db_conn and terminate db_conn:close() error() end blah="w00t"; session:setHangupHook...
限制并发,app默认超过限制会自动挂机,api通过参数控制超过是否挂机 app cti_limit_inc 参数1:限制类型 参数2:最大并发 api cti_limit_inc 参数1:限制类型 参数2:最大并发 参数3:[hangup] api uuid_cti_limit_inc 参数1:限制类型 参数2:最大并发 参数3:[hangup] 挂机后会自动把统计的并发降1,如果需要提前...
6:FS呼叫命令:/usr/local/freeswitch/bin/fs_cli -x "bgapi originate {ignore_early_media=true,session_in_hangup_hook=true}[execute_on_answer='sched_hangup +60', sip_cid_type=rpid,origination_caller_id_number=82064007,api_hangup_hook='lua calllog.lua 30']sofia/external/13133805390@171.34....
api_hangup_hookExecute an API command on hangup.Usage:<action application="set" data="api_hangup_hook=jsrun cleanup.js ${uuid}"/>See also:session_in_hangup_hook api_reporting_hook - like api_hangup_hook but after reporting state (both honor session_in_hangup_hook)...
APISession作用:应用于已存在的会话(Sessions) 目录浏览:APISessionssession:answersession:answeredsession:bridgedsession:check_hangup_hooksession:collectDigitssession:consoleLogsession:destroysession: freeswitch 设置语音播报 git lua 正则表达式 转载 mob64ca13fe1aa6 ...
check_hangup_hook* 10.2.5session:collectDigits* 10.2.6session:consoleLog* 10.2.7session:destroy* 10.2.8session:execute* 10.2.9session:executeString* 10.2.10session:flushDigits* 10.2.11session:flushEvents* 10.2.12session:get_uuid* 10.2.13session:getDigits* 10.2.14session:getState* 10.2.15session...
Monitor_exec Channel_Variables#api_hangup_hook MP3Player mod_shout Musiconhold mod_local_stream NoCDR <action application="set" data="process_cdr=false"/> NoOp Usually used for logging - Misc._Dialplan_Tools_log Park Misc._Dialplan_Tools_park Playback Misc._Dialplan_Tools_playback Playtones...
--Pass fax headers at hangup--><actionapplication="set"data="api_hangup_hook=system ${base_dir}/scripts/process-fax.sh '\\\${fax_remote_station_id}' '\\\${fax_local_station_id}' '\\\${fax_document_transferred_pages}' '\\\${fax_document_total_pages}' '\\\${fax_result_text...