Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Talking to local modem from a web page.

Posted on 2002-05-19
9
Medium Priority
?
270 Views
Last Modified: 2010-05-02
Hello Experts,

Looking for a sollution that addresses the local modem. It should work by clicking a button in a web page (ASP) I found a sollution that should do the job at http://www.15seconds.com.

---Quote-----

In the following example, the pager object picks up the phone (modem), dials 212-555-5555, waits about
6 seconds (each comma is about 2 seconds), then dials 1234, and then hangs up.
A possible application would be automatically sending a message to a support technician's pager when
an emergency work-order enters the system.

dim oDialer
set oDialer = server.createobject("dialer.pager")
oDialer.dial "212-555-5555,,,1234"
set oDialer = nothing

-----End of quote---------------

A downloadable code that should be compiled is privided as well:

-------------Beginning of code-----
dim oDialer
set oDialer = server.createobject("dialer.pager")
oDialer.dial "212-555-5555,,,1234"
set oDialer = nothing

Public Sub Dial(num As String)
   On Error Resume Next
   Dim Communications 'As MSCommLib.MSComm
   Set Communications = CreateObject("MSCommLib.MSComm")
   DialString$ = "ATDT" + num + ";" + Chr$(13)
   Communications.CommPort = 3
   Communications.Settings = "300,N,8,1"
   
   On Error Resume Next
   Communications.PortOpen = True
   
   If Err Then
       MsgBox Err.Description
     ' MsgBox "COM1: not available. Change the CommPort property to another port."
      Exit Sub
   End If
   
   ' Flush the input buffer.
   Communications.InBufferCount = 0
   
   ' Dial the number.
   Communications.Output = DialString$
   
   ' Wait for "OK" to come back from the modem.
   Do
      dummy = DoEvents()
      ' If there is data in the buffer, then read it.
      If Communications.InBufferCount Then
         FromModem$ = FromModem$ + Communications.Input
         ' Check for "OK".
         If InStr(FromModem$, "OK") Then
            ' Notify the user to pick up the phone.
            Beep
      '      MsgBox "Please pick up the phone and either press Enter or click OK"
            Exit Do
         End If
      End If

   Loop
   
   ' Disconnect the modem.
   Communications.Output = "ATH" + Chr$(13)
   ' Close the port.
   Communications.PortOpen = False


End Sub
-------------End of code------------------------------


I am not an expert in ASP or VB.
But I know that the provided answer is server-based one and I am looking for a client-based sollution.
The sollution should use the local modem in a intranet enviorment.

My question is:

Can someone please help me by providing me with a client-based sollution?

The code does not need protection an, if posible, can be used directly in the asp site. If this is not
possible a ActiveX object on the client is no problem either.

The person that profides me me with a working code will get  the points

Thanks,

Franse
0
Comment
Question by:franse
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 17

Expert Comment

by:inthedark
ID: 7020536
Why not locate the modem on the server, cos you will only need one of them.  If you locate the modem on the client you will need one for each client.
0
 

Author Comment

by:franse
ID: 7023756
Inthedark,

While we do'nt want to use the sollution as a pager but as a replacement for the phone. And if more then one client use this funtionality I would need a modempool connected to the server. The clients have all a standard modem installed and now they use phones so the lines are at available to. The only things we need (if this would work) are headsets.

Thanks for your response,

Franse
0
 
LVL 17

Expert Comment

by:inthedark
ID: 7023958
Why not use one of the Talk Through the internet packages?

But I think that you need to get hold of the TELAPI SDK from Microsoft.

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:franse
ID: 7025292
Sorry cant follow you in this one. I 've been having a sezrch at the Microsoft site for TELAPI SDK but no results come up. In Google I find only Novell results. But I think you will need a big pipeline to support this on a network.

Thanks,

Franse


0
 
LVL 17

Expert Comment

by:inthedark
ID: 7025835
Voice can be squished into a very small packet size and only requires a band width of just 1K bytes per second.
0
 
LVL 17

Expert Comment

by:inthedark
ID: 7025842
The mobile phone system is driven arround a baud rate of just 9600.
0
 
LVL 17

Expert Comment

by:inthedark
ID: 7025852
Sorry the full name is The Microsoft Telephony Programming Model, somrtimes known as TAPI.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tapi/tapiovr3_55en.asp
0
 

Author Comment

by:franse
ID: 7343954
Sorry guys an girls,

This not leading to what I am looking for. I acept that it is not posible.

I'll send a request to the Community Support to delete this qustion. I'll hope you have you people have no objections. And if you do I'll hope you can still help me out.

Thanks,

franse
0
 
LVL 6

Accepted Solution

by:
Mindphaser earned 0 total points
ID: 7380545
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question