[asterisk-bugs] [Asterisk 0012476]: AMI Agents command tries to access null pointer to cid.cid_num for agent user channel
noreply at bugs.digium.com
noreply at bugs.digium.com
Fri Apr 18 10:19:12 CDT 2008
The following issue has been ASSIGNED.
======================================================================
http://bugs.digium.com/view.php?id=12476
======================================================================
Reported By: davidw
Assigned To: russell
======================================================================
Project: Asterisk
Issue ID: 12476
Category: Channels/chan_agent
Reproducibility: sometimes
Severity: crash
Priority: normal
Status: assigned
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!): 114060
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 04-18-2008 10:15 CDT
Last Modified: 04-18-2008 10:19 CDT
======================================================================
Summary: AMI Agents command tries to access null pointer to
cid.cid_num for agent user channel
Description:
Our AMI client issued an AMI Agents query, which it does after getting a
Dial event. action_agents suffered a segmentation violation on:
1503 talkingtoChan =
ast_strdupa(ast_bridged_channel(p->owner)->cid
.cid_num);
Analysis of the dump indicates that it is almost certainly cid.cid_num on
the served channel that is the problem:
(gdb) print p->owner->_bridge.cid
$4 = {cid_dnid = 0x0, cid_num = 0x0, cid_name = 0x0, cid_ani = 0x0,
cid_rdnis = 0x0, cid_pres = 0, cid_ani2 = 0, cid_ton = 0, cid_tns = 0}
======================================================================
----------------------------------------------------------------------
svnbot - 04-18-08 10:19
----------------------------------------------------------------------
Repository: asterisk
Revision: 114248
U branches/1.4/channels/chan_agent.c
------------------------------------------------------------------------
r114248 | russell | 2008-04-18 10:19:05 -0500 (Fri, 18 Apr 2008) | 5 lines
Ensure that we don't ast_strdupa(NULL)
(closes issue http://bugs.digium.com/view.php?id=12476)
Reported by: davidw
Patch by me
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=114248
Issue History
Date Modified Username Field Change
======================================================================
04-18-08 10:19 svnbot Checkin
04-18-08 10:19 svnbot Note Added: 0085689
04-18-08 10:19 svnbot Status new => assigned
04-18-08 10:19 svnbot Assigned To => russell
======================================================================
More information about the asterisk-bugs
mailing list