From: Richard Mudgett Date: Mon, 6 Feb 2012 17:28:05 +0000 (+0000) Subject: Add missing headers to AMI UnParkedCall event to uniquely identify the call. X-Git-Tag: 1.8.11.0-rc1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=294793a8223aff09ffe9e1cdbd51a415ad475e23;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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@354116 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/features.c b/main/features.c index 76e396d99c..776a56baa0 100644 --- a/main/features.c +++ b/main/features.c @@ -5070,16 +5070,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. */