业务需求:通过调度台能向多个广播终端喊话,调度台能查看广播终端的视频;
开发需求:Web调度台能与多个sip电话终端的语音双向通话,视频单向通话;
效果图:
业务框架:
定制开发功能:
通话录音;
语音监听;
kamailio的呼叫转呼到freeswitch
case /"^66[1-9][0-9][0-9][0-9]$": # starting with 99 folowed by ABCD - direct call to broadcast play strip(2); prefix("p2p-"); break; case /"^99[1-9][0-9][0-9][0-9]$": # starting with 99 folowed by ABCD - direct call to broadcast play strip(2); # online - do broad bridging prefix("broad-"); break; case /"^77[1-9][0-9][0-9][0-9][0-9]$": # starting with 77 folowed by ABCDE - direct call to broadcast play strip(2); # online - do conf bridging prefix("conf-"); break; default: # online - do bridging prefix("kb-");
freeswitch p2p的拨号规则:
<extension name="Local_Extension_kamalio_p2p"> <condition field="destination_number" expression="^p2p-([1-9][0-9][0-9][0-9])$"> <action application="export" data="dialed_extension=$1"/> <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --> <action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/> <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.mp4"/> <action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/> <action application="bind_meta_app" data="4 b s execute_extension::att_xfer XML features"/> <action application="set" data="ringback=${us-ring}"/> <action application="set" data="transfer_ringback=$${hold_music}"/> <action application="set" data="call_timeout=50"/> <action application="set" data="proxy_media=true"/> <action application="set" data="sip_invite_domain=192.168.16.35"/> <action application="export" data="sip_contact_user=ufs"/> <action application="export" data="sip_contact_host=192.168.16.35"/> <action application="export" data="sip_contact_port=5060"/> <!-- <action application="set" data="sip_exclude_contact=${network_addr}"/> --> <action application="set" data="record_concat_video=true"/> <action application="set" data="hangup_after_bridge=true"/> <!--<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --> <action application="set" data="continue_on_fail=true"/> <action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/> <action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/> <action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/> <action application="hash" data="insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}"/> <action application="hash" data="insert/${domain_name}-last_dial_ext/global/${uuid}"/> <!--<action application="export" data="nolocal:rtp_secure_media=${user_data(${dialed_extension}@${domain_name} var rtp_secure_media)}"/>--> <action application="log" data="INFO in to extension public-ex user/$${dialed_extension}@$${domain_name}"/> <action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/> <action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/> <!-- <action application="answer"/>--> <!-- <action application="record_session" data="av://$${recordings_dir}/${dialed_extension}_${caller_id_number}_${strftime(%Y-%m-%d-%H-%M-%S)}/${call_uuid}.mp4"/> --> <!-- 修改这部分内容,其中192.168.16.83为kamilio的IP --> <action application="bridge" data="sofia/internal/$1@192.168.16.83"/> <action application="answer"/> <!-- <action application="sleep" data="1000"/> --> <!-- <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> --> <!-- <action application="record_fsv" data="$${recordings_dir}/${dialed_extension}_${caller_id_number}_testrecord.fsv"/> --> <action application="record_session" data="av://$${recordings_dir}/${dialed_extension}_${caller_id_number}_${strftime(%Y-%m-%d-%H-%M-%S)}.mp4"/> </condition> </extension>
-------------------广告线---------------
项目、合作,欢迎勾搭,邮箱:promall@qq.com
本文为呱牛笔记原创文章,转载无需和我联系,但请注明来自呱牛笔记 ,it3q.com