Asterisk and Callmanager Trunk

Hello,
I am kinda new to asterisk and had tried so many config’s that are available on the internet, but yet I am not able to get the trunk between Asterisk and CUCM 6 working.
Could somebody please help me with the initial config’s where I want 2 phones on asterisk and 2 on CUCM 6 working through the SIP trunk between asterisk and CUCM.

Please help and thanks for your efforts.

Do you try with this:
voip-info.org/wiki/view/Aste … t_id=15955
It’s work pretty fine for me! :smiley:
Good Luck

Hi,
Thanks for your reply. I already tried that but it seems not to be working.
Here are my config files look like, please please let me know if I am missing something of if something is wrong.
sip.conf

[4001]
type=friend
username=4001
secret=password
host=dynamic
context=sipcontext

[4002]
type=friend
username=4002
secret=password
host=dynamic
context=sipcontext

[cucm]
type=peer
context=incoming
host=172.30.100.10
disallow=all
allow=ulaw
allow=alaw
nat=no
canreinvite=yes
qualify=yes


extension.conf

[sipcontext]
exten => 4001,1,Dial(SIP/4001)
exten => 4002,1,Dial(SIP/4002)

[cucm]
;exten => _5XXX,1,Dial(SIP/8${EXTEN}@172.30.100.10,60,t)
exten => _5XXX,1,Dial(SIP/cucm/${EXTEN})
exten => _5XXX,2,Congestion

[ccm]
include => phones

[phones]
exten => 4001,1,Macro(std_ext,SIP/4001)
exten => 4002,1,Macro(std_ext,SIP/4002)

Thanks for your efforts.

You can put your configuration of CUCME? In my case the problems is always in CUCME!!

Thanks for your reply.
I finally got it working after reading some books on how to do it.

Thanks