OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010

2023-12-13 19:40
文章标签 1.6 2007 2010 lync asterisk ocs

本文主要是介绍OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010  

2010-12-20 11:07:12|  分类: MS-OCS |  标签:asterisk  ocs  lync   |字号大中小 订阅

original URL: 
http://blogs.technet.com/b/gclark/archive/2008/10/09/asterisk-1-6-with-office-communications-server-2007.aspx?PageIndex=1#comments

I’ve personally been waiting for this release of Asterisk for some time now! After researching a little, I found out that Asterisk 1.6 now supports TCP & TLS.  Currently it is still considered experimental – but hey, it’s always fun to play!

For those of you who are only familiar with Trixbox or FreePBX, there is no support for any graphical interface on 1.6 as of yet.  But,I will keep this simple and to the point.  Installing Asterisk on a Linux box with Kernel 2.6 is fairly straightforward.  In this Lab, I deployed CentOS 5 - Kernel 2.6.18with Asterisk 1.6.  When installing the OS you will also need the Kernel Sources and Kernel Headers packages.

First step of course is to build a Linux Box – I built mine in a VM, but installing on hardware will work just the same. 

You can download Asterisk from www.asterisk.org. On your Linux box make a directory under /usr/src – called pbx.  From that directory you can use the following command:

wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.6.0.tar.gz

Next step is to unpack the package:

tar zxvf asterisk-1.6.0.tar.gz

With that done – we use the common method to build the source:

Change into that directory – cd asterisk-1.6.0

./configure

make

make install

make config

make samples

Start Asterisk by running /etc/init.d/asterisk start

Then run asterisk –vr.  This will bring you into the Asterisk CLI:

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net

note: in my testing, I directly install asterisknow 1.7 on VMware workstation 7.

Now you know Asterisk is up and running and we can get into modifying some configuration files.  For this Lab there are only 2 files we need to be concerned with; SIP.CONF & EXTENSIONS.CONF which can be found under /etc/asterisk.

Starting with the Sample Config files that were created we can just select and delete everything and then paste these example configs in:

SIP.CONF

[general]

context = default

bindport = 5060

bindaddr = 0.0.0.0

tcpbindaddr = 0.0.0.0

tcpenable = yes

 

[SIP_TRUNK]

type = peer

host = 10.100.16.78

qualify = yes

transport = tcp,udp

 

[5001]

type = friend

callerid = Linux User <5001>          //the best is to change to 5001.

secret = 5001                         //password must be 6 digits or you can't register to asterisk

host = dynamic

canreinvite = no

dtmfmode = rfc2833

mailbox = 5001

disallow = all

allow = ulaw

transport = udp

 

EXTENSIONS.CONF

 

[general]

static=yes

writeprotect=no

 

[globals]

  

[default]

exten => _+XXXX,1,Answer()

exten => _+XXXX,n,Set(CALLERID(name)=You Did It)

exten => _+XXXX,n,Set(CALLERID(num)=${CALLERID(num):1})

exten => _+XXXX,n,Goto(${EXTEN:1},1)

 

exten => 5001,1,Answer()

exten => 5001,n,Dial(SIP/5001,20,tr)

exten => 5001,n,Hangup

 

include => outbound

 

[outbound]

exten => _NXXNXXXXXX,1,Set(EXT=+${EXTEN})           //change _NXXNXXXXXX to 1XXX

exten => _NXXNXXXXXX,n,Dial(SIP/SIP_TRUNK/${EXT})   //change _NXXNXXXXXX to 1XXX

exten => _NXXNXXXXXX,n,Busy                        //change _NXXNXXXXXX to 1XXX


access asterisk web site http://astersikserverip and then apply configurations.


SoftPhone

 

Next we will use X-Lite SoftPhone to register extension 5001 to Asterisk.

 

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net 

 

Configure the SIP Account on the SoftPhone:

 

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net

 

When you hit the Apply button you will be registering the SoftPhone with Asterisk:

 

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net

 

You can also see the registered extension from the Asterisk CLI/Console:

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net 


OCS 2007 configurations:

 

Now onto the OCS Configuration (In my lab I have a single SE server, and I installed a Mediation Server).  Let’s start with the Mediation Server. 

 

As you see below, there are 2 IP Addresses on the Mediation Server.  Both of them are on the same network.  Of course you can place them on different networks if needed.  Note, if they are in the same Network make sure that the External or PSTN facing interface set to not register with your internal DNS:

 

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net

 

On the Next Hop Connections Screen, you can see that we are pointing this back to the Asterisk PBX and the Inbound Routing is pointing back to the OCS Pool.

 

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net

 

The Mediation Server configuration is not any different than other configuration when setting up Enterprise Voice pointing to any other SIP Gateway.

Now, onto the Global Forest Property and Pool configurations.

 

I have added this Location Profile Normalization Rule for this test:

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net 

 

Now that you have a Normalization Rule built you will need to make a Policy and Route.  Here is an example of the Route I built for Testing:

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net 

 

One final step before making a call from the OCS MOC Client to the Softphone is to configure your OCS User for Enterprise Voice.

 

Under your OCS Pool, select Users then right click to get to the Properties of the user.  Click Configure on the User Properties Screen.

When you log in from you MOC 2007 Client, you will be able to dial 5001.  This will get normalized to +5001 and Dial out via the Mediation Server then through Asterisk to the SoftPhone. 


LYNC 2010 configurations:

Dialplan:

OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010 - Auotzhao - Autozhao.vicp.net
Voice Policy:
 
OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010 - Auotzhao - Autozhao.vicp.net

Voice Route:

OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010 - Auotzhao - Autozhao.vicp.net
OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010 - Auotzhao - Autozhao.vicp.net

PSTN Usage:

OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010 - Auotzhao - Autozhao.vicp.net
 
