SOLVED Asterisk CLI response messages are duplicated

rick

Member
Joined
Dec 30, 2008
Messages
175
Reaction score
13
Everything is outputed twice, how to correct this?

Example:
Executing [s@macro-dialout-trunk:21] Macro("PJSIP/705-0000001b", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk:21] Macro("PJSIP/705-0000001b", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/705-0000001b", "") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/705-0000001b", "") in new stack
-- Executing [s@macro-dialout-trunk:22] GotoIf("PJSIP/705-0000001b", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:22] GotoIf("PJSIP/705-0000001b", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/705-0000001b", "1?Set(CONNECTEDLINE(num,i)=161xxxxxxxxxx)") in new stack
-- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/705-0000001b", "1?Set(CONNECTEDLINE(num,i)=161xxxxxxxxxx)") in new stack
-- Executing [s@macro-dialout-trunk:24] ExecIf("PJSIP/705-0000001b", "1?Set(CONNECTEDLINE(name,i)=CID:61xxxxxxxxxx)") in new stack
-- Executing [s@macro-dialout-trunk:24] ExecIf("PJSIP/705-0000001b", "1?Set(CONNECTEDLINE(name,i)=CID:61xxxxxxxxxx)") in new stack
-- Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/705-0000001b", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)61xxxxxxxxxx)") in new stack
-- Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/705-0000001b", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)61xxxxxxxxxx)") in new stack
-- Executing [s@macro-dialout-trunk:26] GotoIf("PJSIP/705-0000001b", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:26] GotoIf("PJSIP/705-0000001b", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:27] ExecIf("PJSIP/705-0000001b", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
-- Executing [s@macro-dialout-trunk:27] ExecIf("PJSIP/705-0000001b", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
-- Executing [s@macro-dialout-trunk:28] Set("PJSIP/705-0000001b", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
-- Executing [s@macro-dialout-trunk:28] Set("PJSIP/705-0000001b", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
--
 
Check Settings -> Asterisk Logfile Settings -> Log Files. That is where log file and console output are configured.
 
This is a new install IPBX. Checked and tried different switch settings still duplicates.
 
I've got dual messages as well. Not only on the console, but in the full logs. Where would be the best place to locate the reason why.
 
I've got dual messages as well. Not only on the console, but in the full logs. Where would be the best place to locate the reason why.

See if you have any "extras" in your /etc/asterisk/logger_*_custom.conf files.
 
See if you have any "extras" in your /etc/asterisk/logger_*_custom.conf files.

THANK YOU !!!

Issue resolved. ... I had in logger_logfiles_custom.conf:

console => debug,error,notice,verbose,warning
full => debug,error,notice,verbose


removing these contents resolved the issue. @rick can you check to see if this is your issue as well?
 
THANK YOU !!!

Issue resolved. ... I had in logger_logfiles_custom.conf:

console => debug,error,notice,verbose,warning
full => debug,error,notice,verbose


removing these contents resolved the issue. @rick can you check to see if this is your issue as well?

@wardmundy I am guessing this is the result of old and no-longer-necessary scriptwork that is part of the IPBX installer.
 
logger_general_custom.conf is empty
logger_logfiles_custom.conf has: console => debug,error,notice,verbose,warning
full => debug,error,notice,verbose

These are the same as Settings -> Asterisk Logfile Settings -> Log Files
 
logger_general_custom.conf is empty
logger_logfiles_custom.conf has: console => debug,error,notice,verbose,warning
full => debug,error,notice,verbose

These are the same as Settings -> Asterisk Logfile Settings -> Log Files

That is the problem. Please remove those contents and restart asterisk. Did you say this was a virgin install Incredible2020? I assumed I had monkeyed with something, but if this is the original install, it needs to be looked at.
 
@wardmundy I am guessing this is the result of old and no-longer-necessary scriptwork that is part of the IPBX installer.

@wardmundy
I can confirm that yes - this is on all installs from script - the file /etc/asterisk/logger_logfiles_custom.conf with a time/date stamp of July 11th, 2019 with file size of 82 bytes contains the contents that duplicates the info. This file should be empty.
I just did a new install and yes - its there.
 

Members online

No members online now.

Forum statistics

Threads
26,688
Messages
174,412
Members
20,259
Latest member
Fadeek86
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top