RE: Leaving a conference when one is not entered in

"Julien Chavanton" <[email protected]>
Newsgroups gmane.comp.gnu.bayonne.devel
Message-ID <[email protected]>
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:[email protected]] 
Sent: April 11, 2005 4:40 PM
To: [email protected]
Cc: Julien Chavanton; [email protected]
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  
> <[email protected]> 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
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.