Firefox 25 + DTLS+SRTP + Call connected but no audio in browser
Hi,
I am trying to make WebRTC audio call to Asterisk version 11.
OS: Ubuntu 12.04.
The call gets connected successfully to Asterisk but after that there is NO AUDIO in browser.
I see lot of discard packet logging. Which transport flow is not ready? DTLS??
Please help to resolve the audio issue.
Below are nspr.logs
2014-01-16 09:47:46.629769 UTC - -2040645824[7f2b8503e480]: Attaching pipeline to stream 0x7f2b4a216b00 conduit type=audio 2014-01-16 09:47:46.629897 UTC - 1795237632[7f2b477536a0]: [GSM Task|tnp] ui.c:103: SIPCC-UI_API: 1/1, ui_call_state: event=5 2014-01-16 09:47:46.629923 UTC - 1795237632[7f2b477536a0]: [GSM Task|tnp] ui.c:467: SIPCC-UI_API: 1/1, ui_call_info: call instance=0 callednum= calledname= clngnum= clngname = 2014-01-16 09:47:46.629932 UTC - 1795237632[7f2b477536a0]: [GSM Task|tnp] ui.c:470: SIPCC-UI_API: ui_call_info: calltype=2 displayClng=1 displayCld=1 2014-01-16 09:47:46.629963 UTC - 1795237632[7f2b477536a0]: [GSM Task|tnp] ui.c:653: SIPCC-UI_API: 1/1, ui_set_call_status: the stat string =<80>^X 2014-01-16 09:47:46.629972 UTC - 1795237632[7f2b477536a0]: [GSM Task|tnp] ui.c:615: SIPCC-UI_API: 1/1, ui_set_call_status_display: the stat string =<80>^X, timeout= 0, priority=0 2014-01-16 09:47:46.629981 UTC - 1795237632[7f2b477536a0]: [GSM Task|tnp] ui.c:282: SIPCC-UI_API: 1/1, ui_update_video_avail: 2014-01-16 09:47:46.629991 UTC - 1795237632[7f2b477536a0]: [GSM Task|def] fsm.c:346: SIPCC-FSM: 1/1, fsm_change_state: DEF: HAVE_LOCAL_OFFER -> STABLE 2014-01-16 09:47:46.630000 UTC - 1795237632[7f2b477536a0]: [GSM Task|def] dcsm.c:397: SIPCC-DCSM: dcsm_update_gsm_state: 1 : DCSM_READY --> DCSM_READY 2014-01-16 09:47:46.630053 UTC - 1795237632[7f2b477536a0]: [GSM Task|tnp] ui.c:1701: SIPCC-UI_API: 1/1, ui_set_remote_description: state=27 call_instance=0 2014-01-16 09:47:46.630069 UTC - 1795237632[7f2b477536a0]: [GSM Task|def] sm.c:65: SIPCC-GSM: 1/1, sm_process_event: DEF :(HAVE_LOCAL_OFFER:SETREMOTEDESC ) 2014-01-16 09:47:46.629931 UTC - 1584723712[7f2b47753480]: [CCAPP Task|cpr] cpr_linux_stdio.c:146: cprGetMessage: msgrcv success for queue CCAPPQ 2014-01-16 09:47:46.630096 UTC - 1584723712[7f2b47753480]: [CCAPP Task|def] ccprovider.c:1580: SIPCC-SIP_CC_PROV: ccappUpdateSessionData: Call_STATE:. state=5, attr=0, cause=5, instance=0 2014-01-16 09:47:46.630106 UTC - 1584723712[7f2b47753480]: [CCAPP Task|src-common] string_lib.c:324: Strlib Error: strlib_is_tring passed invalid string 2014-01-16 09:47:46.630152 UTC - 1584723712[7f2b47753480]: [CCAPP Task|CC_SIPCCService] CC_SIPCCService.cpp:724: onCallEvent(CCAPI_CALL_EV_STATE, 10001, [CONNECTED|canHold, canEndCall,canSendDigit,canUpdateVideoMediaCap,canMuteAudio,canSetVolume] 2014-01-16 09:47:46.630237 UTC - 1584723712[7f2b47753480]: [CCAPP Task|def] ccapi_call.c:56: SIPCC-SIP_CC_PROV: CCAPI_Call_releaseCallInfo: ref=0x7f2b482f5200: count=2 2014-01-16 09:47:46.630252 UTC - 1584723712[7f2b47753480]: [CCAPP Task|cpr] cpr_linux_stdio.c:146: cprGetMessage: msgrcv success for queue CCAPPQ 2014-01-16 09:47:46.630266 UTC - 1584723712[7f2b47753480]: [CCAPP Task|src-common] string_lib.c:324: Strlib Error: strlib_is_tring passed invalid string 2014-01-16 09:47:46.630288 UTC - 1584723712[7f2b47753480]: [CCAPP Task|CC_SIPCCService] CC_SIPCCService.cpp:724: onCallEvent(CCAPI_CALL_EV_CALLINFO, 10001, [CONNECTED|canHold, canEndCall,canSendDigit,canUpdateVideoMediaCap,canMuteAudio,canSetVolume] 2014-01-16 09:47:46.630303 UTC - 1584723712[7f2b47753480]: [CCAPP Task|def] ccapi_call.c:56: SIPCC-SIP_CC_PROV: CCAPI_Call_releaseCallInfo: ref=0x7f2b482f5e00: count=2 2014-01-16 09:47:46.630313 UTC - 1584723712[7f2b47753480]: [CCAPP Task|cpr] cpr_linux_stdio.c:146: cprGetMessage: msgrcv success for queue CCAPPQ 2014-01-16 09:47:46.630322 UTC - 1584723712[7f2b47753480]: [CCAPP Task|cpr] cpr_linux_stdio.c:146: cprGetMessage: msgrcv success for queue CCAPPQ 2014-01-16 09:47:46.630330 UTC - 1584723712[7f2b47753480]: [CCAPP Task|cpr] cpr_linux_stdio.c:146: cprGetMessage: msgrcv success for queue CCAPPQ 2014-01-16 09:47:46.630336 UTC - 1584723712[7f2b47753480]: [CCAPP Task|src-common] string_lib.c:324: Strlib Error: strlib_is_tring passed invalid string 2014-01-16 09:47:46.630348 UTC - 1584723712[7f2b47753480]: [CCAPP Task|CC_SIPCCCallInfo] CC_SIPCCCallInfo.cpp:566: State 27 not handled in generateCapabilities() 2014-01-16 09:47:46.630358 UTC - 1584723712[7f2b47753480]: [CCAPP Task|CC_SIPCCService] CC_SIPCCService.cpp:724: onCallEvent(CCAPI_CALL_EV_STATE, 10001, [UNKNOWN|] 2014-01-16 09:47:46.630369 UTC - 1584723712[7f2b47753480]: [CCAPP Task|def] ccapi_call.c:56: SIPCC-SIP_CC_PROV: CCAPI_Call_releaseCallInfo: ref=0x7f2b482f6400: count=2 2014-01-16 09:47:46.634532 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.634576 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready 2014-01-16 09:47:46.634722 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.634736 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready 2014-01-16 09:47:46.636879 UTC - 898651904[7f2b482be570]: Audio conduit returned buffer of length 160 2014-01-16 09:47:46.636917 UTC - 898651904[7f2b482be570]: MediaPipeline::NotifyQueuedTrackChanges() 2014-01-16 09:47:46.647128 UTC - 898651904[7f2b482be570]: Audio conduit returned buffer of length 160 2014-01-16 09:47:46.647186 UTC - 898651904[7f2b482be570]: MediaPipeline::NotifyQueuedTrackChanges() 2014-01-16 09:47:46.647747 UTC - -2040645824[7f2b8503e480]: [main|PeerConnectionImpl] PeerConnectionImpl.cpp:165: Returning success for OnAddStream() 2014-01-16 09:47:46.654630 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.654665 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready 2014-01-16 09:47:46.654744 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.654752 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready 2014-01-16 09:47:46.657703 UTC - 898651904[7f2b482be570]: Audio conduit returned buffer of length 160 014-01-16 09:47:46.647747 UTC - -2040645824[7f2b8503e480]: [main|PeerConnectionImpl] PeerConnectionImpl.cpp:165: Returning success for OnAddStream() 2014-01-16 09:47:46.654630 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.654665 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready 2014-01-16 09:47:46.654744 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.654752 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready 2014-01-16 09:47:46.657703 UTC - 898651904[7f2b482be570]: Audio conduit returned buffer of length 160 2014-01-16 09:47:46.657947 UTC - 898651904[7f2b482be570]: MediaPipeline::NotifyQueuedTrackChanges() 2014-01-16 09:47:46.659191 UTC - -2040645824[7f2b8503e480]: [main|PeerConnectionImpl] PeerConnectionImpl.cpp:179: PeerConnectionObserverDispatch processing mCallState = 5 (CONNECTED), mFsmState = 0 (IDLE) 2014-01-16 09:47:46.659209 UTC - -2040645824[7f2b8503e480]: [main|PeerConnectionImpl] PeerConnectionImpl.cpp:212: : **** UNHANDLED SIGNALING STATE : 0 (IDLE) 2014-01-16 09:47:46.659215 UTC - -2040645824[7f2b8503e480]: [main|PeerConnectionImpl] PeerConnectionImpl.cpp:299: : **** UNHANDLED CALL STATE : 5 (CONNECTED) 2014-01-16 09:47:46.659233 UTC - -2040645824[7f2b8503e480]: [main|PeerConnectionImpl] PeerConnectionImpl.cpp:179: PeerConnectionObserverDispatch processing mCallState = 27 (SETREMOTEDESCSUCCESS), mFsmState = 16 (STABLE) 2014-01-16 09:47:46.668187 UTC - 898651904[7f2b482be570]: Audio conduit returned buffer of length 160 2014-01-16 09:47:46.668411 UTC - 898651904[7f2b482be570]: Audio conduit returned buffer of length 160 2014-01-16 09:47:46.668444 UTC - 898651904[7f2b482be570]: MediaPipeline::NotifyQueuedTrackChanges() 2014-01-16 09:47:46.674898 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.674936 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready 2014-01-16 09:47:46.675033 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.675043 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready 2014-01-16 09:47:46.679308 UTC - 898651904[7f2b482be570]: Audio conduit returned buffer of length 160 2014-01-16 09:47:46.679354 UTC - 898651904[7f2b482be570]: MediaPipeline::NotifyQueuedTrackChanges() 2014-01-16 09:47:46.689528 UTC - 898651904[7f2b482be570]: Audio conduit returned buffer of length 160 2014-01-16 09:47:46.689648 UTC - 898651904[7f2b482be570]: MediaPipeline::NotifyQueuedTrackChanges() 2014-01-16 09:47:46.694990 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.695030 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready 2014-01-16 09:47:46.695169 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.695183 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready 2014-01-16 09:47:46.700065 UTC - 898651904[7f2b482be570]: Audio conduit returned buffer of length 160 2014-01-16 09:47:46.700192 UTC - 898651904[7f2b482be570]: MediaPipeline::NotifyQueuedTrackChanges() 2014-01-16 09:47:46.710440 UTC - 898651904[7f2b482be570]: Audio conduit returned buffer of length 160 2014-01-16 09:47:46.710512 UTC - 898651904[7f2b482be570]: MediaPipeline::NotifyQueuedTrackChanges() 2014-01-16 09:47:46.714919 UTC - 1376773888[7f2b4a4657b0]: MediaPipeline::NotifyRealtimeData() 2014-01-16 09:47:46.714957 UTC - 1376773888[7f2b4a4657b0]: Discarding packets because transport not ready
P.S. Asterisk is configured for DTLS-SRTP with certificates.
この投稿は cor-el により
すべての返信 (4)
I don't know Linux, but I suggest;
Clear the Cache Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
and
Remove Cookies Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
If there is still a problem, try to
Start Firefox in Safe Mode
===============================
Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
You can try these free programs to scan for malware, which work with your existing antivirus software:
- Microsoft Safety Scanner
- MalwareBytes' Anti-Malware
- TDSSKiller - AntiRootkit Utility
- Hitman Pro
- ESET Online Scanner
Microsoft Security Essentials is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
Further information can be found in the Troubleshoot Firefox issues caused by malware article.
Did this fix your problems? Please report back to us!
I was doing research on this yesterday and closed my tabs, but I remember seeing hardware acceleration was recommended to be turned off. The audio could be blocked by a firewall as well or an antivirus software if you would like to try this route as well: What to do if Firefox won't play any sounds andConfigure firewalls so that Firefox can access the Internet
Better yet, I found this that you have to enable DTLS manually. Instructions on how to do this is found https://code.google.com/p/webrtc2sip/.../FAQ#I_see_
Hi FredMcD,
I tried your suggestion but problem still persist. I believe this issue is internal to Firefox or may be specific to release version. Hi guigs2, There is no firewall as everything is on local LAN and I do not have any antivirus softwares on my Linux Desktop. DTLS is already enabled in Asterisk as WebRTC call from Firefox is getting successfuly established. DTLS certificates on Asterisk are also OK else call would have failed. I believe DTLS-SRTP configuration in Firefox is enabled by default. The problem is even though signalling is happening i.e. SIP Call is getting connected, there is No RTP flow i.e. AUDIO.
You are right and it looks like there is an open issue of this in asterisk:
- Firefox Bug https://bugzilla.mozilla.org/show_bug.cgi?id=948683
- and more bugs https://bugzilla.mozilla.org/buglist.cgi?query_format=specific&or...
- Asterisk bug https://issues.asterisk.org/jira/brow.../ASTERISK-22961
- source https://groups.google.com/forum/#!sea.../d-TASUwXJN8J
- This one uses version 11 and mentions another patch http://comments.gmane.org/gmane.comp..../57497
However, updating has already been done, I wonder if either creating new bug in a component with the log information and the technical set up this will be easier to reproduce.
Found the bug and work around bc of the RFC 5245: http://code.google.com/p/sipml5/wiki/Asterisk however this only mentions Chrome. Has this been tried already? If so lets get that bug going, component: