title: Click-To-Call feature for Dynamics CRM (like Lync/Skype)
body: <p><em>Advance warning: Im an absolute newbie to Dynamics CRM!</em></p>
  
  <h3>Intention</h3>
  
  <p>I want to have a feature like Lync/Skype integration but use my own URL. (Click on any telephone number inside CRM and call it).</p>
  
  <p>For eg. assuming I have a web service which can initiate a call per URL: <code>http://telephony.com/call?nr=012345678</code>. Now, whenever a CRM user clicks onto a telephone number field (in forms <em>and</em> views) inside the CRM my web service should be called instead of Skype/Lync.</p>
  
  <p><em>In fact I'm trying to reproduce sth. like the <a href="http://ingenius.com/solutions/microsoft-dynamics-crm/" rel="nofollow noreferrer">InGenius Connecter</a>.</em></p>
  
  <h3>Attempts</h3>
  
  <p>I already tried to inject a JS web resource to a specific formular (in my case it was the default contact form) and override the <code>Mscrm.ReadFormUtilities.openPhoneClient</code> callback (which seems to handle the Lync/Skype integration).</p>
  
  <pre><code>function load() {
      // override integrated CTC (Lync/Skype)
      Mscrm.ReadFormUtilities.openPhoneClient = function (telephoneNr) {
          // redirect user to my web service
          window.location.replace("http://telephony.com/call?nr="+telephoneNr);
          return; 
      }
  }
  </code></pre>
  
  <p><em>Found this method at: <a href="https://stackoverflow.com/questions/32327251/how-to-disable-skype-and-lync-telephony-providers-for-dynamics-crm-completely">Disable Lync completely</a></em></p>
  
  <p>This does work well in forms of Dynamics 2015 (my custom link pops up instead of Skype/Lync). However, this does only work on entity forms since I can't inject web resources into an entity view.</p>
  
  <p><strong>My other ideas how to implement such a feature are:</strong></p>
  
  <ol>
  <li>Inject global JS resource which disables Lync/Skype and encapsulate every telephone number with link to my custom URL.</li>
  <li>Extend/Manipulate Lync/Skype integration to use my custom URL instead of Lync/Skype.</li>
  <li>Write plugin which encapsulate telephone numbers server side.</li>
  </ol>
  
  <h3>Question</h3>
  
  <p>Since I have a grasp understanding of Dynamics and no experience in plugin/resource development, I'm left a bit confused with these questions.</p>
  
  <ol>
  <li>Is it possible to achieve any of the three ideas above ?</li>
  <li>If not, any idea how <a href="http://ingenius.com/solutions/microsoft-dynamics-crm/" rel="nofollow noreferrer">InGenius</a> solved this problem ?</li>
  <li>Do you have any other idea/resources about this topic ?</li>
  </ol>