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