Neotrix Posted December 17, 2012 Share Posted December 17, 2012 (edited) <?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"; } } ?> Edited December 17, 2012 by Neotrix Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.