bgapi originate {execute_on_media=start_da2}sofia/external/da1@47.97.5.205:16080 &park
bgapi originate sofia/external/da1@47.97.5.205:16080 &da2
有的线路,比如IMS,需要fs先发包,才可以接收到早期媒体,可以这样:
bgapi originate {execute_on_media=start_da2}sofia/external/da1@47.97.5.205:16080 wait_for_answer_da,park inline
bgapi originate sofia/external/da1@47.97.5.205:16080 &da2(1)
通过API启动
originate {origination_uuid=myuuid,api_on_media=’uuid_start_da2 myuuid’}sofia/external/da2@ddrj.com:16060 wait_for_answer_da,park inline
fs1.8部分版本存在bug需要修改sofia.c代码才可以,特别加了一个API,避开这个BUG。
originate {origination_uuid=myuuid,api_on_media=’bgapi uuid_start_da2 myuuid’}sofia/external/da2@ddrj.com:16060 wait_for_answer_da,park inline
自定义检测参数覆盖da2.conf.xml配置
bgapi originate {execute_on_media=start_da2,da2_param_stoptone=’sample busy’,da2_param_autohangup=true,da2_param_ignoresamples=’abc’,da2_param_answerautosotp=true,da2_param_maxdetecttime=30}sofia/external/da1@47.97.5.205:16080 wait_for_answer_da,park inline
先呼叫手机,然后呼叫分机
originate {origination_caller_id_number=主叫号码,execute_on_media=start_da2}sofia/external/vad1@ddrj.com:16080 ‘m::wait_for_answer_da:60000bridge:{origination_caller_id_number=主叫号码,origination_caller_id_name=主叫用户}user/1000’ inline