Jerry Geis
2023-Sep-13 17:57 UTC
[asterisk-users] Asterisk 18.14.0 vs 18.18.0 and chan_console/chan_alsa
>Using system() you could issue a asterisk -rx 'core restart now'So I tried this exten => s,1,Playback(beep) exten => s,n,Dial(Console/default,20,g) exten => s,n,Hangup exten => s,n,System(asterisk -rx 'core restart now') But it does not continue. Last thing I see is "Exited non zero" so its not doing the hangup or the system. jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230913/8b07074f/attachment.html>
Doug Lytle
2023-Sep-13 18:07 UTC
[asterisk-users] Asterisk 18.14.0 vs 18.18.0 and chan_console/chan_alsa
It worked with my test. I'm on Asterisk 18.19.0 -- Executing [517xxxxxxx at voipms:4] System("IAX2/voipms-15815", "asterisk -rx 'core restart now'") in new stack -- Remote UNIX connection Asterisk uncleanly ending (0). Executing last minute cleanups == Destroying musiconhold processes == Manager unregistered action DBGet == Manager unregistered action DBGetTree == Manager unregistered action DBPut == Manager unregistered action DBDel == Manager unregistered action DBDelTree Preparing for Asterisk restart... Asterisk is now restarting... asterisk*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups After a hung call, can you run core restart now from the asterisk console? Doug
Jerry Geis
2023-Sep-13 18:12 UTC
[asterisk-users] Asterisk 18.14.0 vs 18.18.0 and chan_console/chan_alsa
> After a hung call, can you run core restart now from the asterisk console?Doing a "killall -9 asterisk" is the only thing that works I tried killall asterisk - does not free up the channel the asterisk "core restart now" takes like a good 20 seconds to return but does work. The issue is I cannot run it after teh Dial() as the Dial(Console/default,20,g) never returns to the dial plan. jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230913/eadada79/attachment.html>
Possibly Parallel Threads
- Asterisk 18.14.0 vs 18.18.0 and chan_console/chan_alsa
- Asterisk 18.14.0 vs 18.18.0 and chan_console/chan_alsa
- Asterisk 18.14.0 vs 18.18.0 and chan_console/chan_alsa
- Asterisk 18.14.0 vs 18.18.0 and chan_console/chan_alsa
- Asterisk 18.14.0 vs 18.18.0 and chan_console/chan_alsa