TAPI interface via website, lines are different.

Feb 11, 2013 at 10:38 PM
This is probably a lost cause, but maybe I'm doing something wrong.

I'm trying to allow a user to click a button on a website next to a phone number. It will then allow them to call the number on their phone. Locally, this works fine. It grabs my lines, and I parse the line list via name.

When I upload this to the web server, it's grabbing different lines, looks like those accessibly by the web server? It isn't the same list, and it can't find a line that has my name associated with it. What can I do to remedy this? What would be the cause of this? Is it possible to use this library for what I'm trying to do?
Coordinator
Feb 11, 2013 at 11:03 PM
<div>Hi,</div> <div><br> </div> <div>TAPI is natively a 1st party telephony solution. That simply means your code can only access the lines connected physically to the machine it is running on. This is why your server &quot;sees&quot; different TAPI devices than your development machine does. Microsoft supported a 3rd-party mode which was a client/server model allowing a Windows server to control a complete PBX, Switch or ACD or a bank of modems so that the server was physically connected and then each computer could talk to that server to control a specific station. It doesn't sound like that architecture would work for you (it sounds more like you want to control YOUR line from the server which was not a supported configuration unless you make your system a server), but if you want more information on it, here was some old documentation:</div> <div><br> </div> <div><a href="http://knowledge.qgate.co.uk/article.aspx?id=10110" style="color:rgb(0,106,227)">http://knowledge.qgate.co.uk/article.aspx?id=10110</a></div> <div><a href="http://support.microsoft.com/kb/259375" style="color:rgb(0,106,227)">http://support.microsoft.com/kb/259375</a></div> <div> <div><br> </div> <div>Best Regards,</div> <div><br> </div> </div> <div>Mark Smith </div> <div> <div style="background-color:rgb(255,255,255)"> <div style="margin:0px"><a href="mailto:mark@julmar.com" style="color:rgb(0,106,227)">mark.smith@julmar.com</a> | <a href="http://www.twitter.com/marksm" style="color:rgb(0,106,227)">@marksm</a> | &#43;1 214-774-4749 | <a href="http://www.julmar.com">julmar.com</a></div> </div> </div> <p style="color:#A0A0A8">On Monday, February 11, 2013 at 5:00 PM, Mark Smith wrote:</p> <blockquote type="cite" style="border-left-style:solid; border-width:1px; margin-left:0px; padding-left:10px"> <span> <div> <div> <div>Hi, </div> <div><br> </div> <div>TAPI is natively a 1st party telephony solution. That simply means your code can only access the lines connected physically to the machine it is running on. This is why your server &quot;sees&quot; different TAPI devices than your development machine does. Microsoft supported a 3rd-party mode which was a client/server model allowing a Windows server to control a complete PBX, Switch or ACD or a bank of modems so that the server was physically connected and then each computer could talk to that server to control a specific station. It doesn't sound like that architecture would work for you (it sounds more like you want to control YOUR line from the server which was not a supported configuration unless you make your system a server), but if you want more information on it, here was some old documentation:</div> <div><br> </div> <div><a href="http://knowledge.qgate.co.uk/article.aspx?id=10110">http://knowledge.qgate.co.uk/article.aspx?id=10110</a></div> <div><a href="http://support.microsoft.com/kb/259375">http://support.microsoft.com/kb/259375</a></div> <div> <div><br> </div> <div>Best Regards,</div> <div><br> </div> <div> <div style="background-color:rgb(255,255,255)"> <div style="margin:0px">Mark Smith</div> </div> <div style="background-color:rgb(255,255,255)"> <div style="margin:0px"></div> </div> <div style="background-color:rgb(255,255,255)"> <div style="margin:0px"><a href="mailto:mark@julmar.com" style="color:rgb(0,106,227)">mark.smith@julmar.com</a> | <a href="http://www.twitter.com/marksm" style="color:rgb(0,106,227)">@marksm</a> | &#43;1 214-774-4749 | <a href="http://www.julmar.com">julmar.com</a></div> </div> </div> </div> <p style="color:#A0A0A8">On Monday, February 11, 2013 at 4:38 PM, lroling wrote:</p> <blockquote type="cite"> <div><span> <div> <div> <p>From: lroling</p> <div>This is probably a lost cause, but maybe I'm doing something wrong. <br> <br> I'm trying to allow a user to click a button on a website next to a phone number. It will then allow them to call the number on their phone. Locally, this works fine. It grabs my lines, and I parse the line list via name.<br> <br> When I upload this to the web server, it's grabbing different lines, looks like those accessibly by the web server? It isn't the same list, and it can't find a line that has my name associated with it. What can I do to remedy this? What would be the cause of this? Is it possible to use this library for what I'm trying to do?<br> </div> <div> <p>Read the <a href="http://atapi.codeplex.com/discussions/432765#post999755">full discussion online</a>.</p> <p>To add a post to this discussion, reply to this email (<a href="mailto:atapi@discussions.codeplex.com?subject=[atapi:432765]">atapi@discussions.codeplex.com</a>)</p> <p>To start a new discussion for this project, email <a href="mailto:atapi@discussions.codeplex.com"> atapi@discussions.codeplex.com</a></p> <p>You are receiving this email because you subscribed to this discussion on CodePlex. You can <a href="https://atapi.codeplex.com/subscriptions/thread/project/edit">unsubscribe or change your settings</a> on <a href="http://codePlex.com">codePlex.com</a>.</p> <p>Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at <a href="http://codeplex.com">codeplex.com</a></p> </div> </div> </div> </span></div> </blockquote> <div><br> </div> </div> </div> </span></blockquote> <div><br> </div>
Feb 12, 2013 at 2:52 AM
Understood. I had a feeling this was the issue. I may actually try to get the server to gain access to the lines, but we'll see. Thanks for the prompt response.
Feb 12, 2013 at 4:58 PM
Mark,

