Internal calls don't work

After a hard reboot, internal calls stopped working. When you try to call an internal number, Asterisk turns off and restarts. Calls to external numbers work properly.

Asterisk -rvvv:
Executing [ctset@macro-dial-one:1] Set(“SIP/301-00000000”, “DB(CALLTRACE/322)=301”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“SIP/301-00000000”, “”) in new stack
– Executing [s@macro-dial-one:31] Set(“SIP/301-00000000”, “D_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dial-one:32] GosubIf(“SIP/301-00000000”, “0?func-set-sipheader,s,1(Alert -Info,)”) in new stack
– Executing [s@macro-dial-one:33] NoOp(“SIP/301-00000000”, "Blind Transfer: , Attended Transf er: , User: 301, Alert Info: ") in new stack
– Executing [s@macro-dial-one:34] ExecIf(“SIP/301-00000000”, “1?Set(ALERT_INFO=)”) in new sta ck
– Executing [s@macro-dial-one:35] ExecIf(“SIP/301-00000000”, “0?Set(ALERT_INFO=)”) in new sta ck
– Executing [s@macro-dial-one:36] ExecIf(“SIP/301-00000000”, “0?Set(ALERT_INFO=)”) in new sta ck
– Executing [s@macro-dial-one:37] ExecIf(“SIP/301-00000000”, “0?Set(ALERT_INFO=Normal;volume= )”) in new stack
– Executing [s@macro-dial-one:38] ExecIf(“SIP/301-00000000”, “0?Set(ALERT_INFO=Normal;volume= )”) in new stack
– Executing [s@macro-dial-one:39] GosubIf(“SIP/301-00000000”, “0?func-set-sipheader,s,1(Alert -Info,)”) in new stack
– Executing [s@macro-dial-one:40] ExecIf(“SIP/301-00000000”, “0?Set(CHANNEL(musicclass)=)”) i n new stack
– Executing [s@macro-dial-one:41] GosubIf(“SIP/301-00000000”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:42] Set(“SIP/301-00000000”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:43] Set(“SIP/301-00000000”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:44] GotoIf(“SIP/301-00000000”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:45] GotoIf(“SIP/301-00000000”, “0?godial”) in new stack
– Executing [s@macro-dial-one:46] Gosub(“SIP/301-00000000”, “sub-presencestate-display,s,1(32 2)”) in new stack
– Executing [s@sub-presencestate-display:1] Goto(“SIP/301-00000000”, “state-not_set,1”) in ne w stack
– Goto (sub-presencestate-display,state-not_set,1)
– Executing [state-not_set@sub-presencestate-display:1] Set(“SIP/301-00000000”, “PRESENCESTAT E_DISPLAY=”) in new stack
– Executing [state-not_set@sub-presencestate-display:2] Return(“SIP/301-00000000”, “”) in new stack
– Executing [s@macro-dial-one:47] Set(“SIP/301-00000000”, "CONNECTEDLINE(name,i)=admin ") in new stack
– Executing [s@macro-dial-one:48] Set(“SIP/301-00000000”, “CONNECTEDLINE(num)=322”) in new st ack
– Executing [s@macro-dial-one:49] Set(“SIP/301-00000000”, “D_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dial-one:50] Macro(“SIP/301-00000000”, “dialout-one-predial-hook,”) in n ew stack
– Executing [s@macro-dialout-one-predial-hook:1] MacroExit(“SIP/301-00000000”, “”) in new sta ck
– Executing [s@macro-dial-one:51] ExecIf(“SIP/301-00000000”, “0?Set(D_OPTIONS=HhtrI)”) in new stack
– Executing [s@macro-dial-one:52] ExecIf(“SIP/301-00000000”, “0?Set(CWRING=r(callwaiting)):Se t(CWRING=)”) in new stack
– Executing [s@macro-dial-one:53] NoOp(“SIP/301-00000000”, “”) in new stack
– Executing [s@macro-dial-one:54] Dial(“SIP/301-00000000”, “SIP/322,HhTtrb(func-apply-siphea ders^s^1)”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– SIP/322-00000001 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] NoOp(“SIP/322-00000001”, “Applying SIP Headers to cha nnel SIP/322-00000001”) in new stack
– Executing [s@func-apply-sipheaders:2] Set(“SIP/322-00000001”, “TECH=SIP”) in new stack
orangepipc2*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups

This at first sounds like hardware (possiblyRAM) failure of some sort or what I would suspect at first.
What caused the hard reboot that you mentioned?
Other than that this is the only logical starting point to go from.
Can you gather any other logs external to the asterisk console why asterisk terminated?

power outages

I’m going to try now

