~ubuntu-branches/ubuntu/quantal/asterisk/quantal

« back to all changes in this revision

Viewing changes to main/cli.c

  • Committer: Bazaar Package Importer
  • Author(s): Jean-Michel Dault
  • Date: 2010-02-16 14:08:54 UTC
  • mfrom: (1.2.5 upstream) (8.3.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100216140854-rb2godspb9lduazl
Tags: 1:1.6.2.2-1ubuntu1
* Merge from Debian: security update
  * Changes:
  - debian/control: Change Maintainer
  - debian/control: Removed Uploaders field.
  - debian/control: Removed Debian Vcs-Svn entry and replaced with
      ubuntu-voip Vcs-Bzr, to reflect divergence in packages.
  - debian/asterisk.init : chown /dev/dahdi
  - debian/backports/hardy : add file
  - debian/backports/asterisk.init.hardy : add file

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include "asterisk.h"
27
27
 
28
 
ASTERISK_FILE_VERSION(__FILE__, "$Revision: 211580 $")
 
28
ASTERISK_FILE_VERSION(__FILE__, "$Revision: 236899 $")
29
29
 
30
30
#include "asterisk/_private.h"
31
31
#include "asterisk/paths.h"     /* use ast_config_AST_MODULE_DIR */
377
377
        case CLI_INIT:
378
378
                e->command = "core set {debug|verbose}";
379
379
                e->usage =
 
380
#if !defined(LOW_MEMORY)
380
381
                        "Usage: core set {debug|verbose} [atleast] <level> [filename]\n"
 
382
#else
 
383
                        "Usage: core set {debug|verbose} [atleast] <level>\n"
 
384
#endif
381
385
                        "       core set {debug|verbose} off\n"
 
386
#if !defined(LOW_MEMORY)
382
387
                        "       Sets level of debug or verbose messages to be displayed or \n"
383
388
                        "       sets a filename to display debug messages from.\n"
 
389
#else
 
390
                        "       Sets level of debug or verbose messages to be displayed.\n"
 
391
#endif
384
392
                        "       0 or off means no messages should be displayed.\n"
385
393
                        "       Equivalent to -d[d[...]] or -v[v[v...]] on startup\n";
386
394
                return NULL;
406
414
                        } else if (a->n == (22 - numbermatch) && a->pos == 3 && ast_strlen_zero(argv3)) {
407
415
                                return ast_strdup("atleast");
408
416
                        }
 
417
#if !defined(LOW_MEMORY)
409
418
                } else if (a->pos == 4 || (a->pos == 5 && !strcasecmp(argv3, "atleast"))) {
410
419
                        return ast_complete_source_filename(a->pos == 4 ? S_OR(a->argv[4], "") : S_OR(a->argv[5], ""), a->n);
 
420
#endif
411
421
                }
412
422
                return NULL;
413
423
        }