mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-22 19:29:54 +00:00
some cases the cid is set back to NULL, alloc a new one if needed
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15380 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
592ba3bbe3
commit
a7c5217450
@ -564,6 +564,10 @@ static cid_data_t *do_lookup(switch_memory_pool_t *pool, switch_event_t *event,
|
|||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
if (!cid) {
|
||||||
|
cid = switch_core_alloc(pool, sizeof(cid_data_t));
|
||||||
|
switch_assert(cid);
|
||||||
|
}
|
||||||
/* append area if we can */
|
/* append area if we can */
|
||||||
if (!cid->area &&
|
if (!cid->area &&
|
||||||
!skipcitystate &&
|
!skipcitystate &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user