Set call duration -- written \$5 in callerid.conf -- until a

CONNECT occurs to 0 and not to the time elapsed since SETUP.  Now
the value 0 clearly indicates an unanswered call at HANGUP.  This
was reported by Rainer Dorsch on the isdn4linux mailinglist in
message <200404181436.48694.rdorsch@web.de> at 2004-04-18.
This commit is contained in:
Tobias Becker 2004-07-24 15:48:45 +00:00
parent 0995146686
commit ba064e5849
2 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,6 @@
2004-07-24 Tobias Becker <tobiasb@isdn4linux.de>
* start_prog.c (Get_Opts): The call duration \$5 is now 0 until
a CONNECT occurs.
* ChangeLog: Started this file.

View File

@ -20,6 +20,13 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log$
* Revision 1.18 2004/01/28 14:27:46 tobiasb
* Second step in restricting fds at isdnlog restart and script starting.
* The fd limit is now taken from getrlimit() instead of NR_OPEN.
* Close_Fds(first) which tries to close all possible fds is generally
* built in but the execution must be requested with "closefds=yes" in
* the parameterfile otherwise the isdnlog behaviour remains unchanged.
*
* Revision 1.17 2004/01/26 15:20:07 tobiasb
* First step to close all unnecessary open file descriptors before
* starting a start script as reaction to a call. The same applies to the
@ -1042,10 +1049,15 @@ char **Get_Opts(int chan, int event, int InOut)
else
Opts[3] = "";
/* .connect is time of SETUP before CONNECT */
if (call[chan].connect)
{
long Help = (long) (time(NULL) - call[chan].connect);
Opts[4] = ArgToChar(R_TYPE_LONG, &Help);
if (call[chan].dialog) {
long Help = (long) (time(NULL) - call[chan].connect);
Opts[4] = ArgToChar(R_TYPE_LONG, &Help);
}
else
Opts[4] = "0";
}
else
Opts[4] = "";