v_cdr_search.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?php
  2. /*
  3. FusionPBX
  4. Version: MPL 1.1
  5. The contents of this file are subject to the Mozilla Public License Version
  6. 1.1 (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.mozilla.org/MPL/
  9. Software distributed under the License is distributed on an "AS IS" basis,
  10. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11. for the specific language governing rights and limitations under the
  12. License.
  13. The Original Code is FusionPBX
  14. The Initial Developer of the Original Code is
  15. Mark J Crane <[email protected]>
  16. Copyright (C) 2008-2012
  17. All Rights Reserved.
  18. Contributor(s):
  19. Mark J Crane <[email protected]>
  20. */
  21. include "root.php";
  22. require_once "resources/require.php";
  23. require_once "resources/check_auth.php";
  24. if (permission_exists('call_active_view')) {
  25. //access granted
  26. }
  27. else {
  28. echo "access denied";
  29. exit;
  30. }
  31. if (count($_POST)>0) {
  32. $cdr_id = $_POST["cdr_id"];
  33. $caller_id_name = $_POST["caller_id_name"];
  34. $caller_id_number = $_POST["caller_id_number"];
  35. $destination_number = $_POST["destination_number"];
  36. $context = $_POST["context"];
  37. $start_stamp = $_POST["start_stamp"];
  38. $answer_stamp = $_POST["answer_stamp"];
  39. $end_stamp = $_POST["end_stamp"];
  40. $duration = $_POST["duration"];
  41. $billsec = $_POST["billsec"];
  42. $hangup_cause = $_POST["hangup_cause"];
  43. $uuid = $_POST["uuid"];
  44. $bleg_uuid = $_POST["bleg_uuid"];
  45. $accountcode = $_POST["accountcode"];
  46. $read_codec = $_POST["read_codec"];
  47. $write_codec = $_POST["write_codec"];
  48. $remote_media_ip = $_POST["remote_media_ip"];
  49. $network_addr = $_POST["network_addr"];
  50. }
  51. else {
  52. echo "\n";
  53. require_once "resources/header.php";
  54. echo "<div align='center'>";
  55. echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
  56. echo "<tr class='border'>\n";
  57. echo " <td align=\"left\">\n";
  58. echo " <br>";
  59. echo "<form method='post' action='v_cdr.php'>";
  60. echo "<table width='100%' cellpadding='6' cellspacing='0'>";
  61. echo "<tr>\n";
  62. echo "<td width='30%' nowrap valign='top'><b>Advanced Search</b></td>\n";
  63. echo "<td width='70%' align='right' valign='top'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_cdr.php'\" value='Back'><br /><br /></td>\n";
  64. echo "</tr>\n";
  65. echo " <tr>";
  66. echo " <td class='vncell'>Source Name:</td>";
  67. echo " <td class='vtable'><input type='text' class='formfld' name='caller_id_name' value='$caller_id_name'></td>";
  68. echo " </tr>";
  69. echo " <tr>";
  70. echo " <td class='vncell'>Source Number:</td>";
  71. echo " <td class='vtable'><input type='text' class='formfld' name='caller_id_number' value='$caller_id_number'></td>";
  72. echo " </tr>";
  73. echo " <tr>";
  74. echo " <td class='vncell'>Destination Number:</td>";
  75. echo " <td class='vtable'><input type='text' class='formfld' name='destination_number' value='$destination_number'></td>";
  76. echo " </tr>";
  77. echo " <tr>";
  78. echo " <td class='vncell'>Context:</td>";
  79. echo " <td class='vtable'><input type='text' class='formfld' name='context' value='$context'></td>";
  80. echo " </tr>";
  81. echo " <tr>";
  82. echo " <td class='vncell'>Start:</td>";
  83. echo " <td class='vtable'><input type='text' class='formfld' name='start_stamp' value='$start_stamp'></td>";
  84. echo " </tr>";
  85. echo " <tr>";
  86. echo " <td class='vncell'>Answer:</td>";
  87. echo " <td class='vtable'><input type='text' class='formfld' name='answer_stamp' value='$answer_stamp'></td>";
  88. echo " </tr>";
  89. echo " <tr>";
  90. echo " <td class='vncell'>End:</td>";
  91. echo " <td class='vtable'><input type='text' class='formfld' name='end_stamp' value='$end_stamp'></td>";
  92. echo " </tr>";
  93. echo " <tr>";
  94. echo " <td class='vncell'>Duration:</td>";
  95. echo " <td class='vtable'><input type='text' class='formfld' name='duration' value='$duration'></td>";
  96. echo " </tr>";
  97. echo " <tr>";
  98. echo " <td class='vncell'>Bill Sec:</td>";
  99. echo " <td class='vtable'><input type='text' class='formfld' name='billsec' value='$billsec'></td>";
  100. echo " </tr>";
  101. echo " <tr>";
  102. echo " <td class='vncell'>Status:</td>";
  103. echo " <td class='vtable'><input type='text' class='formfld' name='hangup_cause' value='$hangup_cause'></td>";
  104. echo " </tr>";
  105. echo " <tr>";
  106. echo " <td class='vncell'>UUID:</td>";
  107. echo " <td class='vtable'><input type='text' class='formfld' name='uuid' value='$uuid'></td>";
  108. echo " </tr>";
  109. echo " <tr>";
  110. echo " <td class='vncell'>Bleg UUID:</td>";
  111. echo " <td class='vtable'><input type='text' class='formfld' name='bleg_uuid' value='$bleg_uuid'></td>";
  112. echo " </tr>";
  113. echo " <tr>";
  114. echo " <td class='vncell'>Account Code:</td>";
  115. echo " <td class='vtable'><input type='text' class='formfld' name='accountcode' value='$accountcode'></td>";
  116. echo " </tr>";
  117. echo " <tr>";
  118. echo " <td class='vncell'>Read Codec:</td>";
  119. echo " <td class='vtable'><input type='text' class='formfld' name='read_codec' value='$read_codec'></td>";
  120. echo " </tr>";
  121. echo " <tr>";
  122. echo " <td class='vncell'>Write Codec:</td>";
  123. echo " <td class='vtable'><input type='text' class='formfld' name='write_codec' value='$write_codec'></td>";
  124. echo " </tr>";
  125. echo " <tr>";
  126. echo " <td class='vncell'>Remote Media IP:</td>";
  127. echo " <td class='vtable'><input type='text' class='formfld' name='remote_media_ip' value='$remote_media_ip'></td>";
  128. echo " </tr>";
  129. echo " <tr>";
  130. echo " <td class='vncell'>Network Address:</td>";
  131. echo " <td class='vtable'><input type='text' class='formfld' name='network_addr' value='$network_addr'></td>";
  132. echo " </tr>";
  133. echo " <tr>";
  134. echo " <td colspan='2' align='right'><input type='submit' name='submit' class='btn' value='Search'></td>";
  135. echo " </tr>";
  136. echo "</table>";
  137. echo "</form>";
  138. echo " </td>";
  139. echo " </tr>";
  140. echo "</table>";
  141. echo "</div>";
  142. require_once "resources/footer.php";
  143. } //end if not post
  144. ?>