Mailbox list would previously grow at each reload, containing duplicates.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 7 Jun 2010 22:47:13 +0000 (22:47 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 7 Jun 2010 22:47:13 +0000 (22:47 +0000)
commit8b790e4f06fd21412b8818c2d34fdaf0bc4eb70f
treecca1107f0cda53b4b33758f1a832c57dd27a2428
parent0122ccd29ca5c3c5840143b55e58e6bb1d98793e
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
channels/chan_sip.c
channels/sip/include/sip.h