full log error:
[2024-04-02 04:58:37] ERROR[17397] ari/config.c: No configured users for ARI
[2024-04-02 04:58:38] WARNING[17397] presencestate.c: No provider found for label CustomPresence
[2024-04-02 04:58:38] WARNING[17397] presencestate.c: No provider found for label CustomPresence
[2024-04-02 04:58:38] NOTICE[17397] pbx_lua.c: Lua PBX Switch loaded.
[2024-04-02 04:58:39] ERROR[17397] res_config_pgsql.c: PostgreSQL RealTime: Failed to connect database asterisk on 127.0.0.1:
[2024-04-02 04:58:39] WARNING[17397] res_config_pgsql.c: PostgreSQL RealTime: Couldn’t establish connection. Check debug.
[2024-04-02 04:58:39] NOTICE[17397] chan_skinny.c: Configuring skinny from skinny.conf
[2024-04-02 04:58:39] VERBOSE[17397] chan_sip.c: SIP channel loading…
[2024-04-02 04:58:39] NOTICE[17397] chan_sip.c: The ‘username’ field for sip peers has been deprecated in favor of the term ‘defaultuser’
[2024-04-02 04:58:39] NOTICE[17487] chan_sip.c: Peer ‘322’ is now Reachable. (6ms / 2000ms)
[2024-04-02 04:58:39] NOTICE[17487] chan_sip.c: Peer ‘avantel’ is now Reachable. (1ms / 2000ms)
[2024-04-02 04:58:39] NOTICE[17487] chan_sip.c: Peer ‘301’ is now Reachable. (5ms / 2000ms)
[2024-04-02 04:58:42] NOTICE[17397] confbridge/conf_config_parser.c: Adding default_menu menu to app_confbridge
[2024-04-02 04:58:42] NOTICE[17397] cdr_pgsql.c: cdr_pgsql configuration contains no global section, skipping module load.
[2024-04-02 04:58:42] WARNING[17397] cel_pgsql.c: CEL pgsql config file missing global section.
[2024-04-02 04:58:42] NOTICE[17397] cel_tds.c: cel_tds has no global category, nothing to configure.
[2024-04-02 04:58:42] WARNING[17397] cel_tds.c: cel_tds module had config problems; declining load

How did you install FreePBX and on what hardware?
Is there any clues in /var/log/{messages,syslog} right when asterisk stopped?

This is what happened with syslog:

Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m608#033[0m #033[1;37mast_func_read#033[0m: Function PJSIP_HEADER not regi stered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m651#033[0m #033[1;37mast_func_read2#033[0m: Function PJSIP_HEADER not reg istered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m608#033[0m #033[1;37mast_func_read#033[0m: Function PJSIP_HEADER not regi stered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m651#033[0m #033[1;37mast_func_read2#033[0m: Function PJSIP_HEADER not reg istered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m608#033[0m #033[1;37mast_func_read#033[0m: Function PJSIP_HEADER not regi stered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m651#033[0m #033[1;37mast_func_read2#033[0m: Function PJSIP_HEADER not reg istered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m608#033[0m #033[1;37mast_func_read#033[0m: Function PJSIP_HEADER not regi stered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m651#033[0m #033[1;37mast_func_read2#033[0m: Function PJSIP_HEADER not reg istered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m608#033[0m #033[1;37mast_func_read#033[0m: Function PJSIP_HEADER not regi stered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m651#033[0m #033[1;37mast_func_read2#033[0m: Function PJSIP_HEADER not reg istered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m608#033[0m #033[1;37mast_func_read#033[0m: Function PJSIP_HEADER not regi stered
Apr 2 13:15:22 localhost asterisk[3249]: [2024-04-02 13:15:22] #033[1;31mERROR#033[0m[4166][C-00000001]: #033[ 1;37mpbx_functions.c#033[0m:#033[1;37m651#033[0m #033[1;37mast_func_read2#033[0m: Function PJSIP_HEADER not reg istered
Apr 2 13:15:22 localhost asterisk[3249]: *** stack smashing detected ***: terminated
Apr 2 13:15:26 localhost systemd[1]: asterisk.service: Main process exited, code=killed, status=6/ABRT
Apr 2 13:15:26 localhost systemd[1]: asterisk.service: Failed with result ‘signal’.
Apr 2 13:15:27 localhost systemd[1]: asterisk.service: Service hold-off time over, scheduling restart.
Apr 2 13:15:27 localhost systemd[1]: asterisk.service: Scheduled restart job, restart counter is at 4.
Apr 2 13:15:27 localhost systemd[1]: Stopped Asterisk PBX.
Apr 2 13:15:27 localhost systemd[1]: Starting Asterisk PBX…

messages not in dir

FreePBX install in Orange PI PC Ubuntu Server

Boot from your back up sd card

Apr 2 06:46:38 localhost asterisk[1128]: *** stack smashing detected ***: terminated
Apr 2 06:46:43 localhost systemd[1]: asterisk.service: Main process exited, code=killed, status=6/ABRT
Apr 2 06:46:43 localhost systemd[1]: asterisk.service: Failed with result ‘signal’.
Apr 2 06:46:44 localhost systemd[1]: asterisk.service: Service hold-off time over, scheduling restart.
Apr 2 06:46:44 localhost systemd[1]: asterisk.service: Scheduled restart job, restart counter is at 1.
Apr 2 06:46:44 localhost systemd[1]: Stopped Asterisk PBX.
Apr 2 06:46:44 localhost systemd[1]: Starting Asterisk PBX…

I set up Freebpx on a new SD card, the error is the same

Did you restore anything from the old card ?

No, I just looked at the settings

I would suspect bad hardware, likely memory

I’ll now try to raise it on a virtual machine, if this fixes it, I’ll change the device

1 Like

The problem would be in the device, it works on a virtual machine with the same settings and works without problems

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.