Страница 1 из 1

Asterisk + FreeSwitch (Big Blue Button)

Добавлено: 26 апр 2016, 11:56
tonny_bennet
Здравствуйте.

Есть сервер конференций BigBlueButton (10.0.17.11). В последних версиях он для передачи голоса использует FreeSwitch. Стоит задача записывать эти конференции: и видео и звук. В BBB такой функционал есть. Вся проблема заключается в том, что сейчас BBB используется только для отображения самих презентаций, а голос я запускаю через конференцию в Asterisk (10.0.17.18) на другом сервере. Т.е. пользователи созваниваются в конференции на сервере Asterisk, а картинку смотрят на мониторе компьютера. Соответственно если я буду записывать конференцию средствами BBB то запишется только изображение.

Я хочу научиться дозваниваться в конференцию BBB (FreeSwitch) из Asterisk.
В мануалах BBB ничего интересного не нашёл. Есть статья http://docs.bigbluebutton.org/support/f ... conference по которой я создал пира на Asterisk и начал пробовать звонить в freeSwitch. Звонок завершается со стороны freeSwitch.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Asterisk_conf

Код: Выделить всё


sip.conf
[fs-gw]
type=peer
username=fs-gw
insecure=very
qualify=no
nat=no
host=10.0.17.11
port=5060
canreinvite=no
disallow=all
allow=ulaw
context=ael-internal
extensions.ael

Код: Выделить всё

85001 =><-->{
<------><------>Dial(SIP/fs-gw/${EXTEN},25,tT);
<------><------>HangUp();
<------><------>}
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: freeSwitch_conf
in conf/autoload_configs/acl.conf.xml

Код: Выделить всё

    <list name="asterisk-gw" default="deny">
       <node type="allow" cidr="10.0.17.18/32"/>
       <node type="allow" cidr="10.0.17.11/32"/>
       <node type="allow" cidr="127.0.0.1/32"/>
    </list>
in /conf/sip_profiles/external.xml

Код: Выделить всё

    <!-- Apply ACL from asterisk-gw -->
    <param name="apply-inbound-acl" value="asterisk-gw"/>
Соответсвенно в момент звонка в консоли freeSwitch следующее
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
2016-04-26 11:43:17.377095 [NOTICE] switch_channel.c:1075 New Channel sofia/external/206@10.0.17.18 [ebfab86a-0b8a-11e6-a952-efa620102843]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/206@10.0.17.18 [BREAK]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/206@10.0.17.18 [BREAK]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:472 (sofia/external/206@10.0.17.18) Running State Change CS_NEW
2016-04-26 11:43:17.377095 [DEBUG] sofia.c:8848 sofia/external/206@10.0.17.18 receiving invite from 10.0.17.18:5060 version: 1.4.19 git f423b2d 2015-06-11 23:41:22Z 64bit
2016-04-26 11:43:17.377095 [DEBUG] sofia.c:6627 Channel sofia/external/206@10.0.17.18 entering state [received][100]
2016-04-26 11:43:17.377095 [DEBUG] sofia.c:6637 Remote SDP:
v=0
o=root 1309517441 1309517441 IN IP4 10.0.17.18
s=Asterisk PBX 11.7.0~dfsg-1ubuntu1
c=IN IP4 10.0.17.18
t=0 0
m=audio 17884 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

