aboutsummaryrefslogtreecommitdiffstats
path: root/channels/sip/include
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-07 22:47:13 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-07 22:47:13 +0000
commit69f22ebd2d1951e8dff9bf195caccc07aa27c285 (patch)
treecca1107f0cda53b4b33758f1a832c57dd27a2428 /channels/sip/include
parent2384f564ed0958de7676963695df453561c3df31 (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: http://svn.digium.com/svn/asterisk/trunk@268817 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/sip/include')
-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)