Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Can we connect a cucm server to a asterisk server??????

i want to conncet a  cucm server  to asterisk server.

2 REPLIES
New Member

Re: Can we connect a cucm server to a asterisk server??????

New Member

Can we connect a cucm server to a asterisk server??????

Hope you all are ok!

I just ended out a lab configuration and it works so i wanted to share with you all.... im using a SIP trunk from a CUCM to an asterisk ubuntu server, trunking is  perfectly documented on cisco  so i will not touch that part.

The tricky issue was the ASTERISK configuration so  i will touch it now, first of all there are two main archives that manages the behaviour on the ubuntu box: sip.conf and extensions.conf

sip.conf:

; As i see it and comparing to a CME ambient will work as a the ephones is just a logical instance of the devices and are located on the SIP aplication

; This is my cucm please use the same context as in the extensions.conf file

[cucm]

type=friend

host=11.11.11.12

disallow=all

allow=ulaw

allow=alaw

allow=ulaw

allow=alaw

allow=g723

allow=g729

nat=no

canreinvite=yes

qualify=yes

video=yes

insecure=very

context=internal

; These are my internal extension x-lite and qute softphone

[7001]

type=friend

host=dynamic

secret=password

context=internal

[7002]

type=friend

host=dynamic

secret=password

context=internal

extensions.conf

;This is the dial-plan file it  can be compared to dial-peers in a CME ambient

: Between brackets you will state the contexts

[internal]

exten => 7002,1,Answer()

exten => 7002,2,Dial(SIP/7002,60)

exten => 7002,3,Playback(vm-nobodyavail)

exten => 7002,4,VoiceMail(7002@11.11.11.12)

exten => 7002,5,Hangup()

exten => 7001,1,Answer()

exten => 7001,2,Dial(SIP/7001,60)

exten => 7001,3,Playback(vm-nobodyavail)

exten => 7001,4,VoiceMail(7001@11.11.11.12)

exten => 7001,5,Hangup()

;The following command will allow to stablish a bound between both instances the instances [internal] & [outgoing]

include => outgoing

[macro-dialout-callmanager]

exten => s,1,ChanIsAvail(SIP/cucm)

exten => s,2,Set(AVAILCHAN=${CUT(AVAILCHAN,,1)})

exten => s,3,Dial(${AVAILCHAN}/${ARG1})

exten => s,4,Hangup

exten => s,102,Congestion

[outgoing]

exten => _88888,1,Macro(dialout-callmanager,${EXTEN})

exten => _9XXXXXXX,1,Macro(dialout-callmanager,${EXTEN})

exten => _XXXXXXX,1,Macro(dialout-callmanager,${EXTEN})

; I use an Ip Comunicator with extension 88888 registered with CUCM

exten => i,1,Congestion

It took me the entire weekend but it worth it when i hear ringing both ways and between asterisk extensions !

Caosorio

1299
Views
0
Helpful
2
Replies