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

Unanswered Question
Feb 19th, 2011

i want to conncet a  cucm server  to asterisk server.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
caosorio_01 Sun, 06/17/2012 - 16:38

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

Actions

Login or Register to take actions

This Discussion

Posted February 19, 2011 at 10:30 PM
Stats:
Replies:2 Avg. Rating:
Views:878 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard

Rank Username Points
1 21,026
2 15,047
3 10,314
4 7,999
5 4,856
Rank Username Points
159
95
75
66
55