Re: [Asterisk-Users] RE: Asterisk problem

2003-12-18 Thread TC
> I have then downloaded newer version of the Asterisk about 10 days ago,
but
> then my Asterisk would start to crash on me, the module would just stop
> running by itself and I had to restart the Asterisk. Sometimes, it would
> just stop running, but 75% of the time, I would see this error message:
>
> Connected to Asterisk CVS-12/06/03-03:06:28 currently running on localhost
> (pid = 23720)
> -- Remote UNIX connection
> localhost*CLI> /usr/sbin/safe_asterisk: line 6: 23720 Segmentation fault
> asterisk ${ASTARGS} 1>&/dev/${TTY} connection_made -> if (!p->owner)

I beleive this is a race condition on the the channel, since the struc 'p'
is valid
but the channel appears to have vanished right after 'find_call'

do a back trace on the core file when it dumps, compare is to this

#0  connection_made (call_reference=1153301536) at chan_h323.c:1164
#1  0x44bd8c23 in
MyH323EndPoint::OnConnectionEstablished(H323Connection&, PString const&)
(this=0x8164878,
[EMAIL PROTECTED], [EMAIL PROTECTED]) at ast_h323.cpp:360
#2  0x4544bab1 in H323Connection::OnEstablished() () from
/usr/src/openh323/lib/libh323_linux_x86_r.so.1.12.2
#3  0x45453629 in H323Connection::InternalEstablishedConnectionCheck() ()
   from /usr/src/openh323/lib/libh323_linux_x86_r.so.1.12.2
#4  0x4544af0a in H323Connection::HandleSignalPDU(H323SignalPDU&) ()
   from /usr/src/openh323/lib/libh323_linux_x86_r.so.1.12.2
#5  0x4544aba2 in H323Connection::HandleSignallingChannel() () from
/usr/src/openh323/lib/libh323_linux_x86_r.so.1.12.2
#6  0x45457f45 in H225CallThread::Main() () from
/usr/src/openh323/lib/libh323_linux_x86_r.so.1.12.2
#7  0x44dfb3c4 in PThread::PX_ThreadStart(void*) () from
/usr/src/pwlib/lib/libpt_linux_x86_r.so.1.5.2
#8  0x400279e1 in pthread_start_thread () from /lib/i686/libpthread.so.0

void connection_made(unsigned call_reference)
{
struct ast_channel *c = NULL;
struct oh323_pvt *p = NULL;

p = find_call(call_reference);

if (!p)
ast_log(LOG_ERROR, "Something is wrong: connection\n");


if (!p->owner) {
printf("Channel has no owner\n");
return;
}
c = p->owner;

ast_setstate(c, AST_STATE_UP);
return;
}


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] RE: Asterisk problem

2003-12-17 Thread T. Chan
Dear All,

I am a new user of Asterisk interested in setting up a VOIP network based on
Asterisk. I have deployed a few Asterisk servers running on T400P and have
started a few weeks ago to run some LIVE traffic on one of the servers. Most
of my current traffic is via H323 to and from other carriers / customers and
I am using the H323 driver written by Jeremy of Nufone.

I have had problems with this, as it seems that as time goes, for instance
after 5 or 6 hours or sometimes 3 to 4 hours or less, the system would not
be able to take any incoming calls via H323 protocol. All the calls from my
H323 customers (they are mostly carriers sending traffic to me from other
gateways such as cisco AS5300) would be rejected and the system just would
not take the calls for some reasons. I could, however, call into the PRI
(Zap interface) and make an outbound H323 calls to other gateways of my
carriers. That is, incoming H323 calls would not work after a certain period
of operation time but outgoing H323 calls would still be possible.

I tried running the asterisk -vvvgcd in some cases in order to capture any
possible error messages and I was fortunate to be looking at it when it
started to fail once and have received twice this message on the screen:

ThreadID=0x001d4c25 assert.cxx(105) PWLib Assertion fail: Operating System
error, file tlibthrd.cxx, Line 644 Error=24

I have got this twice, one about 10 seconds after the other, and then I
tried calling into the system via H323 and it wouldn't take my calls. Ladies
and gentlemen,  do you have any idea what it is and how can I get rid of
this problem because it is doing it every like 2 to 6 hours and is killing
me.

I have then downloaded newer version of the Asterisk about 10 days ago, but
then my Asterisk would start to crash on me, the module would just stop
running by itself and I had to restart the Asterisk. Sometimes, it would
just stop running, but 75% of the time, I would see this error message:

Connected to Asterisk CVS-12/06/03-03:06:28 currently running on localhost
(pid = 23720)
-- Remote UNIX connection
localhost*CLI> /usr/sbin/safe_asterisk: line 6: 23720 Segmentation fault
asterisk ${ASTARGS} 1>&/dev/${TTY} &/dev/${TTY} http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003
 
<>