Neotrix Posted December 17, 2012 Share Posted December 17, 2012 <?PHP $file = file_get_contents('/root/ported_peerless_1012_list.txt'); $file = explode("\n", $file); print_r($file); foreach($file as $number){ $query = "select id, calldate from cdr where sipcalledip = '1297050818' and calldate >= '2012-10-19 00:00:00' and called = '$number' limit 1;"; $result = mysql_query($query); if(mysql_num_rows($result) <> 1){ echo "Did not find DID $number\r\n"; } } ?> Link to comment https://forums.phpfreaks.com/topic/272097-asterisk-trying-run-this-script-to-search-for-unavailable-numbers/ Share on other sites More sharing options...
MDCode Posted December 17, 2012 Share Posted December 17, 2012 Do you have a question? We aren't mind readers. Link to comment https://forums.phpfreaks.com/topic/272097-asterisk-trying-run-this-script-to-search-for-unavailable-numbers/#findComment-1399822 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.