2016-04-26 11:43:17.377095 [DEBUG] sofia.c:6903 (sofia/external/206@10.0.17.18) State Change CS_NEW -> CS_INIT
2016-04-26 11:43:17.377095 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/206@10.0.17.18 [BREAK]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:491 (sofia/external/206@10.0.17.18) State NEW
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:472 (sofia/external/206@10.0.17.18) Running State Change CS_INIT
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:512 (sofia/external/206@10.0.17.18) State INIT
2016-04-26 11:43:17.377095 [DEBUG] mod_sofia.c:87 sofia/external/206@10.0.17.18 SOFIA INIT
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:40 sofia/external/206@10.0.17.18 Standard INIT
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:48 (sofia/external/206@10.0.17.18) State Change CS_INIT -> CS_ROUTING
2016-04-26 11:43:17.377095 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/206@10.0.17.18 [BREAK]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:512 (sofia/external/206@10.0.17.18) State INIT going to sleep
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:472 (sofia/external/206@10.0.17.18) Running State Change CS_ROUTING
2016-04-26 11:43:17.377095 [DEBUG] switch_channel.c:2204 (sofia/external/206@10.0.17.18) Callstate Change DOWN -> RINGING
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:528 (sofia/external/206@10.0.17.18) State ROUTING
2016-04-26 11:43:17.377095 [DEBUG] mod_sofia.c:123 sofia/external/206@10.0.17.18 SOFIA ROUTING
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:166 sofia/external/206@10.0.17.18 Standard ROUTING
2016-04-26 11:43:17.377095 [INFO] mod_dialplan_xml.c:635 Processing Nikola Tesla <206>->85001 in context public
Dialplan: sofia/external/206@10.0.17.18 parsing [public->unloop] continue=false
Dialplan: sofia/external/206@10.0.17.18 Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/external/206@10.0.17.18 Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/external/206@10.0.17.18 parsing [public->outside_call] continue=true
Dialplan: sofia/external/206@10.0.17.18 Absolute Condition [outside_call]
Dialplan: sofia/external/206@10.0.17.18 Action set(outside_call=true)
Dialplan: sofia/external/206@10.0.17.18 Action export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/external/206@10.0.17.18 parsing [public->bbb_sp_call] continue=true
Dialplan: sofia/external/206@10.0.17.18 Regex (FAIL) [bbb_sp_call] network_addr(10.0.17.18) =~ /10.0.17.11/ break=on-false
Dialplan: sofia/external/206@10.0.17.18 parsing [public->bbb_webrtc_call] continue=true
Dialplan: sofia/external/206@10.0.17.18 Regex (FAIL) [bbb_webrtc_call] ${sip_via_protocol}(udp) =~ /^ws$/ break=on-false
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:216 (sofia/external/206@10.0.17.18) State Change CS_ROUTING -> CS_EXECUTE
2016-04-26 11:43:17.377095 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/206@10.0.17.18 [BREAK]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:528 (sofia/external/206@10.0.17.18) State ROUTING going to sleep
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:472 (sofia/external/206@10.0.17.18) Running State Change CS_EXECUTE
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:535 (sofia/external/206@10.0.17.18) State EXECUTE
2016-04-26 11:43:17.377095 [DEBUG] mod_sofia.c:178 sofia/external/206@10.0.17.18 SOFIA EXECUTE
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:258 sofia/external/206@10.0.17.18 Standard EXECUTE
EXECUTE sofia/external/206@10.0.17.18 set(outside_call=true)
2016-04-26 11:43:17.377095 [DEBUG] mod_dptools.c:1469 sofia/external/206@10.0.17.18 SET [outside_call]=[true]
EXECUTE sofia/external/206@10.0.17.18 export(RFC2822_DATE=Tue, 26 Apr 2016 11:43:17 +0300)
2016-04-26 11:43:17.377095 [DEBUG] switch_channel.c:1267 EXPORT (export_vars) [RFC2822_DATE]=[Tue, 26 Apr 2016 11:43:17 +0300]
2016-04-26 11:43:17.377095 [NOTICE] switch_core_state_machine.c:315 sofia/external/206@10.0.17.18 has executed the last dialplan instruction, hanging up.
2016-04-26 11:43:17.377095 [NOTICE] switch_core_state_machine.c:317 Hangup sofia/external/206@10.0.17.18 [CS_EXECUTE] [NORMAL_CLEARING]
2016-04-26 11:43:17.377095 [DEBUG] switch_channel.c:3242 Send signal sofia/external/206@10.0.17.18 [KILL]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/206@10.0.17.18 [BREAK]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:535 (sofia/external/206@10.0.17.18) State EXECUTE going to sleep
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:472 (sofia/external/206@10.0.17.18) Running State Change CS_HANGUP
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:735 (sofia/external/206@10.0.17.18) Callstate Change RINGING -> HANGUP
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:737 (sofia/external/206@10.0.17.18) State HANGUP
2016-04-26 11:43:17.377095 [DEBUG] mod_sofia.c:413 Channel sofia/external/206@10.0.17.18 hanging up, cause: NORMAL_CLEARING
2016-04-26 11:43:17.377095 [DEBUG] mod_sofia.c:549 Responding to INVITE with: 480
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:60 sofia/external/206@10.0.17.18 Standard HANGUP, cause: NORMAL_CLEARING
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:737 (sofia/external/206@10.0.17.18) State HANGUP going to sleep
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:504 (sofia/external/206@10.0.17.18) State Change CS_HANGUP -> CS_REPORTING
2016-04-26 11:43:17.377095 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/206@10.0.17.18 [BREAK]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:472 (sofia/external/206@10.0.17.18) Running State Change CS_REPORTING
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:823 (sofia/external/206@10.0.17.18) State REPORTING
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:104 sofia/external/206@10.0.17.18 Standard REPORTING, cause: NORMAL_CLEARING
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:823 (sofia/external/206@10.0.17.18) State REPORTING going to sleep
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:498 (sofia/external/206@10.0.17.18) State Change CS_REPORTING -> CS_DESTROY
2016-04-26 11:43:17.377095 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/206@10.0.17.18 [BREAK]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_session.c:1623 Session 3 (sofia/external/206@10.0.17.18) Locked, Waiting on external entities
2016-04-26 11:43:17.377095 [NOTICE] switch_core_session.c:1641 Session 3 (sofia/external/206@10.0.17.18) Ended
2016-04-26 11:43:17.377095 [NOTICE] switch_core_session.c:1645 Close Channel sofia/external/206@10.0.17.18 [CS_DESTROY]
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:626 (sofia/external/206@10.0.17.18) Running State Change CS_DESTROY
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:636 (sofia/external/206@10.0.17.18) State DESTROY
2016-04-26 11:43:17.377095 [DEBUG] mod_sofia.c:323 sofia/external/206@10.0.17.18 SOFIA DESTROY
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:111 sofia/external/206@10.0.17.18 Standard DESTROY
2016-04-26 11:43:17.377095 [DEBUG] switch_core_state_machine.c:636 (sofia/external/206@10.0.17.18) State DESTROY going to sleep