Trunk:
 
OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010 - Auotzhao - Autozhao.vicp.net
 

 

 

On the PC with the SoftPhone you will a pop-up for the call will appear and you can answer or ignore it:

Integrating ocs 2007:

 

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net


integrating lync 2010:


OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010 - Auotzhao - Autozhao.vicp.net    //bob is lync 2010 user

OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010 - Auotzhao - Autozhao.vicp.net  // display lync 2010 user and extension

 
 

 

Now let’s make a call in the other direction.  On the “MOC Side” you will get the toast indicating a call is coming in:

 

integrating OCS 2007:

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net  

 

OCS: Asterisk 1.6 with Office Communications Server 2007 - Auotzhao - Autozhao.vicp.net


Integrating LYNC 2010:


OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010 - Auotzhao - Autozhao.vicp.net  // IF YOU Configure callerid = 5001 in sip.conf
 
OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010 - Auotzhao - Autozhao.vicp.net  //if your callerid = Linux User <5001> in sip.conf
 

 

Well that’s about it! I am sure I could have gone into more detail regarding setting up OCS and the Mediation server.  But I wanted to concentrate on showing how to configure Asterisk, since the configuration for OCS is the same as when configuring it for any other SIP Proxy/SIP Trunk (Mediation Server/Media Gateway).

 

Also there is so much you can do with Asterisk.  No physical TDM cards were used, but in a production environment one could easily add Analog and/or T1 TDM and make phone calls across the PSTN.

这篇关于OCS LYNC: Asterisk 1.6 with OCS 2007 OR LYNC 2010的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/489730

相关文章

获取Excel文档的版本(2003或者2007)

因工作需要解析excel文档,用poi插件来进行处理,但是2003版本之前的和2007版本之后的解析方式不一样,开始,我们是以后缀名来区分的(2003之前是xls,2007之后是xlsx),后来发现,如果一个2003文档的后缀名被改成xlsx或反之,解析都会出现一些莫名其妙的问题,所以根据文档内容来判断版本是非常必要的。于是在网上找了很久终于找到一个切实可行的方法,代码如下 public s

【系统架构设计师-2010年】综合知识-答案及详解

更多内容请见: 备考系统架构设计师-核心总结索引 文章目录 【第1题】【第2题】【第3题】【第4~5题】【第6题】【第7~8题】【第9题】【第10题】【第11题】【第12题】【第13题】【第14题】【第15题】【第16题】【第17题】【第18题】【第19题】【第20题】【第21题】【第22题】【第23题】【第24题】【第25题】【第26~27题】【第28题】【第29~30题】【第31

DL/T645-2007_Part2(参变量数据标识编码表)

数据类型分为7类:电能量、最大需量及发生时间、变量、事件记录、参变量、冻结量、负荷记录。 数据标识数据格式 数据 长度  (字节)单位功能数据项名称DI₃DI₂DI₁DI₀读写04 00 01 01020304050607YYMMDDWWhhmm55NNNNXXXXYYNM00hhmmYYNMDDhhmm  4  3  1  2  5  5年月日星期时分秒分分毫秒年月日时分年月日时分日期及星期(其

九度考研真题 浙大 2010-2浙大1006:ZOJ问题

//题目1006:ZOJ问题 #include<iostream> #include<string.h> using namespace std; int main() { char s[1010]; char a[1010];//开始部分 char b[1010]; //中间部分  char c[1010];//后部分  int num1=0,n

九度考研真题 浙大 2010-1浙大1003:A+B

//题目1003:A+B #include<iostream> #include<string.h> using namespace std; int main() { int n1,n2; int s1[12],s2[12]; int s[12]; char c1[20],c2[20]; while(cin>>c1){ n1=0,n2=0;

九度考研真题 浙大 2007-浙大1023:EXCEL排序 排序

//1023:EXCEL排序 #include<iostream>  #include<algorithm> #include<string.h> using namespace std; struct stu{ char nu[10]; char name[10]; int score; }stud[100100]; bool cmp1(stu A,

九度考研真题 浙大 2007-3浙大游船出租 结构体

//游船出租 #include<iostream>  #include<algorithm> using namespace std; struct node{ int num; char action; char time[10]; double t; bool operator <(const node&A)const{

在Visual Studio 2010中开发Qt程序

本文演示如何用VS2010开发QT的应用程序界面,前提是已经搭建好了开发环境,搭建方法很简单,我在之前的博客也有描述。此处不再赘述。 1.打开VS2010的IDE开发环境,新建一个QT Application的项目命名为QtGrapher,所有的设置都可以保持默认,创建完成后可以编译运行程序,如果环境配置都正确,会弹出一个空白的GUI界面,如下所示, 2.在IDE的解决方案资源管理器中双

QT+VTK+Visual Studio 2010联合开发

QT+VTK+Visual Studio 2010联合开发 由于开发VTK程序是需要的GUI环境需求比较苛刻,传统的MFC框架在开发简单的GUI程序时还行,稍微复杂一点的程序就显得生硬。因此在开源社区里,开发VTK的GUI程序时,普遍采用QT。以下简单描述这三者的关系。 准备工作,这三者应该提前安装,建议遵循安装顺序为先Visual Studio 2010,再按装QT,再按装CMake,最后安

QT与Visual Studio 2010整合的例子

做GUI界面的设计时,目前已不再拘泥于VS的MFC框架,有很多开源的工具。本例以QT与VS2012的整合为例,演示环境搭建,后续将会用QT做VT的开发工作。 第一步,下载QT和QT与VS的插件,在VS2010下以及结合VTK的情况,网络上经网友实验后效果比较好的版本如下: 1. QT:因为是与VS2010整合,所以选择版本:qt-win-opensource-4.8.5-vs2010.exe,