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

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Sep 14 04:18:44 CDT 2016


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.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com



More information about the asterisk-dev mailing list