Index: UPGRADE.txt =================================================================== --- UPGRADE.txt (revision 257810) +++ UPGRADE.txt (working copy) @@ -75,6 +75,10 @@ OSPCALLED to OSPOUTCALLED OSPRESULTS to OSPDESTREMAILS +* Added to Manager Interface on Action Status elapsed time even when c->pbx is + null (usually bridged channel) to allow querying for elapsed time on channels + without checking each channel via manager. + From 1.6.1 to 1.6.2: * SIP no longer sends the 183 progress message for early media by Index: CHANGES =================================================================== --- CHANGES (revision 257810) +++ CHANGES (working copy) @@ -357,6 +357,9 @@ location than the first. * Added new event "JabberStatus" in the Jabber module to monitor buddies status. + * Added elapsed time even when c->pbx is null (usually bridged channel) to + allow querying for elapsed time on channels without checking each channel + via manager. Channel Event Logging --------------------- Index: main/manager.c =================================================================== --- main/manager.c (revision 257810) +++ main/manager.c (working copy) @@ -2973,10 +2973,12 @@ } else { bridge[0] = '\0'; } + + if (c->cdr) { + elapsed_seconds = now.tv_sec - c->cdr->start.tv_sec; + } + if (c->pbx) { - if (c->cdr) { - elapsed_seconds = now.tv_sec - c->cdr->start.tv_sec; - } astman_append(s, "Event: Status\r\n" "Privilege: Call\r\n" @@ -3011,6 +3013,7 @@ "CallerIDName: %s\r\n" "Account: %s\r\n" "State: %s\r\n" + "Seconds: %ld\r\n" "%s" "Uniqueid: %s\r\n" "%s" @@ -3019,7 +3022,7 @@ c->name, S_OR(c->cid.cid_num, ""), S_OR(c->cid.cid_name, ""), - c->accountcode, + c->accountcode, (long)elapsed_seconds, ast_state2str(c->_state), bridge, c->uniqueid, ast_str_buffer(str), idText); }