[asterisk-bugs] [Asterisk 0012362]: Asterisk crashes everytime i try to dial a realtime peer. e.g.DIAL(SIP/peer/number, 60, tTwW)
noreply at bugs.digium.com
noreply at bugs.digium.com
Thu Apr 3 11:27:12 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=12362
======================================================================
Reported By: vinsik
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 12362
Category: Channels/chan_sip/General
Reproducibility: always
Severity: crash
Priority: normal
Status: ready for testing
Asterisk Version: 1.4.19
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 04-03-2008 07:36 CDT
Last Modified: 04-03-2008 11:27 CDT
======================================================================
Summary: Asterisk crashes everytime i try to dial a realtime
peer. e.g.DIAL(SIP/peer/number,60,tTwW)
Description:
Asterisk crashes everytime i try to dial a realtime peer.
Command line output:
-- AGI Script Executing Application: (SET) Options:
(CDR(accountcode)=10000)
-- AGI Script Executing Application: (SET) Options:
(CALLERID(num)=123456)
-- AGI Script Executing Application: (DIAL) Options:
(SIP/roxser/123456|60|tTwW)
Disconnected from Asterisk server
Local realtime users work fine. Also all local CMD's work.
Cannot find an logical reason. Reverting back to 1.4.18, as it works ok.
Attached is GDB of asterisk process.
Asterisk debug does not reveal anything relevant.
======================================================================
----------------------------------------------------------------------
vinsik - 04-03-08 11:27
----------------------------------------------------------------------
i think the problem is here:
/* 1.4.18 - worked */
if (!strcasecmp(var->name, "host")) {
struct in_addr sin2;
struct ast_dnsmgr_entry *dnsmgr = NULL;
memset(&sin2, 0, sizeof(sin2));
if ((ast_dnsmgr_lookup(tmp->value, &sin2, &dnsmgr) < 0) || (memcmp(&sin2,
&sin->sin_addr, sizeof(sin2)) != 0)) {
/* 1.4.19 - seg.faults when sin=0x0 */
if (!strcasecmp(tmp->name, "host")) {
struct hostent *hp;
struct ast_hostent ahp;
if (!(hp = ast_gethostbyname(tmp->value, &ahp)) || (memcmp(&hp->h_addr,
&sin->sin_addr, sizeof(hp->h_addr)))) {
Issue History
Date Modified Username Field Change
======================================================================
04-03-08 11:27 vinsik Note Added: 0084999
======================================================================
More information about the asterisk-bugs
mailing list