Вот такой лог в консоли в момент подключения первого пользователя к веб-конференции BBB
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
2016-04-26 11:36:34.797087 [NOTICE] switch_channel.c:1075 New Channel sofia/external/75485@10.0.17.11 [fc0663ae-0b89-11e6-a942-efa620102843]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:472 (sofia/external/75485@10.0.17.11) Running State Change CS_NEW
2016-04-26 11:36:34.797087 [DEBUG] sofia.c:8848 sofia/external/75485@10.0.17.11 receiving invite from 10.0.17.11:5070 version: 1.4.19 git f423b2d 2015-06-11 23:41:22Z 64bit
2016-04-26 11:36:34.797087 [DEBUG] sofia.c:6627 Channel sofia/external/75485@10.0.17.11 entering state [received][100]
2016-04-26 11:36:34.797087 [DEBUG] sofia.c:6637 Remote SDP:
v=0
o=GLOBAL_AUDIO_75485 0 0 IN IP4 10.0.17.11
s=Session SIP/SDP
c=IN IP4 10.0.17.11
t=0 0
m=audio 15000 RTP/AVP 100 8 18 0 111
a=rtpmap:100 SPEEX/16000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000/1
a=rtpmap:111 ILBC/8000/1
a=fmtp:111 mode=30
a=ptime:20