Perhaps you can help me then. Maybe I'm using the wrong approach here. What I'm trying to do is interact with a client's phone to make a call off of a webpage. We have a working solution that's very old, using embedded VBScript and an OBJECT tag that hits the TAPI api on a client's machine.

Can I use ITAPI3 to access a client's COM object to do this?
Coordinator
Feb 12, 2013 at 6:08 PM
<div>I think you would have to do the same thing -- somehow remote the TAPI call to the client's box from your web server. ITAPI3 is just a wrapper over TAPI 3.x so you can use it from .NET (the native RCW wrappers don't work properly because TAPI manages lifetime differently than COM does). ITAPI3 and ATAPI (the 2.0 version) don't do anything beyond what TAPI itself does. This is a scenario that TAPI doesn't support without some form of client/server custom code. </div> <div><br> </div> <div>Sorry,</div> <div> <div><br> </div> <div> <div style="background-color:rgb(255,255,255)"> <div style="margin:0px">Mark Smith</div> </div> <div style="background-color:rgb(255,255,255)"> <div style="margin:0px"></div> </div> <div style="background-color:rgb(255,255,255)"> <div style="margin:0px"><a href="mailto:mark@julmar.com" style="color:rgb(0,106,227)">mark.smith@julmar.com</a> | <a href="http://www.twitter.com/marksm" style="color:rgb(0,106,227)">@marksm</a> | &#43;1 214-774-4749 | <a href="http://www.julmar.com">julmar.com</a></div> </div> </div> </div> <p style="color:#A0A0A8">On Tuesday, February 12, 2013 at 10:58 AM, lroling wrote:</p> <blockquote type="cite" style="border-left-style:solid; border-width:1px; margin-left:0px; padding-left:10px"> <span> <div> <div> <p>From: lroling</p> <div>Mark,<br> <br> Perhaps you can help me then. Maybe I'm using the wrong approach here. What I'm trying to do is interact with a client's phone to make a call off of a webpage. We have a working solution that's very old, using embedded VBScript and an OBJECT tag that hits the TAPI api on a client's machine.<br> <br> Can I use ITAPI3 to access a client's COM object to do this? <br> </div> <div> <p>Read the <a href="http://atapi.codeplex.com/discussions/432765#post1000098">full discussion online</a>.</p> <p>To add a post to this discussion, reply to this email (<a href="mailto:atapi@discussions.codeplex.com?subject=[atapi:432765]">atapi@discussions.codeplex.com</a>)</p> <p>To start a new discussion for this project, email <a href="mailto:atapi@discussions.codeplex.com"> atapi@discussions.codeplex.com</a></p> <p>You are receiving this email because you subscribed to this discussion on CodePlex. You can <a href="https://atapi.codeplex.com/subscriptions/thread/project/edit">unsubscribe or change your settings</a> on <a href="http://codePlex.com">codePlex.com</a>.</p> <p>Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at <a href="http://codeplex.com">codeplex.com</a></p> </div> </div> </div> </span></blockquote> <div><br> </div>