Pass Variable To Voicemail Script

Home » Asterisk Users » Pass Variable To Voicemail Script
Asterisk Users 3 Comments

I have a custom voicemail script which reformats and forwards the attached voicemail wav file to the recipient.

I would like to make use of a channel variable in my script; is there a way to pass a channel variable to this voicemail script?

3 thoughts on - Pass Variable To Voicemail Script

  • Hello;

    If you are talking about the ‘externnotify’ parameter in voicemail.conf, the variables are passed simply as @ARGV.

    Regards;

    John V.

    Tech Support

    Tech Support

    VoIP Business Solutions

    240-215-3479 x325

    support@voipbusiness.us

    From: asterisk-users-bounces@lists.digium.com
    [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Michelle Dupuis Sent: Saturday, March 05, 2016 11:06 PM
    To: Asterisk Users List Subject: [asterisk-users] Pass variable to voicemail script

    I have a custom voicemail script which reformats and forwards the attached voicemail wav file to the recipient.

    I would like to make use of a channel variable in my script; is there a way to pass a channel variable to this voicemail script?

  • voicemail.conf, the variables are passed simply as @ARGV.

    I’m referring to the mailcmd= setting in voicemail.conf. Asterisk runs this when emailing a voicemail (with attachment)