[asterisk-commits] mvanbaak: branch mvanbaak/skinny-tranfer r122495 - /team/mvanbaak/skinny-tran...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 13 06:24:11 CDT 2008


Author: mvanbaak
Date: Fri Jun 13 06:24:11 2008
New Revision: 122495

URL: http://svn.digium.com/view/asterisk?view=rev&rev=122495
Log: (empty)

Modified:
    team/mvanbaak/skinny-tranfer/channels/chan_skinny.c

Modified: team/mvanbaak/skinny-tranfer/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/team/mvanbaak/skinny-tranfer/channels/chan_skinny.c?view=diff&rev=122495&r1=122494&r2=122495
==============================================================================
--- team/mvanbaak/skinny-tranfer/channels/chan_skinny.c (original)
+++ team/mvanbaak/skinny-tranfer/channels/chan_skinny.c Fri Jun 13 06:24:11 2008
@@ -4566,9 +4566,25 @@
 		}
 		break;
 	case STIMULUS_CALLPARK:
+		{
+		int extout;
+		char message[32];
+
 		if (skinnydebug)
 			ast_verb(1, "Received Stimulus: Park Call(%d/%d)\n", instance, callreference);
-		/* XXX Park the call */
+
+		if ((sub && sub->owner) && (sub->owner->_state ==  AST_STATE_UP)){
+			c = sub->owner;
+			if (!ast_masq_park_call(ast_bridged_channel(c) , c, 0, &extout)) {
+				snprintf(message, sizeof(message), "Call Parked at: %d", extout);
+				transmit_displaynotify(s, message, 10);
+			} else {
+				transmit_displaynotify(s, "Call Park failed", 10);
+			}
+		} else {
+			transmit_displaynotify(s, "Call Park not available", 10);
+		}
+		}
 		break;
 	case STIMULUS_DND:
 		if (skinnydebug)
@@ -5645,9 +5661,25 @@
 		/* XXX determine the best way to pull off a conference.  Meetme? */
 		break;
 	case SOFTKEY_PARK:
+		{
+		int extout;
+		char message[32];
+
 		if (skinnydebug)
 			ast_verb(1, "Received Softkey Event: Park Call(%d/%d)\n", instance, callreference);
-		/* XXX Park the call */
+
+		if ((sub && sub->owner) && (sub->owner->_state ==  AST_STATE_UP)){
+			c = sub->owner;
+			if (!ast_masq_park_call(ast_bridged_channel(c) , c, 0, &extout)) {
+				snprintf(message, sizeof(message), "Call Parked at: %d", extout);
+				transmit_displaynotify(s, message, 10);
+			} else {
+				transmit_displaynotify(s, "Call Park failed", 10);
+			}
+		} else {
+			transmit_displaynotify(s, "Call Park not available", 10);
+		}
+		}
 		break;
 	case SOFTKEY_JOIN:
 		if (skinnydebug)




More information about the asterisk-commits mailing list