<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,&nbsp;<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.&nbsp;<br><br>Here is the function in astobj2.c wich give the error:&nbsp;<br><br>/*!&nbsp;<br>* \brief convert from a pointer _p to a user-defined object&nbsp;<br>*&nbsp;<br>* \return the pointer to the astobj2 structure&nbsp;<br>*/&nbsp;<br>static inline struct astobj2 *INTERNAL_OBJ(void *user_data)&nbsp;<br>{&nbsp;<br>struct astobj2 *p;&nbsp;<br><br>if (!user_data) {&nbsp;<br>ast_log(LOG_ERROR, "user_data is NULL\n");&nbsp;<br>return NULL;&nbsp;<br>}&nbsp;<br><br>p = (struct astobj2 *) ((char *) user_data - sizeof(*p));&nbsp;<br>if (AO2_MAGIC != (p-&gt;priv_data.magic) ) {&nbsp;<br>ast_log(LOG_ERROR, "bad magic number 0x%x for %p\n", p-&gt;priv_data.magic, p);&nbsp;<br>p = NULL;&nbsp;<br>}&nbsp;<br><br>return p;&nbsp;<br>}&nbsp;<br><br>Asterisk run on Mac osx ppc with Tiger&nbsp;</span></div></body></html>