Hi there,
Is there anyone out there who knows where to find a java dialer? I want my
asp-pages to automatically dial using an analog modem. Essentially only the
Hayes commands "ATZ" and "ATDT<number>" should be sent to the modem. I know
the java comm api is necessary, and I'm looking for a ready piece of
software. Or, if you can write it yourself, I am willing to pay for it.
Ray
ganeshkt - 29 Sep 2004 17:50 GMT
I can write one for u. what is your schedule?
email me at drazbliz@yahoo.com
way2good - 13 Oct 2004 16:03 GMT
Heres one I found a while back.
<style type="text/css">
.Display { width:500px; height:50px; }
.st1 { color:#000000; text-decoration:none; font-weight:bold; }
.st2 { color:#cc0000; text-decoration:none; font-weight:bold; }
</style>
<script language="JavaScript" type="text/javascript">
function tel_Initialize()
{
VTapi1.deviceID = 0; // first available device
VTapi1.SilenceLevel = 1023; // silence lever
VTapi1.SilenceDuration = 16000; // OnSilence will be fired in 16
seconds
VTapi1.AGC = 1; // automatic gain control is
enabled
VTapi1.Flags = 0xff; // enable everything
Status.innerText = "Ready";
Modem.innerText = "closed";
Ring.innerText = "";
Dtmf.innerText = "";
Line.innerText = "";
Cid.innerText = "";
}
function tel_beginDialing(Telephone)
{
Status.innerText = "Open modem...";
if(VTapi1.Open())
{
Status.innerText = "Dialing...";
VTapi1.Dial( Telephone );
}
else
{
Status.innerText = "Error";
parent.alert("Error: didn't open device!");
}
}
function tel_beginDialingOut(Telephone)
{
tel_beginDialing("9"+Telephone);
}
</script>
<script for="VTapi1" event="onOpened(str)">
Modem.innerText = "opened: " + str;
</script>
<script for="VTapi1" event="onClosed">
tel_Initialize();
</script>
<script for="VTapi1" event="OnRing(n)">
Ring.innerText ++;
</script>
<script for="VTapi1" event="OnDtmf(k)">
Dtmf.innerText = Dtmf.innerText + String.fromCharCode(k);
</script>
<script for="VTapi1" event="OnBusy">
Line.innerText = "Busy";
VTapi1.Hangup();
</script>
<script for="VTapi1" event="OnDialtone">
Line.innerText = "Dialtone";
</script>
<script for="VTapi1" event="OnCallerID(Number,Name)">
Cid.innerText = Name + " _ " + Number;
</script>
<script for="VTapi1" event="OnDataModem">
Modem.innerText = "VTapi does not work with DATA modems!!!";
</script>
<script for="VTapi1" event="OnSilence">
Line.innerText = "Silence";
</script>
<script for="VTapi1" event="OnHardwareDialtone">
// VTapi1.AssumeConnected();
</script>
<script for="VTapi1" event="OnFrequency(f,f1,f2)">
</script>
<script for="VTapi1" event="OnConnected">
Status.innerText = "Connected"
VTapi1.AnalyseInput();
</script>
<script for="VTapi1" event="OnAnswered">
Status.innerText = "Answered";
</script>
<script for="VTapi1" event="OnIdle">
VTapi1.Hangup();
VTapi1.Close();
</script>
<script for="VTapi1" event="OnError">
</script>
<center>
<object classid="clsid:9A2D05A8-50D2-4490-9D0E-D89A52FE9B9B" id="VTapi1"
class="Display">
<param name="m_deviceID" value="0">
<param name="m_SilenceLevel" value="1023">
<param name="m_SilenceDuration" value="16000000">
<param name="m_BackgroundColor" value="0">
<param name="m_ForegroundColor" value="61184">
<param name="m_SpotColor" value="255">
<param name="m_AGC" value="1">
<param name="OnDebug" value="onDebug">
<param name="OnOpened" value="onOpened">
</object>
<table border="0" width="50%">
<tr>
<td width="20%" align="left" class="st1">Status:</td>
<td class="st2" align="left" width="80%" id="Status"> </td>
</tr>
<tr>
<td width="20%" align="left" class="st1">Modem:</td>
<td class="st2" align="left" width="80%" id="Modem"> </td>
</tr>
<tr>
<td width="20%" align="left" class="st1">Rings:</td>
<td class="st2" align="left" width="80%" id="Ring"> </td>
</tr>
<tr>
<td width="20%" align="left" class="st1">DTMFs:</td>
<td class="st2" align="left" width="80%" id="Dtmf"> </td>
</tr>
<tr>
<td width="20%" align="left" class="st1">Line:</td>
<td class="st2" align="left" width="80%" id="Line"> </td>
</tr>
<tr>
<td width="20%" align="left" class="st1">CallerID:</td>
<td class="st2" align="left" width="80%" id="Cid"> </td>
</tr>
</table>
<form action="#" name="Page">Phone number:
<input type="submit" value="Dial: <?php echo $telephone; ?>"
onClick="tel_beginDialingOut('<?php echo $telephone; ?>');return false;"
/>
<input type="submit" value="Hangup" onClick="VTapi1.Hangup();return
false;">
</form>
</center>
<script language="JavaScript" type="text/javascript">
tel_Initialize();
</script
way2good - 14 Oct 2004 09:20 GMT
Took a while to find, but heres the website to download everything.
http://www.softcab.com/vtapi/index.asp
They have a few interesting programs on the same telephony theme.
Good Luck
Matthew