forward calls from my Asterisk server to FreeSWITCH in BigBlueButton

459 views
Skip to first unread message

Alban Staehli

unread,
Jun 22, 2015, 4:42:03 PM6/22/15
to bigbluebu...@googlegroups.com
Hi,

I followed the FAQ here: http://docs.bigbluebutton.org/support/faq.html#how-do-i-forward-calls-from-my-asterisk-server-to-freeswitch-in-bigbluebutton
I did every steps, except I added a new SIP trunk to BigBlueButton in my trixbox (Asterisk and freepbx).
I forwarded calls on 85001 to the freeswitch server of BigBlueButton.

When I call 85001 with a client SIP account also configured on my trixbox, I can see the call coming in with the command:
sudo /opt/freeswitch/bin/fs_cli

But unfortunately, the call ends up with a 480 unavailable service (see line in red below).
It seems something is wrong with my dialplan, but I don't understand since it should be the default configuration according to the FAQ.

2015-06-22 22:33:48.322583 [NOTICE] switch_channel.c:1055 New Channel sofia/external/1...@192.168.1.13 [fc5dc6bc-191d-11e5-aac9-afc580a8f0b9]
2015-06-22 22:33:48.322583 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/1...@192.168.1.13 [BREAK]        
2015-06-22 22:33:48.322583 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/1...@192.168.1.13 [BREAK]        
2015-06-22 22:33:48.322583 [DEBUG] switch_core_state_machine.c:472 (sofia/external/1...@192.168.1.13) Running State Change CS_NEW
2015-06-22 22:33:48.322583 [DEBUG] sofia.c:8848 sofia/external/1...@192.168.1.13 receiving invite from 192.168.1.13:5060 version: 1.5.15b git f2a5271 2015-03-27 05:01:05Z 64bit
2015-06-22 22:33:48.322583 [DEBUG] sofia.c:6627 Channel sofia/external/1...@192.168.1.13 entering state [received][100]   
2015-06-22 22:33:48.322583 [DEBUG] sofia.c:6637 Remote SDP:                                                            
v=0
o=root 749444386 749444386 IN IP4 192.168.1.13
s=Asterisk PBX 1.6.0.26-FONCORE-r78
c=IN IP4 192.168.1.13
t=0 0
m=audio 12392 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20

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


I also tried to add this extension in /opt/freeswitch/conf/dialplan/default.xml , but it didn't change anything:
    <extension name="bbb_did_call" continue="true">
      <condition field="destination_number" expression=""^85001$" break="on-false">
        <action application="set" data="bbb_authorized=true"/>
<action application="answer"/>
    <action application="sleep" data="1500"/>
    <action application="play_and_get_digits" data="4 5 3 6000 # conference/conf-pin.wav ivr/ivr-that_was_an_invalid_entry.wav pin \d+ 2000 'NO_PIN XML default'"/>
    <action application="log" data="INFO The value of pin ${pin}"/>
    <action application="transfer" data="SEND_TO_CONFERENCE XML default"/>
      </condition>
    </extension>


Do you know what to do on top of the steps described in the FAQ?

Thanks for your help.
Cheers,

Alban

Alban Staehli

unread,
Jun 26, 2015, 2:38:06 AM6/26/15
to bigbluebu...@googlegroups.com
Hi,
Any help for this topic?
Or else, do you know how to setup a sip account directly on the bigbluebutton server to receive calls to a conference?
Thx for your feedback.

Miodrag Gavranov

unread,
Sep 15, 2015, 6:23:37 AM9/15/15
to BigBlueButton-Setup, alban....@oxegena.ch
I am having the same problem. Any help or thoughts on this? Anybody?
Reply all
Reply to author
Forward
0 new messages