BBB Freeswitch not replying back to a SIP invite

108 views
Skip to first unread message

Birat Bhattacharjee

unread,
Oct 31, 2023, 3:57:17 AM10/31/23
to BigBlueButton-dev
Hi Team,

I am trying to establish an audio connection with freeswitch installed with bbb 2.5 via SIP.js. I am able to connect to the web socket and I can see the SIP invite on the freeswitch console. But, freeswitch is not sending any response back for the invite and the call request gets timed out. I am using a valid turn server configuration for NAT traversal. Could you please help me out with what could be the possible issues?

Note: The user credentials and SIP extension is working as I am able to connect to the conference via SIP softphone.

Regards,
Birat

DistanceLearning.cloud

unread,
Oct 31, 2023, 6:50:05 AM10/31/23
to BigBlueButton-dev
share the entire console log when the call hits the dialplan...  most likely its dialplan related.   the complete log should show you what freeswitch did.



regards,
Stephen

Birat Bhattacharjee

unread,
Oct 31, 2023, 7:37:39 AM10/31/23
to BigBlueButton-dev
Hi Stephen,

Thank you for your prompt reply, here is the complete log: 

recv 2336 bytes from ws/[34.105.212.124]:43644 at 11:31:48.700939:

------------------------------------------------------------------------

INVITE sip:9048...@gcp-a27131.bbb.mx SIP/2.0

Via: SIP/2.0/WSS vasg5kgqoa29.invalid;branch=z9hG4bK6209326

To: <sip:9048...@gcp-a27131.bbb.mx>

From: "174360611131922246823201295798200838671" <sip:1743606111319222468...@gcp-a27131.bbb.mx>;tag=ssa70lp6tj

CSeq: 1 INVITE

Call-ID: 9v6tt5aacudl2dhirelr

Max-Forwards: 70

Contact: <sip:cm5h...@vasg5kgqoa29.invalid;transport=ws;ob>

Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER

Supported: outbound

User-Agent: BigBlueButton

Content-Type: application/sdp

Content-Length: 1555

v=0

o=- 3357244462070672229 2 IN IP4 127.0.0.1

s=-

t=0 0

a=group:BUNDLE 0

a=extmap-allow-mixed

a=msid-semantic: WMS 63015abf-bcd0-46ef-9e64-5a0c6df08ab7

m=audio 64479 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126

c=IN IP4 34.142.70.241

a=rtcp:9 IN IP4 0.0.0.0

a=candidate:371712478 1 udp 25042943 34.142.70.241 64479 typ relay raddr 0.0.0.0 rport 0 generation 0 network-id 1 network-cost 10

a=candidate:4120585018 1 udp 8265983 34.142.70.241 51453 typ relay raddr 0.0.0.0 rport 0 generation 0 network-id 1 network-cost 10

a=ice-ufrag:1+lS

a=ice-pwd:PNHv/1r/mLxWghczwITiljdI

a=ice-options:trickle

a=fingerprint:sha-256 0D:3E:EA:9D:CE:29:A8:F7:81:06:7D:A7:07:32:8A:28:1E:6C:68:9B:C3:C0:71:E2:C1:86:D9:C2:3F:90:F5:25

a=setup:actpass

a=mid:0

a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level

a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time

a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01

a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid

a=sendrecv

a=msid:63015abf-bcd0-46ef-9e64-5a0c6df08ab7 6585f25e-b233-4bbe-917d-9bed70903d12

a=rtcp-mux

a=rtpmap:111 opus/48000/2

a=rtcp-fb:111 transport-cc

a=fmtp:111 minptime=10;useinbandfec=1

a=rtpmap:63 red/48000/2

a=fmtp:63 111/111

a=rtpmap:9 G722/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:13 CN/8000

a=rtpmap:110 telephone-event/48000

a=rtpmap:126 telephone-event/8000

a=ssrc:2741919131 cname:eyyiYaW+Gx8UJcuu

a=ssrc:2741919131 msid:63015abf-bcd0-46ef-9e64-5a0c6df08ab7 6585f25e-b233-4bbe-917d-9bed70903d12


I can see the SIP invite after enabling SIP trace, but I dont see any reply for this invite or any dialplan instructions executed for the same.


Regards,

Birat


sd...@distancelearning.cloud

unread,
Oct 31, 2023, 10:03:57 AM10/31/23
to bigblueb...@googlegroups.com

a=candidate:371712478 1 udp 25042943 34.142.70.241 64479 typ relay raddr 0.0.0.0 rport 0 generation 0 network-id 1 network-cost 10

a=candidate:4120585018 1 udp 8265983 34.142.70.241 51453 typ relay raddr 0.0.0.0 rport 0 generation 0 network-id 1 network-cost 10

 

shows it wants to use turn with address 0.0.0.0.

 

the BBB turn setup needs a username/password that is provided by bbb-web each time.

 

In your sip.js you should have code defining the turn server, and how you plan to authenticate to it? 

 

 

What do you have in your sip.js that configs turn?

 

Regards,

Stephen

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/ebe18eee-897f-4c09-8261-879774ee89adn%40googlegroups.com.

Birat Bhattacharjee

unread,
Nov 1, 2023, 3:56:50 AM11/1/23
to BigBlueButton-dev
Hi Stephen,

I am using the turn credentials I receive from an external turn server that is mapped to bbb server. I am fetching turn server credentials using the url: '/bigbluebutton/api/stuns'.

Here is what my user agent looks like:

this.userAgent=new UserAgent({
uri: UserAgent.makeURI(`sip:${encodeURIComponent(this.authorizationUsername)}@${this.hostname}`),
transportOptions: {
server: `${(this.protocol === 'https:' ? 'wss://' : 'ws://')}${this.hostname}/ws?sessionToken=${token}`,
connectionTimeout: this.USER_AGENT_CONNECTION_TIMEOUT_MS,
keepAliveInterval: this.WEBSOCKET_KEEP_ALIVE_INTERVAL,
keepAliveDebounce: this.WEBSOCKET_KEEP_ALIVE_DEBOUNCE,
traceSip: this.TRACE_SIP,
},
sessionDescriptionHandlerFactoryOptions: {
peerConnectionConfiguration: {
iceServers,
sdpSemantics: this.SDP_SEMANTICS,
iceTransportPolicy: this.FORCE_RELAY ? 'relay' : undefined,
},
},
displayName: this.authorizationUsername,
userAgentString: 'BigBlueButton',
authorizationPassword: this.authorizationPassword,
authorizationUsername: this.authorizationUsername,
logLevel: "debug",
});

The iceServers variable contains the turn server configuration received from '/bigbluebutton/api/stuns'.

Regards,
Birat
Reply all
Reply to author
Forward
0 new messages