Today we are gonna integrate Asterisk with Cisco Unified
Communications Manager.
Below is the setup:
Configuration on CUCM:
Configure Cisco IP Communicator with the TFTP address and copy the 'Device Name'.
Create a phone in CUCM:
CUCM application -> Device -> Phone -> Add New
Phone Type: Cisco IP Communicator
Select the device protocol: SIP
Device Name: Enter the Device Name copied on Cisco IP Communicator
Below are mandatory fields has to be filled in while Cisco IP Communicator
Device Pool:
SIP Profile:
Phone Button Template:
Device Security Profile:
Create SIP Trunk:
Mention the IP address of Asterisk for registraton
Create a Route Pattern:
Asterisk Extensions starts with patter 98XXX. Hence the pattern is managed as below with the Gateway as 'Asterisk' SIP Trunk.
Now we are going to manage ASTERISK:
SIP extensions and SIP trunk has to be created on /etc/asterisk/sip.conf
Calls has to reach the extensions when dialed. So a dialplan has to be managed in /etc/asterisk/extension.conf
Note: I will explain in details about the sip.conf and extension.conf in a later post.
Registering XLite on Asterisk with the credentials configured in sip.conf
Asterisk SIP registration status
That's it. We are good to make a call.
Calling from Cisco IP communicator to Asterisk extension
Please find the configuration as text for your reference:
/etc/asterisk/sip.conf:
;Asterisk extensions
[98001]
secret=1234
context=cisco
qualify=yes
type=friend
host=dynamic
[98002]
secret=1234
context=cisco
qualify=yes
type=friend
host=dynamic
;SIP Trunk to Cisco
[fromcisco]
type=friend
qualify=yes
allow=all
nat=no
insecure=very
host=10.1.1.25
context=cisco
dtmfmode=rfc2833
register=>cisco@10.1.1.25
/etc/asterisk/extension.conf
[cisco]
exten => _98XXX,1,AGI(lookup.agi)
exten => _98XXX,n,Set(CALLERID(name)=${lookupcid})
exten => _98XXX,n,Dial(SIP/${EXTEN},5)
exten => _98XXX,n,Voicemail(${EXTEN}@default)
exten => _98XXX,n,Hangup()
exten => 99999,1,VoiceMailMain()
exten => _7XXXX,1,Dial(SIP/fromcisco/${EXTEN},20)
exten => _7XXXX,n,Hangup()
Hope you find a good time :)
Thanks,
Asterisk Techs Team
Below is the setup:
Configuration on CUCM:
Configure Cisco IP Communicator with the TFTP address and copy the 'Device Name'.
Create a phone in CUCM:
CUCM application -> Device -> Phone -> Add New
Phone Type: Cisco IP Communicator
Select the device protocol: SIP
Device Name: Enter the Device Name copied on Cisco IP Communicator
Below are mandatory fields has to be filled in while Cisco IP Communicator
Device Pool:
SIP Profile:
Phone Button Template:
Device Security Profile:
Create SIP Trunk:
Mention the IP address of Asterisk for registraton
Create a Route Pattern:
Asterisk Extensions starts with patter 98XXX. Hence the pattern is managed as below with the Gateway as 'Asterisk' SIP Trunk.
Now we are going to manage ASTERISK:
SIP extensions and SIP trunk has to be created on /etc/asterisk/sip.conf
Calls has to reach the extensions when dialed. So a dialplan has to be managed in /etc/asterisk/extension.conf
Note: I will explain in details about the sip.conf and extension.conf in a later post.
Registering XLite on Asterisk with the credentials configured in sip.conf
Asterisk SIP registration status
That's it. We are good to make a call.
Calling from Cisco IP communicator to Asterisk extension
Please find the configuration as text for your reference:
/etc/asterisk/sip.conf:
;Asterisk extensions
[98001]
secret=1234
context=cisco
qualify=yes
type=friend
host=dynamic
[98002]
secret=1234
context=cisco
qualify=yes
type=friend
host=dynamic
;SIP Trunk to Cisco
[fromcisco]
type=friend
qualify=yes
allow=all
nat=no
insecure=very
host=10.1.1.25
context=cisco
dtmfmode=rfc2833
register=>cisco@10.1.1.25
/etc/asterisk/extension.conf
[cisco]
exten => _98XXX,1,AGI(lookup.agi)
exten => _98XXX,n,Set(CALLERID(name)=${lookupcid})
exten => _98XXX,n,Dial(SIP/${EXTEN},5)
exten => _98XXX,n,Voicemail(${EXTEN}@default)
exten => _98XXX,n,Hangup()
exten => 99999,1,VoiceMailMain()
exten => _7XXXX,1,Dial(SIP/fromcisco/${EXTEN},20)
exten => _7XXXX,n,Hangup()
Hope you find a good time :)
Thanks,
Asterisk Techs Team