View previous topic :: View next topic |
Author |
Message |
RTAdams89 -
Joined: 06 Nov 2005 Posts: 102
|
Posted: Mon Jan 23, 2006 1:32 am Post subject: PHP script to dial phone number? |
|
|
My server has a voice modem attached to it. Would it be possible to use PHP so a person (on my network) could go to my website, type in a name, or number and then have the server dial that number? |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Mon Jan 23, 2006 8:38 am Post subject: |
|
|
You would most likely have to have php load a seperate program and pass in the number to dial via a switch on the program. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Mon Jan 23, 2006 10:38 am Post subject: |
|
|
This pretty much tells you all you need to know.
You could use an external application too, but I can't think of any off hand. _________________
 |
|
Back to top |
 |
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Jan 23, 2006 2:51 pm Post subject: Re: PHP script to dial phone number? |
|
|
RTAdams89 wrote: | My server has a voice modem attached to it. Would it be possible to use PHP so a person (on my network) could go to my website, type in a name, or number and then have the server dial that number? |
There is a sample script in PHP in http://www.aprelium.com/forum/viewtopic.php?p=35746#35746 . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
RTAdams89 -
Joined: 06 Nov 2005 Posts: 102
|
Posted: Mon Jan 23, 2006 3:07 pm Post subject: |
|
|
That looks a lot like what I want to do. I'm assuming the "5551234" is the number to be dialed. Could I replace that with a variable so the number can be changed? And with that, is there a way to have the modem hangup when another receiver on the line is picked up, or perhaps just after 7 seconds? |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
RTAdams89 -
Joined: 06 Nov 2005 Posts: 102
|
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Mar 01, 2006 4:51 pm Post subject: |
|
|
RTAdams89,
All depends on your modem configuration. If it is on COM5 then you'll have to change COM1 in the script with COM5. But apart from that, you'll probably have to track the possible error conditions/situations. The script we gave is very rudimentary. It's only to give you an idea about how you should call the modem from PHP. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
RTAdams89 -
Joined: 06 Nov 2005 Posts: 102
|
Posted: Wed Mar 01, 2006 5:56 pm Post subject: |
|
|
I don't seam to be getting any errors from abyss or PHP. The script appears to run fine, it just doesnt do anything for the modem. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Mar 02, 2006 12:32 pm Post subject: |
|
|
RTAdams89 wrote: | I don't seam to be getting any errors from abyss or PHP. The script appears to run fine, it just doesnt do anything for the modem. |
We really have no clue on why it isn't working for you. What is your modem type/model? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|