[asterisk-users] Passing Variables to Voicemail's Email Notification

C F shmaltz at gmail.com
Tue Aug 21 09:34:43 CDT 2007


On 8/20/07, 0xception <0xception at gmail.com> wrote:
> Okay for a quick report back, that all seems to work...

I am assuming that means that when doing ${VM_CIDNAME:15} you got just
the ticket number.
Thanks for reporting back.



>
> Thanks a lot.
>
> Not much to report back other then that :)...
>
> On 8/20/07, C F < shmaltz at gmail.com> wrote:
> > After rethinking.
> > I'm not sure if this works, but please report back after testing.
> > The idea would be that the CIDNAME should not be in the subject just
> > the ticket number, and the ticket number should not be in the email
> > body just the CIDNAME.
> > Please try the following and report back.
> >
> > exten => _X.,1,Set(BLANKS=               );actual 15 spaces, since
> > CIDName on PSTN should never be longer, and should realy be padded
> > with blank spaces.
> > exten =>
> _X.,n,Set(CALLERID(name)=${CALLERID(name)}${BLANKS:${LEN(${CALLERID(name)})}})
> > ;the above just pads the CIDNAME with blanks so you know for sure it's
> > at least 15 char long, yes I know if the len of cidname is longer than
> > blanks then blah.....
> > exten =>
> _X.,n,Set(CALLERID(name)=${CALLERID(name):0:15}=TicketNum:1234)
> > ;this makes sure that it is not longer than 15 plus the ticketnumber.
> > exten => _X.,n,Voicemail(blah)
> > In voicemail.conf
> > emailsubject=${VM_CIDNAME:15}
> > If this should work then the subject should be: TicketNum:1234
> > emailbody=New voicemail from ${VM_CIDNAME:0:15} balh.
> >
> > Again, I'm not sure this will work, please test and report back.
> >
> > Thank you
> >
> > On 8/20/07, C F <shmaltz at gmail.com > wrote:
> > > While I don't have an answer on how to access channel variables from
> > > voicemail.conf, for the problem you mention this should help.
> > > Change CALLERID(name) to your ticket number and then use VM_CIDNAME in
> > > the subject line.
> > > If you don't want to lose the original CIDNAME then just add your
> > > ticket number like this:
> > > Set(CALLERID(name)=${CALLERID(name)}
> TICKETNUMBER:12345)
> > >
> > >
> > >
> > > On 8/20/07, 0xception <0xception at gmail.com> wrote:
> > > > Is there a way, other then recoding the entire voicemail application,
> to
> > > > pass dialplan variables to the voicemail application and to the email
> > > > notifications of new voicemail.
> > > >
> > > > For example in our small tech support queue i would like to pass the
> ticket
> > > > number with the email notification that a new support voicemail was
> left.
> > > > I've tried simply replacing the ${VM_WHATEVER} w/ the actual variable
> name
> > > > inside the voicemail.conf file, I've also tried setting the VM
> variables
> > > > directly before the voicemail application call in the dial plan...
> both of
> > > > these fail.
> > > >
> > > > Anyone else know of another way?
> > > >
> > > > _______________________________________________
> > > > --Bandwidth and Colocation Provided by http://www.api-digital.com--
> > > >
> > > > asterisk-users mailing list
> > > > To UNSUBSCRIBE or update options visit:
> > > >
> > > >
> http://lists.digium.com/mailman/listinfo/asterisk-users
> > > >
> > >
> >
> > _______________________________________________
> > --Bandwidth and Colocation Provided by http://www.api-digital.com--
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >
> http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>
> http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list