Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch-contrib
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch-contrib
Commits
11ba2f64
提交
11ba2f64
authored
2月 08, 2011
作者:
Mitch Capper
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Sample Embedded Freeswitch Client
上级
5a989719
隐藏空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
652 行增加
和
0 行删除
+652
-0
App.xaml
mitchcapper/SampleClient/App.xaml
+8
-0
App.xaml.cs
mitchcapper/SampleClient/App.xaml.cs
+14
-0
FSSampleEmbeddedClient.zip
mitchcapper/SampleClient/FSSampleEmbeddedClient.zip
+0
-0
MainWindow.xaml
mitchcapper/SampleClient/MainWindow.xaml
+15
-0
MainWindow.xaml.cs
mitchcapper/SampleClient/MainWindow.xaml.cs
+115
-0
AssemblyInfo.cs
mitchcapper/SampleClient/Properties/AssemblyInfo.cs
+55
-0
Resources.Designer.cs
mitchcapper/SampleClient/Properties/Resources.Designer.cs
+62
-0
Resources.resx
mitchcapper/SampleClient/Properties/Resources.resx
+117
-0
Settings.Designer.cs
mitchcapper/SampleClient/Properties/Settings.Designer.cs
+26
-0
Settings.settings
mitchcapper/SampleClient/Properties/Settings.settings
+7
-0
SampleClient.csproj
mitchcapper/SampleClient/SampleClient.csproj
+106
-0
SampleClient.sln
mitchcapper/SampleClient/SampleClient.sln
+20
-0
freeswitch.xml
mitchcapper/SampleClient/bin/Debug/conf/freeswitch.xml
+84
-0
files_needed_here.txt
mitchcapper/SampleClient/bin/Debug/files_needed_here.txt
+11
-0
files_needed_here.txt
mitchcapper/SampleClient/bin/Debug/mod/files_needed_here.txt
+12
-0
没有找到文件。
mitchcapper/SampleClient/App.xaml
0 → 100644
浏览文件 @
11ba2f64
<Application x:Class="SampleClient.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
mitchcapper/SampleClient/App.xaml.cs
0 → 100644
浏览文件 @
11ba2f64
using
System
;
using
System.Collections.Generic
;
using
System.Configuration
;
using
System.Data
;
using
System.Linq
;
using
System.Windows
;
namespace
SampleClient
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public
partial
class
App
:
Application
{
}
}
mitchcapper/SampleClient/FSSampleEmbeddedClient.zip
0 → 100644
浏览文件 @
11ba2f64
File added
mitchcapper/SampleClient/MainWindow.xaml
0 → 100644
浏览文件 @
11ba2f64
<Window x:Class="SampleClient.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="SampleClient" Height="237" Width="450" Closing="Window_Closing">
<Canvas>
<Button Canvas.Left="234" Canvas.Top="36" Content="Make Call" Height="23" Name="btnCall" Width="75" Click="btnCall_Click" IsEnabled="False" />
<Button Canvas.Left="323" Canvas.Top="36" Content="End Call" Height="23" Name="btnEnd" Width="75" Click="btnEnd_Click" IsEnabled="False" />
<TextBox Canvas.Left="81" Canvas.Top="36" Height="23" Name="txtNumber" Width="140" Text="9198" />
<TextBlock Canvas.Left="25" Canvas.Top="39" Height="23" Name="textBlock1" Text="Number:" FontWeight="Bold" />
<Button Canvas.Left="120" Canvas.Top="6" Height="23" Name="btnStartFreeswitch" Width="175" Content="Start Freeswitch Core" Click="btnStartFreeswitch_Click" />
<ScrollViewer Canvas.Left="19" Canvas.Top="65" Height="123" Width="388">
<TextBlock Name="blockConsole" Text="Events" />
</ScrollViewer>
</Canvas>
</Window>
mitchcapper/SampleClient/MainWindow.xaml.cs
0 → 100644
浏览文件 @
11ba2f64
using
System
;
using
System.Windows
;
using
FreeSWITCH.Native
;
namespace
SampleClient
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public
partial
class
MainWindow
:
Window
{
public
MainWindow
()
{
InitializeComponent
();
del
=
new
EventDelegate
(
actual_event_handler
);
}
private
const
String
sip_server
=
"127.0.0.1"
;
private
const
String
sip_port
=
"5060"
;
private
const
String
sip_user
=
"1001"
;
private
const
String
sip_password
=
"1234"
;
private
void
btnCall_Click
(
object
sender
,
RoutedEventArgs
e
){
api_exec
(
"pa"
,
"call sofia/gateway/1/"
+
txtNumber
.
Text
);
}
private
void
btnEnd_Click
(
object
sender
,
RoutedEventArgs
e
)
{
api_exec
(
"pa"
,
"hangup"
);
}
public
string
api_exec
(
String
cmd
,
String
args
)
{
if
(
API
==
null
)
API
=
new
Api
();
return
API
.
Execute
(
cmd
,
args
);
}
private
Api
API
;
private
IDisposable
search_bind
;
private
IDisposable
event_bind
;
private
void
fs_core_end
(){
freeswitch
.
switch_core_destroy
();
}
private
void
Window_Closing
(
object
sender
,
System
.
ComponentModel
.
CancelEventArgs
e
)
{
if
(!
btnStartFreeswitch
.
IsEnabled
)
fs_core_end
();
}
private
void
fs_core_init
()
{
String
err
=
""
;
const
uint
flags
=
(
uint
)(
switch_core_flag_enum_t
.
SCF_USE_SQL
|
switch_core_flag_enum_t
.
SCF_USE_AUTO_NAT
);
freeswitch
.
switch_core_set_globals
();
/*Next 3 lines only needed if you want to bind to the initial event or xml config search loops */
freeswitch
.
switch_core_init
(
flags
,
switch_bool_t
.
SWITCH_FALSE
,
ref
err
);
search_bind
=
FreeSWITCH
.
SwitchXmlSearchBinding
.
Bind
(
xml_search
,
switch_xml_section_enum_t
.
SWITCH_XML_SECTION_CONFIG
);
event_bind
=
FreeSWITCH
.
EventBinding
.
Bind
(
"SampleClient"
,
switch_event_types_t
.
SWITCH_EVENT_ALL
,
null
,
event_handler
,
true
);
/* End Optional Lines */
freeswitch
.
switch_core_init_and_modload
(
flags
,
switch_bool_t
.
SWITCH_FALSE
,
ref
err
);
}
private
EventDelegate
del
;
private
void
event_handler
(
FreeSWITCH
.
EventBinding
.
EventBindingArgs
args
){
Dispatcher
.
BeginInvoke
(
del
,
new
object
[]{
args
.
EventObj
});
}
private
delegate
void
EventDelegate
(
switch_event
evt
);
private
void
actual_event_handler
(
switch_event
evt
){
if
(
evt
.
event_id
==
switch_event_types_t
.
SWITCH_EVENT_MODULE_LOAD
)
return
;
if
(
evt
.
event_id
==
switch_event_types_t
.
SWITCH_EVENT_CUSTOM
&&
evt
.
subclass_name
==
"sofia::gateway_state"
)
blockConsole
.
Text
=
"Sofia Gateway State: "
+
freeswitch
.
switch_event_get_header
(
evt
,
"State"
)
+
"\r\n"
+
blockConsole
.
Text
;
else
blockConsole
.
Text
=
"Event "
+
evt
.
event_id
+
"\r\n"
+
blockConsole
.
Text
;
}
private
void
btnStartFreeswitch_Click
(
object
sender
,
RoutedEventArgs
e
){
btnStartFreeswitch
.
IsEnabled
=
false
;
fs_core_init
();
btnEnd
.
IsEnabled
=
btnCall
.
IsEnabled
=
true
;
}
private
string
xml_search
(
FreeSWITCH
.
SwitchXmlSearchBinding
.
XmlBindingArgs
args
){
if
(
args
.
KeyName
!=
"name"
||
args
.
Section
!=
"configuration"
||
args
.
TagName
!=
"configuration"
||
args
.
KeyValue
!=
"sofia.conf"
)
return
null
;
String
config
=
sofia_config
;
config
=
config
.
Replace
(
"SIP_SERVER"
,
sip_server
+
":"
+
sip_port
);
config
=
config
.
Replace
(
"SIP_USERNAME"
,
sip_user
);
config
=
config
.
Replace
(
"SIP_PASSWORD"
,
sip_password
);
return
config
;
}
private
const
string
sofia_config
=
@"<document type='freeswitch/xml'>
<section name='configuration'>
<configuration name='sofia.conf' description='Sofia Endpoint'>
<profiles>
<profile name='softphone'>
<gateways>
<gateway name='1'>
<param name='realm' value='SIP_SERVER' />
<param name='username' value='SIP_USERNAME' />
<param name='password' value='SIP_PASSWORD' />
</gateway>
</gateways>
<settings>
<param name='context' value='public' />
<param name='dialplan' value='xml' />
<param name='codec-prefs' value='PCMA,GSM,PCMU' />
<param name='inbound-codec-negotiation' value='generous' />
<param name='sip-port' value='12344' />
</settings>
</profile>
</profiles>
</configuration>
</section>
</document>"
;
}
}
mitchcapper/SampleClient/Properties/AssemblyInfo.cs
0 → 100644
浏览文件 @
11ba2f64
using
System.Reflection
;
using
System.Resources
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.InteropServices
;
using
System.Windows
;
// 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("SampleClient")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("SampleClient")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
[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)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[
assembly
:
ThemeInfo
(
ResourceDictionaryLocation
.
None
,
//where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation
.
SourceAssembly
//where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
mitchcapper/SampleClient/Properties/Resources.Designer.cs
0 → 100644
浏览文件 @
11ba2f64
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace
SampleClient.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"
,
"4.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
(
"SampleClient.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
;
}
}
}
}
mitchcapper/SampleClient/Properties/Resources.resx
0 → 100644
浏览文件 @
11ba2f64
<?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
mitchcapper/SampleClient/Properties/Settings.Designer.cs
0 → 100644
浏览文件 @
11ba2f64
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace
SampleClient.Properties
{
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"10.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
;
}
}
}
}
mitchcapper/SampleClient/Properties/Settings.settings
0 → 100644
浏览文件 @
11ba2f64
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile
xmlns=
"uri:settings"
CurrentProfile=
"(Default)"
>
<Profiles>
<Profile
Name=
"(Default)"
/>
</Profiles>
<Settings
/>
</SettingsFile>
\ No newline at end of file
mitchcapper/SampleClient/SampleClient.csproj
0 → 100644
浏览文件 @
11ba2f64
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"4.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
x86
</Platform>
<ProductVersion>
8.0.30703
</ProductVersion>
<SchemaVersion>
2.0
</SchemaVersion>
<ProjectGuid>
{115827E8-1EB7-473C-A9FF-2E129CC262B8}
</ProjectGuid>
<OutputType>
WinExe
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
SampleClient
</RootNamespace>
<AssemblyName>
SampleClient
</AssemblyName>
<TargetFrameworkVersion>
v4.0
</TargetFrameworkVersion>
<TargetFrameworkProfile>
Client
</TargetFrameworkProfile>
<FileAlignment>
512
</FileAlignment>
<ProjectTypeGuids>
{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
</ProjectTypeGuids>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|x86' "
>
<PlatformTarget>
x86
</PlatformTarget>
<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|x86' "
>
<PlatformTarget>
x86
</PlatformTarget>
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"FreeSWITCH.Managed"
>
<HintPath>
.\FreeSWITCH.Managed.dll
</HintPath>
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Xml"
/>
<Reference
Include=
"Microsoft.CSharp"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Xml.Linq"
/>
<Reference
Include=
"System.Data.DataSetExtensions"
/>
<Reference
Include=
"System.Xaml"
>
<RequiredTargetFramework>
4.0
</RequiredTargetFramework>
</Reference>
<Reference
Include=
"WindowsBase"
/>
<Reference
Include=
"PresentationCore"
/>
<Reference
Include=
"PresentationFramework"
/>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition
Include=
"App.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</ApplicationDefinition>
<Page
Include=
"MainWindow.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Compile
Include=
"App.xaml.cs"
>
<DependentUpon>
App.xaml
</DependentUpon>
<SubType>
Code
</SubType>
</Compile>
<Compile
Include=
"MainWindow.xaml.cs"
>
<DependentUpon>
MainWindow.xaml
</DependentUpon>
<SubType>
Code
</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"Properties\AssemblyInfo.cs"
>
<SubType>
Code
</SubType>
</Compile>
<Compile
Include=
"Properties\Resources.Designer.cs"
>
<AutoGen>
True
</AutoGen>
<DesignTime>
True
</DesignTime>
<DependentUpon>
Resources.resx
</DependentUpon>
</Compile>
<Compile
Include=
"Properties\Settings.Designer.cs"
>
<AutoGen>
True
</AutoGen>
<DependentUpon>
Settings.settings
</DependentUpon>
<DesignTimeSharedInput>
True
</DesignTimeSharedInput>
</Compile>
<EmbeddedResource
Include=
"Properties\Resources.resx"
>
<Generator>
ResXFileCodeGenerator
</Generator>
<LastGenOutput>
Resources.Designer.cs
</LastGenOutput>
</EmbeddedResource>
<None
Include=
"Properties\Settings.settings"
>
<Generator>
SettingsSingleFileGenerator
</Generator>
<LastGenOutput>
Settings.Designer.cs
</LastGenOutput>
</None>
<AppDesigner
Include=
"Properties\"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\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
mitchcapper/SampleClient/SampleClient.sln
0 → 100644
浏览文件 @
11ba2f64
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleClient", "SampleClient.csproj", "{115827E8-1EB7-473C-A9FF-2E129CC262B8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{115827E8-1EB7-473C-A9FF-2E129CC262B8}.Debug|x86.ActiveCfg = Debug|x86
{115827E8-1EB7-473C-A9FF-2E129CC262B8}.Debug|x86.Build.0 = Debug|x86
{115827E8-1EB7-473C-A9FF-2E129CC262B8}.Release|x86.ActiveCfg = Release|x86
{115827E8-1EB7-473C-A9FF-2E129CC262B8}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
mitchcapper/SampleClient/bin/Debug/conf/freeswitch.xml
0 → 100644
浏览文件 @
11ba2f64
<?xml version="1.0"?>
<document
type=
"freeswitch/xml"
>
<X-PRE-PROCESS
cmd=
"set"
data=
"console_loglevel=info"
/>
<X-PRE-PROCESS
cmd=
"set"
data=
"us-ring=v=0;%(2000,4000,440.0,480.0)"
/>
<section
name=
"configuration"
description=
"Various Configuration"
>
<configuration
name=
"console.conf"
description=
"Console Logger"
>
<mappings>
<map
name=
"all"
value=
"console,debug,info,notice,warning,err,crit,alert"
/>
</mappings>
<settings>
<param
name=
"colorize"
value=
"true"
/>
<param
name=
"loglevel"
value=
"$${console_loglevel}"
/>
</settings>
</configuration>
<configuration
name=
"logfile.conf"
description=
"File Logging"
>
<settings>
<param
name=
"rotate-on-hup"
value=
"true"
/>
</settings>
<profiles>
<profile
name=
"default"
>
<settings>
</settings>
<mappings>
<map
name=
"all"
value=
"debug,info,notice,warning,err,crit,alert"
/>
</mappings>
</profile>
</profiles>
</configuration>
<configuration
name=
"modules.conf"
description=
"Modules"
>
<modules>
<load
module=
"mod_console"
/>
<load
module=
"mod_logfile"
/>
<load
module=
"mod_sofia"
/>
<load
module=
"mod_loopback"
/>
<load
module=
"mod_commands"
/>
<load
module=
"mod_dptools"
/>
<load
module=
"mod_dialplan_xml"
/>
<load
module=
"mod_spandsp"
/>
<load
module=
"mod_sndfile"
/>
<load
module=
"mod_portaudio"
/>
<load
module=
"mod_event_socket"
/>
</modules>
</configuration>
<configuration
name=
"event_socket.conf"
description=
"Socket Client"
>
<settings>
<param
name=
"nat-map"
value=
"false"
/>
<param
name=
"listen-ip"
value=
"127.0.0.1"
/>
<param
name=
"listen-port"
value=
"8040"
/>
<param
name=
"password"
value=
"ClueCon"
/>
</settings>
</configuration>
<configuration
name=
"portaudio.conf"
description=
"Soundcard Endpoint"
>
<settings>
<param
name=
"dual-streams"
value=
"true"
/>
<param
name=
"live-stream-switch"
value=
"true"
/>
<param
name=
"no-auto-resume-call"
value=
"true"
/>
<param
name=
"no-ring-during-call"
value=
"true"
/>
<param
name=
"dialplan"
value=
"XML"
/>
</settings>
</configuration>
</section>
<section
name=
"dialplan"
description=
"Regex/XML Dialplan"
>
<context
name=
"default"
>
<extension
name=
"number"
>
<condition
field=
"destination_number"
expression=
"^(.*)$"
>
<action
application=
"info"
/>
<action
application=
"bridge"
data=
"$1"
/>
</condition>
</extension>
</context>
<context
name=
"public"
>
<extension
name=
"public_extensions"
>
<condition
field=
"destination_number"
expression=
"^(.*)$"
>
<action
application=
"info"
/>
<action
application=
"set"
data=
"ringback=${us-ring}"
/>
<action
application=
"pre_answer"
/>
<action
application=
"bridge"
data=
"portaudio"
/>
</condition>
</extension>
</context>
</section>
</document>
mitchcapper/SampleClient/bin/Debug/files_needed_here.txt
0 → 100644
浏览文件 @
11ba2f64
FreeSwitch.dll
FreeSWITCH.Managed.dll (will be copied by VS automatically)
libapr.dll
libaprutil.dll
libbroadvoice.dll
libeay32.dll
libspandsp.dll
libteletone.dll
mod_managed.dll
pthread.dll
ssleay32.dll
mitchcapper/SampleClient/bin/Debug/mod/files_needed_here.txt
0 → 100644
浏览文件 @
11ba2f64
files_needed_here.txt
mod_commands.dll
mod_console.dll
mod_dialplan_xml.dll
mod_dptools.dll
mod_event_socket.dll
mod_logfile.dll
mod_loopback.dll
mod_PortAudio.dll
mod_sndfile.dll
mod_sofia.dll
mod_spandsp.dll
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论