Trixbox and Avaya IP Office 406

I have an Avaya IP Office 406 and I want that it is able to comunicate with a trixbox, particularly that the phone connected to the Avaya could call the Trixbox extensions number and viceversa.

I’ve added a new line in the Avaya pointing to the Trixbox IP address with codec g711u 64k and a funcion code 67 to route the call starting with this two number vs the trixbox.

With Freepbx in the trixbox I’ve created a custom trunk with a custom dial string
OOH323/$OUTNUM$@XXX.XXX.XXX.XXX:1720
where XXX.XXX.XXX.XXX is the ip address of Avaya
and Maximum channels = 5

and in the outbound routes I’ve created one named
to-avaya
Dial Patterns= 67|.
Trunk Sequence= AMP:OOH323/$OUTNUM$@XXX.XXX.XXX.XXX:1720

Now the Trixbox extensions can call with the Avaya extensions putting 67 before the extension number to call, but on the contrary when I try to call a trixbox extension from an Avaya ip-phone the trixbox extensions ring once and hangs up.

Is there anyone can help me to solve this problem?

My ooh323.conf is :

ooh323.conf
[general]
;Define the asterisk server h323 endpoint
language=it

;The port asterisk should listen for incoming H323 connections.
;Default - 1720
;port=1720

;The IP address, asterisk should listen on for incoming H323
;connections
;Default - 0.0.0.0: tries to find out local ip address on it’s own
;bindaddr=0.0.0.0
bindaddr=YYY.YYY.YYY.YYY

;H.225 channel port range
;Default range is 12030 to 12230, Accepts port range from 1025 to 65500
;h225portrange=12030,12230

;Alias address for for asterisk server
;Default - "Asterisk PBX"
h323id=ObjSysAsterisk
e164=100

;CallerID for the asterisk originated calls
;Default - Same as h323id
callerid=asterisk

;This parameter indicates whether channel driver should register with
;gatekeeper as a gateway or an endpoint.
;Default - no
;gateway=no

;Whether this asterisk server will use gatekeeper.
;Default - DISABLE
;gatekeeper = DISCOVER
;gatekeeper = a.b.c.d
gatekeeper = DISABLE

;Whether asterisk should use fast-start and tunneling for H323 connections.
;Default - yes
;faststart=yes
;h245tunneling=yes
;faststart=no
;h245tunneling=no

;Whether media wait for connect for fast start call
;Default - no
;mediawaitforconnect=no

;Location for H323 log file
;Default - /var/log/asterisk/h323_log
;logfile=/var/log/asterisk/h323_log

;Following values apply to all users/peers/friends defined below, unless
;overridden within their client definition

;Sets default context all clients will be placed in.
;Default - default
context=from-internal

;Sets rtptimeout for all clients, unless overridden
;Default - 60 seconds
;rtptimeout=60 ; Terminate call if 60 seconds of no RTP activity
; when we’re not on hold

;Type of Service
;Default - none (lowdelay, thoughput, reliability, mincost, none)
;tos=lowdelay

;amaflags = default

;The account code used by default for all clients.
;accountcode=h3230101

;The codecs to be used for all clients.Only ulaw and gsm supported as of now.
;Default - ulaw
; ONLY ulaw, gsm, g729 and g7231 supported as of now
disallow=all ;Note order of disallow/allow is important.
allow=ulaw
musiconhold=default

; dtmf mode to be used by default for all clients. Supports rfc2833, q931keypad
; h245alphanumeric, h245signal.
;Default - rfc 2833
dtmfmode=rfc2833

; User/peer/friend definitions:
; User config options Peer config options
; ------------------ -------------------
; context
; disallow disallow
; allow allow
; accountcode accountcode
; amaflags amaflags
; dtmfmode dtmfmode
; rtptimeout rtptimeout
; ip
; port
; h323id
; email
; url
; e164
;
;

can you post you CLI output.

I found this lines in /var/log/asterisk/full

