Asterisk exit automatically

LOGS WHEN MY ASTERISK AUTOMATICCALLY EXIT.

WARNING[11254][C-00001ca8]: app_dial.c:1725 wait_for_answer: Unable to forward frametype: 2
ERROR[3156][C-000006ef]: chan_sip.c:4267 __sip_reliable_xmit:Serious Network Trouble; __sip_xmit returns error for pkt data
ERROR[11292]: manager.c:6361 process_message: Unable to process manager action ‘login’. Asterisk is shutting down.
ERROR[11292]: manager.c:6361 process_message: Unable to process manager action ‘Command’. Asterisk is shutting down.
ERROR[11292]: manager.c:6361 process_message: Unable to process manager action ‘Logoff’. Asterisk is shutting down.
WARNING[8480][C-00001cb2]: channel.c:811 __ast_channel_alloc_ap: Channel allocation failed: Refusing due to active shutdown
WARNING[8480][C-00001cb2]: chan_sip.c:8107 sip_new: Unable to allocate AST channel structure for SIP channel
.
.
.
.
.
.
.
.
WARNING[8698]: db.c:344 ast_db_put: Couldn’t bind key to stmt: out of memory
myasteriskserver*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups

ASTERISK EXIT AND ALL THE CONNECTIONS LOST.

AFTER MANUALLY STARTING ASTERISK USING ( asterisk -r )

GOT FOLLOWING

NOTICE[11330]: res_odbc.c:617 load_odbc_config: Registered ODBC class ‘asterisk’ dsn->[asterisk]
NOTICE[11330]: res_odbc.c:1089 load_module: res_odbc loaded.
WARNING[11330]: res_phoneprov.c:1231 get_defaults: Unable to find a valid server address or name.
WARNING[11633]: res_http_websocket.c:799 __ast_websocket_uri_cb: WebSocket connection from ‘10.0.33.127:52493’ could not be accepted - no protocols out of ‘sip’ supported
WARNING[11635]: res_http_websocket.c:799 __ast_websocket_uri_cb: WebSocket connection from ‘10.0.33.102:56342’ could not be accepted - no protocols out of ‘sip’ supported
ERROR[11330]: ari/config.c:312 process_config: No configured users for ARI
WARNING[11636]: res_http_websocket.c:799 __ast_websocket_uri_cb: WebSocket connection from ‘10.0.33.134:55838’ could not be accepted - no protocols out of ‘sip’ supported
NOTICE[11330]: pbx_lua.c:1640 load_or_reload_lua_stuff: Lua PBX Switch loaded.
WARNING[11639]: res_http_websocket.c:799 __ast_websocket_uri_cb: WebSocket connection from ‘10.0.37.165:55521’ could not be accepted - no protocols out of ‘sip’ supported
NOTICE[11330]: res_config_ldap.c:1832 parse_config: No directory user found, anonymous binding as default.
ERROR[11330]: res_config_ldap.c:1858 parse_config: No directory URL or host found.
ERROR[11330]: res_config_ldap.c:1720 load_module: Cannot load LDAP RealTime driver.
WARNING[11330]: res_config_mysql.c:1303 load_mysql_config: MySQL realtime: no requirements setting found, using ‘warn’ as default.
WARNING[11644]: res_http_websocket.c:799 __ast_websocket_uri_cb: WebSocket connection from ‘10.0.58.104:62516’ could not be accepted - no protocols out of ‘sip’ supported
WARNING[11330]: chan_dahdi.c:19035 process_dahdi: Ignoring any changes to ‘userbase’ (on reload) at line 23.
WARNING[12126]: sip/config_parser.c:819 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
WARNING[12126]: chan_sip.c:30795 handle_common_options: Unknown directmedia mode ‘’ on line 0

AFTER THOSE PROCESS OR LOGS ASTERISK RESUME NORMALLY. IT HAPPNES AGAIN AND AGAIN ON MY SERVER

PLEASE HELP ME TO RESOLVE THIS KIND OF ISSUE

I cannot see the primary error report in your logs.

Thanks David

HERE is the logs before exit

WARNING[11254][C-00001ca8]: app_dial.c:1725 wait_for_answer: Unable to forward frametype: 2
ERROR[3156][C-000006ef]: chan_sip.c:4267 __sip_reliable_xmit:Serious Network Trouble; __sip_xmit returns error for pkt data
ERROR[11292]: manager.c:6361 process_message: Unable to process manager action ‘login’. Asterisk is shutting down.
ERROR[11292]: manager.c:6361 process_message: Unable to process manager action ‘Command’. Asterisk is shutting down.
ERROR[11292]: manager.c:6361 process_message: Unable to process manager action ‘Logoff’. Asterisk is shutting down.
WARNING[8480][C-00001cb2]: channel.c:811 __ast_channel_alloc_ap: Channel allocation failed: Refusing due to active shutdown
WARNING[8480][C-00001cb2]: chan_sip.c:8107 sip_new: Unable to allocate AST channel structure for SIP channel
ERROR[11292]: manager.c:6361 process_message: Unable to process manager action ‘login’. Asterisk is shutting down.
ERROR[11292]: manager.c:6361 process_message: Unable to process manager action ‘Command’. Asterisk is shutting down.
ERROR[11292]: manager.c:6361 process_message: Unable to process manager action ‘Logoff’. Asterisk is shutting down.
WARNING[8480][C-00001cb2]: channel.c:811 __ast_channel_alloc_ap: Channel allocation failed: Refusing due to active shutdown
WARNING[8480][C-00001cb2]: chan_sip.c:8107 sip_new: Unable to allocate AST channel structure for SIP channel.
.
.
.
WARNING[8698]: db.c:344 ast_db_put: Couldn’t bind key to stmt: out of memory

AND THEN EXIT

Hmm, all the write operations fail… Looks like a severe OS issue. Have you checked the amount of available operating memory and disk space?

You have a memory leak. That is normally the result of a bug. You need to work out what action your system is performing is associated with that memory leak.

Obviously make sure that you are using the latest version. Also consider that it might be third party code, e.g. database modules.

More information is at:

https://wiki.asterisk.org/wiki/display/AST/Memory+Leak+Debugging

1 Like

unable to write frametype: 2, getting this error before asterisk logs out

As mentioned before, you are experiencing issues with operating memory.
It can be memory leak (as david551 mentioned), damaged or insufficient RAM.
So. start with debugging memory leak.