Summary: | ASTERISK-01944: [request] variables available in emailtitle | ||
Reporter: | randulo (randulo) | Labels: | |
Date Opened: | 2004-07-03 04:21:13 | Date Closed: | 2011-06-07 14:04:41 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_voicemail |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Desired effect: To have Subject: ${VM_CALLERID} (${VM_DUR}) for use with SMS by email | ||
Comments: | By: Mark Spencer (markster) 2004-07-03 19:01:05 It looks like it's already implemented. Am I missing something? By: randulo (randulo) 2004-07-04 00:59:37 This works emailtitle = Subject: [PBX] Message This doesn't (when uncommented) ;emailtitle = Subject: ${VM_CALLERID} ${VM_DUR} I would have thought this would be done but when I add them to emailtitle, I receive literally: From: pbx@mydomain Subject: ${VM_CALLERID} ${VM_DUR} The variable expansion in the email BODY still works. By: Mark Spencer (markster) 2004-07-04 13:08:52 Are you using CVS head? I'm looking and it looks like the code is there to make the substitution so I'm a little surprised to hear it doesn't... By: randulo (randulo) 2004-07-07 01:18:21 Asterisk CVS-HEAD-07/06/04-21:55:05 I see this in app_voicemail.c /* Prepare variables for substition in email body and subject */ and this if ((s=ast_variable_retrieve(cfg, "general", "emailtitle"))) strncpy(emailtitle,s,sizeof(emailtitle)-1); Yet I am not getting expansion in the subject. Have you actually seen it work? If so, something is obviously wrong with my make. edited on: 07-07-04 01:07 By: Mark Spencer (markster) 2004-07-07 08:52:50 The correct variable is "emailsubject" not "emailtitle". I'm not sure why emailtitle is even there. I'm tempted to drop it entirely except that somebody had to have a reason I suppose. Anyway confirm emailsubject is right so I can close it out. Thanks! By: randulo (randulo) 2004-07-07 10:15:12 Yeah, tried it, works no problem. I'm "pissed" that several people including you and me, wasted time on this. I think the "emailtitle" was on a wiki page. I thought the name was misleading anyway and wondered why it wasn't emailsubject in the firstplace. Maybe check the sample files (mine are old and heavily modified) to make sure the right name is in there. If I find the reference that misled me, I'll try to get it updated. apologies, please close r By: Malcolm Davenport (mdavenport) 2004-07-07 10:29:30 Closing per request. |