Advertisement
Guest User

chan_dahdi_groups.conf

a guest
Dec 12th, 2018
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.02 KB | None | 0 0
  1. login as: root
  2. root@192.168.115.50's password:
  3. Last login: Thu Dec 6 16:36:31 2018 from 192.168.0.55
  4. _____ ____ ______ __
  5. | ___| __ ___ ___| _ \| __ ) \/ /
  6. | |_ | '__/ _ \/ _ \ |_) | _ \\ /
  7. | _|| | | __/ __/ __/| |_) / \
  8. |_| |_| \___|\___|_| |____/_/\_\
  9.  
  10. NOTICE! You have 12 notifications! Please log into the UI to see them!
  11.  
  12. Current Network Configuration
  13. +-----------+-------------------+---------------------------+
  14. | Interface | MAC Address | IP Addresses |
  15. +-----------+-------------------+---------------------------+
  16. | eth4 | FC:15:B4:28:A8:45 | |
  17. | eth5 | FC:15:B4:28:A8:47 | |
  18. | eth6 | FC:15:B4:28:A8:46 | |
  19. | eth7 | FC:15:B4:28:A8:44 | 192.168.115.50 |
  20. | | | fe80::fe15:b4ff:fe28:a844 |
  21. +-----------+-------------------+---------------------------+
  22.  
  23. Please note most tasks should be handled through the GUI.
  24. You can access the GUI by typing one of the above IPs in to your web browser.
  25. For support please visit:
  26. http://www.freepbx.org/support-and-professional-services
  27.  
  28. [root@localhost ~]# asterisk -r
  29. Asterisk 13.23.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.
  30. Created by Mark Spencer <markster@digium.com>
  31. Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for detail s.
  32. This is free software, with components licensed under the GNU General Public
  33. License version 2 and other licenses; you are welcome to redistribute it under
  34. certain conditions. Type 'core show license' for details.
  35. =========================================================================
  36. Connected to Asterisk 13.23.1 currently running on localhost (pid = 7751)
  37. localhost*CLI> pjsip show calls
  38. No such command 'pjsip show calls' (type 'core show help pjsip show calls' for o ther possible commands)
  39. localhost*CLI> core show channels
  40. Channel Location State Application(Data)
  41. PJSIP/933-0000129b s@macro-dialout-trun Up Dial(DAHDI/g0/18009598281,300,
  42. DAHDI/i1/18662965646 (None) Up AppDial((Outgoing Line))
  43. PJSIP/982-000012a6 (None) Up AppDial((Outgoing Line))
  44. PJSIP/963-00001262 s@macro-dialout-trun Up Dial(DAHDI/g0/18662965646,300,
  45. DAHDI/i1/3062426000- s@macro-dial-one:53 Up Dial(PJSIP/982/sip:982@192.168
  46. DAHDI/i1/18009598281 (None) Up AppDial((Outgoing Line))
  47. 6 active channels
  48. 3 active calls
  49. 4048 calls processed
  50. [2018-12-12 10:17:36] WARNING[22586]: res_pjsip_registrar.c:1061 registrar_on_rx_request: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  51. localhost*CLI> core show channels
  52. Channel Location State Application(Data)
  53. PJSIP/933-0000129b s@macro-dialout-trun Up Dial(DAHDI/g0/18009598281,300,
  54. DAHDI/i1/18662965646 (None) Up AppDial((Outgoing Line))
  55. PJSIP/982-000012a6 (None) Up AppDial((Outgoing Line))
  56. PJSIP/963-00001262 s@macro-dialout-trun Up Dial(DAHDI/g0/18662965646,300,
  57. DAHDI/i1/3062426000- s@macro-dial-one:53 Up Dial(PJSIP/982/sip:982@192.168
  58. DAHDI/i1/18009598281 (None) Up AppDial((Outgoing Line))
  59. 6 active channels
  60. 3 active calls
  61. 4048 calls processed
  62. sangomacrm.agi: LINKEDID: 1544631565.64417
  63. sangomacrm.agi: SOURCE: 921
  64. sangomacrm.agi: DESTINATION: 3063611215
  65. sangomacrm.agi: DIRECTION: OUTBOUND
  66. sangomacrm.agi: EXTTOCALL:
  67. sangomacrm.agi: START
  68. sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php 'eyJ1dWlkIjoiMTU0NDYzMTU2NS42NDQxNyIsInNvdXJjZSI6IjkyMSIsImRlc3RpbmF0aW9uIjoiMzA2MzYxMTIxNSIsImRpcmVjdGlvbiI6Ik9VVEJPVU5EIiwidHlwZSI6IlNUQVJUIiwienVsdV90eXBlIjoiIiwiZXh0dG9jYWxsIjoiIiwiY251bSI6IjMwNjY1Nzg5OTkiLCJjbmFtIjoiQnVja2JlcmdlckJhZXJnIiwiY2FsbHBvcCI6ZmFsc2UsInZvaWNlbWFpbCI6IiJ9' > /dev/null 2>&1 &
  69. sangomacrm.agi: LINKEDID: 1544631565.64417
  70. sangomacrm.agi: SOURCE: 921
  71. sangomacrm.agi: DESTINATION: 3063611215
  72. sangomacrm.agi: DIRECTION: OUTBOUND
  73. sangomacrm.agi: EXTTOCALL:
  74. sangomacrm.agi: START
  75. sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php 'eyJ1dWlkIjoiMTU0NDYzMTU2NS42NDQxNyIsInNvdXJjZSI6IjkyMSIsImRlc3RpbmF0aW9uIjoiMzA2MzYxMTIxNSIsImRpcmVjdGlvbiI6Ik9VVEJPVU5EIiwidHlwZSI6IkVORCIsInp1bHVfdHlwZSI6IiIsImV4dHRvY2FsbCI6IiIsImNudW0iOiIzMDY2NTc4OTk5IiwiY25hbSI6IkJ1Y2tiZXJnZXJCYWVyZyIsImNhbGxwb3AiOmZhbHNlLCJ2b2ljZW1haWwiOiIifQ==' > /dev/null 2>&1 &
  76. [2018-12-12 10:20:19] WARNING[16868][C-00000e16]: chan_sip.c:22995 func_header_read: This function can only be used on SIP channels.
  77. [2018-12-12 10:20:19] WARNING[16868][C-00000e16]: Ext. 3066578999:2 @ from-digital: Friendly Scanner from
  78. [2018-12-12 10:20:36] WARNING[25518]: res_pjsip_registrar.c:1061 registrar_on_rx_request: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  79. sangomacrm.agi: LINKEDID: 1544631678.64454
  80. sangomacrm.agi: SOURCE: 930
  81. sangomacrm.agi: DESTINATION: 12049830040
  82. sangomacrm.agi: DIRECTION: OUTBOUND
  83. sangomacrm.agi: EXTTOCALL:
  84. sangomacrm.agi: START
  85. sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php 'eyJ1dWlkIjoiMTU0NDYzMTY3OC42NDQ1NCIsInNvdXJjZSI6IjkzMCIsImRlc3RpbmF0aW9uIjoiMTIwNDk4MzAwNDAiLCJkaXJlY3Rpb24iOiJPVVRCT1VORCIsInR5cGUiOiJTVEFSVCIsInp1bHVfdHlwZSI6IiIsImV4dHRvY2FsbCI6IiIsImNudW0iOiIzMDY2NTc4OTk5IiwiY25hbSI6IkJ1Y2tiZXJnZXJCYWVyZyIsImNhbGxwb3AiOmZhbHNlLCJ2b2ljZW1haWwiOiIifQ==' > /dev/null 2>&1 &
  86. sangomacrm.agi: LINKEDID: 1544631619.64427
  87. sangomacrm.agi: SOURCE: 3062492882
  88. sangomacrm.agi: DESTINATION:
  89. sangomacrm.agi: DIRECTION: INBOUND
  90. sangomacrm.agi: EXTTOCALL:
  91. sangomacrm.agi: START
  92. sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php 'eyJ1dWlkIjoiMTU0NDYzMTYxOS42NDQyNyIsInNvdXJjZSI6IjMwNjI0OTI4ODIiLCJkZXN0aW5hdGlvbiI6IiIsImRpcmVjdGlvbiI6IklOQk9VTkQiLCJ0eXBlIjoiRU5EIiwienVsdV90eXBlIjoiIiwiZXh0dG9jYWxsIjoiIiwiY251bSI6IjMwNjI0OTI4ODIiLCJjbmFtIjoiQkJMTFA6RDNIIEhPVEVMUyIsImNhbGxwb3AiOmZhbHNlLCJ2b2ljZW1haWwiOiIifQ==' > /dev/null 2>&1 &
  93. sangomacrm.agi: LINKEDID: 1544631775.64487
  94. sangomacrm.agi: SOURCE: 996
  95. sangomacrm.agi: DESTINATION: 3062209805
  96. sangomacrm.agi: DIRECTION: OUTBOUND
  97. sangomacrm.agi: EXTTOCALL:
  98. sangomacrm.agi: START
  99. sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php 'eyJ1dWlkIjoiMTU0NDYzMTc3NS42NDQ4NyIsInNvdXJjZSI6Ijk5NiIsImRlc3RpbmF0aW9uIjoiMzA2MjIwOTgwNSIsImRpcmVjdGlvbiI6Ik9VVEJPVU5EIiwidHlwZSI6IlNUQVJUIiwienVsdV90eXBlIjoiIiwiZXh0dG9jYWxsIjoiIiwiY251bSI6IjMwNjY1Nzg5OTkiLCJjbmFtIjoiQnVja2JlcmdlckJhZXJnIiwiY2FsbHBvcCI6ZmFsc2UsInZvaWNlbWFpbCI6IiJ9' > /dev/null 2>&1 &
  100. [2018-12-12 10:23:36] WARNING[13967]: res_pjsip_registrar.c:1061 registrar_on_rx_request: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  101. sangomacrm.agi: LINKEDID: 1544631765.64480
  102. sangomacrm.agi: SOURCE: 3063414045
  103. sangomacrm.agi: DESTINATION:
  104. sangomacrm.agi: DIRECTION: INBOUND
  105. sangomacrm.agi: EXTTOCALL: 966
  106. sangomacrm.agi: START
  107. sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php 'eyJ1dWlkIjoiMTU0NDYzMTc2NS42NDQ4MCIsInNvdXJjZSI6IjMwNjM0MTQwNDUiLCJkZXN0aW5hdGlvbiI6IiIsImRpcmVjdGlvbiI6IklOQk9VTkQiLCJ0eXBlIjoiRU5EIiwienVsdV90eXBlIjoiIiwiZXh0dG9jYWxsIjoiOTY2IiwiY251bSI6IjMwNjM0MTQwNDUiLCJjbmFtIjoiMzA2MzQxNDA0NSIsImNhbGxwb3AiOmZhbHNlLCJ2b2ljZW1haWwiOiJTVUNDRVNTIn0=' > /dev/null 2>&1 &
  108. localhost*CLI> exit
  109. Asterisk cleanly ending (0).
  110. Executing last minute cleanups
  111. [root@localhost ~]# grep ircuits full
  112. grep: full: No such file or directory
  113. [root@localhost ~]# cd /var/log/asterisk
  114. [root@localhost asterisk]# grep ircuits full
  115. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/969-00001268", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
  116. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] file.c: <PJSIP/969-00001268> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  117. [root@localhost asterisk]# grep all-circ full
  118. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/969-00001268", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
  119. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] file.c: <PJSIP/969-00001268> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  120. [root@localhost asterisk]# grep "all-circuits" *
  121. full:[2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/969-00001268", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
  122. full:[2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] file.c: <PJSIP/969-00001268> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  123. full-20181206:[2018-12-05 10:15:51] VERBOSE[64221][C-000007fe] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/922-00000b2e", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
  124. full-20181206:[2018-12-05 10:15:51] VERBOSE[64221][C-000007fe] file.c: <PJSIP/922-00000b2e> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  125. full-20181206:[2018-12-05 10:21:45] VERBOSE[64764][C-00000803] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/934-00000b34", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
  126. full-20181206:[2018-12-05 10:21:45] VERBOSE[64764][C-00000803] file.c: <PJSIP/934-00000b34> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  127. full-20181212:[2018-12-11 16:45:01] VERBOSE[64262][C-00000dc0] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/930-00001253", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
  128. full-20181212:[2018-12-11 16:45:01] VERBOSE[64262][C-00000dc0] file.c: <PJSIP/930-00001253> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  129. [root@localhost asterisk]# ls -al
  130. total 737884
  131. drwxrwxr-x. 4 asterisk asterisk 4096 Dec 12 03:28 .
  132. drwxr-xr-x. 11 root root 4096 Dec 9 03:18 ..
  133. -rw-r--r-- 1 asterisk asterisk 16424 Dec 1 00:00 backup.log
  134. drwxrwxr-x. 2 asterisk asterisk 4096 Oct 3 15:57 cdr-csv
  135. drwxrwxr-x. 2 asterisk asterisk 4096 Oct 3 15:57 cdr-custom
  136. -rw-r----- 1 asterisk asterisk 26178731 Dec 12 10:27 fail2ban
  137. -rw-r----- 1 asterisk asterisk 91222661 Dec 6 03:41 fail2ban-20181206
  138. -rw-r----- 1 asterisk asterisk 96442718 Dec 7 04:43 fail2ban-20181207
  139. -rw-r----- 1 asterisk asterisk 87859080 Dec 8 03:47 fail2ban-20181208
  140. -rw-r----- 1 asterisk asterisk 87663242 Dec 9 03:17 fail2ban-20181209
  141. -rw-r----- 1 asterisk asterisk 89524118 Dec 10 03:18 fail2ban-20181210
  142. -rw-r----- 1 asterisk asterisk 90213499 Dec 11 03:20 fail2ban-20181211
  143. -rw-r----- 1 asterisk asterisk 90695588 Dec 12 03:28 fail2ban-20181212
  144. -rw-rw-r--. 1 asterisk asterisk 23947069 Dec 12 10:27 freepbx.log
  145. -rw-rw-r--. 1 asterisk asterisk 3331852 Dec 12 10:21 freepbx_security.log
  146. -rw-r----- 1 asterisk asterisk 3458511 Dec 12 10:27 full
  147. -rw-r----- 1 asterisk asterisk 10211285 Dec 6 03:41 full-20181206
  148. -rw-r----- 1 asterisk asterisk 15267738 Dec 7 04:43 full-20181207
  149. -rw-r----- 1 asterisk asterisk 12345734 Dec 8 03:47 full-20181208
  150. -rw-r----- 1 asterisk asterisk 139579 Dec 9 03:18 full-20181209
  151. -rw-r----- 1 asterisk asterisk 96975 Dec 10 03:19 full-20181210
  152. -rw-r----- 1 asterisk asterisk 13509797 Dec 11 03:20 full-20181211
  153. -rw-r----- 1 asterisk asterisk 12212475 Dec 12 03:28 full-20181212
  154. -rw-r--r-- 1 asterisk asterisk 60 Nov 23 00:00 pms.log
  155. -rw-rw-r-- 1 asterisk asterisk 184 Feb 24 2017 presence.log
  156. -rw-rw-r-- 1 asterisk asterisk 258031 Feb 17 2017 prosody.log
  157. -rw-r--r-- 1 asterisk asterisk 0 Nov 23 13:17 qcallback_err.log
  158. -rw-r--r-- 1 asterisk asterisk 18431 Dec 9 22:48 qcallback_out.log
  159. -rw-r----- 1 asterisk asterisk 1836 Dec 12 10:21 queue_log
  160. -rw-rw-r--. 1 asterisk asterisk 314 Feb 15 2017 queue_log-20170216
  161. -rw-rw-r-- 1 asterisk asterisk 40 Feb 16 2017 queue_log-20170217
  162. -rw-rw-r-- 1 asterisk asterisk 666 Mar 6 2017 queue_log-20170306
  163. -rw-rw-r-- 1 asterisk asterisk 40 Mar 6 2017 queue_log-20170307
  164. -rw-rw-r-- 1 asterisk asterisk 78 Mar 15 2017 queue_log-20170315
  165. -rw-rw-r-- 1 asterisk asterisk 3009 Nov 23 14:11 queue_log-20181123
  166. -rw-r----- 1 asterisk asterisk 1286 Nov 23 15:29 queue_log-20181124
  167. -rw-r----- 1 asterisk asterisk 40 Nov 24 03:50 queue_log-20181125
  168. -rw-r----- 1 asterisk asterisk 40 Nov 25 03:09 queue_log-20181126
  169. -rw-r----- 1 asterisk asterisk 9664 Nov 26 16:33 queue_log-20181127
  170. -rw-r----- 1 asterisk asterisk 9495 Nov 27 16:30 queue_log-20181128
  171. -rw-r----- 1 asterisk asterisk 9111 Nov 28 16:13 queue_log-20181129
  172. -rw-r----- 1 asterisk asterisk 7541 Nov 29 16:08 queue_log-20181130
  173. -rw-r----- 1 asterisk asterisk 10709 Nov 30 16:31 queue_log-20181201
  174. -rw-r----- 1 asterisk asterisk 40 Dec 1 03:14 queue_log-20181202
  175. -rw-r----- 1 asterisk asterisk 40 Dec 2 03:36 queue_log-20181203
  176. -rw-r----- 1 asterisk asterisk 9056 Dec 3 16:16 queue_log-20181204
  177. -rw-r----- 1 asterisk asterisk 9573 Dec 4 16:04 queue_log-20181205
  178. -rw-r----- 1 asterisk asterisk 8341 Dec 5 16:19 queue_log-20181206
  179. -rw-r----- 1 asterisk asterisk 7757 Dec 6 16:37 queue_log-20181207
  180. -rw-r----- 1 asterisk asterisk 7595 Dec 7 16:30 queue_log-20181208
  181. -rw-r----- 1 asterisk asterisk 40 Dec 8 03:47 queue_log-20181209
  182. -rw-r----- 1 asterisk asterisk 40 Dec 9 03:18 queue_log-20181210
  183. -rw-r----- 1 asterisk asterisk 10768 Dec 10 16:32 queue_log-20181211
  184. -rw-r----- 1 asterisk asterisk 9316 Dec 11 16:40 queue_log-20181212
  185. -rw-r--r-- 1 root root 466278 Dec 7 10:33 rb.txt
  186. -rw-rw-r-- 1 asterisk asterisk 0 Mar 6 2017 restapps_err.log
  187. -rw-rw-r-- 1 asterisk asterisk 2508 Mar 15 2017 restapps_forever.log
  188. -rw-rw-r-- 1 asterisk asterisk 348 Mar 6 2017 restapps.log
  189. -rw-rw-r-- 1 asterisk asterisk 1994 Mar 15 2017 restapps_out.log
  190. -rw-rw-r--. 1 asterisk asterisk 8348 Mar 15 2017 ucp_err.log
  191. -rw-rw-r--. 1 asterisk asterisk 19164 Nov 22 22:52 ucp_forever.log
  192. -rw-rw-r-- 1 asterisk asterisk 20392 Dec 12 06:50 ucpnode_err.log
  193. -rw-rw-r-- 1 asterisk asterisk 49271 Dec 12 06:50 ucpnode_out.log
  194. -rw-rw-r--. 1 asterisk asterisk 7070 Nov 22 22:52 ucp_out.log
  195. -rw-rw-r-- 1 asterisk asterisk 17327 Nov 23 13:31 xmpp_err.log
  196. -rw-rw-r-- 1 asterisk asterisk 7434 Nov 23 13:31 xmpp_out.log
  197. [root@localhost asterisk]# ls -al full*
  198. -rw-r----- 1 asterisk asterisk 3458511 Dec 12 10:27 full
  199. -rw-r----- 1 asterisk asterisk 10211285 Dec 6 03:41 full-20181206
  200. -rw-r----- 1 asterisk asterisk 15267738 Dec 7 04:43 full-20181207
  201. -rw-r----- 1 asterisk asterisk 12345734 Dec 8 03:47 full-20181208
  202. -rw-r----- 1 asterisk asterisk 139579 Dec 9 03:18 full-20181209
  203. -rw-r----- 1 asterisk asterisk 96975 Dec 10 03:19 full-20181210
  204. -rw-r----- 1 asterisk asterisk 13509797 Dec 11 03:20 full-20181211
  205. -rw-r----- 1 asterisk asterisk 12212475 Dec 12 03:28 full-20181212
  206. [root@localhost asterisk]# grep "all-circuits" *
  207. full:[2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/969-00001268", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
  208. full:[2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] file.c: <PJSIP/969-00001268> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  209. full-20181206:[2018-12-05 10:15:51] VERBOSE[64221][C-000007fe] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/922-00000b2e", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
  210. full-20181206:[2018-12-05 10:15:51] VERBOSE[64221][C-000007fe] file.c: <PJSIP/922-00000b2e> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  211. full-20181206:[2018-12-05 10:21:45] VERBOSE[64764][C-00000803] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/934-00000b34", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
  212. full-20181206:[2018-12-05 10:21:45] VERBOSE[64764][C-00000803] file.c: <PJSIP/934-00000b34> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  213. full-20181212:[2018-12-11 16:45:01] VERBOSE[64262][C-00000dc0] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/930-00001253", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
  214. full-20181212:[2018-12-11 16:45:01] VERBOSE[64262][C-00000dc0] file.c: <PJSIP/930-00001253> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  215. [root@localhost asterisk]# pri show spans
  216. -bash: pri: command not found
  217. [root@localhost asterisk]# asterisk -r
  218. Asterisk 13.23.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.
  219. Created by Mark Spencer <markster@digium.com>
  220. Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
  221. This is free software, with components licensed under the GNU General Public
  222. License version 2 and other licenses; you are welcome to redistribute it under
  223. certain conditions. Type 'core show license' for details.
  224. =========================================================================
  225. Connected to Asterisk 13.23.1 currently running on localhost (pid = 7751)
  226. localhost*CLI> pri show spans
  227. PRI span 1/0: Up, Active
  228. localhost*CLI> pri show
  229. channels debug span spans version
  230. localhost*CLI> pri show channels
  231. PRI B Chan Call PRI Channel
  232. Span Chan Chan Idle Level Call Name
  233. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  234. 1 2 Yes No Connect Yes DAHDI/i1/13062282688-9c0
  235. 1 3 Yes Yes Idle No
  236. 1 4 Yes Yes Idle No
  237. 1 5 Yes Yes Idle No
  238. 1 6 Yes No Connect Yes DAHDI/i1/3062209805-9b6
  239. 1 7 Yes Yes Idle No
  240. 1 8 Yes Yes Idle No
  241. 1 9 Yes Yes Idle No
  242. 1 10 Yes Yes Idle No
  243. 1 11 Yes Yes Idle No
  244. 1 12 Yes Yes Idle No
  245. 1 13 Yes Yes Idle No
  246. 1 14 Yes Yes Idle No
  247. 1 15 Yes Yes Idle No
  248. 1 16 Yes Yes Idle No
  249. 1 17 Yes Yes Idle No
  250. 1 18 Yes Yes Idle No
  251. 1 19 Yes Yes Idle No
  252. 1 20 Yes Yes Idle No
  253. 1 21 Yes Yes Idle No
  254. 1 22 Yes Yes Idle No
  255. 1 23 Yes Yes Idle No
  256. sangomacrm.agi: LINKEDID: 1544632721.64718
  257. sangomacrm.agi: SOURCE: 930
  258. sangomacrm.agi: DESTINATION: 13062282688
  259. sangomacrm.agi: DIRECTION: OUTBOUND
  260. sangomacrm.agi: EXTTOCALL:
  261. sangomacrm.agi: START
  262. sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php 'eyJ1dWlkIjoiMTU0NDYzMjcyMS42NDcxOCIsInNvdXJjZSI6IjkzMCIsImRlc3RpbmF0aW9uIjoiMTMwNjIyODI2ODgiLCJkaXJlY3Rpb24iOiJPVVRCT1VORCIsInR5cGUiOiJFTkQiLCJ6dWx1X3R5cGUiOiIiLCJleHR0b2NhbGwiOiIiLCJjbnVtIjoiMzA2NjU3ODk5OSIsImNuYW0iOiJCdWNrYmVyZ2VyQmFlcmciLCJjYWxscG9wIjpmYWxzZSwidm9pY2VtYWlsIjoiIn0=' > /dev/null 2>&1 &
  263. localhost*CLI> exit
  264. Asterisk cleanly ending (0).
  265. Executing last minute cleanups
  266. [root@localhost asterisk]# asterisk -r -x "pri show channels"
  267. PRI B Chan Call PRI Channel
  268. Span Chan Chan Idle Level Call Name
  269. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  270. 1 2 Yes Yes Idle No
  271. 1 3 Yes Yes Idle No
  272. 1 4 Yes Yes Idle No
  273. 1 5 Yes Yes Idle No
  274. 1 6 Yes No Connect Yes DAHDI/i1/3062209805-9b6
  275. 1 7 Yes Yes Idle No
  276. 1 8 Yes Yes Idle No
  277. 1 9 Yes Yes Idle No
  278. 1 10 Yes Yes Idle No
  279. 1 11 Yes Yes Idle No
  280. 1 12 Yes Yes Idle No
  281. 1 13 Yes Yes Idle No
  282. 1 14 Yes Yes Idle No
  283. 1 15 Yes Yes Idle No
  284. 1 16 Yes Yes Idle No
  285. 1 17 Yes Yes Idle No
  286. 1 18 Yes Yes Idle No
  287. 1 19 Yes Yes Idle No
  288. 1 20 Yes Yes Idle No
  289. 1 21 Yes Yes Idle No
  290. 1 22 Yes Yes Idle No
  291. 1 23 Yes Yes Idle No
  292. [root@localhost asterisk]# asterisk -r -x "core show channels"
  293. Channel Location State Application(Data)
  294. DAHDI/i1/18662965646 (None) Up AppDial((Outgoing Line))
  295. DAHDI/i1/3062209805- (None) Up AppDial((Outgoing Line))
  296. PJSIP/996-000012bb s@macro-dialout-trun Up Dial(DAHDI/g0/3062209805,300,T
  297. PJSIP/963-00001262 s@macro-dialout-trun Up Dial(DAHDI/g0/18662965646,300,
  298. 4 active channels
  299. 2 active calls
  300. 4068 calls processed
  301. [root@localhost asterisk]# asterisk -r -x "pri show channels"
  302. PRI B Chan Call PRI Channel
  303. Span Chan Chan Idle Level Call Name
  304. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  305. 1 2 Yes No Connect Yes DAHDI/i1/9054049532-9c1
  306. 1 3 Yes Yes Idle No
  307. 1 4 Yes Yes Idle No
  308. 1 5 Yes Yes Idle No
  309. 1 6 Yes No Connect Yes DAHDI/i1/3062209805-9b6
  310. 1 7 Yes Yes Idle No
  311. 1 8 Yes Yes Idle No
  312. 1 9 Yes Yes Idle No
  313. 1 10 Yes Yes Idle No
  314. 1 11 Yes Yes Idle No
  315. 1 12 Yes Yes Idle No
  316. 1 13 Yes Yes Idle No
  317. 1 14 Yes Yes Idle No
  318. 1 15 Yes Yes Idle No
  319. 1 16 Yes Yes Idle No
  320. 1 17 Yes Yes Idle No
  321. 1 18 Yes Yes Idle No
  322. 1 19 Yes Yes Idle No
  323. 1 20 Yes Yes Idle No
  324. 1 21 Yes Yes Idle No
  325. 1 22 Yes Yes Idle No
  326. 1 23 Yes Yes Idle No
  327. [root@localhost asterisk]# asterisk -r -x "pri show channels"
  328. PRI B Chan Call PRI Channel
  329. Span Chan Chan Idle Level Call Name
  330. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  331. 1 2 Yes Yes Idle No
  332. 1 3 Yes Yes Idle No
  333. 1 4 Yes Yes Idle No
  334. 1 5 Yes Yes Idle No
  335. 1 6 Yes No Connect Yes DAHDI/i1/3062209805-9b6
  336. 1 7 Yes Yes Idle No
  337. 1 8 Yes Yes Idle No
  338. 1 9 Yes Yes Idle No
  339. 1 10 Yes Yes Idle No
  340. 1 11 Yes Yes Idle No
  341. 1 12 Yes Yes Idle No
  342. 1 13 Yes Yes Idle No
  343. 1 14 Yes Yes Idle No
  344. 1 15 Yes Yes Idle No
  345. 1 16 Yes Yes Idle No
  346. 1 17 Yes Yes Idle No
  347. 1 18 Yes Yes Idle No
  348. 1 19 Yes Yes Idle No
  349. 1 20 Yes Yes Idle No
  350. 1 21 Yes Yes Idle No
  351. 1 22 Yes Yes Idle No
  352. 1 23 Yes Yes Idle No
  353. [root@localhost asterisk]# asterisk -r -x "core show channels"
  354. Channel Location State Application(Data)
  355. DAHDI/i1/18662965646 (None) Up AppDial((Outgoing Line))
  356. DAHDI/i1/3062209805- (None) Up AppDial((Outgoing Line))
  357. PJSIP/996-000012bb s@macro-dialout-trun Up Dial(DAHDI/g0/3062209805,300,T
  358. PJSIP/963-00001262 s@macro-dialout-trun Up Dial(DAHDI/g0/18662965646,300,
  359. 4 active channels
  360. 2 active calls
  361. 4069 calls processed
  362. [root@localhost asterisk]# asterisk -r -x "pri show channels" | grep Connect
  363. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  364. 1 6 Yes No Connect Yes DAHDI/i1/3062209805-9b6
  365. [root@localhost asterisk]# asterisk -r -x "pri show channels" | grep Yes
  366. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  367. 1 2 Yes Yes Idle No
  368. 1 3 Yes Yes Idle No
  369. 1 4 Yes Yes Idle No
  370. 1 5 Yes Yes Idle No
  371. 1 6 Yes No Connect Yes DAHDI/i1/3062209805-9b6
  372. 1 7 Yes Yes Idle No
  373. 1 8 Yes Yes Idle No
  374. 1 9 Yes Yes Idle No
  375. 1 10 Yes Yes Idle No
  376. 1 11 Yes Yes Idle No
  377. 1 12 Yes Yes Idle No
  378. 1 13 Yes Yes Idle No
  379. 1 14 Yes Yes Idle No
  380. 1 15 Yes Yes Idle No
  381. 1 16 Yes Yes Idle No
  382. 1 17 Yes Yes Idle No
  383. 1 18 Yes Yes Idle No
  384. 1 19 Yes Yes Idle No
  385. 1 20 Yes Yes Idle No
  386. 1 21 Yes Yes Idle No
  387. 1 22 Yes Yes Idle No
  388. 1 23 Yes Yes Idle No
  389. [root@localhost asterisk]# asterisk -r -x "pri show channels"
  390. PRI B Chan Call PRI Channel
  391. Span Chan Chan Idle Level Call Name
  392. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  393. 1 2 Yes Yes Idle No
  394. 1 3 Yes Yes Idle No
  395. 1 4 Yes Yes Idle No
  396. 1 5 Yes Yes Idle No
  397. 1 6 Yes No Connect Yes DAHDI/i1/3062209805-9b6
  398. 1 7 Yes Yes Idle No
  399. 1 8 Yes Yes Idle No
  400. 1 9 Yes Yes Idle No
  401. 1 10 Yes Yes Idle No
  402. 1 11 Yes Yes Idle No
  403. 1 12 Yes Yes Idle No
  404. 1 13 Yes Yes Idle No
  405. 1 14 Yes Yes Idle No
  406. 1 15 Yes Yes Idle No
  407. 1 16 Yes Yes Idle No
  408. 1 17 Yes Yes Idle No
  409. 1 18 Yes Yes Idle No
  410. 1 19 Yes Yes Idle No
  411. 1 20 Yes Yes Idle No
  412. 1 21 Yes Yes Idle No
  413. 1 22 Yes Yes Idle No
  414. 1 23 Yes Yes Idle No
  415. [root@localhost asterisk]# asterisk -r -x "pri show channels" | grep Connect
  416. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  417. 1 6 Yes No Connect Yes DAHDI/i1/3062209805-9b6
  418. [root@localhost asterisk]# asterisk -r -x "core show channels"
  419. Channel Location State Application(Data)
  420. DAHDI/i1/18662965646 (None) Up AppDial((Outgoing Line))
  421. DAHDI/i1/3062209805- (None) Up AppDial((Outgoing Line))
  422. PJSIP/996-000012bb s@macro-dialout-trun Up Dial(DAHDI/g0/3062209805,300,T
  423. PJSIP/963-00001262 s@macro-dialout-trun Up Dial(DAHDI/g0/18662965646,300,
  424. 4 active channels
  425. 2 active calls
  426. 4069 calls processed
  427. [root@localhost asterisk]# asterisk -r -x "core show channels"
  428. Channel Location State Application(Data)
  429. DAHDI/i1/14169540582 (None) Up AppDial((Outgoing Line))
  430. DAHDI/i1/18662965646 (None) Up AppDial((Outgoing Line))
  431. DAHDI/i1/3062209805- (None) Up AppDial((Outgoing Line))
  432. PJSIP/996-000012bb s@macro-dialout-trun Up Dial(DAHDI/g0/3062209805,300,T
  433. PJSIP/963-00001262 s@macro-dialout-trun Up Dial(DAHDI/g0/18662965646,300,
  434. PJSIP/986-000012d2 s@macro-dialout-trun Up Dial(DAHDI/g0/3062906336,300,T
  435. DAHDI/i1/3062906336- (None) Up AppDial((Outgoing Line))
  436. PJSIP/933-000012d5 s@macro-dialout-trun Up Dial(DAHDI/g0/14169540582,300,
  437. 8 active channels
  438. 4 active calls
  439. 4076 calls processed
  440. [root@localhost asterisk]# asterisk -r -x "pri show channels" | grep Connect
  441. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  442. 1 2 Yes No Connect Yes DAHDI/i1/14169540582-9c6
  443. 1 3 Yes No Connect Yes DAHDI/i1/3062906336-9c5
  444. 1 6 Yes No Connect Yes DAHDI/i1/3062209805-9b6
  445. [root@localhost asterisk]# asterisk -r -x "pri show channels" | grep Connect | count
  446. -bash: count: command not found
  447. [root@localhost asterisk]# man -k count
  448. acct_users (5) - user accounting file for the FreeRADIUS server
  449. anvil (8) - Postfix session count and request rate control
  450. cksum (1) - checksum and count the bytes in a file
  451. lnewusers (1) - Create new user accounts
  452. Locale::Country (3pm) - ISO codes for country identification (ISO 3166)
  453. pam_faillock (8) - Module counting authentication failures during a specified interval
  454. pam_lastlog (8) - PAM module to display date of last login and perform inactive account lock out
  455. pam_postgresok (8) - simple check of real UID and corresponding account name
  456. pam_succeed_if (8) - test account characteristics
  457. pam_tally2 (8) - The login counter (tallying) module
  458. radiusd (8) - Authentication, Authorization and Accounting server
  459. rlm_counter (5) - FreeRADIUS Module
  460. sum (1) - checksum and count the blocks in a file
  461. userdel (8) - delete a user account and related files
  462. usermod (8) - modify a user account
  463. wc (1) - print newline, word, and byte counts for each file
  464. [root@localhost asterisk]# asterisk -r -x "pri show channels" | grep Connect | wc -l
  465. 4
  466. [root@localhost asterisk]# date
  467. Wed Dec 12 11:01:22 CST 2018
  468. [root@localhost asterisk]# pwd
  469. /var/log/asterisk
  470. [root@localhost asterisk]# cd ~
  471. [root@localhost ~]# ls
  472. anaconda-ks.cfg DD-0 install.log ks-post-chroot.log upgrade-10.13.66-20.sh upgrade-10.13.66-22.sh
  473. DD installer-tmp install.log.syslog ks-post-nochroot.log upgrade-10.13.66-21.sh
  474. [root@localhost ~]# vi testpri.pl
  475. [root@localhost ~]# ./testpri.pl
  476. -bash: ./testpri.pl: Permission denied
  477. [root@localhost ~]# chmod 777 testpri.pl
  478. [root@localhost ~]# more testpri.pl
  479. #!/bin/bash
  480.  
  481. #check the channel and date
  482. GETCHANN='/usr/sbin/asterisk -r -x "pri show channels" | grep Connect | wc -l'
  483. DATETIME='date'
  484.  
  485.  
  486.  
  487.  
  488.  
  489. # on production comment all echo lines below
  490. echo $GETCHANN
  491. echo $DATETIME
  492.  
  493.  
  494. # if [ "$PC" != "192.168.1.10" ] && [ "$STATO" == "Idle" ]; then
  495. #pc is off-line
  496. echo "There ya go"
  497. # /usr/sbin/asterisk -r -x "console dial *275"
  498. # elif [ "$PC" == "192.168.1.10" ] && [ "$STATO" == "InUse" ]; then
  499. # echo "try to set DayTime"
  500. # /usr/sbin/asterisk -r -x "console dial *275"
  501. #else
  502. #echo ""
  503. #fi
  504.  
  505. [root@localhost ~]# ./testpri.pl
  506. /usr/sbin/asterisk -r -x "pri show channels" | grep Connect | wc -l
  507. date
  508. There ya go
  509. [root@localhost ~]# mv testpri.pl testpri.sh
  510. [root@localhost ~]# ./testpri.sh
  511. /usr/sbin/asterisk -r -x "pri show channels" | grep Connect | wc -l
  512. date
  513. There ya go
  514. [root@localhost ~]# vi testpri.sh
  515. [root@localhost ~]# vi testpri.sh
  516. [root@localhost ~]# ./testpri.sh
  517. /usr/sbin/asterisk -r -x "pri show channels" | grep Connect | wc -l
  518. date
  519. /usr/sbin/asterisk: invalid option -- 'l'
  520. Wed Dec 12 11:05:25 CST 2018
  521. There ya go
  522. [root@localhost ~]# asterisk -r -x "pri show channels"
  523. PRI B Chan Call PRI Channel
  524. Span Chan Chan Idle Level Call Name
  525. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  526. 1 2 Yes No Connect Yes DAHDI/i1/3062307908-9cc
  527. 1 3 Yes Yes Idle No
  528. 1 4 Yes Yes Idle No
  529. 1 5 Yes Yes Idle No
  530. 1 6 Yes Yes Idle No
  531. 1 7 Yes Yes Idle No
  532. 1 8 Yes Yes Idle No
  533. 1 9 Yes Yes Idle No
  534. 1 10 Yes Yes Idle No
  535. 1 11 Yes Yes Idle No
  536. 1 12 Yes Yes Idle No
  537. 1 13 Yes Yes Idle No
  538. 1 14 Yes Yes Idle No
  539. 1 15 Yes Yes Idle No
  540. 1 16 Yes Yes Idle No
  541. 1 17 Yes Yes Idle No
  542. 1 18 Yes Yes Idle No
  543. 1 19 Yes Yes Idle No
  544. 1 20 Yes Yes Idle No
  545. 1 21 Yes Yes Idle No
  546. 1 22 Yes Yes Idle No
  547. 1 23 Yes Yes Idle No
  548. [root@localhost ~]# vi testpri.sh
  549. [root@localhost ~]# ./testpri.sh
  550. /usr/sbin/asterisk -r -x "pri show channels" | grep Connect | wc -l
  551. date
  552. here come chan
  553. /usr/sbin/asterisk: invalid option -- 'l'
  554. Wed Dec 12 11:06:14 CST 2018
  555. There ya go
  556. [root@localhost ~]# vi testpri.sh
  557. [root@localhost ~]# ./testpri.sh
  558. /usr/sbin/asterisk -r -x "pri show channels" | grep Connect | wc -l
  559. date
  560. here come chan
  561. /usr/sbin/asterisk: invalid option -- 'l'
  562. Wed Dec 12 11:07:07 CST 2018
  563. There ya go
  564. [root@localhost ~]# vi testpri.sh
  565. [root@localhost ~]# ./testpri.sh
  566. ./testpri.sh: line 14: unexpected EOF while looking for matching `''
  567. ./testpri.sh: line 30: syntax error: unexpected end of file
  568. [root@localhost ~]# vi testpri.sh
  569. [root@localhost ~]# ./testpri.sh
  570. /usr/sbin/asterisk -r -x "pri show channels" | grep Connect | wc -l
  571. date
  572. here come chan
  573. /usr/sbin/asterisk: invalid option -- 'l'
  574. Wed Dec 12 11:08:17 CST 2018
  575. There ya go
  576. [root@localhost ~]# vi testpri.sh
  577. [root@localhost ~]# ./testpri.sh
  578. /usr/sbin/asterisk -r -x "pri show channels"
  579. date
  580. here come chan
  581. No such command '"pri' (type 'core show help pri' for other possible commands)
  582. Wed Dec 12 11:08:52 CST 2018
  583. There ya go
  584. [root@localhost ~]# ./testpri.sh
  585. /usr/sbin/asterisk -r -x "pri show channels"
  586. date
  587. here come chan
  588. No such command '"pri' (type 'core show help pri' for other possible commands)
  589. Wed Dec 12 11:09:01 CST 2018
  590. There ya go
  591. [root@localhost ~]# asterisk -r -x "pri show channels"
  592. PRI B Chan Call PRI Channel
  593. Span Chan Chan Idle Level Call Name
  594. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  595. 1 2 Yes No Connect Yes DAHDI/i1/3062307908-9cc
  596. 1 3 Yes Yes Idle No
  597. 1 4 Yes Yes Idle No
  598. 1 5 Yes Yes Idle No
  599. 1 6 Yes Yes Idle No
  600. 1 7 Yes Yes Idle No
  601. 1 8 Yes Yes Idle No
  602. 1 9 Yes Yes Idle No
  603. 1 10 Yes Yes Idle No
  604. 1 11 Yes Yes Idle No
  605. 1 12 Yes Yes Idle No
  606. 1 13 Yes Yes Idle No
  607. 1 14 Yes Yes Idle No
  608. 1 15 Yes Yes Idle No
  609. 1 16 Yes Yes Idle No
  610. 1 17 Yes Yes Idle No
  611. 1 18 Yes Yes Idle No
  612. 1 19 Yes Yes Idle No
  613. 1 20 Yes Yes Idle No
  614. 1 21 Yes Yes Idle No
  615. 1 22 Yes Yes Idle No
  616. 1 23 Yes Yes Idle No
  617. [root@localhost ~]# asterisk -r -x "pri show channels" | grep Connect
  618. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  619. 1 2 Yes No Connect Yes DAHDI/i1/3062307908-9cc
  620. [root@localhost ~]# asterisk -r -x "pri show channels" | grep Connect | wc -l
  621. 2
  622. [root@localhost ~]# vi testpri.sh
  623. [root@localhost ~]# ./testpri.sh
  624. /usr/sbin/asterisk -r -x "pri show channels"
  625. date
  626. here come chan
  627. No such command '"pri' (type 'core show help pri' for other possible commands)
  628. Wed Dec 12 11:11:28 CST 2018
  629. 2
  630. There ya go
  631. [root@localhost ~]# vi testpri.sh
  632. [root@localhost ~]# ./testpri.sh
  633. Wed Dec 12 11:12:03 CST 2018
  634. 2
  635. [root@localhost ~]# vi testpri.sh
  636. [root@localhost ~]# ./etst
  637. -bash: ./etst: No such file or directory
  638. [root@localhost ~]# ./testpri.sh
  639. Wed Dec 12 11:13:10 CST 2018
  640. /usr/sbin/asterisk: invalid option -- 'l'
  641. 2
  642. [root@localhost ~]# vi testpri.sh
  643. [root@localhost ~]# ./testpri.sh
  644. Wed Dec 12 11:13:35 CST 2018
  645. No such command '"pri' (type 'core show help pri' for other possible commands)
  646. 3
  647. [root@localhost ~]# vi
  648. [root@localhost ~]# vi testpri.sh
  649. [root@localhost ~]# ./testpri.sh
  650. Wed Dec 12 11:14:13 CST 2018
  651. ./testpri.sh: line 7: PRI: command not found
  652. 3
  653. [root@localhost ~]# vi testpri.sh
  654. [root@localhost ~]# vi testpri.sh
  655. [root@localhost ~]# ./testpri.sh
  656. Wed Dec 12 11:14:55 CST 2018
  657. No such command ''pri' (type 'core show help 'pri' for other possible commands)
  658. 2
  659. [root@localhost ~]# vi testpri.sh
  660. [root@localhost ~]# ./testpri.sh
  661. ./testpri.sh: line 6: -rx: command not found
  662.  
  663. 3
  664. [root@localhost ~]# vi testpri.sh
  665. [root@localhost ~]# ./testpri.sh
  666. ./testpri.sh: line 6: -r: command not found
  667.  
  668. 4
  669. [root@localhost ~]# vi testpri.sh
  670. [root@localhost ~]# ./testpri.sh
  671. ./testpri.sh: line 6: pri show channels: command not found
  672.  
  673. 3
  674. [root@localhost ~]# vi testpri.sh
  675. [root@localhost ~]# ./testpri.sh
  676. ./testpri.sh: line 7: pri: command not found
  677.  
  678. 3
  679. [root@localhost ~]# asterisk -r -x "pri show channels"
  680. PRI B Chan Call PRI Channel
  681. Span Chan Chan Idle Level Call Name
  682. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  683. 1 2 Yes No Connect Yes DAHDI/i1/3062307908-9cc
  684. 1 3 Yes Yes Idle No
  685. 1 4 Yes No Connect Yes DAHDI/i1/3066527575-9d1
  686. 1 5 Yes Yes Idle No
  687. 1 6 Yes Yes Idle No
  688. 1 7 Yes Yes Idle No
  689. 1 8 Yes Yes Idle No
  690. 1 9 Yes Yes Idle No
  691. 1 10 Yes Yes Idle No
  692. 1 11 Yes Yes Idle No
  693. 1 12 Yes Yes Idle No
  694. 1 13 Yes Yes Idle No
  695. 1 14 Yes Yes Idle No
  696. 1 15 Yes Yes Idle No
  697. 1 16 Yes Yes Idle No
  698. 1 17 Yes Yes Idle No
  699. 1 18 Yes Yes Idle No
  700. 1 19 Yes Yes Idle No
  701. 1 20 Yes Yes Idle No
  702. 1 21 Yes Yes Idle No
  703. 1 22 Yes Yes Idle No
  704. 1 23 Yes Yes Idle No
  705. [root@localhost ~]# vi testpri.sh
  706. [root@localhost ~]# ./testpri.sh
  707. ./testpri.sh: line 7: 'pri: command not found
  708.  
  709. 3
  710. [root@localhost ~]# more /var/log/asterisk/full
  711. [2018-12-12 03:28:01] Asterisk 13.23.1 built by mockbuild @ jenkins2.schmoozecom.net on a x86_64 running Linux on 2018-10-03 21:46:52 UTC
  712. [2018-12-12 03:28:01] VERBOSE[48277] logger.c: Asterisk Queue Logger restarted
  713. [2018-12-12 03:28:01] VERBOSE[48277] asterisk.c: Remote UNIX connection disconnected
  714. [2018-12-12 03:29:30] WARNING[25518] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  715. [2018-12-12 03:32:30] WARNING[10992] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  716. [2018-12-12 03:35:30] WARNING[10992] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  717. [2018-12-12 03:38:30] WARNING[10992] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  718. [2018-12-12 03:41:30] WARNING[29985] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  719. [2018-12-12 03:44:30] WARNING[29985] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  720. [2018-12-12 03:47:30] WARNING[25518] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  721. [2018-12-12 03:50:31] WARNING[10992] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  722. [2018-12-12 03:53:31] WARNING[10992] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  723. [2018-12-12 03:56:31] WARNING[25518] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  724. [2018-12-12 03:59:31] WARNING[25518] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  725. [2018-12-12 04:02:31] WARNING[53091] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  726. [2018-12-12 04:04:02] VERBOSE[7760] asterisk.c: Remote UNIX connection
  727. [2018-12-12 04:04:02] VERBOSE[51396] asterisk.c: Remote UNIX connection disconnected
  728. [2018-12-12 04:04:02] VERBOSE[7760] asterisk.c: Remote UNIX connection
  729. [2018-12-12 04:04:02] VERBOSE[51398] asterisk.c: Remote UNIX connection disconnected
  730. [2018-12-12 04:04:02] VERBOSE[7760] asterisk.c: Remote UNIX connection
  731. [2018-12-12 04:04:02] VERBOSE[51400] asterisk.c: Remote UNIX connection disconnected
  732. [2018-12-12 04:05:31] WARNING[25518] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  733. [2018-12-12 04:08:31] WARNING[10992] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  734. [2018-12-12 04:11:31] WARNING[25518] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  735. [2018-12-12 04:14:31] WARNING[22586] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  736. [2018-12-12 04:17:31] WARNING[29985] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  737. [2018-12-12 04:20:31] WARNING[22586] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  738. [2018-12-12 04:23:31] WARNING[53091] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  739. [2018-12-12 04:26:31] WARNING[53091] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  740. [2018-12-12 04:29:31] WARNING[22586] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  741. [2018-12-12 04:32:31] WARNING[53091] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  742. [2018-12-12 04:35:31] WARNING[13967] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  743. [2018-12-12 04:38:31] WARNING[18285] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  744. [2018-12-12 04:41:31] WARNING[18285] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  745. [2018-12-12 04:44:31] WARNING[25518] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  746. [2018-12-12 04:47:31] WARNING[13967] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  747. [2018-12-12 04:50:31] WARNING[10992] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  748. [2018-12-12 04:53:31] WARNING[53091] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  749. [2018-12-12 04:56:31] WARNING[18285] res_pjsip_registrar.c: AOR 'bbllpbts' has no configured max_contacts. Endpoint 'bbllpbts' unable to register
  750. /circuits
  751. ...skipping
  752. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-outisbusy:2] GotoIf("PJSIP/969-00001268", "0?emergency,1") in new stack
  753. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-outisbusy:3] GotoIf("PJSIP/969-00001268", "0?intracompany,1") in new stack
  754. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/969-00001268", "all-circuits-busy-now&please-try-call-later, noanswer") in new st
  755. ack
  756. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] file.c: <PJSIP/969-00001268> Playing 'all-circuits-busy-now.ulaw' (language 'en')
  757. [2018-12-12 08:45:36] VERBOSE[7828] sig_pri.c: Span 1: Channel 0/2 successfully restarted
  758. [2018-12-12 08:45:38] VERBOSE[8438][C-00000dd7] file.c: <PJSIP/969-00001268> Playing 'please-try-call-later.ulaw' (language 'en')
  759. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-outisbusy:5] Congestion("PJSIP/969-00001268", "20") in new stack
  760. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] app_macro.c: Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'PJSIP/969-00001268' in macro 'outisbusy'
  761. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Spawn extension (restrictedroute-c41299a3c63a6734056fcea461ec2719, 18009595525, 6) exited non-zero on 'PJSIP/969-00001268'
  762. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Executing [h@restrictedroute-c41299a3c63a6734056fcea461ec2719:1] Hangup("PJSIP/969-00001268", "") in new stack
  763. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Spawn extension (restrictedroute-c41299a3c63a6734056fcea461ec2719, h, 1) exited non-zero on 'PJSIP/969-00001268'
  764. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] app_stack.c: PJSIP/969-00001268 Internal Gosub(crm-hangup,s,1) start
  765. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@crm-hangup:1] NoOp("PJSIP/969-00001268", "Sending Hangup to CRM") in new stack
  766. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@crm-hangup:2] NoOp("PJSIP/969-00001268", "HANGUP CAUSE: 34") in new stack
  767. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@crm-hangup:3] ExecIf("PJSIP/969-00001268", "0?Set(__CRM_VOICEMAIL=)") in new stack
  768. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@crm-hangup:4] NoOp("PJSIP/969-00001268", "MASTER CHANNEL: 1544625935.63407 = 1544625935.63407") in new stack
  769. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@crm-hangup:5] GotoIf("PJSIP/969-00001268", "0?return") in new stack
  770. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@crm-hangup:6] Set("PJSIP/969-00001268", "__CRM_HANGUP=1") in new stack
  771. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@crm-hangup:7] AGI("PJSIP/969-00001268", "sangomacrm.agi") in new stack
  772. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
  773. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: LINKEDID: 1544625935.63407
  774. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: SOURCE: 969
  775. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: DESTINATION: 18009595525
  776. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: DIRECTION: OUTBOUND
  777. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: EXTTOCALL:
  778. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: START
  779. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php 'eyJ1dWlkIjoiMTU0NDYyNTkzNS42MzQwNyIsInNvdXJ
  780. jZSI6Ijk2OSIsImRlc3RpbmF0aW9uIjoiMTgwMDk1OTU1MjUiLCJkaXJlY3Rpb24iOiJPVVRCT1VORCIsInR5cGUiOiJFTkQiLCJ6dWx1X3R5cGUiOiIiLCJleHR0b2NhbGwiOiIiLCJjbnVtIjoiOTY5IiwiY25hbSI6IkJ1Y2tiZXJnZXJCYWV
  781. yZyIsImNhbGxwb3AiOmZhbHNlLCJ2b2ljZW1haWwiOiIifQ==' > /dev/null 2>&1 &
  782. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] res_agi.c: <PJSIP/969-00001268>AGI Script sangomacrm.agi completed, returning 0
  783. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@crm-hangup:8] Return("PJSIP/969-00001268", "") in new stack
  784. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] app_stack.c: Spawn extension (restrictedroute-c41299a3c63a6734056fcea461ec2719, h, 1) exited non-zero on 'PJSIP/969-00001268'
  785. [2018-12-12 08:45:40] VERBOSE[8438][C-00000dd7] app_stack.c: PJSIP/969-00001268 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
  786. [2018-12-12 08:45:45] VERBOSE[22586] pbx_variables.c: Setting global variable 'SIPDOMAIN' to '192.168.115.50'
  787. [2018-12-12 08:45:45] VERBOSE[8460][C-00000dd9] pbx.c: Executing [18009595525@from-internal:1] Macro("PJSIP/969-00001269", "user-callerid,LIMIT") in new stack
  788. [2018-12-12 08:45:45] VERBOSE[8460][C-00000dd9] pbx.c: Executing [s@macro-user-callerid:1] Set("PJSIP/969-00001269", "TOUCH_MONITOR=1544625945.63417") in new stack
  789. [2018-12-12 08:45:45] VERBOSE[8460][C-00000dd9] pbx.c: Executing [s@macro-user-callerid:2] Set("PJSIP/969-00001269", "AMPUSER=969") in new stack
  790.  
  791. ...back 1 page
  792. [2018-12-12 08:45:35] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:15] ExecIf("PJSIP/969-00001268", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
  793. [2018-12-12 08:45:35] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:16] ExecIf("PJSIP/969-00001268", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
  794. [2018-12-12 08:45:35] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:17] Macro("PJSIP/969-00001268", "dialout-trunk-predial-hook,") in new stack
  795. [2018-12-12 08:45:35] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/969-00001268", "") in new stack
  796. [2018-12-12 08:45:35] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:18] GotoIf("PJSIP/969-00001268", "0?skipcrm") in new stack
  797. [2018-12-12 08:45:35] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:19] Set("PJSIP/969-00001268", "__CRM_DIRECTION=OUTBOUND") in new stack
  798. [2018-12-12 08:45:35] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:20] Set("PJSIP/969-00001268", "__CRM_DESTINATION=18009595525") in new stack
  799. [2018-12-12 08:45:35] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:21] Set("PJSIP/969-00001268", "__CRM_SOURCE=969") in new stack
  800. [2018-12-12 08:45:35] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:22] AGI("PJSIP/969-00001268", "sangomacrm.agi") in new stack
  801. [2018-12-12 08:45:35] VERBOSE[8438][C-00000dd7] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
  802. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: LINKEDID: 1544625935.63407
  803. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: SOURCE: 969
  804. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: DESTINATION: 18009595525
  805. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: DIRECTION: OUTBOUND
  806. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: EXTTOCALL:
  807. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: START
  808. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] res_agi.c: sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php 'eyJ1dWlkIjoiMTU0NDYyNTkzNS42MzQwNyIsInNvdXJ
  809. jZSI6Ijk2OSIsImRlc3RpbmF0aW9uIjoiMTgwMDk1OTU1MjUiLCJkaXJlY3Rpb24iOiJPVVRCT1VORCIsInR5cGUiOiJTVEFSVCIsInp1bHVfdHlwZSI6IiIsImV4dHRvY2FsbCI6IiIsImNudW0iOiIzMDY2NTc4OTk5IiwiY25hbSI6IkJ1Y2t
  810. iZXJnZXJCYWVyZyIsImNhbGxwb3AiOmZhbHNlLCJ2b2ljZW1haWwiOiIifQ==' > /dev/null 2>&1 &
  811. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] res_agi.c: <PJSIP/969-00001268>AGI Script sangomacrm.agi completed, returning 0
  812. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:23] Set("PJSIP/969-00001268", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
  813. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:24] NoOp("PJSIP/969-00001268", "CRM Finished") in new stack
  814. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:25] GotoIf("PJSIP/969-00001268", "0?bypass,1") in new stack
  815. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:26] ExecIf("PJSIP/969-00001268", "1?Set(CONNECTEDLINE(num,i)=18009595525)") in new stack
  816. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:27] ExecIf("PJSIP/969-00001268", "1?Set(CONNECTEDLINE(name,i)=CID:3066578999)") in new stack
  817. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:28] ExecIf("PJSIP/969-00001268", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)3066578999)") in new s
  818. tack
  819. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:29] GotoIf("PJSIP/969-00001268", "0?customtrunk") in new stack
  820. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:30] Dial("PJSIP/969-00001268", "DAHDI/g0/18009595525,300,Tt") in new stack
  821. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] sig_pri.c: Requested transfer capability: 0x00 - SPEECH
  822. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] app_dial.c: Called DAHDI/g0/18009595525
  823. [2018-12-12 08:45:36] VERBOSE[7828][C-00000dd7] sig_pri.c: Span 1: Channel 0/2 got hangup, cause 44
  824. [2018-12-12 08:45:36] VERBOSE[7828][C-00000dd7] sig_pri.c: Span 1: Forcing restart of channel 0/2 since channel reported in use
  825. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] chan_dahdi.c: Hungup 'DAHDI/i1/18009595525-984'
  826. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
  827. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:31] NoOp("PJSIP/969-00001268", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HA
  828. NGUPCAUSE = 44") in new stack
  829. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s@macro-dialout-trunk:32] GotoIf("PJSIP/969-00001268", "0?continue,1:s-CHANUNAVAIL,1") in new stack
  830. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
  831. [2018-12-12 08:45:36] VERBOSE[8438][C-00000dd7] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("PJSIP/969-00001268", "RC=44") in new stack
  832. [root@localhost ~]# cd ~
  833. [root@localhost ~]# aststerisk -r -x "pri show channels"
  834. -bash: aststerisk: command not found
  835. [root@localhost ~]# asterisk -r -x "pri show channels"
  836. PRI B Chan Call PRI Channel
  837. Span Chan Chan Idle Level Call Name
  838. 1 1 Yes No Connect Yes DAHDI/i1/18662965646-97f
  839. 1 2 Yes Yes Idle No
  840. 1 3 Yes Yes Idle No
  841. 1 4 Yes No Connect Yes DAHDI/i1/3066527575-9d1
  842. 1 5 Yes Yes Idle No
  843. 1 6 Yes Yes Idle No
  844. 1 7 Yes Yes Idle No
  845. 1 8 Yes Yes Idle No
  846. 1 9 Yes Yes Idle No
  847. 1 10 Yes Yes Idle No
  848. 1 11 Yes Yes Idle No
  849. 1 12 Yes Yes Idle No
  850. 1 13 Yes Yes Idle No
  851. 1 14 Yes Yes Idle No
  852. 1 15 Yes Yes Idle No
  853. 1 16 Yes Yes Idle No
  854. 1 17 Yes Yes Idle No
  855. 1 18 Yes Yes Idle No
  856. 1 19 Yes Yes Idle No
  857. 1 20 Yes Yes Idle No
  858. 1 21 Yes Yes Idle No
  859. 1 22 Yes Yes Idle No
  860. 1 23 Yes Yes Idle No
  861. [root@localhost ~]# find / -name chan_dahdi.conf
  862. /etc/asterisk/chan_dahdi.conf
  863. [root@localhost ~]# cd /etc/asterisk/
  864. [root@localhost asterisk]# mroe chan_dahdi.conf
  865. -bash: mroe: command not found
  866. [root@localhost asterisk]# more chan_dahdi.conf
  867. ;--------------------------------------------------------------------------------;
  868. ; Do NOT edit this file as it is auto-generated by FreePBX. ;
  869. ;--------------------------------------------------------------------------------;
  870. ; For information on adding additional paramaters to this file, please visit the ;
  871. ; FreePBX.org wiki page, or ask on IRC. This file was created by the new FreePBX ;
  872. ; BMO - Big Module Object. Any similarity in naming with BMO from Adventure Time ;
  873. ; is totally deliberate. ;
  874. ;--------------------------------------------------------------------------------;
  875. [general]
  876.  
  877. ; generated by module
  878. #include chan_dahdi_general.conf
  879.  
  880. ; for user additions not provided by module
  881. #include chan_dahdi_general_custom.conf
  882.  
  883. [channels]
  884. language=en
  885. busydetect=yes
  886. busycount=10
  887. usecallerid=yes
  888. callwaiting=yes
  889. usecallingpres=yes
  890. threewaycalling=yes
  891. transfer=yes
  892. cancallforward=yes
  893. callreturn=yes
  894. echocancel=yes
  895. echocancelwhenbridged=no
  896. echotraining=no
  897. immediate=no
  898. faxdetect=both
  899. rxgain=0.0
  900. txgain=0.0
  901.  
  902. ; for user additions not provided by module
  903. #include chan_dahdi_channels_custom.conf
  904.  
  905. ; include dahdi groups defined by DAHDI module of FreePBX
  906. #include chan_dahdi_groups.conf
  907.  
  908. ; include dahdi extensions defined in FreePBX
  909. #include chan_dahdi_additional.conf
  910. [root@localhost asterisk]# ls *.conf
  911. amd.conf enum.conf logger_logfiles_custom.conf pjsip.identify_custom.conf res_fax_digium_custom.conf
  912. ari_additional.conf extensions_additional.conf manager_additional.conf pjsip.identify_custom_post.conf res_odbc_additional.conf
  913. ari_additional_custom.conf extensions.conf manager.conf pjsip.manualtrunks.conf res_odbc.conf
  914. ari.conf extensions_custom.conf manager_custom.conf pjsip_notify.conf res_odbc_custom.conf
  915. ari_general_additional.conf extensions_override_freepbx.conf meetme_additional.conf pjsip.registration.conf res_parking_additional.conf
  916. ari_general_custom.conf features_applicationmap_additional.conf meetme.conf pjsip.registration_custom.conf res_parking.conf
  917. asterisk.conf features_applicationmap_custom.conf meetme_general_additional.conf pjsip.registration_custom_post.conf res_parking_custom.conf
  918. ccss.conf features.conf meetme_general_custom.conf pjsip.transports.conf rtp_additional.conf
  919. ccss_general_additional.conf features_featuremap_additional.conf modem.conf pjsip.transports_custom.conf rtp.conf
  920. ccss_general_custom.conf features_featuremap_custom.conf modules.conf pjsip.transports_custom_post.conf rtp_custom.conf
  921. cdr_adaptive_odbc.conf features_general_additional.conf motif.conf privacy.conf sip_additional.conf
  922. cdr.conf features_general_custom.conf motif_custom.conf prosody_additional.conf sip.conf
  923. cdr_mysql.conf freepbx_module_admin.conf musiconhold_additional.conf queuerules_additional.conf sip_custom.conf
  924. cel.conf globals_custom.conf musiconhold.conf queuerules.conf sip_custom_post.conf
  925. cel_custom_post.conf http_additional.conf musiconhold_custom.conf queuerules_custom.conf sip_general_additional.conf
  926. cel_general_additional.conf http.conf phone.conf queues_additional.conf sip_general_custom.conf
  927. cel_general_custom.conf http_custom.conf phpagi.conf queues.conf sip_nat.conf
  928. cel_odbc.conf iax_additional.conf pjsip.aor.conf queues_custom.conf sip_notify_additional.conf
  929. cel_odbc_custom.conf iax.conf pjsip.aor_custom.conf queues_custom_general.conf sip_notify.conf
  930. chan_dahdi_additional.conf iax_custom.conf pjsip.aor_custom_post.conf queues_general_additional.conf sip_notify_custom.conf
  931. chan_dahdi_channels_custom.conf iax_custom_post.conf pjsip.auth.conf queues_post_custom.conf sip_registrations.conf
  932. chan_dahdi.conf iax_general_additional.conf pjsip.auth_custom.conf rbtemp.conf sip_registrations_custom.conf
  933. chan_dahdi_general.conf iax_general_custom.conf pjsip.auth_custom_post.conf res_digium_phone_additional.conf udptl.conf
  934. chan_dahdi_general_custom.conf iax_registrations.conf pjsip.conf res_digium_phone_applications.conf udptl_custom.conf
  935. chan_dahdi_groups.conf iax_registrations_custom.conf pjsip_custom.conf res_digium_phone.conf voicemail.conf
  936. confbridge_additional.conf indications.conf pjsip.custom.conf res_digium_phone_devices.conf xmpp.conf
  937. confbridge.conf localprefixes.conf pjsip_custom_post.conf res_digium_phone_firmware.conf xmpp_custom.conf
  938. confbridge_custom.conf logger.conf pjsip.endpoint.conf res_digium_phone_general.conf xmpp_general_custom.conf
  939. dahdi-channels.conf logger_general_additional.conf pjsip.endpoint_custom.conf res_fax.conf
  940. disa-1.conf logger_general_custom.conf pjsip.endpoint_custom_post.conf res_fax_custom.conf
  941. dnsmgr.conf logger_logfiles_additional.conf pjsip.identify.conf res_fax_digium.conf
  942. [root@localhost asterisk]# ls dah*
  943. dahdi-channels.conf
  944. [root@localhost asterisk]# ls chan*
  945. chan_dahdi_additional.conf chan_dahdi.conf chan_dahdi.conf.old chan_dahdi_general.conf chan_dahdi_groups.conf
  946. chan_dahdi_channels_custom.conf chan_dahdi.conf.bak chan_dahdi.conf.template chan_dahdi_general_custom.conf chan_dahdi_groups.conf.bak
  947. [root@localhost asterisk]# more chan_dahdi_channels_custom.conf
  948. [root@localhost asterisk]# more chan_dahdi_additional.conf
  949. ;--------------------------------------------------------------------------------;
  950. ; Do NOT edit this file as it is auto-generated by FreePBX. ;
  951. ;--------------------------------------------------------------------------------;
  952. ; For information on adding additional paramaters to this file, please visit the ;
  953. ; FreePBX.org wiki page, or ask on IRC. This file was created by the new FreePBX ;
  954. ; BMO - Big Module Object. Any similarity in naming with BMO from Adventure Time ;
  955. ; is totally deliberate. ;
  956. ;--------------------------------------------------------------------------------;
  957. ;;;;;;[503]
  958. callprogress=no
  959. busycount=7
  960. busydetect=no
  961. echotraining=800
  962. echocancelwhenbridged=no
  963. echocancel=yes
  964. signalling=fxo_ks
  965. immediate=no
  966. context=from-internal
  967. accountcode=
  968. namedcallgroup=
  969. namedpickupgroup=
  970. callerid=faxtest <503>
  971. parkinglot=default
  972. channel=>25
  973. [root@localhost asterisk]# ls chan*
  974. chan_dahdi_additional.conf chan_dahdi.conf chan_dahdi.conf.old chan_dahdi_general.conf chan_dahdi_groups.conf
  975. chan_dahdi_channels_custom.conf chan_dahdi.conf.bak chan_dahdi.conf.template chan_dahdi_general_custom.conf chan_dahdi_groups.conf.bak
  976. [root@localhost asterisk]# ls -al chan*
  977. -rw-r--r-- 1 asterisk asterisk 929 Dec 7 09:25 chan_dahdi_additional.conf
  978. -rw-r--r-- 1 asterisk asterisk 0 Nov 23 00:00 chan_dahdi_channels_custom.conf
  979. -rw-r--r-- 1 asterisk asterisk 1351 Dec 7 09:25 chan_dahdi.conf
  980. -rw-r--r-- 1 asterisk asterisk 1351 Nov 23 13:12 chan_dahdi.conf.bak
  981. -rw-r--r-- 1 asterisk asterisk 766 Nov 23 00:00 chan_dahdi.conf.old
  982. -rw-r--r-- 1 asterisk asterisk 715 Nov 23 00:00 chan_dahdi.conf.template
  983. -rw-r--r-- 1 asterisk asterisk 664 Dec 7 09:25 chan_dahdi_general.conf
  984. -rw-r--r-- 1 asterisk asterisk 0 Nov 23 00:00 chan_dahdi_general_custom.conf
  985. -rw-r--r-- 1 asterisk asterisk 1277 Dec 7 09:25 chan_dahdi_groups.conf
  986. -rw-r--r-- 1 asterisk asterisk 1199 Nov 23 00:00 chan_dahdi_groups.conf.bak
  987. [root@localhost asterisk]# more chan_dahdi_groups.conf
  988. ;--------------------------------------------------------------------------------;
  989. ; Do NOT edit this file as it is auto-generated by FreePBX. ;
  990. ;--------------------------------------------------------------------------------;
  991. ; For information on adding additional paramaters to this file, please visit the ;
  992. ; FreePBX.org wiki page, or ask on IRC. This file was created by the new FreePBX ;
  993. ; BMO - Big Module Object. Any similarity in naming with BMO from Adventure Time ;
  994. ; is totally deliberate. ;
  995. ;--------------------------------------------------------------------------------;
  996.  
  997. ; [span_1]
  998. signalling=pri_cpe
  999. switchtype=national
  1000. pridialplan=national
  1001. prilocaldialplan=national
  1002. group=0
  1003. context=from-digital
  1004. channel=>1-23
  1005.  
  1006.  
  1007. signalling=fxs_ks
  1008. context=from-analog
  1009. group=3
  1010. channel=>29
  1011.  
  1012. signalling=fxs_ks
  1013. context=from-analog
  1014. group=3
  1015. channel=>30
  1016.  
  1017. signalling=fxs_ks
  1018. context=from-analog
  1019. group=3
  1020. channel=>31
  1021.  
  1022. ;--------------------------------------------------------------------------------;
  1023. ; Do NOT edit this file as it is auto-generated by FreePBX. ;
  1024. ;--------------------------------------------------------------------------------;
  1025. ; For information on adding additional paramaters to this file, please visit the ;
  1026. ; FreePBX.org wiki page, or ask on IRC. This file was created by the new FreePBX ;
  1027. ; BMO - Big Module Object. Any similarity in naming with BMO from Adventure Time ;
  1028. ; is totally deliberate. ;
  1029. ;--------------------------------------------------------------------------------;
  1030.  
  1031. ; [span_1]
  1032. signalling=pri_cpe
  1033. switchtype=national
  1034. pridialplan=national
  1035. prilocaldialplan=national
  1036. group=0
  1037. context=from-digital
  1038. channel=>1-23
  1039.  
  1040.  
  1041. signalling=fxs_ks
  1042. context=from-analog
  1043. group=3
  1044. channel=>29
  1045.  
  1046. signalling=fxs_ks
  1047. context=from-analog
  1048. group=3
  1049. channel=>30
  1050.  
  1051. signalling=fxs_ks
  1052. context=from-analog
  1053. group=3
  1054. channel=>31
  1055.  
  1056. signalling=fxs_ks
  1057. context=from-analog
  1058. group=3
  1059. channel=>32
  1060.  
  1061. signalling=fxo_ks
  1062. context=from-analog
  1063. group=2
  1064. channel=>25
  1065.  
  1066. signalling=fxo_ks
  1067. context=from-analog
  1068. group=2
  1069. channel=>26
  1070.  
  1071. signalling=fxo_ks
  1072. context=from-analog
  1073. group=2
  1074. channel=>27
  1075.  
  1076. signalling=fxo_ks
  1077. context=from-analog
  1078. group=2
  1079. channel=>28
  1080. [root@localhost asterisk]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement