<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, <div>I guess it's not the right place to post this, but i got no response on users forum.</div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-style-span" style="font-family: Verdana; line-height: 18px; ">With latest versions of asterisk using astobj2.c file I have an error Bad magic number when I receive a IAX call and Asterik quit.</span></div><div><span class="Apple-style-span" style="font-family: Verdana; line-height: 18px; ">All works fine in 1.4.10 version. <br><br>Here is the function in astobj2.c wich give the error: <br><br>/*! <br>* \brief convert from a pointer _p to a user-defined object <br>* <br>* \return the pointer to the astobj2 structure <br>*/ <br>static inline struct astobj2 *INTERNAL_OBJ(void *user_data) <br>{ <br>struct astobj2 *p; <br><br>if (!user_data) { <br>ast_log(LOG_ERROR, "user_data is NULL\n"); <br>return NULL; <br>} <br><br>p = (struct astobj2 *) ((char *) user_data - sizeof(*p)); <br>if (AO2_MAGIC != (p->priv_data.magic) ) { <br>ast_log(LOG_ERROR, "bad magic number 0x%x for %p\n", p->priv_data.magic, p); <br>p = NULL; <br>} <br><br>return p; <br>} <br><br>Asterisk run on Mac osx ppc with Tiger </span></div></body></html>