[asterisk-commits] rmudgett: trunk r354120 - in /trunk: ./ main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Feb 6 11:33:45 CST 2012


Author: rmudgett
Date: Mon Feb  6 11:33:41 2012
New Revision: 354120

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=354120
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
........

Merged revisions 354116 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 354119 from http://svn.asterisk.org/svn/asterisk/branches/10

Modified:
    trunk/   (props changed)
    trunk/main/features.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=354120&r1=354119&r2=354120
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Mon Feb  6 11:33:41 2012
@@ -5103,16 +5103,20 @@
 		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, ast_channel_name(pu->chan), ast_channel_name(chan),
+			"ConnectedLineName: %s\r\n"
+			"Uniqueid: %s\r\n",
+			pu->parkingexten, ast_channel_name(pu->chan), pu->parkinglot->name,
+			ast_channel_name(chan),
 			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>"),
+			ast_channel_uniqueid(pu->chan)
 			);
 
 		/* Stop entertaining the caller. */




More information about the asterisk-commits mailing list