[asterisk-dev] Using command line arguments in other file than asterisk.c

Julian Fleischhauer julian.fleischhauer at gmail.com
Wed Sep 14 10:48:12 CDT 2016


2016-09-14 11:18 GMT+02:00 Tzafrir Cohen <tzafrir.cohen at xorcom.com>:

> On Tue, Sep 13, 2016 at 05:09:59PM +0200, Julian Fleischhauer wrote:
> > Hi everyone,
> >
> > Sorry if this mail is a repost, but I can't figure out if my first mail
> > went through, because I have first been registered now.
> >
> > I have an issue which I can't fix myself.
> >
> > I want to use a command line argument variable in a different file than
> > asterisk.c.
>
> Command-line arguments are kept in ast_options. 'git grep -w
> ast_options' would show you many places in the code where they are
> tested. Those options are also asterisk.conf options as command-line
> arguments generally relate to asterisk.conf options.
>
>
I've already tried using ast_options but I figured out that it will be
difficult because ast_flags is an unsigned int, which has a maximal size of
32 bit. Unfortunately, there are already 31 different option flags, and I
need to use four additional ones.

Regards,
Juliannn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20160914/db83f9a1/attachment.html>


More information about the asterisk-dev mailing list