[SOLVE] FreePbx Connect to Avaya

May I ask, how do I connect FreePBX and Avaya? and if I call ext located at Avaya was always “server unreachble” status of this I can get it from ip phone 3CX, 3 times ringing and phone disconnected

if the fellow ext at normal running FreePBX I have configured the trunk, outbound, inbound, toward the side of Avaya and Avaya already opened to port 5060 …

FreePBX status with the command “sip show peers” there has been yes, for the H323 module is also already running.

What kind of Avaya PBX? sip trunk or H.323?

Avaya PBX is Avaya CM , and use H.323

[2017-04-10 02:33:57] ERROR[29622][C-00000003]: chan_ooh323.c:732 ooh323_request: Call to undefined peer 10.0.0.2:1720[2017-04-10 02:33:57] WARNING[29622][C-00000003]: app_dial.c:2525 dial_exec_full: Unable to create channel of type ‘OOH323’ (cause 0 - Unknown)

why?

and this is configure

[general]
port=1720
bindaddr=(ip freepbx)
disallow=all
allow=alaw
dtmfmode=inband
gatekeeper=DISABLE
context=default
progress_setup=8
progress_alert=8
h245tunneling=yes

[H323peer]
type=friend
context=default
host=(ip avaya)
port=1720
disallow=all
allow=alaw,g729,gsm

now Avaya connected to Freepbx , and Avaya ext call freepbx ext success, but freepbx ext call avaya ext cannot call, my config H323 :

[general]
port=1720
bindaddr=10.0.24.48
gateway=no
faststart=yes
h245tunneling=yes
gatekeeper=DISABLE

Default = /var/log/asterisk/h323_log
logfile=/var/log/asterisk/h323_log

type=friend
context=from-trunk
disallow=all
allow=g729
allow=alaw
dtmfmode=rfc2833
canreinvite=no

tracelevel=5

[avaya]
ip=10.0.0.2
port=1720
type=friend
context=from-trunk
disallow=all
allow=g729
allow=alaw

my log Avaya to FreePBX :

