enableClickToDial() for Salesforce Classic

Enables click-to-dial.

NameTypeDescription
callbackfunctionJavaScript method executed when the API method call is completed.
");else if(O._boomrl=function(){t()},O.addEventListener)O.addEventListener("load",O._boomrl,!1);else if(O.attachEvent)O.attachEvent("onload",O._boomrl);d.close()}function a(e){window.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!window.BOOMR||!window.BOOMR.version&&!window.BOOMR.snippetExecuted){window.BOOMR=window.BOOMR||{},window.BOOMR.snippetStart=(new Date).getTime(),window.BOOMR.snippetExecuted=!0,window.BOOMR.snippetVersion=12,window.BOOMR.url=n+"96ZND-LJLSH-JXHC9-F8GQP-6WCGS";var o=document.currentScript||document.getElementsByTagName("script")[0],i=!1,r=document.createElement("link");if(r.relList&&"function"==typeof r.relList.supports&&r.relList.supports("preload")&&"as"in r)window.BOOMR.snippetMethod="p",r.href=window.BOOMR.url,r.rel="preload",r.as="script",r.addEventListener("load",e),r.addEventListener("error",function(){t(!0)}),setTimeout(function(){if(!i)t(!0)},3e3),BOOMR_lstart=(new Date).getTime(),o.parentNode.appendChild(r);else t(!1);if(window.addEventListener)window.addEventListener("load",a,!1);else if(window.attachEvent)window.attachEvent("onload",a)}}(),"".length>0)if(e&&"performance"in e&&e.performance&&"function"==typeof e.performance.setResourceTimingBufferSize)e.performance.setResourceTimingBufferSize();!function(){if(BOOMR=e.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var n=""=="true"?1:0,t="",a="eyab6kadmwalajqacqemiaaacfvcsywm-f-148582135-clienttons-s.akamaihd.net",o="false"=="true"?2:1,i={"ak.v":"41","ak.cp":"1836958","ak.ai":parseInt("1224868",10),"ak.ol":"0","ak.cr":1,"ak.ipv":6,"ak.proto":"h2","ak.rid":"4fe5d387","ak.r":41279,"ak.a2":n,"ak.m":"dsca","ak.n":"essl","ak.cport":34408,"ak.gh":"23.218.223.89","ak.quicv":"","ak.tlsv":"tls1.3","ak.0rtt":"","ak.0rtt.ed":"","ak.csrc":"-","ak.acc":"","ak.t":"1781097164","ak.ak":"hOBiQwZUYzCg5VSAfCLimQ==/uhG08Qdbmyh+rihXrk9de2UX6TQDhxq/Utu3c2Ifz+YyFJ8gu1Zwq69Y3KT1VOhL5jh7VxtLp2z1Tbck+ecgaXAgt+zCpAdSndYqJVB9Oe/FBPfaQMZ8ddh5zmYMpjxAZHIGd7VO19rSGylk+ftQotovBExm0CQkmqKmRTpoNOksBuZNFqVMn7ZwQhJub6jCFri4P0ynWE51t1afHarhL49tE6blrLZgHSfGKrpJEQeeKDfjk7wqOSoF5r0zR+Y8iYta3S+65MHgMQqaYWQ2nCYYIF5ZZf314s8wmINFXmVp3Gp2Whf5udbrUfMHNVdEz3/5Ou1kBi6YAYUPPEAESGKQT3zQ9MXarUsXt3kO3auGLRyMk9y39sI2Uu5BwKH1TnGW5+jnuz/wNY28jL8SDOCs5H+IWkm/SMV5Ct8Dtk=","ak.pv":"87","ak.dpoabenc":"","ak.tf":o};if(""!==t)i["ak.ruds"]=t;var r={i:!1,av:function(n){var t="http.initiator";if(n&&(!n[t]||"spa_hard"===n[t]))i["ak.feo"]=void 0!==e.aFeoApplied?1:0,BOOMR.addVar(i)},rv:function(){var e=["ak.cport","ak.cr","ak.csrc","ak.gh","ak.ipv","ak.m","ak.n","ak.ol","ak.proto","ak.quicv","ak.tlsv","ak.0rtt","ak.0rtt.ed","ak.r","ak.acc","ak.t","ak.tf"];BOOMR.removeVar(e)}};BOOMR.plugins.AK={akVars:i,akDNSPreFetchDomain:a,init:function(){if(!r.i){var e=BOOMR.subscribe;e("before_beacon",r.av,null,null),e("onbeacon",r.rv,null,null),r.i=!0}return this},is_complete:function(){return!0}}}}()}(window); ">

This method is asynchronous. The response is returned in an object passed to a callback method. The response object contains the following fields.

NameTypeDescription
resultbooleantrue if click-to-dial was enabled, false if click-to-dial wasn’t enabled.
errorstringIf the API call was successful, this variable is undefined. If the API call failed, this variable returns an error message.