[asterisk-scf-commits] asterisk-scf/integration/slice.git branch "party-identification" created.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Mar 30 14:13:52 CDT 2011
branch "party-identification" has been created
at fefc9712692ad3e4db41c75d8469f8cf2e30d255 (commit)
- Log -----------------------------------------------------------------
commit fefc9712692ad3e4db41c75d8469f8cf2e30d255
Author: Joshua Colp <jcolp at digium.com>
Date: Wed Mar 30 16:01:20 2011 -0300
Add party identification slice file.
diff --git a/AsteriskSCF/SessionCommunications/PartyIdentificationIf.ice b/AsteriskSCF/SessionCommunications/PartyIdentificationIf.ice
new file mode 100644
index 0000000..9ee230b
--- /dev/null
+++ b/AsteriskSCF/SessionCommunications/PartyIdentificationIf.ice
@@ -0,0 +1,215 @@
+/*
+ * Asterisk SCF -- An open-source communications framework.
+ *
+ * Copyright (C) 2011, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk SCF project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE.txt file
+ * at the top of the source tree.
+ */
+
+#pragma once
+
+module AsteriskSCF
+{
+
+module SessionCommunications
+{
+
+module PartyIdentification
+{
+
+["suppress"]
+module V1
+{
+ /**
+ * String representation of the version of this interface
+ */
+ const string Version = "V1";
+
+ /**
+ * Base class for name part of party identification
+ */
+ class partyName
+ {
+ /**
+ * String representation of the name
+ */
+ string name;
+ };
+
+ /**
+ * ISDN derived class for name part of party identification
+ */
+ class isdnPartyName extends partyName
+ {
+ /**
+ * Q.931 Presentation-indicator and screening-indicator encoded fields
+ */
+ int presentation;
+ };
+
+ /**
+ * Base class for number part of party identification
+ */
+ class partyNumber
+ {
+ /**
+ * String representation of the number
+ */
+ string number;
+ };
+
+ /**
+ * ISDN derived class for number part of party identification
+ */
+ class isdnPartyNumber extends partyNumber
+ {
+ /**
+ * Q.931 Presentation-indicator and screening-indicator encoded fields
+ */
+ int presentation;
+
+ /**
+ * Q.931 Type-of-number and numbering-plan encoded fields
+ */
+ int plan;
+ };
+
+ /**
+ * Base class for combined identity of name and number
+ */
+ class partyId
+ {
+ /**
+ * Name of the party
+ */
+ partyName name;
+
+ /**
+ * Number of the party
+ */
+ partyNumber number;
+ };
+
+ /**
+ * Base class for dialed party information
+ */
+ class partyDialed
+ {
+ /**
+ * Number that was dialed
+ */
+ partyNumber number;
+ };
+
+ /**
+ * Base class for calling party information
+ */
+ class partyCaller
+ {
+ /**
+ * Identity of the caller
+ */
+ partyId id;
+ };
+
+ /**
+ * ISDN derived class for calling party information
+ */
+ class isdnPartyCaller extends partyCaller
+ {
+ /**
+ * ANI identity information
+ */
+ partyId ani;
+
+ /**
+ * ANI2 value
+ */
+ int ani2;
+ };
+
+ /**
+ * Derived class for connected line information, currently exactly like partyCaller
+ */
+ class partyConnectedLine extends partyCaller
+ {
+ };
+
+ /**
+ * Base class for redirecting information
+ */
+ class partyRedirecting
+ {
+ /**
+ * Party identification information for who the session is being redirected away from
+ */
+ partyId from;
+
+ /**
+ * Party identification information for who the session is being redirected to
+ */
+ partyId to;
+
+ /**
+ * Number of times the session has been redirected
+ */
+ int count;
+ };
+
+ /**
+ * Interface for party identification retrieval and setting
+ */
+ interface IdentificationManager
+ {
+ /**
+ * Method which retrieves caller party identification information
+ *
+ * @return Concrete class containing caller party information
+ *
+ * @see partyCaller
+ */
+ idempotent partyCaller getCaller();
+
+ /**
+ * Method which retrieves dialed party identification information
+ *
+ * @return Concrete class containing dialed party information
+ *
+ * @see partyDialed
+ */
+ idempotent partyDialed getDialed();
+
+ /**
+ * Method which updates connected line party information
+ *
+ * @param party Connected line party information
+ *
+ * @see partyConnectedLine
+ */
+ void updateConnectedLine(partyConnectedLine party);
+
+ /**
+ * Method which updates redirecting party information
+ *
+ * @param party Redirecting party information
+ *
+ * @see partyRedirecting
+ */
+ void updateRedirecting(partyRedirecting party);
+ };
+
+}; /* End of module V1 */
+
+}; /* End of module PartyIdentification */
+
+}; /* End of module SessionCommunications */
+
+}; /* End of module AsteriskSCF */
commit 5264bb1474a0b712b49fd4ea7c82890bdea007f2
Author: Joshua Colp <jcolp at digium.com>
Date: Thu Mar 10 18:36:40 2011 -0400
Add visitor usage to configuration interface.
diff --git a/AsteriskSCF/System/Component/ConfigurationIf.ice b/AsteriskSCF/System/Component/ConfigurationIf.ice
index 64397e2..1fed82f 100644
--- a/AsteriskSCF/System/Component/ConfigurationIf.ice
+++ b/AsteriskSCF/System/Component/ConfigurationIf.ice
@@ -29,11 +29,18 @@ module Configuration
module V1
{
/**
+ * Local visitor class for configuration items.
+ */
+ ["visitor"] local class ConfigurationItemVisitor
+ {
+ };
+
+ /**
* Generic configuration item class that can be extended by components.
*
* This essentially represents a single configurable aspect.
*/
- ["preserved"]
+ ["visitor:ConfigurationItemVisitor"]
class ConfigurationItem
{
/**
@@ -57,11 +64,18 @@ module V1
dictionary<string, ConfigurationItem> ConfigurationItemDict;
/**
+ * Local visitor class for configuration groups.
+ */
+ ["visitor"] local class ConfigurationGroupVisitor
+ {
+ };
+
+ /**
* Generic configuration group class that can be extended by components.
*
* This essentially represents a group of configurable items that configure a specific concept.
*/
- ["preserved"]
+ ["visitor:ConfigurationGroupVisitor"]
class ConfigurationGroup
{
/**
-----------------------------------------------------------------------
--
asterisk-scf/integration/slice.git
More information about the asterisk-scf-commits
mailing list