Comments (7)
@InterLinked1 This warning came from you. Can you clarify why you thought T didn't work on remote console, and if you were incorrect?
from asterisk.
Hmm. I don't recall that was something I came up with...
Related to logging... the thing I definitely do remember was adding support for respecting logger.conf whether or not you're in the console or not for things like timestamp format.
commit a0009c807eb6ad01ea0827b2b14ea3bd433ddc69
Author: Mark Murawski <[email protected]>
Date: Fri Mar 19 10:11:26 2021 -0400
logger: Console sessions will now respect logger.conf dateformat= option
The 'core' console (ie: asterisk -c) does read logger.conf and does
use the dateformat= option.
Whereas 'remote' consoles (ie: asterisk -r -T) does not read logger.conf
and uses a hard coded dateformat option for printing received verbose messages:
main/logger.c: static char dateformat[256] = "%b %e %T"
This change will load logger.conf for each remote console session and
use the dateformat= option to set the per-line timestamp for verbose messages
Change-Id: I3ea10990dbd920e9f7ce8ff771bc65aa7f4ea8c1
ASTERISK-25358: #close
Reported-by: Igor Liferenko
This change is a fix, so that logger.conf gets used with the -T option... It definitely does have a behavior effect when used.
But.. I did find:
commit 09e989f972e2583df4e9bf585c246c37322d8d2f
Author: Naveen Albert <[email protected]>
Date: Sat Mar 5 11:43:13 2022 +0000
asterisk.c: Warn of incompatibilities with remote console.
Some command line options to Asterisk only apply when Asterisk
is started and cannot be used with remote console mode. If a
user tries to use any of these, they are currently simply
silently ignored.
This prints out a warning if incompatible options are used,
informing users that an option used cannot be used with remote
console mode. Additionally, some clarifications are added to
the help text and man page.
ASTERISK-22246
ASTERISK-26582
Change-Id: I980a5380ef2c19e8ea348596396d5382893c4337
09e989f972e main/asterisk.c (Naveen Albert 2022-03-05 11:43:13 +0000 3775) case 'T': /* timestamp */
09e989f972e main/asterisk.c (Naveen Albert 2022-03-05 11:43:13 +0000 3776) case 't': /* cache record files */
09e989f972e main/asterisk.c (Naveen Albert 2022-03-05 11:43:13 +0000 3777) case 'U': /* run user */
09e989f972e main/asterisk.c (Naveen Albert 2022-03-05 11:43:13 +0000 3778) fprintf(stderr, "'%c' option is not compatible with remote console mode and has no effect.\n", c);
09e989f972e main/asterisk.c (Naveen Albert 2022-03-05 11:43:13 +0000 3779) didwarn = 1;
09e989f972e main/asterisk.c (Naveen Albert 2022-03-05 11:43:13 +0000 3780) }
from asterisk.
I'm not sure what you' referring to. I didn't tag you or anything. Naveen Albert is InterLinked.
from asterisk.
@InterLinked1 This warning came from you. Can you clarify why you thought T didn't work on remote console, and if you were incorrect?
Probably just an oversight. I just tested this and the 'T' option does seem to have some special handling at least for verbose messages. I can fix the warning if you assign this to me.
from asterisk.
@jcolp Whoops sorry. I didn't process the tag aspect. Still getting familiar with github.
I can't change assignments I don't believe.
from asterisk.
You can't, but I did.
from asterisk.
@InterLinked1 Here's something to check out.
If you run asterisk out of the box without any special options or logging setup.. timestamps only print to the log file, and then when you connect via asterisk -r, there's no timestamps on verbose messages, you only get timestamps on errors,warnings,notices
If you do asterisk -rT, then you do get timestampes on all verbose messages
from asterisk.
Related Issues (20)
- [bug]: AMI confbridge. No final TalkingStatus: off event for user when user leaves confbridge while talking HOT 4
- [bug]: AMI CoreShowChannelMap wrong ending characters
- [bug]: autoservice thread stuck in an endless sleep HOT 6
- [improvement]: Add option to not log Restricted Caller ID to queue_log
- [bug]: Crash when initializing speexdsp in func_speex HOT 11
- [bug]: When the ast_bridge_channel already been destroyed, calling ast_bridge_channel_queue_frame results in a crash. HOT 8
- [bug]: Crash while executing MRCPRecog function call using AMI / AsynAGI HOT 4
- [improvement]: pbx.c: expand fields width of "core show hints"
- [bug]: double free or corruption (out) HOT 19
- [bug]: incorrect IP address in Via header HOT 5
- Run Asterisk on port 80 / 443 without any intermediary http proxy or iptables port-forwarding. HOT 1
- [bug] DTMF broken after rtp_engine: add support for multirate RFC2833 digits commit HOT 5
- [bug]: Phantom PJSIP UUID endpoint HOT 3
- [bug]: Infinite loop of "Indicated Video Update", max CPU usage HOT 14
- [improvement]: Allow call by call disabling Stir/Shaken header inclusion HOT 1
- [bug]: ARI "Endpoints" API reports PJSIP resource state as offline when should be unknown HOT 2
- [bug]: Under certain circumstances a channel snapshot can get orphaned in the cache
- [bug]: Asterisk 18 GIT fails to build with app_voicemail and app_voicemail_odbc error HOT 1
- [improvement]: "curl realtime driver" parameter length HOT 1
- [bug]: Issue with overloaded task processors HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asterisk.