Asterisk H323 Trunk to Cisco call manager
Here is a step by step guide to create an H323 trunk from Asterisk to Cisco Call Manager (CCM)
Configuration on Asterisk side:
Step1) Edit h323.conf
# cat /etc/asterisk/h323.conf [general] ; apply changes by restarting PBX, or ; issue command: /etc/init.d/amportal restart bindaddr=10.200.214.10 ; ------------------------------------------------------------------- port=1720 ;tos=lowdelay ;amaflags=default ;accountcode=h323users disallow=all allow=g729 ;allow=gsm ;allow=alaw ;allow=ulaw dtmfmode=rfc2833 ;dtmfcodec=101 gatekeeper=DISABLE ;allowGKRouted=yes AcceptAnonymous=yes ;UserByAlias=yes context=default ; 0 - don't add PROGRESS information element (default); ; 1 - call is not end-end ISDN, further call progress information can ; possibly be available in-band; ; 3 - origination address is non-ISDN (Cisco accepts this value only); ; 8 - in-band information or an appropriate pattern is now available; progress_setup=8 ; 0 - don't add PROGRESS IE (default); ; 8 - in-band information or an appropriate pattern is now available; progress_alert=8 ;progress_audio=yes ;tunneling=none ;Totally disable tunneling (default) ;tunneling=cisco ;Enable Cisco-specific tunneling tunneling=qsig ;Enable tunneling via Q.SIG messages ;jbenable=yes ;jbforce=no ;jbmaxsize=200 ;jbresyncthreshold=1000 ;jbimpl=fixed ;jblog=no ; -------------------------------------------------------------------- [10.200.214.10] type=peer context=from-trunk host=10.200.214.10 port=1720 fastStart=yes h245Tunneling=yes disallow=all allow=g729 ;[h323station] ;type=user ;context=from-internal ;host=10.200.214.10 ;fastStart=yes ;h245Tunneling=yes ;disallow=all ;allow=g729 ;allow=ulaw ;[netmeeting] ;type=user ;context=from-internal ;host=10.200.214.10 ;fastStart=yes ;h245Tunneling=yes ;disallow=all ;allow=g729 ;allow=ulaw ;[ccmh323] ;type=peer ;context=default ;host=10.200.214.10 ;port=1720 ;disallow=all ;allow=g729 ;allow=gsm ;allow=ulaw ;allow=alaw ;dtmfmode=rfc2833 ;nat=no ;canreinvite=yes ;qualify=yes ;fastStart=yes
Step2) Go to FreePBX GUI > Trunks and create a custom trunk like this:
Dial rules:8XXXX custom dial string:H323/$OUTNUM$@10.200.214.220:1720
Step3) Go to Outbond routes and add a new route as below:
Route name:h323trunk Dial rules:8XXXX H323/$OUTNUM$@10.8.23.5:1720
Configuration on CCM side:
- Create a h323 gateway with asterisk ip
- Create route patern and route to this gateway be carefull abaout regions codecs because you must allow these codecs in h323.conf
Additional Source: Asterisk Cisco CallManager Integration
No comments:
Post a Comment