<!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.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi. I am using #include to include a file in
extensions.conf. I have an agi perl script which modifies the #included
file and then forces an asterisk reload with 'system("asterisk -rx
reload")';</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>After the reload I use set_context,
set_extension and set_priority to tell asterisk where I want it to carry on from
which is line 2 of the following.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => *80,1,AGI(bla.pl,
${EXTEN})</FONT></DIV>
<DIV><FONT face=Arial size=2>exten =>
*80,2,Background(please_wait_while)</FONT></DIV>
<DIV><FONT face=Arial size=2>exten => *80,3,Hangup</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This works some of the time. However at other times
the sip channel remains active and somehow asterisk doesn't find its way to line
2 after the reload (although the reload still happens). So I don't get by
Background or Hangup being executed some of the time.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can anyone point me in some direction with how to
debug this intermittent behaviour further?</FONT></DIV>
<DIV><FONT face=Arial size=2>Does anyone know of any issues with an agi
script forcing a reload in this way?</FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>M</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>