summaryrefslogtreecommitdiffstats
path: root/bindings/vs_2005/csharp/test
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/vs_2005/csharp/test')
-rw-r--r--bindings/vs_2005/csharp/test/Form1.Designer.cs137
-rw-r--r--bindings/vs_2005/csharp/test/Form1.cs245
-rw-r--r--bindings/vs_2005/csharp/test/Form1.resx120
-rw-r--r--bindings/vs_2005/csharp/test/Program.cs42
-rw-r--r--bindings/vs_2005/csharp/test/Properties/AssemblyInfo.cs33
-rw-r--r--bindings/vs_2005/csharp/test/Properties/Resources.Designer.cs71
-rw-r--r--bindings/vs_2005/csharp/test/Properties/Resources.resx117
-rw-r--r--bindings/vs_2005/csharp/test/Properties/Settings.Designer.cs30
-rw-r--r--bindings/vs_2005/csharp/test/Properties/Settings.settings7
-rw-r--r--bindings/vs_2005/csharp/test/test.csproj189
10 files changed, 991 insertions, 0 deletions
diff --git a/bindings/vs_2005/csharp/test/Form1.Designer.cs b/bindings/vs_2005/csharp/test/Form1.Designer.cs
new file mode 100644
index 0000000..deea482
--- /dev/null
+++ b/bindings/vs_2005/csharp/test/Form1.Designer.cs
@@ -0,0 +1,137 @@
+namespace test
+{
+ partial class Form1
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.buttonRegister = new System.Windows.Forms.Button();
+ this.buttonUnRegister = new System.Windows.Forms.Button();
+ this.textBoxDebug = new System.Windows.Forms.TextBox();
+ this.buttonPublish = new System.Windows.Forms.Button();
+ this.buttonUnPublish = new System.Windows.Forms.Button();
+ this.buttonUnSub = new System.Windows.Forms.Button();
+ this.buttonSub = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // buttonRegister
+ //
+ this.buttonRegister.Location = new System.Drawing.Point(12, 263);
+ this.buttonRegister.Name = "buttonRegister";
+ this.buttonRegister.Size = new System.Drawing.Size(75, 23);
+ this.buttonRegister.TabIndex = 0;
+ this.buttonRegister.Text = "Register";
+ this.buttonRegister.UseVisualStyleBackColor = true;
+ this.buttonRegister.Click += new System.EventHandler(this.buttonRegister_Click);
+ //
+ // buttonUnRegister
+ //
+ this.buttonUnRegister.Location = new System.Drawing.Point(199, 263);
+ this.buttonUnRegister.Name = "buttonUnRegister";
+ this.buttonUnRegister.Size = new System.Drawing.Size(75, 23);
+ this.buttonUnRegister.TabIndex = 1;
+ this.buttonUnRegister.Text = "UnRegister";
+ this.buttonUnRegister.UseVisualStyleBackColor = true;
+ this.buttonUnRegister.Click += new System.EventHandler(this.buttonUnRegister_Click);
+ //
+ // textBoxDebug
+ //
+ this.textBoxDebug.Location = new System.Drawing.Point(12, 292);
+ this.textBoxDebug.Multiline = true;
+ this.textBoxDebug.Name = "textBoxDebug";
+ this.textBoxDebug.Size = new System.Drawing.Size(262, 70);
+ this.textBoxDebug.TabIndex = 2;
+ //
+ // buttonPublish
+ //
+ this.buttonPublish.Location = new System.Drawing.Point(12, 234);
+ this.buttonPublish.Name = "buttonPublish";
+ this.buttonPublish.Size = new System.Drawing.Size(75, 23);
+ this.buttonPublish.TabIndex = 3;
+ this.buttonPublish.Text = "Publish";
+ this.buttonPublish.UseVisualStyleBackColor = true;
+ this.buttonPublish.Click += new System.EventHandler(this.buttonPublish_Click);
+ //
+ // buttonUnPublish
+ //
+ this.buttonUnPublish.Location = new System.Drawing.Point(199, 235);
+ this.buttonUnPublish.Name = "buttonUnPublish";
+ this.buttonUnPublish.Size = new System.Drawing.Size(75, 23);
+ this.buttonUnPublish.TabIndex = 4;
+ this.buttonUnPublish.Text = "UnPublish";
+ this.buttonUnPublish.UseVisualStyleBackColor = true;
+ this.buttonUnPublish.Click += new System.EventHandler(this.buttonUnPublish_Click);
+ //
+ // buttonUnSub
+ //
+ this.buttonUnSub.Location = new System.Drawing.Point(199, 206);
+ this.buttonUnSub.Name = "buttonUnSub";
+ this.buttonUnSub.Size = new System.Drawing.Size(75, 23);
+ this.buttonUnSub.TabIndex = 6;
+ this.buttonUnSub.Text = "UnSubscribe";
+ this.buttonUnSub.UseVisualStyleBackColor = true;
+ //
+ // buttonSub
+ //
+ this.buttonSub.Location = new System.Drawing.Point(12, 205);
+ this.buttonSub.Name = "buttonSub";
+ this.buttonSub.Size = new System.Drawing.Size(75, 23);
+ this.buttonSub.TabIndex = 5;
+ this.buttonSub.Text = "Subscribe";
+ this.buttonSub.UseVisualStyleBackColor = true;
+ this.buttonSub.Click += new System.EventHandler(this.buttonSub_Click);
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(286, 374);
+ this.Controls.Add(this.buttonUnSub);
+ this.Controls.Add(this.buttonSub);
+ this.Controls.Add(this.buttonUnPublish);
+ this.Controls.Add(this.buttonPublish);
+ this.Controls.Add(this.textBoxDebug);
+ this.Controls.Add(this.buttonUnRegister);
+ this.Controls.Add(this.buttonRegister);
+ this.Name = "Form1";
+ this.Text = "Form1";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button buttonRegister;
+ private System.Windows.Forms.Button buttonUnRegister;
+ private System.Windows.Forms.TextBox textBoxDebug;
+ private System.Windows.Forms.Button buttonPublish;
+ private System.Windows.Forms.Button buttonUnPublish;
+ private System.Windows.Forms.Button buttonUnSub;
+ private System.Windows.Forms.Button buttonSub;
+ }
+}
+
diff --git a/bindings/vs_2005/csharp/test/Form1.cs b/bindings/vs_2005/csharp/test/Form1.cs
new file mode 100644
index 0000000..06dd439
--- /dev/null
+++ b/bindings/vs_2005/csharp/test/Form1.cs
@@ -0,0 +1,245 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace test
+{
+ public partial class Form1 : Form
+ {
+ /*const String REALM = "ims.inexbee.com";
+ const String USER = "mamadou";
+ const String PASSWORD = "mamadou";
+ const String PROXY_CSCF_IP = "192.168.16.225";
+ const uint PROXY_CSCF_PORT = 4060;*/
+
+ const String REALM = "micromethod.com";
+ const String USER = "mamadou";
+ const String PASSWORD = "mamadou";
+ const String PROXY_CSCF_IP = "192.168.16.104";
+ const uint PROXY_CSCF_PORT = 5060;
+
+ RegistrationSession regSession = null;
+ PublicationSession pubSession = null;
+ SubscriptionSession subSession = null;
+ MyCallback callback = null;
+ SipStack stack = null;
+
+ public delegate void PrintDebug(String text);
+ public PrintDebug mydel;
+
+ const String PUBLISH_PAYLOAD = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
+"<presence xmlns:cp=\"urn:ietf:params:xml:ns:pidf:cipid\" xmlns:caps=\"urn:ietf:params:xml:ns:pidf:caps\" xmlns:rpid=\"urn:ietf:params:xml:ns:pidf:rpid\" xmlns:pdm=\"urn:ietf:params:xml:ns:pidf:data-model\" xmlns:p=\"urn:ietf:params:xml:ns:pidf-diff\" xmlns:op=\"urn:oma:xml:prs:pidf:oma-pres\" entity=\"sip:bob@ims.inexbee.com\" xmlns=\"urn:ietf:params:xml:ns:pidf\">" +
+ "<pdm:person id=\"RPVRYNJH\">" +
+ "<op:overriding-willingness>" +
+ "<op:basic>open</op:basic>" +
+ "</op:overriding-willingness>" +
+ "<rpid:activities>" +
+ "<rpid:busy />" +
+ "</rpid:activities>" +
+ "<rpid:mood>" +
+ "<rpid:guilty />" +
+ "</rpid:mood>" +
+ "<cp:homepage>http://doubango.org</cp:homepage>" +
+ "<pdm:note>Come share with me RCS Experience</pdm:note>" +
+ "</pdm:person>" +
+ "<pdm:device id=\"d0001\">" +
+ "<status>" +
+ "<basic>open</basic>" +
+ "</status>" +
+ "<caps:devcaps>" +
+ "<caps:mobility>" +
+ "<caps:supported>" +
+ "<caps:fixed />" +
+ "</caps:supported>" +
+ "</caps:mobility>" +
+ "</caps:devcaps>" +
+ "<op:network-availability>" +
+ "<op:network id=\"IMS\">" +
+ "<op:active />" +
+ "</op:network>" +
+ "</op:network-availability>" +
+ "<pdm:deviceID>urn:uuid:3ca50bcb-7a67-44f1-afd0-994a55f930f4</pdm:deviceID>" +
+ "</pdm:device>" +
+"</presence>";
+
+ public Form1()
+ {
+ InitializeComponent();
+
+ bool success;
+
+ mydel = new PrintDebug(PrintDebugMethod);
+
+ /* Create call back */
+ callback = new MyCallback(this);
+ /* Create and configure the IMS/LTE stack */
+ // stack = new SipStack(callback, String.Format("sip:{0}", REALM), String.Format("{0}@{1}", USER, REALM), String.Format("sip:{0}@{1}", USER, REALM));
+ stack = new SipStack(callback, String.Format("sip:{0}", REALM), String.Format("{0}@{1}", USER, REALM), String.Format("sip:{0}@{1}", USER, REALM));
+
+ if (!stack.isValid())
+ {
+ this.textBoxDebug.Text = "Invalid stack";
+ return;
+ }
+
+ stack.addHeader("Allow", "INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER");
+ stack.addHeader("Privacy", "header; id");
+ stack.addHeader("P-Access-Network-Info", "ADSL;utran-cell-id-3gpp=00000000");
+ stack.addHeader("User-Agent", "IM-client/OMA1.0 doubango/v1.0.0");
+
+ /* set password */
+ success = stack.setPassword(PASSWORD);
+ /* Sets Proxy-CSCF */
+ success = stack.setProxyCSCF(PROXY_CSCF_IP, PROXY_CSCF_PORT, "udp", "ipv4");
+ /* Starts the stack */
+ success = stack.start();
+ }
+
+ private void buttonRegister_Click(object sender, EventArgs e)
+ {
+ if (this.regSession == null)
+ {
+ this.regSession = new RegistrationSession(stack);
+ this.regSession.addCaps("+g.oma.sip-im");
+ this.regSession.addCaps("+g.3gpp.smsip");
+ this.regSession.addCaps("language", "\"en,fr\"");
+ this.regSession.setExpires(30);
+ }
+ this.regSession.Register();
+ }
+
+ private void buttonUnRegister_Click(object sender, EventArgs e)
+ {
+ if (this.regSession != null)
+ {
+ this.regSession.UnRegister();
+ }
+ }
+
+ private void buttonPublish_Click(object sender, EventArgs e)
+ {
+ if (this.pubSession == null)
+ {
+ this.pubSession = new PublicationSession(stack);
+ this.pubSession.addHeader("Content-Type", "application/pidf+xml");
+ this.pubSession.addHeader("Event", "presence");
+ this.pubSession.setExpires(30);
+
+ byte[] payload = Encoding.UTF8.GetBytes(PUBLISH_PAYLOAD);
+ this.pubSession.Publish(payload, (uint)payload.Length);
+ }
+ }
+
+ private void buttonUnPublish_Click(object sender, EventArgs e)
+ {
+ if (this.pubSession != null)
+ {
+ this.pubSession.UnPublish();
+ }
+ }
+
+ void PrintDebugMethod(String text)
+ {
+ this.textBoxDebug.Text = text;
+ }
+
+ private void buttonSub_Click(object sender, EventArgs e)
+ {
+ if (this.subSession == null)
+ {
+ this.subSession = new SubscriptionSession(stack);
+ this.subSession.addHeader("Accept", "application/reginfo+xml");
+ this.subSession.addHeader("Event", "reg");
+ this.subSession.setExpires(30);
+
+ this.subSession.Subscribe();
+ }
+ }
+ }
+
+
+
+
+
+ public class MyCallback : SipCallback
+ {
+ Form1 form;
+
+ public MyCallback(Form1 form)
+ : base()
+ {
+ this.form = form;
+ }
+
+ public override int OnRegistrationEvent(RegistrationEvent e)
+ {
+ short code = e.getCode();
+ tsip_register_event_type_t type = e.getType();
+ String text;
+
+ RegistrationSession session = e.getSession();
+
+ switch (type)
+ {
+ case tsip_register_event_type_t.tsip_i_register:
+ case tsip_register_event_type_t.tsip_ao_register:
+ case tsip_register_event_type_t.tsip_i_unregister:
+ case tsip_register_event_type_t.tsip_ao_unregister:
+ break;
+ }
+
+ text = String.Format("OnRegistrationChanged() ==> {0}:{1}", code, e.getPhrase());
+
+ if (this.form.InvokeRequired)
+ {
+ this.form.Invoke(this.form.mydel, new object[] { text });
+ }
+
+ return 0;
+ }
+
+ public override int OnSubscriptionEvent(SubscriptionEvent e)
+ {
+ switch (e.getType())
+ {
+ case tsip_subscribe_event_type_t.tsip_i_notify:
+ String ev = e.getSipMessage().getSipHeaderValue("Event");
+ Console.WriteLine("Event=%s", ev);
+ break;
+ default:
+ break;
+ }
+ return base.OnSubscriptionEvent(e);
+ }
+
+ public override int OnPublicationEvent(PublicationEvent e)
+ {
+ short code = e.getCode();
+ tsip_publish_event_type_t type = e.getType();
+ String text;
+
+ PublicationSession session = e.getSession();
+
+ switch (type){
+ default:
+ break;
+ }
+
+ text = String.Format("OnPublicationChanged() ==> {0}:{1}", code, e.getPhrase());
+
+ if (this.form.InvokeRequired)
+ {
+ this.form.Invoke(this.form.mydel, new object[] { text });
+ }
+
+ return 0;
+ }
+ }
+
+
+
+} \ No newline at end of file
diff --git a/bindings/vs_2005/csharp/test/Form1.resx b/bindings/vs_2005/csharp/test/Form1.resx
new file mode 100644
index 0000000..ff31a6d
--- /dev/null
+++ b/bindings/vs_2005/csharp/test/Form1.resx
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root> \ No newline at end of file
diff --git a/bindings/vs_2005/csharp/test/Program.cs b/bindings/vs_2005/csharp/test/Program.cs
new file mode 100644
index 0000000..fdb9a10
--- /dev/null
+++ b/bindings/vs_2005/csharp/test/Program.cs
@@ -0,0 +1,42 @@
+/*
+* Copyright (C) 2009 Mamadou Diop.
+*
+* Contact: Mamadou Diop <diopmamadou@doubango.org>
+*
+* This file is part of Open Source Doubango Framework.
+*
+* DOUBANGO is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* DOUBANGO is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with DOUBANGO.
+*
+*/
+
+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+
+namespace test
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new Form1());
+ }
+ }
+} \ No newline at end of file
diff --git a/bindings/vs_2005/csharp/test/Properties/AssemblyInfo.cs b/bindings/vs_2005/csharp/test/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..a2f5b5f
--- /dev/null
+++ b/bindings/vs_2005/csharp/test/Properties/AssemblyInfo.cs
@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("test")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Inexbee")]
+[assembly: AssemblyProduct("test")]
+[assembly: AssemblyCopyright("Copyright © Inexbee 2010")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a92d8157-6c95-44ef-a64a-0c4dd0c40345")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/bindings/vs_2005/csharp/test/Properties/Resources.Designer.cs b/bindings/vs_2005/csharp/test/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..e39d81e
--- /dev/null
+++ b/bindings/vs_2005/csharp/test/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3603
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace test.Properties
+{
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("test.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/bindings/vs_2005/csharp/test/Properties/Resources.resx b/bindings/vs_2005/csharp/test/Properties/Resources.resx
new file mode 100644
index 0000000..ffecec8
--- /dev/null
+++ b/bindings/vs_2005/csharp/test/Properties/Resources.resx
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root> \ No newline at end of file
diff --git a/bindings/vs_2005/csharp/test/Properties/Settings.Designer.cs b/bindings/vs_2005/csharp/test/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..40fe451
--- /dev/null
+++ b/bindings/vs_2005/csharp/test/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3603
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace test.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/bindings/vs_2005/csharp/test/Properties/Settings.settings b/bindings/vs_2005/csharp/test/Properties/Settings.settings
new file mode 100644
index 0000000..abf36c5
--- /dev/null
+++ b/bindings/vs_2005/csharp/test/Properties/Settings.settings
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
diff --git a/bindings/vs_2005/csharp/test/test.csproj b/bindings/vs_2005/csharp/test/test.csproj
new file mode 100644
index 0000000..9b59aa2
--- /dev/null
+++ b/bindings/vs_2005/csharp/test/test.csproj
@@ -0,0 +1,189 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{F7834906-DC12-4FA4-9722-2F110F815266}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>test</RootNamespace>
+ <AssemblyName>test</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\..\..\csharp\CallEvent.cs">
+ <Link>CallEvent.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\CallSession.cs">
+ <Link>CallSession.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\DDebugCallback.cs">
+ <Link>DDebugCallback.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\DialogEvent.cs">
+ <Link>DialogEvent.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\MessagingEvent.cs">
+ <Link>MessagingEvent.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\MessagingSession.cs">
+ <Link>MessagingSession.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\OptionsEvent.cs">
+ <Link>OptionsEvent.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\OptionsSession.cs">
+ <Link>OptionsSession.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\ProxyAudioConsumer.cs">
+ <Link>ProxyAudioConsumer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\ProxyAudioProducer.cs">
+ <Link>ProxyAudioProducer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\ProxyVideoConsumer.cs">
+ <Link>ProxyVideoConsumer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\ProxyVideoFrame.cs">
+ <Link>ProxyVideoFrame.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\ProxyVideoProducer.cs">
+ <Link>ProxyVideoProducer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\PublicationEvent.cs">
+ <Link>PublicationEvent.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\PublicationSession.cs">
+ <Link>PublicationSession.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\RegistrationEvent.cs">
+ <Link>RegistrationEvent.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\RegistrationSession.cs">
+ <Link>RegistrationSession.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\SafeObject.cs">
+ <Link>SafeObject.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\SipCallback.cs">
+ <Link>SipCallback.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\SipEvent.cs">
+ <Link>SipEvent.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\SipMessage.cs">
+ <Link>SipMessage.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\SipSession.cs">
+ <Link>SipSession.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\SipStack.cs">
+ <Link>SipStack.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\SipUri.cs">
+ <Link>SipUri.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\StackEvent.cs">
+ <Link>StackEvent.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\SubscriptionEvent.cs">
+ <Link>SubscriptionEvent.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\SubscriptionSession.cs">
+ <Link>SubscriptionSession.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\tinyWRAP.cs">
+ <Link>tinyWRAP.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\tinyWRAPPINVOKE.cs">
+ <Link>tinyWRAPPINVOKE.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\tmedia_chroma_t.cs">
+ <Link>tmedia_chroma_t.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\tsip_event_type_t.cs">
+ <Link>tsip_event_type_t.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\tsip_invite_event_type_t.cs">
+ <Link>tsip_invite_event_type_t.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\tsip_message_event_type_t.cs">
+ <Link>tsip_message_event_type_t.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\tsip_options_event_type_t.cs">
+ <Link>tsip_options_event_type_t.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\tsip_publish_event_type_t.cs">
+ <Link>tsip_publish_event_type_t.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\tsip_register_event_type_t.cs">
+ <Link>tsip_register_event_type_t.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\csharp\tsip_subscribe_event_type_t.cs">
+ <Link>tsip_subscribe_event_type_t.cs</Link>
+ </Compile>
+ <Compile Include="Form1.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Form1.Designer.cs">
+ <DependentUpon>Form1.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="Form1.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>Form1.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project> \ No newline at end of file
OpenPOWER on IntegriCloud