[Freeswitch-users] help, with Verto - verto-min.js configuration

Arsen Manukyan arsenman at connectto.com
Thu Apr 14 22:33:36 MSD 2016


Hi Antony

Sorry maybe i misunderstand you

Original file is:

var 
STUN={url:!moz?'stun:stun.l.google.com:19302':'stun:23.21.150.121'};var 
TURN={url:'turn:homeo at tur
n.bistri.com:80',credential:'homeo'};var 
iceServers=null;if(options.iceServers){var 
tmp=options.iceServers;if(typeof(tmp)==="boolean
"){tmp=null;}
if(tmp&&!(typeof(tmp)=="object"&&tmp.constructor===Array)){console.warn("iceServers 
must be an array, reverting to default ice serve
rs");tmp=null;}
iceServers={iceServers:tmp||[STUN]};if(!moz&&!tmp){if(parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])>=28)TURN={u
rl:'turn:turn.bistri.com:80',credential:'homeo',username:'homeo'};iceServers.iceServers=[STUN];}}
var 
optional={optional:[]};if(!moz){optional.optional=[{DtlsSrtpKeyAgreement:true},{RtpDataChannels:options.onChannelMessage?true:fa
lse}];}


My credentials is:

STUN Server = stun.mydomain.com
TURN Server = turn.mydomain.com

TURN user = user1
TURN pass = PassUser1

Can you please show me what exactly configuration should i have?





On 4/14/2016 11:07 AM, Anthony Minessale wrote:
> You don't edit verto.js you pass the iceServers param to new$.verto
>
> an array of js objs where each one has single param url
>
>
> [{url: stun:1234}]
>
>
>
>
>
> On Wed, Apr 13, 2016 at 7:29 PM, Arsen Manukyan 
> <arsenman at connectto.com <mailto:arsenman at connectto.com>> wrote:
>
>
>     Please help, with Verto - verto-min.js configuration
>     After changing username, password for STUN and TURN server looks
>     like my TURN server doesn't receive any messages form Webrtc phone
>     here is my config:
>
>
>     STUN={url:!moz?'stun:turn.mydomain.com:3478':'stun:204.174.104.38'};var
>     TURN={url:'turn:ars at tu
>     rn.mydomain.com:3478
>     <http://rn.mydomain.com:3478>',credential:'ars123'};var
>     iceServers=null;if(options.iceServers){var
>     tmp=options.iceServers;if(typeof(tmp)==
>     ="boolean"){tmp=null;}
>     if(tmp&&!(typeof(tmp)=="object"&&tmp.constructor===Array)){console.warn("iceServers
>     must be an array, reverting to default ice serve
>     rs");tmp=null;}
>     iceServers={iceServers:tmp||[STUN]};if(!moz&&!tmp){if(parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])>=28)TURN={u
>     rl:'turn:turn.mydomain.com:3478
>     <http://turn.mydomain.com:3478>',credential:'ars123',username:'ars'};
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto: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
>     <mailto: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 <http://irc.freenode.net> #freeswitch ☞ 
> _http://freeswitch.org/g+_
>
> ClueCon Weekly Development Call
> ☎ sip:888 at conference.freeswitch.org 
> <mailto:sip%3A888 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

-- 
Arsen Manukyan
ConnectTo Communications Inc.
555 Riverdale Dr., Suite A
Glendale, CA 91204
arsenman at connectto.com
http://www.ConnectTo.com
Tel. 818.546.4636
FAX 818.546.4617
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160414/9f4278a5/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list