From: Richard Mudgett Date: Mon, 6 Feb 2012 17:31:02 +0000 (+0000) Subject: Add missing headers to AMI UnParkedCall event to uniquely identify the call. X-Git-Tag: 10.3.0-rc1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3229952bc76a720dfae680a665394e46d45ce3f8;p=thirdparty%2Fasterisk.git Add missing headers to AMI UnParkedCall event to uniquely identify the call. The AMI UnParkedCall event was missing the Parkinglot and Uniqueid headers that the AMI ParkedCall event contains. (closes issue ASTERISK-19240) Reported by: Michael Yara ........ Merged revisions 354116 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@354119 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/features.c b/main/features.c index bfe80a1232..6724ebc97d 100644 --- a/main/features.c +++ b/main/features.c @@ -5085,16 +5085,19 @@ static int parked_call_exec(struct ast_channel *chan, const char *data) ast_manager_event(pu->chan, EVENT_FLAG_CALL, "UnParkedCall", "Exten: %s\r\n" "Channel: %s\r\n" + "Parkinglot: %s\r\n" "From: %s\r\n" "CallerIDNum: %s\r\n" "CallerIDName: %s\r\n" "ConnectedLineNum: %s\r\n" - "ConnectedLineName: %s\r\n", - pu->parkingexten, pu->chan->name, chan->name, + "ConnectedLineName: %s\r\n" + "Uniqueid: %s\r\n", + pu->parkingexten, pu->chan->name, pu->parkinglot->name, chan->name, S_COR(pu->chan->caller.id.number.valid, pu->chan->caller.id.number.str, ""), S_COR(pu->chan->caller.id.name.valid, pu->chan->caller.id.name.str, ""), S_COR(pu->chan->connected.id.number.valid, pu->chan->connected.id.number.str, ""), - S_COR(pu->chan->connected.id.name.valid, pu->chan->connected.id.name.str, "") + S_COR(pu->chan->connected.id.name.valid, pu->chan->connected.id.name.str, ""), + pu->chan->uniqueid ); /* Stop entertaining the caller. */