2016-04-26 11:36:34.797087 [DEBUG] sofia.c:6903 (sofia/external/75485@10.0.17.11) State Change CS_NEW -> CS_INIT
2016-04-26 11:36:34.797087 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:491 (sofia/external/75485@10.0.17.11) State NEW
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:472 (sofia/external/75485@10.0.17.11) Running State Change CS_INIT
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:512 (sofia/external/75485@10.0.17.11) State INIT
2016-04-26 11:36:34.797087 [DEBUG] mod_sofia.c:87 sofia/external/75485@10.0.17.11 SOFIA INIT
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:40 sofia/external/75485@10.0.17.11 Standard INIT
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:48 (sofia/external/75485@10.0.17.11) State Change CS_INIT -> CS_ROUTING
2016-04-26 11:36:34.797087 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:512 (sofia/external/75485@10.0.17.11) State INIT going to sleep
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:472 (sofia/external/75485@10.0.17.11) Running State Change CS_ROUTING
2016-04-26 11:36:34.797087 [DEBUG] switch_channel.c:2204 (sofia/external/75485@10.0.17.11) Callstate Change DOWN -> RINGING
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:528 (sofia/external/75485@10.0.17.11) State ROUTING
2016-04-26 11:36:34.797087 [DEBUG] mod_sofia.c:123 sofia/external/75485@10.0.17.11 SOFIA ROUTING
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:166 sofia/external/75485@10.0.17.11 Standard ROUTING
2016-04-26 11:36:34.797087 [INFO] mod_dialplan_xml.c:635 Processing GLOBAL_AUDIO_75485 <75485>->75485 in context public
Dialplan: sofia/external/75485@10.0.17.11 parsing [public->unloop] continue=false
Dialplan: sofia/external/75485@10.0.17.11 Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/external/75485@10.0.17.11 Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/external/75485@10.0.17.11 parsing [public->outside_call] continue=true
Dialplan: sofia/external/75485@10.0.17.11 Absolute Condition [outside_call]
Dialplan: sofia/external/75485@10.0.17.11 Action set(outside_call=true)
Dialplan: sofia/external/75485@10.0.17.11 Action export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/external/75485@10.0.17.11 parsing [public->bbb_sp_call] continue=true
Dialplan: sofia/external/75485@10.0.17.11 Regex (PASS) [bbb_sp_call] network_addr(10.0.17.11) =~ /10.0.17.11/ break=on-false
Dialplan: sofia/external/75485@10.0.17.11 Action set(bbb_authorized=true)
Dialplan: sofia/external/75485@10.0.17.11 Action transfer(${destination_number} XML default)
Dialplan: sofia/external/75485@10.0.17.11 parsing [public->bbb_webrtc_call] continue=true
Dialplan: sofia/external/75485@10.0.17.11 Regex (FAIL) [bbb_webrtc_call] ${sip_via_protocol}(udp) =~ /^ws$/ break=on-false
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:216 (sofia/external/75485@10.0.17.11) State Change CS_ROUTING -> CS_EXECUTE
2016-04-26 11:36:34.797087 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:528 (sofia/external/75485@10.0.17.11) State ROUTING going to sleep
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:472 (sofia/external/75485@10.0.17.11) Running State Change CS_EXECUTE
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:535 (sofia/external/75485@10.0.17.11) State EXECUTE
2016-04-26 11:36:34.797087 [DEBUG] mod_sofia.c:178 sofia/external/75485@10.0.17.11 SOFIA EXECUTE
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:258 sofia/external/75485@10.0.17.11 Standard EXECUTE
EXECUTE sofia/external/75485@10.0.17.11 set(outside_call=true)
2016-04-26 11:36:34.797087 [DEBUG] mod_dptools.c:1469 sofia/external/75485@10.0.17.11 SET [outside_call]=[true]
EXECUTE sofia/external/75485@10.0.17.11 export(RFC2822_DATE=Tue, 26 Apr 2016 11:36:34 +0300)
2016-04-26 11:36:34.797087 [DEBUG] switch_channel.c:1267 EXPORT (export_vars) [RFC2822_DATE]=[Tue, 26 Apr 2016 11:36:34 +0300]
EXECUTE sofia/external/75485@10.0.17.11 set(bbb_authorized=true)
2016-04-26 11:36:34.797087 [DEBUG] mod_dptools.c:1469 sofia/external/75485@10.0.17.11 SET [bbb_authorized]=[true]
EXECUTE sofia/external/75485@10.0.17.11 transfer(75485 XML default)
2016-04-26 11:36:34.797087 [DEBUG] switch_ivr.c:1856 (sofia/external/75485@10.0.17.11) State Change CS_EXECUTE -> CS_ROUTING
2016-04-26 11:36:34.797087 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_session.c:912 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.797087 [NOTICE] switch_ivr.c:1863 Transfer sofia/external/75485@10.0.17.11 to XML[75485@default]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:535 (sofia/external/75485@10.0.17.11) State EXECUTE going to sleep
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:472 (sofia/external/75485@10.0.17.11) Running State Change CS_ROUTING
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:528 (sofia/external/75485@10.0.17.11) State ROUTING
2016-04-26 11:36:34.797087 [DEBUG] mod_sofia.c:123 sofia/external/75485@10.0.17.11 SOFIA ROUTING
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:166 sofia/external/75485@10.0.17.11 Standard ROUTING
2016-04-26 11:36:34.797087 [INFO] mod_dialplan_xml.c:635 Processing GLOBAL_AUDIO_75485 <75485>->75485 in context default
Dialplan: sofia/external/75485@10.0.17.11 parsing [default->unloop] continue=false
Dialplan: sofia/external/75485@10.0.17.11 Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/external/75485@10.0.17.11 Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/external/75485@10.0.17.11 parsing [default->bbb_conferences] continue=false
Dialplan: sofia/external/75485@10.0.17.11 Regex (PASS) [bbb_conferences] ${bbb_authorized}(true) =~ /true/ break=on-false
Dialplan: sofia/external/75485@10.0.17.11 Regex (PASS) [bbb_conferences] destination_number(75485) =~ /^(\d{5})$/ break=on-false
Dialplan: sofia/external/75485@10.0.17.11 Action set(jitterbuffer_msec=20:400)
Dialplan: sofia/external/75485@10.0.17.11 Action answer()
Dialplan: sofia/external/75485@10.0.17.11 Action conference(75485@cdquality)
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:216 (sofia/external/75485@10.0.17.11) State Change CS_ROUTING -> CS_EXECUTE
2016-04-26 11:36:34.797087 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:528 (sofia/external/75485@10.0.17.11) State ROUTING going to sleep
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:472 (sofia/external/75485@10.0.17.11) Running State Change CS_EXECUTE
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:535 (sofia/external/75485@10.0.17.11) State EXECUTE
2016-04-26 11:36:34.797087 [DEBUG] mod_sofia.c:178 sofia/external/75485@10.0.17.11 SOFIA EXECUTE
2016-04-26 11:36:34.797087 [DEBUG] switch_core_state_machine.c:258 sofia/external/75485@10.0.17.11 Standard EXECUTE
EXECUTE sofia/external/75485@10.0.17.11 set(jitterbuffer_msec=20:400)
2016-04-26 11:36:34.797087 [DEBUG] mod_dptools.c:1469 sofia/external/75485@10.0.17.11 SET [jitterbuffer_msec]=[20:400]
EXECUTE sofia/external/75485@10.0.17.11 answer()
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [SPEEX:100:16000:20:0:1]/[opus:116:48000:20:0:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [SPEEX:100:16000:20:0:1]/[SPEEX:99:16000:20:42200:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3735 Audio Codec Compare [SPEEX:99:16000:20:42200:1] ++++ is saved as a match
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [SPEEX:100:16000:20:0:1]/[SPEEX:99:8000:20:24600:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [SPEEX:100:16000:20:0:1]/[G722:9:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [SPEEX:100:16000:20:0:1]/[PCMU:0:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [SPEEX:100:16000:20:0:1]/[PCMA:8:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [SPEEX:100:16000:20:0:1]/[GSM:3:8000:20:13200:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[opus:116:48000:20:0:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[SPEEX:99:16000:20:42200:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[SPEEX:99:8000:20:24600:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3735 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[GSM:3:8000:20:13200:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [G729:18:8000:20:8000:1]/[opus:116:48000:20:0:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [G729:18:8000:20:8000:1]/[SPEEX:99:16000:20:42200:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [G729:18:8000:20:8000:1]/[SPEEX:99:8000:20:24600:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [G729:18:8000:20:8000:1]/[GSM:3:8000:20:13200:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[opus:116:48000:20:0:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[SPEEX:99:16000:20:42200:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[SPEEX:99:8000:20:24600:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3735 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[GSM:3:8000:20:13200:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [ILBC:111:8000:20:0:1]/[opus:116:48000:20:0:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [ILBC:111:8000:20:0:1]/[SPEEX:99:16000:20:42200:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [ILBC:111:8000:20:0:1]/[SPEEX:99:8000:20:24600:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [ILBC:111:8000:20:0:1]/[G722:9:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [ILBC:111:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [ILBC:111:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3680 Audio Codec Compare [ILBC:111:8000:20:0:1]/[GSM:3:8000:20:13200:1]
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:2507 Set Codec sofia/external/75485@10.0.17.11 SPEEX/16000 20 ms 320 samples 42200 bits 1 channels
2016-04-26 11:36:34.797087 [DEBUG] switch_core_codec.c:111 sofia/external/75485@10.0.17.11 Original read codec set to SPEEX:99
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:3956 No 2833 in SDP. Disable 2833 dtmf and switch to INFO
2016-04-26 11:36:34.797087 [DEBUG] switch_core_media.c:5179 AUDIO RTP [sofia/external/75485@10.0.17.11] 10.0.17.11 port 29630 -> 10.0.17.11 port 15000 codec: 100 ms: 20
2016-04-26 11:36:34.797087 [DEBUG] switch_rtp.c:3569 Starting timer [soft] 320 bytes per 20ms
2016-04-26 11:36:34.817215 [INFO] switch_core_media.c:5396 Activating RTCP PORT 0
2016-04-26 11:36:34.817215 [DEBUG] switch_rtp.c:3919 RTCP send rate is: 5000 and packet rate is: 20000 Remote Port: 15001
2016-04-26 11:36:34.817215 [DEBUG] switch_rtp.c:2349 Setting RTCP remote addr to 10.0.17.11:15001
2016-04-26 11:36:34.817215 [DEBUG] switch_core_media.c:1748 Setting Jitterbuffer to 20ms (1 frames) (20 max frames) (0 max drift)
2016-04-26 11:36:34.817215 [DEBUG] switch_core_media.c:5505 sofia/external/75485@10.0.17.11 Set rtp dtmf delay to 40
2016-04-26 11:36:34.817215 [NOTICE] sofia_media.c:92 Pre-Answer sofia/external/75485@10.0.17.11!
2016-04-26 11:36:34.817215 [DEBUG] switch_channel.c:3419 (sofia/external/75485@10.0.17.11) Callstate Change RINGING -> EARLY
2016-04-26 11:36:34.817215 [DEBUG] mod_sofia.c:780 Local SDP sofia/external/75485@10.0.17.11:
v=0
o=FreeSWITCH 1461630164 1461630165 IN IP4 10.0.17.11
s=FreeSWITCH
c=IN IP4 10.0.17.11
t=0 0
m=audio 29630 RTP/AVP 100
a=rtpmap:100 SPEEX/16000
a=ptime:20
a=sendrecv
a=rtcp:29631 IN IP4 10.0.17.11

2016-04-26 11:36:34.817215 [DEBUG] switch_core_session.c:912 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.817215 [NOTICE] mod_dptools.c:1292 Channel [sofia/external/75485@10.0.17.11] has been answered
2016-04-26 11:36:34.817215 [DEBUG] switch_channel.c:3711 (sofia/external/75485@10.0.17.11) Callstate Change EARLY -> ACTIVE
EXECUTE sofia/external/75485@10.0.17.11 conference(75485@cdquality)
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10364 using channel sound prefix: /opt/freeswitch/sounds/en/us/callie
2016-04-26 11:36:34.817215 [DEBUG] mod_conference.c:8991 Raw Codec Activation Success L16@16000hz 1 channel 20ms
2016-04-26 11:36:34.817215 [DEBUG] mod_conference.c:9037 Raw Codec Activation Success L16@48000hz 1 channel 20ms
2016-04-26 11:36:34.817215 [DEBUG] switch_core_codec.c:221 sofia/external/75485@10.0.17.11 Push codec L16:100
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '0' to 'mute'
2016-04-26 11:36:34.817215 [INFO] switch_ivr_async.c:212 Digit parser mod_conference: Setting realm to 'conf'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding 0/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b6150
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '*' to 'deaf mute'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding */conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b6180
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '9' to 'energy up'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding 9/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b61b0
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '8' to 'energy equ'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding 8/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b61e0
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '7' to 'energy dn'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding 7/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b6210
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '3' to 'vol talk up'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding 3/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b6240
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '2' to 'vol talk zero'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding 2/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b6270
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '1' to 'vol talk dn'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding 1/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b62a0
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '6' to 'vol listen up'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding 6/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b62d0
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '5' to 'vol listen zero'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding 5/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b6300
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '4' to 'vol listen dn'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding 4/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b6330
2016-04-26 11:36:34.817215 [INFO] mod_conference.c:10967 sofia/external/75485@10.0.17.11 binding '#' to 'hangup'
2016-04-26 11:36:34.817215 [DEBUG] switch_ivr_async.c:321 Digit parser mod_conference: binding #/conf/0 callback: 0x7f7dfc616590 data: 0x7f7de40b6360
2016-04-26 11:36:34.817215 [DEBUG] switch_core_session.c:912 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.817215 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.817215 [DEBUG] mod_conference.c:3043 Setup timer success interval: 20 samples: 960
2016-04-26 11:36:34.817215 [DEBUG] mod_conference.c:4765 Setup timer soft success interval: 20 samples: 320
2016-04-26 11:36:34.817215 [DEBUG] sofia.c:6627 Channel sofia/external/75485@10.0.17.11 entering state [completed][200]
2016-04-26 11:36:34.837114 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.837114 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.837114 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/75485@10.0.17.11 [BREAK]
2016-04-26 11:36:34.857198 [DEBUG] sofia.c:6627 Channel sofia/external/75485@10.0.17.11 entering state [ready][200]
2016-04-26 11:36:34.857198 [NOTICE] switch_core_io.c:1261 Activating write resampler
2016-04-26 11:37:34.897093 [DEBUG] switch_rtp.c:1937 rtcp_stats_init: ssrc[0] base_seq[4536]
2016-04-26 11:37:34.897093 [DEBUG] switch_rtp.c:5884 Correct ip/port confirmed.

Подскажите пожалуйста как создать диалплан в котором при звонке с Asterisk я смогу подключиться к конференции в freeSwitch?

Тут нашёл похожий пример подключения https://freeswitch.org/confluence/displ ... H/Asterisk
Но не могу понять как подключиться к конференции.

Re: Asterisk + FreeSwitch (Big Blue Button)

Добавлено: 26 апр 2016, 12:16
Vlad1983

Код: Выделить всё

Dialplan: sofia/external/206@10.0.17.18 Regex (FAIL) [bbb_sp_call] network_addr(10.0.17.18) =~ /10.0.17.11/ break=on-false

Код: Выделить всё

Dialplan: sofia/external/75485@10.0.17.11 Regex (PASS) [bbb_sp_call] network_addr(10.0.17.11) =~ /10.0.17.11/ break=on-false
Dialplan: sofia/external/75485@10.0.17.11 Action set(bbb_authorized=true)
Dialplan: sofia/external/75485@10.0.17.11 Action transfer(${destination_number} XML default)

Re: Asterisk + FreeSwitch (Big Blue Button)

Добавлено: 26 апр 2016, 13:01
tonny_bennet
За что уважаю старожилов форума, так это за отзывчивость и содержательность ответов :D

Поковырялся в конфигах и на их примере своял кусок диалплана:

/conf/dialplan/public/from_asterisk.xml

Код: Выделить всё

<include>

<extension name="from_asterisk">
    <condition field="network_addr" expression="10.0.17.18" />
    <condition field="destination_number" expression="^(\d{5})$">
        <action application="answer"/>
        <action application="conference" data="$1@cdquality"/>
    </condition>
</extension>

</include>

Теперь я могу дозвониться в эту конференцию, но только нужно знать её пятизначный номер. Т.к. я пока работаю с демо-комнатой BBB номер конференции меняется при каждом перезапуске сервера. Разберусь как узнавать номер конференции обязательно отпишусь.

Re: Asterisk + FreeSwitch (Big Blue Button)

Добавлено: 26 апр 2016, 14:00
awsswa
кстате - а почему вы на внешний профиль звоните ?

sofia/external/206@10.0.17.18

PS не красиво