How to get Caller Id info from a modem
Moderator: General Moderators
How to get Caller Id info from a modem
Does any one know how to get Caller Id information from a modem using php?
Specifically the telephone number of the caller. I need this to search a DB table for client information.
- James Pelow
- Site Admin
- Posts: 51
- Joined: Sat Jun 01, 2002 5:28 am
- Location: Killiney, Co. Dublin, Ireland
- Contact:
Seeing as we're talking about Modems I'm going to take for example a PPP connection and getting info on that. It's a crude example but you could refine it.
I'm assuming you're using a unix/linux OS if you're not I wouldn't have a clue how to do it.
Where are you in Dublin? I'm in Killiney myself.
-James Pelow
Code: Select all
<?php
// The shell command.
exec("ps auxww | grep "pppd"", $pppd_info);
$array = explode (" ", $pppd_info);
$count = count($array);
for ($i = 0; $count > $i; $i++); {
echo ($arrayї$i] . " ");
}
?>Where are you in Dublin? I'm in Killiney myself.
-James Pelow