summaryrefslogtreecommitdiff
path: root/channels/sip
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-06-07 22:47:13 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-06-07 22:47:13 +0000
commit8b790e4f06fd21412b8818c2d34fdaf0bc4eb70f (patch)
treecca1107f0cda53b4b33758f1a832c57dd27a2428 /channels/sip
parent0122ccd29ca5c3c5840143b55e58e6bb1d98793e (diff)
Mailbox list would previously grow at each reload, containing duplicates.
Also, optimize the allocation of mailboxes to avoid additional memory structures. (closes issue #16320) Reported by: Marquis Patches: 20100525__issue16320.diff.txt uploaded by tilghman (license 14) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@268817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sip')
-rw-r--r--channels/sip/include/sip.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/sip/include/sip.h b/channels/sip/include/sip.h
index 0ee377c32..9017d7e6b 100644
--- a/channels/sip/include/sip.h
+++ b/channels/sip/include/sip.h
@@ -1112,11 +1112,12 @@ struct sip_pkt {
* too much effort ...
*/
struct sip_mailbox {
- char *mailbox;
- char *context;
/*! Associated MWI subscription */
struct ast_event_sub *event_sub;
AST_LIST_ENTRY(sip_mailbox) entry;
+ unsigned int delme:1;
+ char *context;
+ char mailbox[2];
};
/*! \brief Structure for SIP peer data, we place calls to peers if registered or fixed IP address (host)