You are on page 1of 3

etc/asterisk/h323.

conf
; The NuFone Network's ; Open H.323 driver configuration ; [general] port = 1720 bindaddr = 192.168.58.227 disallow=all allow=alaw dtmfmode=inband gatekeeper = DISABLE context=default progress_setup = 8 progress_alert = 8 h245tunneling=yes [Avaya] type=friend context=default host=192.168.58.216 port=1720 disallow=all allow=alaw,g729,gsm,slinear

On sip.conf I set two demo extensions 89301 and 89300. This are numbers similar to my Avaya extension range and they also match a DDI range.

/etc/asterisk/sip.conf
[general] context=default allowoverlap=no bindport=5060 bindaddr=0.0.0.0 srvlookup=yes [89300] type=friend regexten=89300 context=default secret=89300 username=89300 callerid="User1" <89300> host=dynamic nat=yes canreinvite=no

disallow=all allow=alaw allow=ulaw dtmfmode=inband [89301] type=friend regexten=89301 context=default secret=89301 username=89301 callerid="User2" <89301> host=dynamic nat=yes canreinvite=no disallow=all allow=alaw allow=ulaw dtmfmode=inband

On extensions.con I set up a basic dial plan to send sip calls to each sip phone and calls from the sip phones to the Avaya system.

/etc/asterisk/extensions.conf
; extensions.conf - the Asterisk dial plan [general] static=yes writeprotect=no autofallthrough=yes clearglobalvars=no [globals] TRUNKMSD=1 [default] ;Simple direct to sip extensions exten => 89300,1,Dial(SIP/89300) exten => 89301,1,Dial(SIP/89301) ;Simple rule to divert all calls from Sip extensions to Avaya extensions and External numbers on PSTN.

exten => _8XXXX,1,Dial(H323/${EXTEN}@Avaya); Avaya Extension exten => _90ZXXXXXXXXX,1,Dial(H323/${EXTEN}@Avaya); External National UK Number

You might also like