資源簡介
Lumi本身對SIP的封裝在實際使用的時候 總會有注冊不上、無法邀請的一些需要后期調試的問題,這個代碼里面是已經調試完畢的,大家可以試試,相關的配置文件里面有用戶名密碼的配置,配置中的Uri2是邀請的目標地址。只是略微修改,方便大家學習使用。這個本身就是官方源碼的例子。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
namespace?LumiSoft.SIP.UA
{
????///?
????///?Thsi?class?represents?SIP?UA?account.
????///?
????public?class?Account
????{
????????private?string?m_DisplayName??????=?““;
????????private?string?m_UserName?????????=?““;
????????private?string?m_AOR??????????????=?““;
????????private?bool???m_UseProxy?????????=?false;
????????private?string?m_ProxyServer??????=?““;
????????private?bool???m_Register?????????=?false;
????????private?string?m_RegistrarServer??=?““;
????????private?int????m_RegisterInterval?=?300;
????????private?string?m_StunServer???????=?““;
????????///?
????????///?Default?constructor.
????????///?
????????///?Display?name.
????????///?User?login?name.
????????///?Address?of?record.?For?example:?user@domain.com.
????????///?Specifies?if?proxy?server?is?used?for?the?specified?account.
????????///?Proxy?server?name?or?IP?address.
????????///?Specifies?if?account?registers?to?registrar?server.
????????///?Registrar?server?name?or?IP?address.
????????///?Regiser?refreshing?interval.
????????///?STUN?server?name?or?IP?address.
????????///?Is?raised?when?userName?aor?is?null?reference.
????????///?Is?raised?when?any?of?the?arguments?has?invalid?value.
????????public?Account(string?displayNamestring?userNamestring?aorbool?useProxystring?proxyServerbool?registerstring?registrarServerint?registerIntervalstring?stunServer)
????????{????????????
????????????this.DisplayName??????=?displayName;
????????????this.UserName?????????=?userName;
????????????this.AOR??????????????=?aor;
????????????this.UseProxy?????????=?useProxy;
????????????this.ProxyServer??????=?proxyServer;
????????????this.Register?????????=?register;
????????????this.RegistrarServer??=?registrarServer;
????????????this.RegisterInterval?=?registerInterval;
????????????this.StunServer???????=?stunServer;
????????}
????????#region?Properties?implementation
????????///?
????????///?Gets?or?sets?display?name.
????????///?
????????public?string?DisplayName
????????{
????????????get{?return?m_DisplayName;?}
????????????set{
????????????????if(value?==?null){
????????????????????value?=?““;
????????????????}
????????????????m_DisplayName?=?value;
????????????}
????????}
????????///?
????????///?Gets?user?login?name.
????????///?
????????///?Is?raised?when?null?value?passed.
????????/
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-06-28?17:13??SIP_UA\
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\
?????文件???????????3??2014-07-01?07:18??SIP_UA\.svn\entries
?????文件???????????3??2014-07-01?07:18??SIP_UA\.svn\format
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\02\
?????文件???????82811??2014-07-01?07:18??SIP_UA\.svn\pristine\02\028fd90a08517a974cfb1d447e419a28a20682ca.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\03\
?????文件??????231596??2014-07-01?07:18??SIP_UA\.svn\pristine\03\0314cf58672f8ea6e9ed02ff2154c08766d7d04d.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\04\
?????文件????????8808??2014-09-25?08:05??SIP_UA\.svn\pristine\04\046e8620b8c28c8ab5e16401b0e6dbe0d337cbfd.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\05\
?????文件????????6261??2014-07-01?07:18??SIP_UA\.svn\pristine\05\0576592e77a45849b77f0fab8419423aea3a43e0.svn-ba
?????文件????????7983??2014-07-01?07:18??SIP_UA\.svn\pristine\05\05d2ac15c9233255f3e5cf2a813f2ae810885030.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\14\
?????文件????????1458??2014-07-01?07:18??SIP_UA\.svn\pristine\14\144cef809bf6b867bf5da9764b68d439fd46b392.svn-ba
?????文件??????485708??2014-09-25?08:05??SIP_UA\.svn\pristine\14\14df8b663a6153ab490c6d3f14309f7571fb92b3.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\15\
?????文件????????1047??2014-07-01?07:18??SIP_UA\.svn\pristine\15\157fdff590b4787474d82d6af13b8fc4f1ec6046.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\18\
?????文件????????3033??2014-07-01?07:18??SIP_UA\.svn\pristine\18\186a26c0b5fb157871619bfe472fad7d15066bb9.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\21\
?????文件????????1986??2014-07-01?07:18??SIP_UA\.svn\pristine\21\215205939af8004506000ed1e13c85f39ed8a43e.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\2c\
?????文件???????15086??2014-09-25?08:05??SIP_UA\.svn\pristine\2c\2c146456a06bfe5dbc6e9240511ccd020770dbda.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\32\
?????文件????????3540??2014-07-01?07:18??SIP_UA\.svn\pristine\32\32f5630894254145e45bc27fa29f896493e8c29a.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\34\
?????文件????????2031??2014-07-01?07:18??SIP_UA\.svn\pristine\34\34c4c397727ae01330328fee728d0f81a4f66153.svn-ba
?????目錄???????????0??2017-06-28?17:13??SIP_UA\.svn\pristine\39\
?????文件?????????318??2014-07-01?07:18??SIP_UA\.svn\pristine\39\39c0cd8abc7bfdfc79cd28d433cb549fd7a879b2.svn-ba
............此處省略815個文件信息
- 上一篇:ZK2N PLC使用說明書V2.4
- 下一篇:李開復推薦的演講書籍新版
評論
共有 條評論