Giter Site home page Giter Site logo

Comments (7)

jcolp avatar jcolp commented on August 22, 2024

@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.

intellasoft avatar intellasoft commented on August 22, 2024

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.

jcolp avatar jcolp commented on August 22, 2024

I'm not sure what you' referring to. I didn't tag you or anything. Naveen Albert is InterLinked.

from asterisk.

InterLinked1 avatar InterLinked1 commented on August 22, 2024

@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.

intellasoft avatar intellasoft commented on August 22, 2024

@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.

jcolp avatar jcolp commented on August 22, 2024

You can't, but I did.

from asterisk.

intellasoft avatar intellasoft commented on August 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.