Summary: | ASTERISK-02044: generating unique string for sending emails | ||
Reporter: | Martin Vit (festr) | Labels: | |
Date Opened: | 2004-07-17 13:04:49 | Date Closed: | 2008-01-15 15:02:46.000-0600 |
Priority: | Trivial | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_voicemail |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | iv app_voicemail.cz is not unique ID as should be. For example, if you are getting voicemail to mailbox A, and you will turn option delete=yes, msgnum will be always 1 so the bound will be always same. This is problem for mail servers (duplicate ID will cause mark this mail as duplicate) /* Something unique. */ snprintf(bound, sizeof(bound), "voicemail_%d%s%d", msgnum, mailbox, getpid()); | ||
Comments: | By: Mark Spencer (markster) 2004-07-17 15:38:57 Okay, added a rand() argument. Should work better. By: Martin Vit (festr) 2004-07-18 16:42:41 the unique message ID is'nt still put in Message-ID: fprintf(p, "Message-ID: <Asterisk-%d-%s-%d@%s>\n", msgnum, mailbox, getpid(), host); what about generating unique string like this: /bin/date +%s By: Mark Spencer (markster) 2004-07-18 17:05:10 Okay, added rand() By: Digium Subversion (svnbot) 2008-01-15 15:02:46.000-0600 Repository: asterisk Revision: 3458 U trunk/apps/app_voicemail.c ------------------------------------------------------------------------ r3458 | markster | 2008-01-15 15:02:46 -0600 (Tue, 15 Jan 2008) | 2 lines Make bound more unique (bug ASTERISK-2044) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=3458 |