Nov 5 13:40:53 VERBOSE[17943] logger.c: – Executing Macro(“OOH323/Rossetti 248-d3dd”, “hangupcall”) in new stack
Nov 5 13:40:53 VERBOSE[17943] logger.c: – Executing ResetCDR(“OOH323/Rossetti 248-d3dd”, “w”) in new stack
Nov 5 13:40:53 DEBUG[17943] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Nov 5 13:40:53 DEBUG[17943] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dco
ntext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES (‘2007-11-05 13:
40:53’,’“Rossetti 248” <248>’,‘248’,‘s’,‘from-internal’, ‘OOH323/Rossetti 248-d3dd’,’’,‘ResetCDR’,‘w’,0,0,‘NO ANSWER’,3,‘as
t_h323’,‘1194266453.35’)
Nov 5 13:40:53 DEBUG[17943] app_macro.c: Executed application: ResetCDR
Nov 5 13:40:53 VERBOSE[17943] logger.c: – Executing NoCDR(“OOH323/Rossetti 248-d3dd”, “”) in new stack
Nov 5 13:40:53 NOTICE[17943] cdr.c: CDR on channel ‘OOH323/Rossetti 248-d3dd’ not posted
Nov 5 13:40:53 NOTICE[17943] cdr.c: CDR on channel ‘OOH323/Rossetti 248-d3dd’ lacks end
Nov 5 13:40:53 DEBUG[17943] app_macro.c: Executed application: NoCDR
Nov 5 13:40:53 DEBUG[17943] pbx.c: Expression result is '1’
Nov 5 13:40:53 VERBOSE[17943] logger.c: – Executing GotoIf(“OOH323/Rossetti 248-d3dd”, “1?skiprg”) in new stack
Nov 5 13:40:53 VERBOSE[17943] logger.c: – Goto (macro-hangupcall,s,6)
Nov 5 13:40:53 DEBUG[17943] app_macro.c: Executed application: GotoIf
Nov 5 13:40:53 DEBUG[17943] pbx.c: Expression result is '1’
Nov 5 13:40:53 VERBOSE[17943] logger.c: – Executing GotoIf(“OOH323/Rossetti 248-d3dd”, “1?theend”) in new stack
Nov 5 13:40:53 VERBOSE[17943] logger.c: – Goto (macro-hangupcall,s,9)
Nov 5 13:40:53 DEBUG[17943] app_macro.c: Executed application: GotoIf
Nov 5 13:40:53 VERBOSE[17943] logger.c: – Executing Wait(“OOH323/Rossetti 248-d3dd”, “5”) in new stack
Nov 5 13:40:58 DEBUG[9037] acl.c: ##### Testing 192.168.1.71 with 192.168.1.0
Nov 5 13:40:58 DEBUG[17943] app_macro.c: Executed application: Wait
Nov 5 13:40:58 VERBOSE[17943] logger.c: – Executing Hangup(“OOH323/Rossetti 248-d3dd”, “”) in new stack
Nov 5 13:40:58 VERBOSE[17943] logger.c: == Spawn extension (macro-hangupcall, s, 10) exited non-zero on ‘OOH323/Rossetti 2
48-d3dd’ in macro 'hangupcall’
Nov 5 13:40:58 VERBOSE[17943] logger.c: == Spawn extension (macro-hangupcall, s, 10) exited non-zero on ‘OOH323/Rossetti 2
48-d3dd’

and this in h323_log


13:40:53:784 Created a new call (incoming, ooh323c_2)
13:40:53:784 Received SETUP message (incoming, ooh323c_2)
13:40:53:784 Call has tunneling active (incoming,ooh323c_2)
13:40:53:784 Enabled RFC2833 DTMF capability for (incoming, ooh323c_2)
13:40:53:785 Sent Message - CallProceeding (incoming, ooh323c_2)
13:40:53:785 Sent Message - Alerting (incoming, ooh323c_2)
13:40:58:791 Processing Hang call command ooh323c_2
13:40:58:791 Hanging up call (incoming, ooh323c_2)
13:40:58:792 Sent Message - ReleaseComplete (incoming, ooh323c_2)
13:40:58:796 Warn:RemoteEndpoint closed connection (incoming, ooh323c_2)
13:40:58:796 Cleaning Call (incoming, ooh323c_2)- reason:OO_REASON_REMOTE_CLEARED
13:40:58:796 Closing H.245 connection (incoming, ooh323c_2)
13:40:58:796 Removed call (incoming, ooh323c_2) from list