[asterisk-commits] pcadach: trunk r43573 - in /trunk/channels/h323: caps_h323.cxx caps_h323.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Sep 24 11:19:56 MST 2006


Author: pcadach
Date: Sun Sep 24 13:19:56 2006
New Revision: 43573

URL: http://svn.digium.com/view/asterisk?rev=43573&view=rev
Log:
Define Cisco RTP capability

Modified:
    trunk/channels/h323/caps_h323.cxx
    trunk/channels/h323/caps_h323.h

Modified: trunk/channels/h323/caps_h323.cxx
URL: http://svn.digium.com/view/asterisk/trunk/channels/h323/caps_h323.cxx?rev=43573&r1=43572&r2=43573&view=diff
==============================================================================
--- trunk/channels/h323/caps_h323.cxx (original)
+++ trunk/channels/h323/caps_h323.cxx Sun Sep 24 13:19:56 2006
@@ -344,3 +344,27 @@
 {
 	return PString(CISCO_G726r32);
 }
+
+/*
+ * Capability: Cisco RTP DTMF Relay
+ */
+AST_CiscoDtmfCapability::AST_CiscoDtmfCapability()
+	: H323NonStandardDataCapability(0, 181, 0, 18, (const BYTE *)"RtpDtmfRelay", 0)
+{
+	rtpPayloadType = (RTP_DataFrame::PayloadTypes)121;
+}
+
+PObject *AST_CiscoDtmfCapability::Clone() const
+{
+	return new AST_CiscoDtmfCapability(*this);
+}
+
+H323Codec *AST_CiscoDtmfCapability::CreateCodec(H323Codec::Direction direction) const
+{
+	return NULL;
+}
+
+PString AST_CiscoDtmfCapability::GetFormatName() const
+{
+	return PString(CISCO_DTMF_RELAY);
+}

Modified: trunk/channels/h323/caps_h323.h
URL: http://svn.digium.com/view/asterisk/trunk/channels/h323/caps_h323.h?rev=43573&r1=43572&r2=43573&view=diff
==============================================================================
--- trunk/channels/h323/caps_h323.h (original)
+++ trunk/channels/h323/caps_h323.h Sun Sep 24 13:19:56 2006
@@ -140,4 +140,33 @@
 	/* Get the name of the media data format this class represents. */
 	virtual PString GetFormatName() const;
 };
+
+#define CISCO_DTMF_RELAY "UserInput/RtpDtmfRelay"
+
+class AST_CiscoDtmfCapability : public H323NonStandardDataCapability
+{
+	PCLASSINFO(AST_CiscoDtmfCapability, H323NonStandardDataCapability);
+
+public:
+	/* Create a new Cisco RTP DTMF Relay capability */
+	AST_CiscoDtmfCapability();
+
+	/* Create a copy of the object. */	
+	virtual PObject *Clone() const;
+
+	/* Create the codec instance, allocating resources as required. */
+	virtual H323Codec * CreateCodec(H323Codec::Direction direction) const;
+
+	/* Get the name of the media data format this class represents. */
+	virtual PString GetFormatName() const;
+	
+	virtual H323Channel *CreateChannel(H323Connection &,
+										H323Channel::Directions,
+										unsigned,
+										const H245_H2250LogicalChannelParameters *) const
+	{
+		return NULL;
+	}
+};
+
 #endif /* __AST_H323CAPS_H */



More information about the asterisk-commits mailing list