[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Bayonne-devel] Leaving a conference when one is not entered in
From: |
Julien Chavanton |
Subject: |
RE: [Bayonne-devel] Leaving a conference when one is not entered in |
Date: |
Mon, 11 Apr 2005 16:47:00 -0400 |
Not sure to understand exactly, I always put exit at the end of every sub.
Here is a sample script:
# # # # # # # # # # # # # # # # # # # # # # # #
set %confname %pstn.dnid
conference.enter name=%confname attr=periodicTone
slog.crit "Entering conference: %confname"
sleep 9999
conference.leave name=%confname
hangup
exit
^hangup
conference.leave name=%confname
exit
# # # # # # # # # # # # # # # # # # # # # # # #
-----Original Message-----
From: David Sugar [mailto:address@hidden
Sent: April 11, 2005 4:40 PM
To: address@hidden
Cc: Julien Chavanton; address@hidden
Subject: Re: [Bayonne-devel] Leaving a conference when one is not entered in
When you hangup/exit a script, at least, if it's caused by exiting the
bottom of a script, the current line record is NULL. Step follows the
link list until it finds a NULL line record, and then triggers the exit.
If the server is not yet exiting, it will try the ^hangup and/or exit
script. If it is already exiting, then it goes to the hangup state,
with the current line record as NULL. Is this what is happening?
Etoile Dièse wrote:
> Le Mon, 11 Apr 2005 15:08:23 -0400, Julien Chavanton
> <address@hidden> a écrit:
>
>> Hi,
>>
>> The description of the bug was not correct.
>>
>> I did revert to the code I have made for conference and at the end I
>> encounter the same problem.
>>
>> It seem that after hangup we must avoid using certain function call
>> or obect instantiation, because sometime it fail with a segfault, not
>> sure if it is the instantiation of "Line" or the "getscript()"
>> function but the problem is there:
>>
>
> David, what do you think ?
> When hangup occurs, is it a problem to use getscript() ?
>
> Julien, have you tried to check the getScript() return value ?
> (I mean, are you sure of the place where the segfault occurs ? I have
> already
> seen some "segfaulted" programs that were not producing the last trace
> before the crash...)
>
> Maybe it's line->argc that crashes ?
>
> FdR/ED
>
>