[asterisk-bugs] [Asterisk 0011453]: FASTAGI disconnects all ssh sessions to PC when hangup occurs

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Dec 7 20:49:09 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11453 
====================================================================== 
Reported By:                alanmcmillan
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11453
Category:                   Resources/res_agi
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-03-2007 22:23 CST
Last Modified:              12-07-2007 20:49 CST
====================================================================== 
Summary:                    FASTAGI disconnects all ssh sessions to PC when
hangup occurs
Description: 
While using fastagi to control calls it is closing ssh sessions when the
agi session terminates. I will be logged in to asterisk via ssh and running
asterisk -r. Then we dump a file into the /var/spool/asterisk/outgoing
directory which dials an aleg then on answer dials a bleg and bridges the
call legs. Once the FASTAGI session terminates its control is disconnects
my asterisk -r ssh session completely from the PC.. happens on every call
and all connection to the PC are terminated.

Thanks in advance!

Alan
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0011488 LIBSS7 - AGI dropping ssh sessions runn...
====================================================================== 

---------------------------------------------------------------------- 
 alanmcmillan - 12-07-07 20:49  
---------------------------------------------------------------------- 
I have found the line (2211) in the code the kills all the ssh sessions..
IN RES_AGI.c
for (;;) {if (needhup) {
	needhup = 0;
	dead = 1;
	kill(pid, SIGHUP);  -----The PID is = -1 when it runs this line..
      }

If the PID runs as -1 it kills all SSh sessions... 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-07-07 20:49  alanmcmillan   Note Added: 0075080                          
======================================================================




More information about the asterisk-bugs mailing list