Lync Enterprise Voice 設定的分機重覆了,無法設定給新人,怎麼找到舊的設定者 ?
設定使用者的Lync Enterprise Voice 時,Line URI 欄位不得重覆,如果新人要設定時,會出現下列的錯誤訊息:
Filter failed to return unique result, "[SipAddress : sip: tester@demo.com] [LineURI : tel:+856277][PrivateLine : tel:856277]"
由此得知已有使用者使用過 tel:+856277,
可使用Get-CsUser -Filter {LineURI -eq "tel:+856277"} 的方式找出舊的擁有者或離職者.
其他 Filter 的相關Operator 可看參考。
2012年5月14日 星期一
2012年3月8日 星期四
如何整批啟用Lync User及更改設定?
整批更新Lync User,簡單的更新可以用Command 方式處理, 複雜的更新只能用批次處理:
4. 整批啟用Enterprise Voice, 試了很久, 最簡單的方式是用PowerShell:
需有一個Shell script : 例如: demo.ps1
匯入資料: 例如: user.csv
輸出結果到執行目錄上: AssignLineUri-yyyy-mm-dd-xxxx.txt 型式
a.將下列資訊存成: demo.ps1
param( [string] $importfile = $(Read-Host -prompt "Please enter a file name"))
$importedusers = Import-Csv $importfile
$transcriptname = "AssignLineUri-" + (Get-Date -Format s).replace(":","-") +".txt"
Start-Transcript $transcriptname
foreach ($importeduser in $importedusers)
{
$UserDN = "CN=" + $importeduser.SIPUser + ",OU=demo,dc=lync,dc=com"
Set-CsUser -identity $UserDN -EnterpriseVoiceEnabled $True -LineUri $importeduser.LineUri –Verbose
}
Stop-Transcript
b.將使用者資訊及話機號碼設成: User.csv
SIPUser,LineUri
lyncuser1,tel:+8001
lyncuser2,tel:+8002
c. 操作方式:
於Start =>Lync Server management shell => <shell directory>\demo.ps1
輸入: user.csv
查看結果
其他簡體的啟用範例:
http://bbs.winos.cn/archiver/tid-117393.html
PowerShell 的啟用範例:
http://blogs.technet.com/b/csps/archive/2010/06/10/scriptmoveusers.aspx
http://blogs.technet.com/b/csps/archive/2010/06/10/scriptassignlineuris.aspx
1.
啟用Lync : 單一用戶(以LyncUser1為例)
Enable-CsUser -Identity "LyncUser1" -RegistrarPool pool.lync.com -SipAddress sip:lyncuser1l@lync.com
Enable-CsUser -Identity "LyncUser1" -RegistrarPool pool.lync.com -SipAddress sip:lyncuser1l@lync.com
2.
啟用Lync : 以OU整批啟用
Get-CsAdUser -OU "ou=demo,dc=lync,dc=com" | Enable-CsUser -RegistrarPool " pool.lync.com " -SipAddressType EmailAddress -SipDomain lync.com
Get-CsAdUser -OU "ou=demo,dc=lync,dc=com" | Enable-CsUser -RegistrarPool " pool.lync.com " -SipAddressType EmailAddress -SipDomain lync.com
3. 啟用LyncUser1的 Enterprise Voice
Set-CsUser -Identity "CN=lyncuser1,OU=demo,dc=lync,dc=com"
-EnterpriseVoiceEnabled $True -LineURI tel:+80014. 整批啟用Enterprise Voice, 試了很久, 最簡單的方式是用PowerShell:
需有一個Shell script : 例如: demo.ps1
匯入資料: 例如: user.csv
輸出結果到執行目錄上: AssignLineUri-yyyy-mm-dd-xxxx.txt 型式
a.將下列資訊存成: demo.ps1
param( [string] $importfile = $(Read-Host -prompt "Please enter a file name"))
$importedusers = Import-Csv $importfile
$transcriptname = "AssignLineUri-" + (Get-Date -Format s).replace(":","-") +".txt"
Start-Transcript $transcriptname
foreach ($importeduser in $importedusers)
{
$UserDN = "CN=" + $importeduser.SIPUser + ",OU=demo,dc=lync,dc=com"
Set-CsUser -identity $UserDN -EnterpriseVoiceEnabled $True -LineUri $importeduser.LineUri –Verbose
}
Stop-Transcript
b.將使用者資訊及話機號碼設成: User.csv
SIPUser,LineUri
lyncuser1,tel:+8001
lyncuser2,tel:+8002
c. 操作方式:
於Start =>Lync Server management shell => <shell directory>\demo.ps1
輸入: user.csv
查看結果
其他簡體的啟用範例:
http://bbs.winos.cn/archiver/tid-117393.html
PowerShell 的啟用範例:
http://blogs.technet.com/b/csps/archive/2010/06/10/scriptmoveusers.aspx
http://blogs.technet.com/b/csps/archive/2010/06/10/scriptassignlineuris.aspx
2012年2月23日 星期四
如何將 Lync 與 FreePBX/ Trixbox 整合
花很多時間將 Lync 2010 FE 透過 Lync Mediation Server 連接FreePBX( Trixbox),如果沒有做成文件,以後一定會找不到。
所需的東西:
1. TrixBox (目前可抓到 Trixbox 2.8.0.4 CE) , 相關說明如下
http://www.diybl.com/course/6_system/linux/Linuxjs/2008106/148288.html
http://www.msexchange.org/articles_tutorials/exchange-server-2010/mobility-client-access/how-configure-unified-messaging-asterisk-sip-gateway-part2.html
2. Client : 3CXPhone
http://www.3cx.com/VOIP/voip-phone.html
3. TrixBox 設定方法:
http://www.fintechcommunications.com/blog/?p=60
http://imaucblog.com/archive/2009/10/03/part-1-how-to-integrate-exchange-2010-or-2007-with-trixbox-2-8/
4. Lync 設定方法:
http://www.circuitid.com/blog/lync-setup-guide-using-circuitid-part-1-configuring-mediation-server
http://www.circuitid.com/blog/lync-setup-guide-using-circuitid-part-2-configuring-voice-routing
5. 注意事項:
Lync 內部都走E.164 (+開頭的Formate,例如:+2015),如果透過SIP Trunk丟給PBX時,有的FreePBX 不接受"+"號,需將+號移除。
這個動作在Lync 叫 : Outbound route translation ,(說明請看:Translating Outbound dials strings)
http://technet.microsoft.com/en-us/library/gg412757.aspx
http://technet.microsoft.com/en-us/library/gg425831.aspx
http://blogs.technet.com/b/csps/p/uimap59.aspx
如果效果是要將E.164 的formate (例如:+2015) 往 PSTN Gateway 送時,就會取消"+",為 2015 。
則可於Trunk Configuration 內這樣設定:
Starting digits = +2 : 開頭為+2
Length= exactly 5 : 這裡的Length 是說含加號,共五碼 (例如: +2015)
Digits to remove = 1 : 移除第一碼,即加號
Digits to add = "": 不加上任何字元
http://designinglync.blogspot.com/2011/05/lync-dial-plans-and-normalization-rules.html
6. 語音/視訊通訊最低頻寬說明:
http://technet.microsoft.com/zh-tw/library/gg398334.aspx
7. Trixbox 有用的說明
http://www.freepbx.org/support/documentation/howtos/howto-setting-up-voip-provider-trunks/freepbx-sip-trunks-powered-by-ban
2011年11月16日 星期三
Lync 跨Domain Federation 的設定方法
Lync 跨Domain 需有幾個條件:
1. 部屬Edge Server:與其他Domain 界接
2. 外部DNS 有SRV Record: _sipfederationtls._tcp.<domain name> 為 <edge server fqdn>, port 5061
3. 與公眾Provider (MAN/Yahoo等)界接,需花錢更換Edge Server的憑證為外部合法的憑證
4. 購買合法的License
測試環境說明:
1. 兩個沒有Trust 的Domain:domainA.com 及domainB.com
2. Edge Server FQDN為:Exedge-sip.domainA.com 及exedge-sip.domainB.com
3. DNS SVR Record :
DomainA的SVR Record : _sipfederationtls._tcp.domainA.com 為exedge-sip.domainA.com
DomainB的SVR Record : _sipfederationtls._tcp.domainB.com 為exedge-sip.domainB.com
4. 雙方Root CA憑證
步驟:
1. 將Root CA憑證安裝到對方Domain 的Edge Server上:登入Exedge-sip.domainA.com =>mmc=>新增崁入式單元:"憑證Certificate"=>增加My user account & Computer account (local) => 匯入另一個Domain 的Root CA,出現在Certificates-Current user 的Intermediate Certificate Authorities -> Certificates內=> Copy到 Certificate(Local Computer)的Trusted Root Certification Authorities->Certificates內。
2. 另一個DomainB的Exedge-sip.domainB.com 匯入DomainA的Root CA。
3. 設定Feredated Domains : 於DomainA 的Front End Server 上開啟Lync Server Control Panel => External User Access => 1) External Access Policy : Enable communications with federated user. 2)Access Edge Configuration : Enable federation & Enable partner domain discovery. 3)Federated Domains : New => Allowed domain => Domain name : domainB.com => Access Edge Service : exedge-sip.domainB.com.
4. 同樣的,DomainB 也設定DomainA的Exedge-sip.domainA.com 為domainA.com 的 Edge Server .
未能正常連線的測試:
1. 驗證是否能正確查詢對方的SRV:
1) nslookup - 8.8.8.8
2) set type=srv
3) _sipfederationtls._tcp.domainA.com
2. 啟用Lync Client 的Log機制:
1) lync 選項=>一般=>紀錄=>勾選:在Lync中開啟紀錄
2) Lync重新啟動=>登入
3) 輸入另一個Domain 的Uuser : user1@domainA.com
4) 檢查Log : C:\Documents and Settings\<user name>\Tracing\Communicator-uccapi-0.uccapilog
5) 查詢 "ms-diagnostics",確認"reason"的錯誤原因。
相關參考文件:
1. http://ucworld.blog.51cto.com/811917/499165
2. 用Google 查ms-diagnostics的錯誤訊息
3. http://www.shudnow.net/2011/02/01/lync-2010-edge-utilizing-windows-server-2008-r2-federation-tls-issues/
1. 部屬Edge Server:與其他Domain 界接
2. 外部DNS 有SRV Record: _sipfederationtls._tcp.<domain name> 為 <edge server fqdn>, port 5061
3. 與公眾Provider (MAN/Yahoo等)界接,需花錢更換Edge Server的憑證為外部合法的憑證
4. 購買合法的License
測試環境說明:
1. 兩個沒有Trust 的Domain:domainA.com 及domainB.com
2. Edge Server FQDN為:Exedge-sip.domainA.com 及exedge-sip.domainB.com
3. DNS SVR Record :
DomainA的SVR Record : _sipfederationtls._tcp.domainA.com 為exedge-sip.domainA.com
DomainB的SVR Record : _sipfederationtls._tcp.domainB.com 為exedge-sip.domainB.com
4. 雙方Root CA憑證
步驟:
1. 將Root CA憑證安裝到對方Domain 的Edge Server上:登入Exedge-sip.domainA.com =>mmc=>新增崁入式單元:"憑證Certificate"=>增加My user account & Computer account (local) => 匯入另一個Domain 的Root CA,出現在Certificates-Current user 的Intermediate Certificate Authorities -> Certificates內=> Copy到 Certificate(Local Computer)的Trusted Root Certification Authorities->Certificates內。
2. 另一個DomainB的Exedge-sip.domainB.com 匯入DomainA的Root CA。
3. 設定Feredated Domains : 於DomainA 的Front End Server 上開啟Lync Server Control Panel => External User Access => 1) External Access Policy : Enable communications with federated user. 2)Access Edge Configuration : Enable federation & Enable partner domain discovery. 3)Federated Domains : New => Allowed domain => Domain name : domainB.com => Access Edge Service : exedge-sip.domainB.com.
4. 同樣的,DomainB 也設定DomainA的Exedge-sip.domainA.com 為domainA.com 的 Edge Server .
未能正常連線的測試:
1. 驗證是否能正確查詢對方的SRV:
1) nslookup - 8.8.8.8
2) set type=srv
3) _sipfederationtls._tcp.domainA.com
2. 啟用Lync Client 的Log機制:
1) lync 選項=>一般=>紀錄=>勾選:在Lync中開啟紀錄
2) Lync重新啟動=>登入
3) 輸入另一個Domain 的Uuser : user1@domainA.com
4) 檢查Log : C:\Documents and Settings\<user name>\Tracing\Communicator-uccapi-0.uccapilog
5) 查詢 "ms-diagnostics",確認"reason"的錯誤原因。
相關參考文件:
1. http://ucworld.blog.51cto.com/811917/499165
2. 用Google 查ms-diagnostics的錯誤訊息
3. http://www.shudnow.net/2011/02/01/lync-2010-edge-utilizing-windows-server-2008-r2-federation-tls-issues/
2011年10月13日 星期四
Lync 2010 Edge Server installation information
MS的Lync Edge Servers安裝說明(http://technet.microsoft.com/en-us/library/gg398230.aspx),看似很詳細,但總是有一種無法確定是否真是這樣作的感覺,相對於這篇來說(http://ocsguy.com/2010/11/21/deploying-an-edge-server-with-lync/),這篇就是一步一步說明如何安裝,如何設定NIC。
這篇提到一張Edge只需要一張網卡(http://chandler-bin.blogspot.com/2011/09/lync-2010-edge-server-for-internet.html)
因此我也只用一張網卡,補充說明幾點:
1. 我也只用一張網卡,Internal IP Bind 3 External IP由於同一網段,就不需要下route -p xxx的Command.
Ex:
Edge Server IP :192.168.1.14
Exedge-sip.<domain> IP: 192.168.1.15
Exedge-webconf.<domain> IP: 192.168.1.16
Exedge-av.<domain> IP: 192.168.1.17
2. 安裝好後,Lync Client 於外部連線時,需使用 443 port,因此,測試時需變更登入位址:檔案=>變更登入位址=>進階=>手動設定=>內部伺服器名稱或IP位址改為:exedge-sip.<domain>:443
3. Lync Server Control Panel 的Topology 所顯示的Edge Server Status 為N/A,但功能都是正常的,可能與沒有Joint domain有關。
這篇提到一張Edge只需要一張網卡(http://chandler-bin.blogspot.com/2011/09/lync-2010-edge-server-for-internet.html)
因此我也只用一張網卡,補充說明幾點:
1. 我也只用一張網卡,Internal IP Bind 3 External IP由於同一網段,就不需要下route -p xxx的Command.
Ex:
Edge Server IP :192.168.1.14
Exedge-sip.<domain> IP: 192.168.1.15
Exedge-webconf.<domain> IP: 192.168.1.16
Exedge-av.<domain> IP: 192.168.1.17
2. 安裝好後,Lync Client 於外部連線時,需使用 443 port,因此,測試時需變更登入位址:檔案=>變更登入位址=>進階=>手動設定=>內部伺服器名稱或IP位址改為:exedge-sip.<domain>:443
3. Lync Server Control Panel 的Topology 所顯示的Edge Server Status 為N/A,但功能都是正常的,可能與沒有Joint domain有關。
2011年7月18日 星期一
Lotus Notes connector for Microsoft Online meeting 沒有講的事
使用Notes Client 連到Lync Server做預約會議室時,一般都參考MS 提供的Lotus Notes Connector ,它已經設計好 Notes 範本資料庫(7.X/8.X)及 for HttpRequest的web site 元件(conference/livemeeting)
http://archive.msdn.microsoft.com/LotusNotesConnector
其中沒有講到的幾件事:
1. 建構Web Site時,Authorization 需設為[Basic Authorization]並取消[Anonymouse]及[windows authorization]
2. 8.5.1 版本的Notes Template,其中MSOCSBodyDXL 內的Page已經指名Notes Client的使用版本,如果版本不符,於匯入會議室資訊到Calendar 時,會出現 "DXL importer operation failed" 的錯誤訊息。
http://archive.msdn.microsoft.com/LotusNotesConnector
其中沒有講到的幾件事:
1. 建構Web Site時,Authorization 需設為[Basic Authorization]並取消[Anonymouse]及[windows authorization]
2. 8.5.1 版本的Notes Template,其中MSOCSBodyDXL 內的Page已經指名Notes Client的使用版本,如果版本不符,於匯入會議室資訊到Calendar 時,會出現 "DXL importer operation failed" 的錯誤訊息。
訂閱:
文章 (Atom)