Quantcast
Channel: FreePBX Community Forums - Latest posts
Viewing all articles
Browse latest Browse all 226732

Running shell script from within the DialPlan

$
0
0

I updated the DialPlan, did a core reload and dialed the extensions:

[2015-11-25 12:10:01] NOTICE[25539]: pbx_spool.c:427 attempt_thread: Call completed to Local/s@tc-maint
== Spawn extension (tc-maint, s, 7) exited non-zero on 'Local/s@tc-maint-00000964;2'
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [111@from-internal:1] Wait("SIP/210-00000094", "1") in new stack
-- Executing [111@from-internal:2] TrySystem("SIP/210-00000094", "/home/asterisk/on.sh") in new stack
-- Executing [111@from-internal:3] TrySystem("SIP/210-00000094", "/usr/local/bin/tdtool --on 1") in new stack
-- Executing [111@from-internal:4] Verbose("SIP/210-00000094", "SUCCESS") in new stack
SUCCESS
-- Executing [111@from-internal:5] System("SIP/210-00000094", "whoami > /home/asterisk/textfile") in new stack
-- Executing [111@from-internal:6] Verbose("SIP/210-00000094", "SUCCESS") in new stack
SUCCESS
-- Executing [111@from-internal:7] Hangup("SIP/210-00000094", "") in new stack
== Spawn extension (from-internal, 111, 7) exited non-zero on 'SIP/210-00000094'
-- Executing [h@from-internal:1] Hangup("SIP/210-00000094", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/210-00000094'
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [112@from-internal:1] Wait("SIP/210-00000095", "1") in new stack
-- Executing [112@from-internal:2] TrySystem("SIP/210-00000095", "/home/asterisk/off.sh") in new stack
-- Executing [112@from-internal:3] TrySystem("SIP/210-00000095", "/usr/local/bin/tdtool --off 1") in new stack
-- Executing [112@from-internal:4] Hangup("SIP/210-00000095", "") in new stack
== Spawn extension (from-internal, 112, 4) exited non-zero on 'SIP/210-00000095'
-- Executing [h@from-internal:1] Hangup("SIP/210-00000095", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/210-00000095'

Thanks

Paul


Viewing all articles
Browse latest Browse all 226732

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>