[Freeswitch-users] WebRTC using WSS binding on Sofia
Donny Hardyanto
hardyanto.donny at gmail.com
Wed Sep 21 12:18:14 MSD 2016
I search around and install turnserver (Coturn-4.5.0.3) on my FS box. I
have trouble configuring it and how to configure the freeswitch. My setup
as below:
Browser <--> Router --- Internet --- Firewall (Public IP: 43.xx.xx.xx.xx,
port mapping TCP 15xxx to 10.54.8.6:15xxx for WSS signaling, UDP
16384-32768 mapped to 10.54.8.6. UDP is 2-way, but TCP only one way) ------
FS (10.54.8.6 on internal.xml)
The FS box cannot connect to Internet proactively, only can accept and
response the WSS request.
What listening-porI, tls-listening-port, listening-ip, relay-ip and
external-ip (is it 43.xxx.xxx.xxx) value must put on turnserver.conf and
what configuration needed on FS?
Thanks for the help,
Regards,
Donny
On Wed, Sep 21, 2016 at 2:56 PM, Mirko Brankovic <mirkobrankovic at gmail.com>
wrote:
> I guess you are behind more complex Nat setup and you probably need to
> introduce Turn server to get you "typ relay raddr" Ice candidates to get
> streams properly.
>
> On Tue, Sep 20, 2016 at 11:20 PM, Anthony Minessale <
> anthony.minessale at gmail.com> wrote:
>
>> You would need to turn on debug and supply the whole log of a call and
>> put it in http://pastebin.freeswitch.org
>> Also this list is not for debugging. https://freeswitch.org/jira
>>
>> On Tue, Sep 20, 2016 at 3:41 PM, Donny Hardyanto <
>> hardyanto.donny at gmail.com> wrote:
>>
>>> Adding those apply-candidate-aci to internal.xml settings are not
>>> solving the problem.
>>>
>>> Here the log on the client Mozilla Firefox:
>>>
>>> ICE Stats
>>> Local Candidate Remote Candidate ICE State Priority Nominated Selected
>>> 192.168.100.3:62066/udp(host) 43.255.196.10:16748/udp(host) failed
>>> 2830971808121343
>>> 192.168.100.3:63575/udp(host) 43.255.196.10:25952/udp(host) frozen
>>> 2830971808121343
>>> 10.1.30.210:59294/udp(host) 43.255.196.10:16748/udp(host) failed
>>> 2830971807990271
>>> 10.1.30.210:59464/udp(host) 43.255.196.10:25952/udp(host) frozen
>>> 2830971807990271
>>> 202.80.213.20:53122/udp(serverreflexive)
>>> 202.80.213.20:16251/udp(serverreflexive)
>>> SDPLocal SDP
>>>
>>> v=0
>>> o=mozilla...THIS_IS_SDPARTA-48.0.1 7504789415293327540 0 IN IP4 0.0.0.0
>>> s=-
>>> t=0 0
>>> a=sendrecv
>>> a=fingerprint:sha-256 F1:CB:F5:3B:1F:8E:6A:4F:A7:CB:58:BA:E9:C7:97:49:FD:5E:29:53:48:71:3E:F9:27:19:E8:2A:79:D0:67:76
>>> a=group:BUNDLE sdparta_0 sdparta_1
>>> a=ice-options:trickle
>>> a=msid-semantic:WMS *
>>> m=audio 53122 UDP/TLS/RTP/SAVPF 109 9 0 8
>>> c=IN IP4 202.80.213.20
>>> a=candidate:0 1 UDP 2122252543 192.168.100.3 62066 typ host
>>> a=candidate:2 1 UDP 2122187007 10.1.30.210 59294 typ host
>>> a=candidate:0 2 UDP 2122252542 192.168.100.3 51379 typ host
>>> a=candidate:2 2 UDP 2122187006 10.1.30.210 54982 typ host
>>> a=candidate:1 1 UDP 1686052863 202.80.213.20 53122 typ srflx raddr 192.168.100.3 rport 62066
>>> a=candidate:1 2 UDP 1686052862 202.80.213.20 63509 typ srflx raddr 192.168.100.3 rport 51379
>>> a=sendrecv
>>> a=end-of-candidates
>>> a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
>>> a=fmtp:109 maxplaybackrate=48000;stereo=1
>>> a=ice-pwd:365418def25d593b36c6d9a94e580668
>>> a=ice-ufrag:cd6e15c9
>>> a=mid:sdparta_0
>>> a=msid:{e9008b2d-b210-804a-947f-fe9ebe684a82} {5125823f-52f4-3848-a2fc-6e74df7b7fc6}
>>> a=rtcp:63509 IN IP4 202.80.213.20
>>> a=rtcp-mux
>>> a=rtpmap:109 opus/48000/2
>>> a=rtpmap:9 G722/8000/1
>>> a=rtpmap:0 PCMU/8000
>>> a=rtpmap:8 PCMA/8000
>>> a=setup:actpass
>>> a=ssrc:1635853409 cname:{2f2a4d63-f361-1d40-a766-b984c8943ed9}
>>> m=video 16251 UDP/TLS/RTP/SAVPF 120 126 97
>>> c=IN IP4 202.80.213.20
>>> a=candidate:0 1 UDP 2122252543 192.168.100.3 63575 typ host
>>> a=candidate:2 1 UDP 2122187007 10.1.30.210 59464 typ host
>>> a=candidate:0 2 UDP 2122252542 192.168.100.3 61607 typ host
>>> a=candidate:2 2 UDP 2122187006 10.1.30.210 61659 typ host
>>> a=candidate:1 1 UDP 1686052863 202.80.213.20 16251 typ srflx raddr 192.168.100.3 rport 63575
>>> a=candidate:1 2 UDP 1686052862 202.80.213.20 6383 typ srflx raddr 192.168.100.3 rport 61607
>>> a=sendrecv
>>> a=end-of-candidates
>>> a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
>>> a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
>>> a=fmtp:120 max-fs=12288;max-fr=60
>>> a=ice-pwd:365418def25d593b36c6d9a94e580668
>>> a=ice-ufrag:cd6e15c9
>>> a=mid:sdparta_1
>>> a=msid:{e9008b2d-b210-804a-947f-fe9ebe684a82} {161585fd-7ab5-5640-809b-62cb9cc72f91}
>>> a=rtcp:6383 IN IP4 202.80.213.20
>>> a=rtcp-fb:120 nack
>>> a=rtcp-fb:120 nack pli
>>> a=rtcp-fb:120 ccm fir
>>> a=rtcp-fb:126 nack
>>> a=rtcp-fb:126 nack pli
>>> a=rtcp-fb:126 ccm fir
>>> a=rtcp-fb:97 nack
>>> a=rtcp-fb:97 nack pli
>>> a=rtcp-fb:97 ccm fir
>>> a=rtcp-mux
>>> a=rtpmap:120 VP8/90000
>>> a=rtpmap:126 H264/90000
>>> a=rtpmap:97 H264/90000
>>> a=setup:actpass
>>> a=ssrc:16439336 cname:{2f2a4d63-f361-1d40-a766-b984c8943ed9}
>>>
>>> Remote SDP
>>>
>>> v=0
>>> o=FreeSWITCH 1474386489 1474386490 IN IP4 43.255.196.10
>>> s=-
>>> t=0 0
>>> a=sendrecv
>>> a=msid-semantic:WMS Rnq39o0FePNhM5UqI8vIne7pJ4GiKvts
>>> m=audio 16748 RTP/SAVPF 109 101
>>> c=IN IP4 43.255.196.10
>>> a=candidate:6375696742 1 udp 659136 43.255.196.10 16748 typ host generation 0
>>> a=sendrecv
>>> a=fingerprint:sha-256 42:D4:7A:39:64:60:A3:A3:75:CF:83:0F:B7:D4:4B:15:DF:49:06:A5:C9:69:7B:62:52:38:8B:83:07:2C:36:BE
>>> a=fmtp:109 maxplaybackrate=0;stereo=1
>>> a=ice-pwd:LPlARouz5vTIhtT1pCZpjcZU
>>> a=ice-ufrag:U5T7aQnJKTRlfbDN
>>> a=ptime:20
>>> a=rtcp:16748 IN IP4 43.255.196.10
>>> a=rtcp-mux
>>> a=rtpmap:109 opus/48000/2
>>> a=rtpmap:101 telephone-event/8000/1
>>> a=setup:active
>>> a=ssrc:2682518997 cname:IKlIZcd3RQbtMVKk
>>> a=ssrc:2682518997 msid:Rnq39o0FePNhM5UqI8vIne7pJ4GiKvts a0
>>> a=ssrc:2682518997 mslabel:Rnq39o0FePNhM5UqI8vIne7pJ4GiKvts
>>> a=ssrc:2682518997 label:Rnq39o0FePNhM5UqI8vIne7pJ4GiKvtsa0
>>> m=video 25952 RTP/SAVPF 120
>>> c=IN IP4 43.255.196.10
>>> b=AS:1024
>>> a=candidate:4949443032 1 udp 659136 43.255.196.10 25952 typ host generation 0
>>> a=sendrecv
>>> a=fingerprint:sha-256 42:D4:7A:39:64:60:A3:A3:75:CF:83:0F:B7:D4:4B:15:DF:49:06:A5:C9:69:7B:62:52:38:8B:83:07:2C:36:BE
>>> a=fmtp:120 max-fs=12288;max-fr=60
>>> a=ice-pwd:1wVZJv0snfcEOd94TxvnnBAy
>>> a=ice-ufrag:qQxBD0fmkH5fFO8h
>>> a=rtcp:25952 IN IP4 43.255.196.10
>>> a=rtcp-fb:120 ccm fir
>>> a=rtcp-fb:120 nack
>>> a=rtcp-fb:120 nack pli
>>> a=rtcp-mux
>>> a=rtpmap:120 VP8/90000
>>> a=setup:active
>>> a=ssrc:1945338266 cname:IKlIZcd3RQbtMVKk
>>> a=ssrc:1945338266 msid:Rnq39o0FePNhM5UqI8vIne7pJ4GiKvts v0
>>> a=ssrc:1945338266 mslabel:Rnq39o0FePNhM5UqI8vIne7pJ4GiKvts
>>> a=ssrc:1945338266 label:Rnq39o0FePNhM5UqI8vIne7pJ4GiKvtsv0
>>>
>>> Some how the ICE always never tried to pair 202.xx.xx.xx (my client public IP) and 43.xx.xx.xx (FS public IP). Using chrome is the same.
>>>
>>> Any suggestion?
>>>
>>>
>>> Donny
>>>
>>>
>>> On Wed, Sep 21, 2016 at 2:11 AM, Anthony Minessale <
>>> anthony.minessale at gmail.com> wrote:
>>>
>>>> Its not much of a log snippet so its hard to tell but in your sofia
>>>> profile you can add some more candidate-acl like so:
>>>>
>>>> <param name="apply-candidate-acl" value="wan_v4.auto"/>
>>>>
>>>> <param name="apply-candidate-acl" value="localnet.auto"/>
>>>>
>>>> <param name="apply-candidate-acl" value="rfc1918.auto"/>
>>>>
>>>> <param name="apply-candidate-acl" value="any_v4.auto"/>
>>>>
>>>> On Tue, Sep 20, 2016 at 12:09 PM, Donny Hardyanto <
>>>> hardyanto.donny at gmail.com> wrote:
>>>>
>>>>> Using Chrome still no sound and video. I am using
>>>>>
>>>>> FreeSWITCH Version 1.6.10+git~20160824T215404Z~726448d962~64bit (git
>>>>> 726448d 2016-08-24 21:54:04Z 64bit)
>>>>>
>>>>> Using verto is not working either.
>>>>>
>>>>> Donny
>>>>>
>>>>> On Tue, Sep 20, 2016 at 11:49 PM, Brian West <brian at freeswitch.org>
>>>>> wrote:
>>>>>
>>>>>> If you're using firefox please try Nightly and also try with Chrome.
>>>>>> Also make sure you're running 1.6.10.
>>>>>>
>>>>>> /b
>>>>>>
>>>>>>
>>>>>> On Tue, Sep 20, 2016 at 11:23 AM, Donny Hardyanto <
>>>>>> hardyanto.donny at gmail.com> wrote:
>>>>>>
>>>>>>> Hi Everyone,
>>>>>>>
>>>>>>> I just bought the Freeswitch 1.6 Cookbook and trying WebRTC for
>>>>>>> first time. I tried example using WSS binding on Sofia, and while the call
>>>>>>> can be connected, but the video/audio is not exchanged. I use Mozilla
>>>>>>> firefox for browser and using FS behind NAT. The log on firefox show: ICE
>>>>>>> failed, see about:webrtc for more details. I look at the log at
>>>>>>> about:webrtc and find the SDP from FS:
>>>>>>>
>>>>>>> a=candidate:7177910904 1 udp 659136 43.xx.xx.xx 16422 typ host
>>>>>>> generation 0
>>>>>>>
>>>>>>> It only show the public IP (that I hard code on internal.xml on
>>>>>>> ext-rtp-ip and ext-rtp-sip), but I think it is missing FS local IP as raddr
>>>>>>> part (in internal.xml rtp-ip is 10.xx.xx.xx)
>>>>>>>
>>>>>>> and on FS log I find this:
>>>>>>>
>>>>>>> 2016-09-20 22:57:55.098364 [INFO] switch_ivr_originate.c:1215
>>>>>>> Sending early media
>>>>>>>
>>>>>>> 2016-09-20 22:57:55.098364 [WARNING] switch_core_media.c:3391 NO
>>>>>>> candidate ACL defined, Defaulting to wan.auto
>>>>>>>
>>>>>>> WTF TOT 5
>>>>>>>
>>>>>>> WTF TOT 5
>>>>>>>
>>>>>>> WTF TOT 5
>>>>>>>
>>>>>>> 2016-09-20 22:57:55.098364 [WARNING] switch_core_media.c:3391 NO
>>>>>>> candidate ACL defined, Defaulting to wan.auto
>>>>>>>
>>>>>>> 2016-09-20 22:57:55.698365 [INFO] switch_core_media.c:6609
>>>>>>> Activating Audio ICE
>>>>>>>
>>>>>>> and also when first startup the FS, I found:
>>>>>>>
>>>>>>> 2016-09-20 22:53:01.446345 [NOTICE] switch_loadable_module.c:556
>>>>>>> Adding Limit interface 'db'
>>>>>>>
>>>>>>> 2016-09-20 22:53:01.664127 [INFO] switch_core_sqldb.c:1693
>>>>>>> sofia:external Starting SQL thread.
>>>>>>>
>>>>>>> 2016-09-20 22:53:01.664216 [ERR] sofia.c:3539 Ignoring invalid name
>>>>>>> ''
>>>>>>>
>>>>>>> 2016-09-20 22:53:01.945344 [CONSOLE] switch_loadable_module.c:1538
>>>>>>> Successfully Loaded [mod_dptools]
>>>>>>>
>>>>>>> Otherwise setting the ext-rtp-ip/ext-sip-ip/rtp-ip/sip-ip my
>>>>>>> intenal.xml config is vanilla.
>>>>>>>
>>>>>>> Can anyone help?
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>>
>>>>>>> Regard
>>>>>>>
>>>>>>> Donny
>>>>>>>
>>>>>>>
>>>>>>> ____________________________________________________________
>>>>>>> _____________
>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>> consulting at freeswitch.org
>>>>>>> http://www.freeswitchsolutions.com
>>>>>>>
>>>>>>> Official FreeSWITCH Sites
>>>>>>> http://www.freeswitch.org
>>>>>>> http://confluence.freeswitch.org
>>>>>>> http://www.cluecon.com
>>>>>>>
>>>>>>> FreeSWITCH-users mailing list
>>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free
>>>>>>> switch-users
>>>>>>> http://www.freeswitch.org
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Brian West*
>>>>>> brian at freeswitch.org
>>>>>>
>>>>>>
>>>>>> *Twitter: @FreeSWITCH , @briankwest*
>>>>>> http://www.freeswitchbook.com (50% Discount using code FreeSwitch50)
>>>>>> http://www.freeswitchcookbook.com (50% Discount using code
>>>>>> FreeSwitch50)
>>>>>> https://www.gofundme.com/freeswitch_ubuntu
>>>>>>
>>>>>> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
>>>>>> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>>>>>
>>>>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>>>>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>>>>>
>>>>>> ____________________________________________________________
>>>>>> _____________
>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>> consulting at freeswitch.org
>>>>>> http://www.freeswitchsolutions.com
>>>>>>
>>>>>> Official FreeSWITCH Sites
>>>>>> http://www.freeswitch.org
>>>>>> http://confluence.freeswitch.org
>>>>>> http://www.cluecon.com
>>>>>>
>>>>>> FreeSWITCH-users mailing list
>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free
>>>>>> switch-users
>>>>>> http://www.freeswitch.org
>>>>>>
>>>>>
>>>>>
>>>>> ____________________________________________________________
>>>>> _____________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://confluence.freeswitch.org
>>>>> http://www.cluecon.com
>>>>>
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free
>>>>> switch-users
>>>>> http://www.freeswitch.org
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
>>>>
>>>> ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞
>>>> http://twitter.com/FreeSWITCH
>>>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>>>> <http://freeswitch.org/g+>*
>>>>
>>>> ClueCon Weekly Development Call
>>>> ☎ sip:888 at conference.freeswitch.org ☎ +19193869900
>>>>
>>>> https://www.youtube.com/watch?v=9XXgW34t40s
>>>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>>>>
>>>> ____________________________________________________________
>>>> _____________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free
>>>> switch-users
>>>> http://www.freeswitch.org
>>>>
>>>
>>>
>>> ____________________________________________________________
>>> _____________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>>
>> --
>> Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
>>
>> ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞
>> http://twitter.com/FreeSWITCH
>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>> <http://freeswitch.org/g+>*
>>
>> ClueCon Weekly Development Call
>> ☎ sip:888 at conference.freeswitch.org ☎ +19193869900
>>
>> https://www.youtube.com/watch?v=9XXgW34t40s
>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Regards,
> Mirko
>
> ¯\_(ツ)_/¯
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160921/75dbdfc4/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list