[asterisk-bugs] [Asterisk 0011289]: Crash with IAX2 incoming call: Bad magic number
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Nov 19 07:55:23 CST 2007
The following issue has been ASSIGNED.
======================================================================
http://bugs.digium.com/view.php?id=11289
======================================================================
Reported By: csaigne
Assigned To: russell
======================================================================
Project: Asterisk
Issue ID: 11289
Category: Channels/chan_iax2
Reproducibility: always
Severity: crash
Priority: normal
Status: assigned
Asterisk Version: 1.4.13
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 11-19-2007 02:01 CST
Last Modified: 11-19-2007 07:55 CST
======================================================================
Summary: Crash with IAX2 incoming call: Bad magic number
Description:
I' running Asterisk on MacMini G4 with OSX 10.5.1.
It works very well with version 1.4.10
But since versions using astobj2.c file I have an error Bad magic number
when I receive a IAX call and Asterik quit.
I just test it with Asterisk 1.4.14 and it is the same.
Here is the function in astobj2.c wich get the error:
/*!
* \brief convert from a pointer _p to a user-defined object
*
* \return the pointer to the astobj2 structure
*/
static inline struct astobj2 *INTERNAL_OBJ(void *user_data)
{
struct astobj2 *p;
if (!user_data) {
ast_log(LOG_ERROR, "user_data is NULL\n");
return NULL;
}
p = (struct astobj2 *) ((char *) user_data - sizeof(*p));
if (AO2_MAGIC != (p->priv_data.magic) ) {
ast_log(LOG_ERROR, "bad magic number 0x%x for %p\n", p->priv_data.magic,
p);
p = NULL;
}
return p;
}
#####################################################
My iax.conf:
[general]
bandwidth=high
disallow=all
allow=alaw
alow=ulaw
allow=gsm
jitterbuffer=no
forcejitterbuffer=no
autokill=yes
[####]
type=friend
username=####
context=fromiax
[voiptalk]
type=peer
username=####
secret=####
host=iax5.voiptalk.org
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
11-19-07 07:55 file Status new => assigned
11-19-07 07:55 file Assigned To => russell
======================================================================
More information about the asterisk-bugs
mailing list