Permanent sip and agi debug on?

Home » Asterisk Users » Permanent sip and agi debug on?
Asterisk Users 2 Comments

On 11/09/2011 04:22 AM, David Cunningham wrote:
> Hi all,
>
> I can’t find the answer to this via google – is there some way to
> permanently enable “sip set debug on” and “agi set debug on” in
> Asterisk? I want this to be automatically enabled even after restarts.

In recent versions of Asterisk, you can put CLI commands into cli.conf
and they will be run automatically when Asterisk starts. There are even
examples of doing this for ‘sip set debug’ in cli.conf.sample 🙂

2 thoughts on - Permanent sip and agi debug on?

  • If you have an “ancient” version of Asterisk you want to stick with, you can
    do this with asterisk -rx “sip set debug on” and asterisk -rx “agi set debug
    on” in your safe_asterisk script.

    [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of David
    Cunningham
    Sent: Wednesday, November 09, 2011 3:28 PM

    Kevin,

    Thank you very much!

    Hi all,

    I can’t find the answer to this via google – is there some way to
    permanently enable “sip set debug on” and “agi set debug on” in
    Asterisk? I want this to be automatically enabled even after restarts.

    In recent versions of Asterisk, you can put CLI commands into cli.conf and
    they will be run automatically when Asterisk starts. There are even examples
    of doing this for ‘sip set debug’ in cli.conf.sample 🙂