[svn-commits] mmichelson: branch mmichelson/park_swap r395704 - in /team/mmichelson/park_sw...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jul 29 14:49:38 CDT 2013


Author: mmichelson
Date: Mon Jul 29 14:49:36 2013
New Revision: 395704

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=395704
Log:
Send a ParkedCallSwap event when the channel in a parking space changes.


Modified:
    team/mmichelson/park_swap/include/asterisk/parking.h
    team/mmichelson/park_swap/main/cel.c
    team/mmichelson/park_swap/res/parking/parking_bridge.c
    team/mmichelson/park_swap/res/parking/parking_manager.c

Modified: team/mmichelson/park_swap/include/asterisk/parking.h
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/park_swap/include/asterisk/parking.h?view=diff&rev=395704&r1=395703&r2=395704
==============================================================================
--- team/mmichelson/park_swap/include/asterisk/parking.h (original)
+++ team/mmichelson/park_swap/include/asterisk/parking.h Mon Jul 29 14:49:36 2013
@@ -37,6 +37,7 @@
 	PARKED_CALL_GIVEUP,
 	PARKED_CALL_UNPARKED,
 	PARKED_CALL_FAILED,
+	PARKED_CALL_SWAP,
 };
 
 /*!

Modified: team/mmichelson/park_swap/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/park_swap/main/cel.c?view=diff&rev=395704&r1=395703&r2=395704
==============================================================================
--- team/mmichelson/park_swap/main/cel.c (original)
+++ team/mmichelson/park_swap/main/cel.c Mon Jul 29 14:49:36 2013
@@ -1304,6 +1304,9 @@
 	case PARKED_CALL_FAILED:
 		reason = "ParkedCallFailed";
 		break;
+	case PARKED_CALL_SWAP:
+		reason = "ParkedCallSwap";
+		break;
 	}
 
 	extra = ast_json_pack("{s: s}", "reason", reason);

Modified: team/mmichelson/park_swap/res/parking/parking_bridge.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/park_swap/res/parking/parking_bridge.c?view=diff&rev=395704&r1=395703&r2=395704
==============================================================================
--- team/mmichelson/park_swap/res/parking/parking_bridge.c (original)
+++ team/mmichelson/park_swap/res/parking/parking_bridge.c Mon Jul 29 14:49:36 2013
@@ -254,6 +254,8 @@
 				ast_channel_name(bridge_channel->chan));
 		}
 
+		publish_parked_call(pu, PARKED_CALL_SWAP);
+
 		return 0;
 	}
 

Modified: team/mmichelson/park_swap/res/parking/parking_manager.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/park_swap/res/parking/parking_manager.c?view=diff&rev=395704&r1=395703&r2=395704
==============================================================================
--- team/mmichelson/park_swap/res/parking/parking_manager.c (original)
+++ team/mmichelson/park_swap/res/parking/parking_manager.c Mon Jul 29 14:49:36 2013
@@ -594,6 +594,9 @@
 	case PARKED_CALL_UNPARKED:
 		event_type = "UnParkedCall";
 		break;
+	case PARKED_CALL_SWAP:
+		event_type = "ParkedCallSwap";
+		break;
 	case PARKED_CALL_FAILED:
 		/* PARKED_CALL_FAILED doesn't currently get a message and is used exclusively for bridging */
 		return;




More information about the svn-commits mailing list