app_voicemail.c how to enable debugging?

Home » Asterisk Users » app_voicemail.c how to enable debugging?
Asterisk Users 1 Comment

Hi

Looking at the source of app_voicemail.c there are many statements like:

ast_debug(1, “%s doesn’t exist, doing what we cann”,
prefile);

Where do I have to enably this to be showed in the console or logged to a file
by logger. core set debug does not seem to help here.

Well, my actual problem is, that if a customer has recorded his own greeting,
he usualy tells the caller to record his message after the tone, so
app_voicemail should not play the intro.

spool/mailbox/unavail.gsm
vm-intro.gsm
beep.gsm

but only

spool/mailbox/unavail.gsm
beep.gsm

In case there is an unavailable message. Where do I have to poke at the
source?

Kind regards

Benoit Panizzon

One thought on - app_voicemail.c how to enable debugging?

  • [snip]

    No need to patch app_voicemail to do this I guess, passing the ‘s’
    argument to VoiceMail will skip vm-intro. So you only need to figure out
    is unavail.gsm exists from the dialplan to add ‘s’ to the arguments.
    Implementing this in an AGI script should be trivial.