[asterisk-commits] rmudgett: branch 1.8 r354116 - /branches/1.8/main/features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Feb 6 11:28:08 CST 2012
Author: rmudgett
Date: Mon Feb 6 11:28:05 2012
New Revision: 354116
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=354116
Log:
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
Modified:
branches/1.8/main/features.c
Modified: branches/1.8/main/features.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/features.c?view=diff&rev=354116&r1=354115&r2=354116
==============================================================================
--- branches/1.8/main/features.c (original)
+++ branches/1.8/main/features.c Mon Feb 6 11:28:05 2012
@@ -5070,16 +5070,19 @@
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, "<unknown>"),
S_COR(pu->chan->caller.id.name.valid, pu->chan->caller.id.name.str, "<unknown>"),
S_COR(pu->chan->connected.id.number.valid, pu->chan->connected.id.number.str, "<unknown>"),
- S_COR(pu->chan->connected.id.name.valid, pu->chan->connected.id.name.str, "<unknown>")
+ S_COR(pu->chan->connected.id.name.valid, pu->chan->connected.id.name.str, "<unknown>"),
+ pu->chan->uniqueid
);
/* Stop entertaining the caller. */
More information about the asterisk-commits
mailing list