Connected to Asterisk 13.14.0 currently running on localhost (pid = 1936)
– Executing [[email protected]:1] GotoIf(“OOH323/avaya-28”, “1?ext-local,8001,1:followme-check,8001,1”) in new stack
– Goto (ext-local,8001,1)
– Executing [[email protected]:1] Set(“OOH323/avaya-28”, “__RINGTIMER=15”) in new stack
– Executing [[email protected]:2] Macro(“OOH323/avaya-28”, “exten-vm,novm,8001,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“OOH323/avaya-28”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“OOH323/avaya-28”, “TOUCH_MONITOR=1491851310.47”) in new stack
– Executing [[email protected]:2] Set(“OOH323/avaya-28”, “AMPUSER=”) in new stack
– Executing [[email protected]:3] GotoIf(“OOH323/avaya-28”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“OOH323/avaya-28”, “1?Set(REALCALLERIDNUM=)”) in new stack
– Executing [[email protected]:5] Set(“OOH323/avaya-28”, “AMPUSER=”) in new stack
– Executing [[email protected]:6] GotoIf(“OOH323/avaya-28”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“OOH323/avaya-28”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:8] GotoIf(“OOH323/avaya-28”, “1?report”) in new stack
– Goto (macro-user-callerid,s,15)
– Executing [[email protected]:15] GotoIf(“OOH323/avaya-28”, “0?continue”) in new stack
– Executing [[email protected]:16] ExecIf(“OOH323/avaya-28”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [[email protected]:17] Set(“OOH323/avaya-28”, “__TTL=64”) in new stack
– Executing [[email protected]:18] GotoIf(“OOH323/avaya-28”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [[email protected]:29] Set(“OOH323/avaya-28”, “CALLERID(number)=”) in new stack
– Executing [[email protected]:30] Set(“OOH323/avaya-28”, “CALLERID(name)=”) in new stack
– Executing [[email protected]:31] GotoIf(“OOH323/avaya-28”, “1?cnum”) in new stack
– Goto (macro-user-callerid,s,33)
– Executing [[email protected]:33] Set(“OOH323/avaya-28”, “CDR(cnum)=”) in new stack
[2017-04-11 02:08:30] WARNING[1960]: func_cdr.c:383 cdr_write_callback: CDR requires a value (CDR(variable)=value)
– Executing [[email protected]:34] Set(“OOH323/avaya-28”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“OOH323/avaya-28”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“OOH323/avaya-28”, “__EXTTOCALL=8001”) in new stack
– Executing [[email protected]:4] Set(“OOH323/avaya-28”, “__PICKUPMARK=8001”) in new stack
– Executing [[email protected]:5] Set(“OOH323/avaya-28”, “RT=”) in new stack
[2017-04-11 02:08:30] WARNING[22914][C-00000029]: chan_sip.c:22827 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:6] ExecIf(“OOH323/avaya-28”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
[2017-04-11 02:08:30] WARNING[22914][C-00000029]: chan_sip.c:22827 func_header_read: This function can only be used on SIP channels.
[2017-04-11 02:08:30] WARNING[22914][C-00000029]: chan_sip.c:22827 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:7] ExecIf(“OOH323/avaya-28”, “0?MacroExit()”) in new stack
[2017-04-11 02:08:30] WARNING[22914][C-00000029]: chan_sip.c:22827 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:8] Gosub(“OOH323/avaya-28”, “sub-record-check,s,1(exten,8001,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“OOH323/avaya-28”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“OOH323/avaya-28”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“OOH323/avaya-28”, “NOW=1491851310”) in new stack
– Executing [[email protected]:4] Set(“OOH323/avaya-28”, “__DAY=11”) in new stack
– Executing [[email protected]:5] Set(“OOH323/avaya-28”, “__MONTH=04”) in new stack
– Executing [[email protected]:6] Set(“OOH323/avaya-28”, “__YEAR=2017”) in new stack
– Executing [[email protected]:7] Set(“OOH323/avaya-28”, “__TIMESTR=20170411-020830”) in new stack
– Executing [[email protected]:8] Set(“OOH323/avaya-28”, “__FROMEXTEN=unknown”) in new stack
– Executing [[email protected]:9] Set(“OOH323/avaya-28”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“OOH323/avaya-28”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“OOH323/avaya-28”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“OOH323/avaya-28”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“OOH323/avaya-28”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“OOH323/avaya-28”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“OOH323/avaya-28”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]:1] NoOp(“OOH323/avaya-28”, “Exten Recording Check between unknown and 8001”) in new stack
– Executing [[email protected]:2] Set(“OOH323/avaya-28”, “CALLTYPE=internal”) in new stack
– Executing [[email protected]:3] ExecIf(“OOH323/avaya-28”, “0?Set(CALLTYPE=)”) in new stack
– Executing [[email protected]:4] Set(“OOH323/avaya-28”, “CALLEE=dontcare”) in new stack
– Executing [[email protected]:5] ExecIf(“OOH323/avaya-28”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [[email protected]:6] GotoIf(“OOH323/avaya-28”, “0?callee”) in new stack
– Executing [[email protected]:7] GotoIf(“OOH323/avaya-28”, “1?caller”) in new stack
– Goto (sub-record-check,exten,13)
– Executing [[email protected]:13] Set(“OOH323/avaya-28”, “RECMODE=”) in new stack
– Executing [[email protected]:14] ExecIf(“OOH323/avaya-28”, “1?Set(RECMODE=dontcare)”) in new stack
– Executing [[email protected]:15] ExecIf(“OOH323/avaya-28”, “1?Set(RECMODE=dontcare)”) in new stack
– Executing [[email protected]:16] Gosub(“OOH323/avaya-28”, “recordcheck,1(dontcare,internal,8001)”) in new stack
– Executing [[email protected]:1] NoOp(“OOH323/avaya-28”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“OOH323/avaya-28”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“OOH323/avaya-28”, “”) in new stack
– Executing [[email protected]:17] Return(“OOH323/avaya-28”, “”) in new stack
– Executing [[email protected]:9] GotoIf(“OOH323/avaya-28”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,15)
– Executing [[email protected]:15] GosubIf(“OOH323/avaya-28”, “0?clrheader,1()”) in new stack
– Executing [[email protected]:16] Macro(“OOH323/avaya-28”, “dial-one,Ttr,8001”) in new stack
– Executing [[email protected]:1] Set(“OOH323/avaya-28”, “DEXTEN=8001”) in new stack
– Executing [[email protected]:2] ExecIf(“OOH323/avaya-28”, “0?Set(EXTTOCALL=8001)”) in new stack
– Executing [[email protected]:3] Set(“OOH323/avaya-28”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:4] GosubIf(“OOH323/avaya-28”, “0?screen,1()”) in new stack
– Executing [[email protected]:5] GosubIf(“OOH323/avaya-28”, “0?cf,1()”) in new stack
– Executing [[email protected]:6] GotoIf(“OOH323/avaya-28”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,9)
– Executing [[email protected]:9] GotoIf(“OOH323/avaya-28”, “0?nodial”) in new stack
– Executing [[email protected]:10] GotoIf(“OOH323/avaya-28”, “0?continue”) in new stack
– Executing [[email protected]:11] Set(“OOH323/avaya-28”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:12] GotoIf(“OOH323/avaya-28”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [[email protected]:24] GotoIf(“OOH323/avaya-28”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,26)
– Executing [[email protected]:26] GotoIf(“OOH323/avaya-28”, “0?nodial”) in new stack
– Executing [[email protected]:27] GosubIf(“OOH323/avaya-28”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“OOH323/avaya-28”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“OOH323/avaya-28”, “DEVICES=8001”) in new stack
– Executing [[email protected]:3] ExecIf(“OOH323/avaya-28”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“OOH323/avaya-28”, “0?Set(DEVICES=001)”) in new stack
– Executing [[email protected]:5] Set(“OOH323/avaya-28”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“OOH323/avaya-28”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“OOH323/avaya-28”, “THISDIAL=PJSIP/8001”) in new stack
– Executing [[email protected]:8] GosubIf(“OOH323/avaya-28”, “1?zap2dahdi,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“OOH323/avaya-28”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“OOH323/avaya-28”, “NEWDIAL=”) in new stack
– Executing [[email protected]:3] Set(“OOH323/avaya-28”, “LOOPCNT2=1”) in new stack
– Executing [[email protected]:4] Set(“OOH323/avaya-28”, “ITER2=1”) in new stack
– Executing [[email protected]:5] Set(“OOH323/avaya-28”, “THISPART2=PJSIP/8001”) in new stack
– Executing [[email protected]:6] ExecIf(“OOH323/avaya-28”, “0?Set(THISPART2=DAHDIIP/8001)”) in new stack
– Executing [[email protected]:7] Set(“OOH323/avaya-28”, “NEWDIAL=PJSIP/8001&”) in new stack
– Executing [[email protected]:8] Set(“OOH323/avaya-28”, “ITER2=2”) in new stack
– Executing [[email protected]:9] GotoIf(“OOH323/avaya-28”, “0?begin2”) in new stack
– Executing [[email protected]:10] Set(“OOH323/avaya-28”, “THISDIAL=PJSIP/8001”) in new stack
– Executing [[email protected]:11] Return(“OOH323/avaya-28”, “”) in new stack
– Executing [[email protected]:9] GotoIf(“OOH323/avaya-28”, “0?docheck”) in new stack
– Executing [[email protected]:10] NoOp(“OOH323/avaya-28”, “Debug: Found PJSIP Destination PJSIP/8001”) in new stack
– Executing [[email protected]:11] GotoIf(“OOH323/avaya-28”, “0?doset”) in new stack
– Executing [[email protected]:12] NoOp(“OOH323/avaya-28”, “Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS”) in new stack
– Executing [[email protected]:13] Set(“OOH323/avaya-28”, “THISDIAL=PJSIP/8001/sip:[email protected]:51874;rinstance=5299f4c4a1e4be15”) in new stack
– Executing [[email protected]:14] GotoIf(“OOH323/avaya-28”, “0?skipset”) in new stack
– Executing [[email protected]:15] Set(“OOH323/avaya-28”, “DSTRING=PJSIP/8001/sip:[email protected]:51874;rinstance=5299f4c4a1e4be15&”) in new stack
– Executing [[email protected]:16] Set(“OOH323/avaya-28”, “ITER=2”) in new stack
– Executing [[email protected]:17] GotoIf(“OOH323/avaya-28”, “0?begin”) in new stack
– Executing [[email protected]:18] ExecIf(“OOH323/avaya-28”, “0?Return()”) in new stack
– Executing [[email protected]:19] Set(“OOH323/avaya-28”, “DSTRING=PJSIP/8001/sip:[email protected]:51874;rinstance=5299f4c4a1e4be15”) in new stack
– Executing [[email protected]:20] Return(“OOH323/avaya-28”, “”) in new stack
– Executing [[email protected]:28] GotoIf(“OOH323/avaya-28”, “0?nodial”) in new stack
– Executing [[email protected]:29] GotoIf(“OOH323/avaya-28”, “0?skiptrace”) in new stack
– Executing [[email protected]-dial-one:30] GosubIf(“OOH323/avaya-28”, “0?ctset,1():ctclear,1()”) in new stack
– Executing [[email protected]:1] NoOp(“OOH323/avaya-28”, "Deleting: CALLTRACE/8001 ") in new stack
– Executing [[email protected]:2] Return(“OOH323/avaya-28”, “”) in new stack
– Executing [[email protected]:31] Set(“OOH323/avaya-28”, “D_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:32] NoOp(“OOH323/avaya-28”, "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
– Executing [[email protected]:33] ExecIf(“OOH323/avaya-28”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:34] ExecIf(“OOH323/avaya-28”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:35] ExecIf(“OOH323/avaya-28”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:36] ExecIf(“OOH323/avaya-28”, “0?Set(ALERT_INFO=;volume=)”) in new stack
– Executing [[email protected]:37] ExecIf(“OOH323/avaya-28”, “0?Set(ALERT_INFO=;volume=)”) in new stack
– Executing [[email protected]:38] GosubIf(“OOH323/avaya-28”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:39] ExecIf(“OOH323/avaya-28”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:40] GosubIf(“OOH323/avaya-28”, “0?qwait,1()”) in new stack
– Executing [[email protected]:41] Set(“OOH323/avaya-28”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:42] Set(“OOH323/avaya-28”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]:43] GotoIf(“OOH323/avaya-28”, “0?usegoto,1”) in new stack
– Executing [[email protected]:44] GotoIf(“OOH323/avaya-28”, “1?godial”) in new stack
– Goto (macro-dial-one,s,49)
– Executing [[email protected]:49] Macro(“OOH323/avaya-28”, “dialout-one-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“OOH323/avaya-28”, “”) in new stack
– Executing [[email protected]:50] ExecIf(“OOH323/avaya-28”, “0?Set(D_OPTIONS=trI)”) in new stack
– Executing [[email protected]:51] Dial(“OOH323/avaya-28”, “PJSIP/8001/sip:[email protected]:51874;rinstance=5299f4c4a1e4be15,Ttrb(func-apply-sipheaders^s^1)”) in new stack
– PJSIP/8001-00000013 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [[email protected]:1] NoOp(“PJSIP/8001-00000013”, “Applying SIP Headers to channel”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/8001-00000013”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:3] While(“PJSIP/8001-00000013”, “0”) in new stack
– Jumping to priority 7
– Executing [[email protected]:8] Return(“PJSIP/8001-00000013”, “”) in new stack
== Spawn extension (from-trunk, 8001, 1) exited non-zero on ‘PJSIP/8001-00000013’
– PJSIP/8001-00000013 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called PJSIP/8001/sip:[email protected]:51874;rinstance=5299f4c4a1e4be15
[2017-04-11 02:08:30] WARNING[22914][C-00000029]: channel.c:5630 set_format: Unable to find a codec translation path: (slin) -> (g729)
[2017-04-11 02:08:30] WARNING[22914][C-00000029]: indications.c:156 playtones_alloc: Unable to set ‘OOH323/avaya-28’ to signed linear format (write)
[2017-04-11 02:08:30] WARNING[22914][C-00000029]: channel.c:4747 indicate_data_internal: Unable to handle indication 3 for ‘OOH323/avaya-28’
– PJSIP/8001-00000013 is ringing
[2017-04-11 02:08:30] WARNING[22914][C-00000029]: channel.c:5630 set_format: Unable to find a codec translation path: (slin) -> (g729)
[2017-04-11 02:08:30] WARNING[22914][C-00000029]: indications.c:156 playtones_alloc: Unable to set ‘OOH323/avaya-28’ to signed linear format (write)
[2017-04-11 02:08:30] WARNING[22914][C-00000029]: channel.c:4747 indicate_data_internal: Unable to handle indication 3 for ‘OOH323/avaya-28’
[2017-04-11 02:08:32] WARNING[22913]: channel.c:5630 set_format: Unable to find a codec translation path: (g729) -> (alaw)
[2017-04-11 02:08:32] WARNING[22913]: channel.c:5630 set_format: Unable to find a codec translation path: (alaw) -> (g729)
– PJSIP/8001-00000013 answered OOH323/avaya-28
– Channel PJSIP/8001-00000013 joined ‘simple_bridge’ basic-bridge <73b09f27-cc06-41ec-8dc5-78ebe73ad65d>
– Channel OOH323/avaya-28 joined ‘simple_bridge’ basic-bridge <73b09f27-cc06-41ec-8dc5-78ebe73ad65d>
– Channel PJSIP/8001-00000013 left ‘simple_bridge’ basic-bridge <73b09f27-cc06-41ec-8dc5-78ebe73ad65d>
– Channel OOH323/avaya-28 left ‘simple_bridge’ basic-bridge <73b09f27-cc06-41ec-8dc5-78ebe73ad65d>
== Spawn extension (macro-dial-one, s, 51) exited non-zero on ‘OOH323/avaya-28’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 16) exited non-zero on ‘OOH323/avaya-28’ in macro ‘exten-vm’
== Spawn extension (ext-local, 8001, 2) exited non-zero on ‘OOH323/avaya-28’
– Executing [[email protected]:1] Macro(“OOH323/avaya-28”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“OOH323/avaya-28”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“OOH323/avaya-28”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] Hangup(“OOH323/avaya-28”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘OOH323/avaya-28’ in macro ‘hangupcall’
== Spawn extension (ext-local, h, 1) exited non-zero on ‘OOH323/avaya-28’

my log FreePBX to Avaya :

Connected to Asterisk 13.14.0 currently running on localhost (pid = 1936)
== Setting global variable ‘SIPDOMAIN’ to ‘10.0.24.48’
– Executing [[email protected]:1] NoOp(“PJSIP/8001-00000014”, “Catch-All DID Match - Found 8200106 - You probably want a DID for this.”) in new stack
[2017-04-11 02:09:54] WARNING[23846][C-0000002a]: chan_sip.c:22827 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:2] Log(“PJSIP/8001-00000014”, "WARNING,Friendly Scanner from ") in new stack
[2017-04-11 02:09:54] WARNING[23846][C-0000002a]: Ext. 8200106:2 @ from-trunk: Friendly Scanner from
– Executing [[email protected]:3] Set(“PJSIP/8001-00000014”, “__FROM_DID=8200106”) in new stack
– Executing [[email protected]:4] Goto(“PJSIP/8001-00000014”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [[email protected]:1] Set(“PJSIP/8001-00000014”, “__DIRECTION=INBOUND”) in new stack
– Executing [[email protected]:2] Gosub(“PJSIP/8001-00000014”, “app-blacklist-check,s,1()”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/8001-00000014”, “0?blacklisted”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/8001-00000014”, “CALLED_BLACKLIST=1”) in new stack
– Executing [[email protected]:3] Return(“PJSIP/8001-00000014”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/8001-00000014”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/8001-00000014”, “CDR(did)=8200106”) in new stack
– Executing [[email protected]:5] ExecIf(“PJSIP/8001-00000014”, “0 ?Set(CALLERID(name)=8001)”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/8001-00000014”, “__MOHCLASS=”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/8001-00000014”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [[email protected]:8] GotoIf(“PJSIP/8001-00000014”, “1?post-reverse-charge”) in new stack
– Goto (ext-did,s,10)
– Executing [[email protected]:10] NoOp(“PJSIP/8001-00000014”, “”) in new stack
– Executing [[email protected]:11] Set(“PJSIP/8001-00000014”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/8001-00000014”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:13] Set(“PJSIP/8001-00000014”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [[email protected]:14] Set(“PJSIP/8001-00000014”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [[email protected]:15] NoOp(“PJSIP/8001-00000014”, “CallerID Entry Point”) in new stack
– Executing [[email protected]:16] Goto(“PJSIP/8001-00000014”, “ext-trunk,2,1”) in new stack
– Goto (ext-trunk,2,1)
– Executing [[email protected]:1] Set(“PJSIP/8001-00000014”, “SS=$”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/8001-00000014”, “TDIAL_STRING=OOH323/${OUTNUM}@10.0.0.2:1720”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/8001-00000014”, “DIAL_TRUNK=2”) in new stack
– Executing [[email protected]:4] Goto(“PJSIP/8001-00000014”, “ext-trunk,tcustom,1”) in new stack
– Goto (ext-trunk,tcustom,1)
– Executing [[email protected]:1] Set(“PJSIP/8001-00000014”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [[email protected]:2] GotoIf(“PJSIP/8001-00000014”, “0?nomax”) in new stack
– Executing [[email protected]:3] GotoIf(“PJSIP/8001-00000014”, “0?hangit”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/8001-00000014”, “1?Set(CALLERPRES(name-pres)=allowed_not_screened)”) in new stack
– Executing [[email protected]:5] ExecIf(“PJSIP/8001-00000014”, “1?Set(CALLERPRES(num-pres)=allowed_not_screened)”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/8001-00000014”, “DIAL_NUMBER=8200106”) in new stack
– Executing [[email protected]:7] GosubIf(“PJSIP/8001-00000014”, “1?sub-flp-2,s,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“PJSIP/8001-00000014”, “1?Return()”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/8001-00000014”, “OUTNUM=8200106”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/8001-00000014”, “CALLERID(number)=8001”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/8001-00000014”, “CALLERID(name)=device”) in new stack
– Executing [[email protected]:11] Set(“PJSIP/8001-00000014”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [[email protected]:12] Dial(“PJSIP/8001-00000014”, “OOH323/[email protected]:1720,300,T”) in new stack
[2017-04-11 02:09:54] ERROR[23846][C-0000002a]: chan_ooh323.c:732 ooh323_request: Call to undefined peer 10.0.0.2:1720[2017-04-11 02:09:54] WARNING[23846][C-0000002a]: app_dial.c:2525 dial_exec_full: Unable to create channel of type ‘OOH323’ (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:13] Hangup(“PJSIP/8001-00000014”, “”) in new stack
== Spawn extension (ext-trunk, tcustom, 13) exited non-zero on ‘PJSIP/8001-00000014’

plissss help me master :sob: :sob: :sob: :sob:

this is log from /var/log/asterisk/full :

[2017-04-11 02:29:28] VERBOSE[5355][C-00000036] pbx.c: Executing [[email protected]:8] Set(“PJSIP/8001-0000001f”, “OUTNUM=8200106”) in new stack
[2017-04-11 02:29:28] VERBOSE[5355][C-00000036] pbx.c: Executing [[email protected]:9] Set(“PJSIP/8001-0000001f”, “CALLERID(number)=8001”) in new stack
[2017-04-11 02:29:28] VERBOSE[5355][C-00000036] pbx.c: Executing [[email protected]:10] Set(“PJSIP/8001-0000001f”, “CALLERID(name)=device”) in new stack
[2017-04-11 02:29:28] VERBOSE[5355][C-00000036] pbx.c: Executing [[email protected]:11] Set(“PJSIP/8001-0000001f”, “DIAL_TRUNK_OPTIONS=T”) in new stack
[2017-04-11 02:29:28] VERBOSE[5355][C-00000036] pbx.c: Executing [[email protected]:12] Dial(“PJSIP/8001-0000001f”, “OOH323/[email protected]:1720,300,T”) in new stack
[2017-04-11 02:29:28] ERROR[5355][C-00000036] chan_ooh323.c: Call to undefined peer 10.0.0.2:1720[2017-04-11 02:29:28] WARNING[5355][C-00000036] app_dial.c: Unable to create channel of type ‘OOH323’ (cause 0 - Unknown)
[2017-04-11 02:29:28] VERBOSE[5355][C-00000036] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2017-04-11 02:29:28] VERBOSE[5355][C-00000036] pbx.c: Executing [[email protected]:13] Hangup(“PJSIP/8001-0000001f”, “”) in new stack
[2017-04-11 02:29:28] VERBOSE[5355][C-00000036] pbx.c: Spawn extension (ext-trunk, tcustom, 13) exited non-zero on ‘PJSIP/8001-0000001f’
[2017-04-11 02:29:42] VERBOSE[27012] asterisk.c: Remote UNIX connection disconnected
[2017-04-11 02:30:50] VERBOSE[7393] pbx_variables.c: Setting global variable ‘SIPDOMAIN’ to ‘10.0.24.48’
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:1] NoOp(“PJSIP/8001-00000020”, “Catch-All DID Match - Found 8200106 - You probably want a DID for this.”) in new stack
[2017-04-11 02:30:50] WARNING[6293][C-00000037] chan_sip.c: This function can only be used on SIP channels.
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:2] Log(“PJSIP/8001-00000020”, "WARNING,Friendly Scanner from ") in new stack
[2017-04-11 02:30:50] WARNING[6293][C-00000037] Ext. 8200106: Friendly Scanner from
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]rom-trunk:3] Set(“PJSIP/8001-00000020”, “__FROM_DID=8200106”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:4] Goto(“PJSIP/8001-00000020”, “ext-did,s,1”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx_builtins.c: Goto (ext-did,s,1)
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:1] Set(“PJSIP/8001-00000020”, “__DIRECTION=INBOUND”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:2] Gosub(“PJSIP/8001-00000020”, “app-blacklist-check,s,1()”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:1] GotoIf(“PJSIP/8001-00000020”, “0?blacklisted”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:2] Set(“PJSIP/8001-00000020”, “CALLED_BLACKLIST=1”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:3] Return(“PJSIP/8001-00000020”, “”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:3] ExecIf(“PJSIP/8001-00000020”, “0?Set(__FROM_DID=s)”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:4] Set(“PJSIP/8001-00000020”, “CDR(did)=8200106”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:5] ExecIf(“PJSIP/8001-00000020”, “0 ?Set(CALLERID(name)=8001)”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:6] Set(“PJSIP/8001-00000020”, “__MOHCLASS=”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:7] Set(“PJSIP/8001-00000020”, “__REVERSAL_REJECT=FALSE”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:8] GotoIf(“PJSIP/8001-00000020”, “1?post-reverse-charge”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx_builtins.c: Goto (ext-did,s,10)
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:10] NoOp(“PJSIP/8001-00000020”, “”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:11] Set(“PJSIP/8001-00000020”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:12] Set(“PJSIP/8001-00000020”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:13] Set(“PJSIP/8001-00000020”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:14] Set(“PJSIP/8001-00000020”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:15] NoOp(“PJSIP/8001-00000020”, “CallerID Entry Point”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:16] Goto(“PJSIP/8001-00000020”, “ext-trunk,2,1”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx_builtins.c: Goto (ext-trunk,2,1)
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:1] Set(“PJSIP/8001-00000020”, “SS=$”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:2] Set(“PJSIP/8001-00000020”, “TDIAL_STRING=OOH323/${OUTNUM}@10.0.0.2:1720”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:3] Set(“PJSIP/8001-00000020”, “DIAL_TRUNK=2”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:4] Goto(“PJSIP/8001-00000020”, “ext-trunk,tcustom,1”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx_builtins.c: Goto (ext-trunk,tcustom,1)
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:1] Set(“PJSIP/8001-00000020”, “OUTBOUND_GROUP=OUT_2”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:2] GotoIf(“PJSIP/8001-00000020”, “0?nomax”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:3] GotoIf(“PJSIP/8001-00000020”, “0?hangit”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:4] ExecIf(“PJSIP/8001-00000020”, “1?Set(CALLERPRES(name-pres)=allowed_not_screened)”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:5] ExecIf(“PJSIP/8001-00000020”, “1?Set(CALLERPRES(num-pres)=allowed_not_screened)”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:6] Set(“PJSIP/8001-00000020”, “DIAL_NUMBER=8200106”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:7] GosubIf(“PJSIP/8001-00000020”, “1?sub-flp-2,s,1()”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:1] ExecIf(“PJSIP/8001-00000020”, “1?Return()”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:8] Set(“PJSIP/8001-00000020”, “OUTNUM=8200106”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:9] Set(“PJSIP/8001-00000020”, “CALLERID(number)=8001”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:10] Set(“PJSIP/8001-00000020”, “CALLERID(name)=device”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:11] Set(“PJSIP/8001-00000020”, “DIAL_TRUNK_OPTIONS=T”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:12] Dial(“PJSIP/8001-00000020”, “OOH323/[email protected]:1720,300,T”) in new stack
[2017-04-11 02:30:50] ERROR[6293][C-00000037] chan_ooh323.c: Call to undefined peer 10.0.0.2:1720[2017-04-11 02:30:50] WARNING[6293][C-00000037] app_dial.c: Unable to create channel of type ‘OOH323’ (cause 0 - Unknown)
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Executing [[email protected]:13] Hangup(“PJSIP/8001-00000020”, “”) in new stack
[2017-04-11 02:30:50] VERBOSE[6293][C-00000037] pbx.c: Spawn extension (ext-trunk, tcustom, 13) exited non-zero on ‘PJSIP/8001-00000020’

It looks like the Avaya is trying to use g729 as the codec. Modify you ip regions on the Avaya and only allow g711 alaw and g711 unlaw free pbx does not include the g729 codec

Jason

this problem because my outgoing is wrong setting :sob: :sob: :sob:
and now problem solve,

codec in freepbx and avaya is oke and no problem, my outgoing setting use the custom setting and not use chan_sip or chan_pjsip for connect to avaya.

this is my H.323 setting :slight_smile:

[general]
port=1720
bindaddr=10.0.24.48
gateway=no
faststart=yes
h245tunneling=yes
gatekeeper=DISABLE

Default = /var/log/asterisk/h323_log
logfile=/var/log/asterisk/h323_log

type=friend
context=from-trunk
disallow=all
allow=g722,g729,alaw
dtmfmode=rfc2833
canreinvite=no

tracelevel=5
trustrpid=yes
sendrpid=yes

[avaya]
ip=10.0.0.2
port=1720
type=friend
context=from-trunk
disallow=all
allow=g722,g729,alaw

[avaya2]
ip=10.0.0.2
port=1720
type=friend
context=from-trunk
disallow=all
allow=g722,g729,alaw

and this is trunk setting use custom setting trunk :blush:

OOH323/[email protected]

thx for everyone , and i hope this discussion help for you all