Hi all. asterisk doesn’t starts after restarting server. I tried to start the service with command “service asterisk start” and there was error
Asterisk died with code 1.
Automatically restarting Asterisk.
then I tried this "amportal start and was this error
)
Asterisk Stopped
STOPPING FOP SERVER
SETTING FILE PERMISSIONS
Permissions OK
STARTING ASTERISK
Asterisk ended with exit status 1
Asterisk died with code 1.
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
mpg123: no process killed
then i tried “/usr/sbin/asterisk -gvvc” and asterisk starts, but i think it is limited service, and when i close ssh session asterisk dies.
it doesn’t terminates by itself. it simply doesn’t starts when i restart server, and when i try to start it with known method (service asterisk start, amportal start) it gives errors.
STARTING ASTERISK
Asterisk ended with exit status 1
Asterisk died with code 1.
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
mpg123: no process killed
Asterisk could not start!
Use ‘tail /var/log/asterisk/full’ to find out why.
[root@elastix asterisk]#
then
tail /var/log/asterisk/full
and this was there
[2014-09-25 11:14:46] VERBOSE[7663] app_macro.c: == Spawn extension (macro-hangupcall, s, 12) exited non-zero on ‘SIP/7145-00000153’ in macro ‘hangupcall’
[2014-09-25 11:14:46] VERBOSE[7663] app_macro.c: == Spawn extension (macro-dial, s, 7) exited non-zero on ‘SIP/7145-00000153’ in macro ‘dial’
[2014-09-25 11:14:46] VERBOSE[7663] app_macro.c: == Spawn extension (macro-exten-vm, s, 9) exited non-zero on ‘SIP/7145-00000153’ in macro ‘exten-vm’
[2014-09-25 11:14:46] VERBOSE[7663] pbx.c: == Spawn extension (internal-only, 7026, 1) exited non-zero on ‘SIP/7145-00000153’
[2014-09-25 11:14:46] VERBOSE[7664] app_mixmonitor.c: == MixMonitor close filestream
[2014-09-25 11:14:46] VERBOSE[7664] app_mixmonitor.c: == End MixMonitor Recording SIP/7145-00000153
[2014-09-25 11:14:56] VERBOSE[4675] asterisk.c: Beginning asterisk shutdown…
[2014-09-25 11:14:56] VERBOSE[4675] asterisk.c: Executing last minute cleanups
[2014-09-25 11:14:56] VERBOSE[4675] res_musiconhold.c: == Destroying musiconhold processes
[2014-09-25 11:14:56] VERBOSE[4675] asterisk.c: Asterisk cleanly ending (0).