<div>Good morning,</div>
<div> </div>
<div>I have installed asterisk 1.2.4, asterisk ooh323c-0.4, ooh323-8.1.</div>
<div> </div>
<div>I have sveral CORE DUMPS, always on the same part:</div>
<div> </div>
<div>#0 0x4002994f in pthread_mutex_trylock () from /lib/libpthread.so.0<br>No symbol table info available.<br>#1 0x40674565 in ast_mutex_trylock () from /usr/lib/asterisk/modules/chan_ooh323.so<br>No symbol table info available.
<br>#2 0x4066fcfd in onCallEstablished () from /usr/lib/asterisk/modules/chan_ooh323.so<br>No symbol table info available.<br>#3 0x406855cc in ooOnSendMsg () from /usr/lib/asterisk/modules/chan_ooh323.so<br>No symbol table info available.
<br>#4 0x40684d5f in ooSendMsg () from /usr/lib/asterisk/modules/chan_ooh323.so<br>No symbol table info available.<br>#5 0x40683ea8 in ooProcessFDSETsAndTimers () from /usr/lib/asterisk/modules/chan_ooh323.so<br>No symbol table info available.
<br>#6 0x40684189 in ooMonitorChannels () from /usr/lib/asterisk/modules/chan_ooh323.so<br>No symbol table info available.<br>#7 0x40674588 in ooh323c_stack_thread () from /usr/lib/asterisk/modules/chan_ooh323.so<br>No symbol table info available.
<br>#8 0x4002954e in pthread_start_thread () from /lib/libpthread.so.0<br>No symbol table info available.<br>#9 0x401d5b8a in clone () from /lib/libc.so.6<br>No symbol table info available.<br> </div>
<div>Can someone help me out with this?</div>
<div> </div>
<div>I would like to try this code, in order to avoid the segmentation fault:</div>
<div> </div>
<div><font color="#0000ff" size="2">
<p>int</p></font><font size="2"> onCallEstablished(ooCallData *call)
<p>{</p>
<p></p></font><font color="#0000ff" size="2">struct</font><font size="2"> ooh323_pvt *p = NULL;
<p></p></font><font color="#0000ff" size="2">long</font><font size="2"> num=0;
<p></p></font><font color="#0000ff" size="2">if</font><font size="2">(gH323Debug)
<p>ast_verbose("--- onCallEstablished %s\n", call->callToken);</p>
<p>p = find_call(call);</p>
<p></p></font><font color="#0000ff" size="2">if</font><font size="2">(!p) {
<p>ast_log(LOG_ERROR, "Failed to find a matching call.\n");</p>
<p></p></font><font color="#0000ff" size="2">return</font><font size="2"> -1;
<p>}</p>
<p>ast_mutex_lock(&p->lock);</p>
<p></p></font><font color="#0000ff" size="2">if</font><font size="2"> (!p->owner) {
<p>ast_mutex_unlock(&p->lock);</p>
<p>ast_log(LOG_ERROR, "Channel has no owner\n");</p>
<p></p></font><font color="#0000ff" size="2">return</font><font size="2"> -1;
<p>}</p>
<p></p>
<p></p></font><font color="#0000ff" size="2">while</font><font size="2">(ast_mutex_trylock(&p->owner->lock))
<p>{</p>
<p>ast_log(LOG_DEBUG,"Failed to grab lock, trying again\n");</p>
<p>ast_mutex_unlock(&p->lock);</p>
<p>usleep(1);</p>
<p>ast_mutex_lock(&p->lock);</p>
<p>num++;</p>
<p></p></font><font color="#0000ff" size="2">if</font><font size="2"> (num > 80000) {
<p>ast_log(LOG_ERROR, "Waiting too long for channel lock\n");</p>
<p></p></font><font color="#0000ff" size="2">return</font><font size="2"> -1;
<p>}</p>
<p>} </p>
<p> </p>
<p>But i dont know if I am on the right path.....</p>
<p> </p>
<p>Can someone help me out please.</p>
<p> </p>
<p>Thanks,</p>
<p> </p>
<p>Wilmar</p></font></div>