<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I don't understand the reasoning here so could
somebody please help me out?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>chan_h323 is causing a segmentation fault when
trying to connect a call.</FONT></DIV>
<DIV><FONT face=Arial size=2>I tracked the problem back to chan_h323.c in the
oh323_new() function.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the code is: tmp = ast_channel_alloc( 1
);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>After this point, tmp->pvt is not allocated
(null pointer).</FONT></DIV>
<DIV><FONT face=Arial size=2>HOWEVER, in the ast_channel_alloc() function right
before the statement: return tmp; tmp->pvt IS allocated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Now between the statements: return tmp; and tmp =
... the pvt structure is getting lost and the tmp->pvt point is set to
0.</FONT></DIV>
<DIV><FONT face=Arial size=2>Has anyone got a clue here? It doesn't make
any sense to me at all.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>John.</FONT></DIV></BODY></HTML>