Issabel ISO (Latest): Download Here
Cloud Services: User Portal - Quick Guide
News: Telegram channel
Become a Patron!
  • General
  • H323 Trunk between Elastix 4 and Alcatel OmniPCX

Dear all,
I need help in fixing a call issue between Elastix 4 and Alcatel OmniPCX using an H323 trunk.

When i call an extension on the Alcatel OmniPCX using a sip extension on Elastix, i hear a ring on my side but the receiver on the alcatel end does not hear any rings. Eventually i get an all circuits are busy message after several rings.

When an extension from the Alcatel side calls my sip extension on Elastix, i hear the ring but when i pick up the call, i dont hear anything on from the caller.

My /etc/asterisk/ooh323.conf looks like this:

[general]
port = 1720
bindaddr = xx.xx.xx.xxx ; My Elastix sever IP
disallow = all
allow = g729
allow = alaw
allow = ulaw
allow = gsm
allow = g723
dtmfmode=rfc2833
context = from-internal
progress_setup = 8
progress_alert = 8
gatekeeper = disable
h245tunneling = yes
faststart = no
h245inSetup = yes
silenceSuppression=no
h323id=ObjSysAsterisk
e164=100
callerid=asterisk

[NMG_HQ_PBX]
type = friend
context = from-internal
host = 172.16.5.152
ip = 172.16.5.152
port = 1720
disallow = all
allow = g729
allow = alaw
allow = ulaw
allow = gsm
allow = g723
dtmfmode=rfc2833

tail -f /var/log/asterisk/h323_log

Stack trace:21:03:00:246 Error:Failed to encode H245 message. (incoming, ooh323c_1)
21:03:00:246 Error:Failed to enqueue TCS message to outbound queue. (incoming, ooh323c_1)
21:03:00:246 ERROR:Sending Terminal capability message (incoming, ooh323c_1)
21:03:00:246 Asn1Error: -24 at ooh323c/src/encode.c:350
21:03:00:246 ERROR: H245 Message encoding failed (incoming, ooh323c_1)
21:03:00:246 ASN.1 ERROR: Status -24

Stack trace:21:03:00:246 Error:Failed to encode H245 message. (incoming, ooh323c_1)
21:03:00:246 Error:Failed to enqueue TCS message to outbound queue. (incoming, ooh323c_1)
C
[root@abulcoms ~]# tail -20 /var/log/asterisk/h323_log
21:02:59:943 Asn1Error: -24 at ooh323c/src/encode.c:350
21:02:59:943 ERROR: H245 Message encoding failed (incoming, ooh323c_1)
21:02:59:943 ASN.1 ERROR: Status -24

Stack trace:21:02:59:943 Error:Failed to encode H245 message. (incoming, ooh323c_1)
21:02:59:943 Error:Failed to enqueue TCS message to outbound queue. (incoming, ooh323c_1)
21:02:59:943 ERROR:Sending Terminal capability message (incoming, ooh323c_1)
21:03:00:246 Asn1Error: -24 at ooh323c/src/encode.c:350
21:03:00:246 ERROR: H245 Message encoding failed (incoming, ooh323c_1)
21:03:00:246 ASN.1 ERROR: Status -24

Stack trace:21:03:00:246 Error:Failed to encode H245 message. (incoming, ooh323c_1)
21:03:00:246 Error:Failed to enqueue TCS message to outbound queue. (incoming, ooh323c_1)
21:03:00:246 ERROR:Sending Terminal capability message (incoming, ooh323c_1)
21:03:00:246 Asn1Error: -24 at ooh323c/src/encode.c:350
21:03:00:246 ERROR: H245 Message encoding failed (incoming, ooh323c_1)
21:03:00:246 ASN.1 ERROR: Status -24

Stack trace:21:03:00:246 Error:Failed to encode H245 message. (incoming, ooh323c_1)
21:03:00:246 Error:Failed to enqueue TCS message to outbound queue. (incoming, ooh323c_1)
[root@abulcoms ~]# tail -30 /var/log/asterisk/h323_log
Stack trace:21:02:59:943 Error:Failed to encode H245 message. (incoming, ooh323c_1)
21:02:59:943 Error:Failed to enqueue TCS message to outbound queue. (incoming, ooh323c_1)
21:02:59:943 ERROR:Sending Terminal capability message (incoming, ooh323c_1)
21:02:59:943 Asn1Error: -24 at ooh323c/src/encode.c:350
21:02:59:943 ERROR: H245 Message encoding failed (incoming, ooh323c_1)
21:02:59:943 ASN.1 ERROR: Status -24

Stack trace:21:02:59:943 Error:Failed to encode H245 message. (incoming, ooh323c_1)
21:02:59:943 Error:Failed to enqueue TCS message to outbound queue. (incoming, ooh323c_1)
21:02:59:943 ERROR:Sending Terminal capability message (incoming, ooh323c_1)
21:02:59:943 Asn1Error: -24 at ooh323c/src/encode.c:350
21:02:59:943 ERROR: H245 Message encoding failed (incoming, ooh323c_1)
21:02:59:943 ASN.1 ERROR: Status -24

Stack trace:21:02:59:943 Error:Failed to encode H245 message. (incoming, ooh323c_1)
21:02:59:943 Error:Failed to enqueue TCS message to outbound queue. (incoming, ooh323c_1)
21:02:59:943 ERROR:Sending Terminal capability message (incoming, ooh323c_1)
21:03:00:246 Asn1Error: -24 at ooh323c/src/encode.c:350
21:03:00:246 ERROR: H245 Message encoding failed (incoming, ooh323c_1)
21:03:00:246 ASN.1 ERROR: Status -24

Stack trace:21:03:00:246 Error:Failed to encode H245 message. (incoming, ooh323c_1)
21:03:00:246 Error:Failed to enqueue TCS message to outbound queue. (incoming, ooh323c_1)
21:03:00:246 ERROR:Sending Terminal capability message (incoming, ooh323c_1)
21:03:00:246 Asn1Error: -24 at ooh323c/src/encode.c:350
21:03:00:246 ERROR: H245 Message encoding failed (incoming, ooh323c_1)
21:03:00:246 ASN.1 ERROR: Status -24

Stack trace:21:03:00:246 Error:Failed to encode H245 message. (incoming, ooh323c_1)
21:03:00:246 Error:Failed to enqueue TCS message to outbound queue. (incoming, ooh323c_1)

Asterisk -vvvvr

Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:31] NoOp("SIP/600-0000000b", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 111") in new stack
-- Executing [s@macro-dialout-trunk:32] GotoIf("SIP/600-0000000b", "0?continue,1:s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/600-0000000b", "RC=111") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/600-0000000b", "111,1") in new stack
-- Goto (macro-dialout-trunk,111,1)
-- Executing [111@macro-dialout-trunk:1] Goto("SIP/600-0000000b", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] NoOp("SIP/600-0000000b", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 111 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:2] Set("SIP/600-0000000b", "CALLERID(number)=600") in new stack
-- Executing [8257@from-internal:7] Macro("SIP/600-0000000b", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("SIP/600-0000000b", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("SIP/600-0000000b", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("SIP/600-0000000b", "1?intracompany,1") in new stack
-- Goto (macro-outisbusy,intracompany,1)
-- Executing [intracompany@macro-outisbusy:1] Playback("SIP/600-0000000b", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
-- <SIP/600-0000000b> Playing 'all-circuits-busy-now.gsm' (language 'en')
> 0x7f0ee001d020 -- Probation passed - setting RTP source address to 172.17.240.106:5004
[2017-02-03 21:25:40] WARNING[19520][C-00000039]: file.c:701 ast_openstream_full: File pls-try-call-later does not exist in any format
[2017-02-03 21:25:40] WARNING[19520][C-00000039]: file.c:1017 ast_streamfile: Unable to open pls-try-call-later (format (alaw)): No such file or directory
[2017-02-03 21:25:40] WARNING[19520][C-00000039]: app_playback.c:484 playback_exec: ast_streamfile failed on SIP/600-0000000b for all-circuits-busy-now&pls-try-call-later, noanswer
-- Executing [intracompany@macro-outisbusy:2] Congestion("SIP/600-0000000b", "20") in new stack
[2017-02-03 21:25:40] WARNING[19520][C-00000039]: channel.c:4863 ast_prod: Prodding channel 'SIP/600-0000000b' failed
== Spawn extension (macro-outisbusy, intracompany, 2) exited non-zero on 'SIP/600-0000000b' in macro 'outisbusy'
== Spawn extension (from-internal, 8257, 7) exited non-zero on 'SIP/600-0000000b'
-- Executing [h@from-internal:1] Hangup("SIP/600-0000000b", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/600-0000000b'

    Asterisk -vvvvr

    Asterisk 11.25.0, Copyright (C) 1999 - 2013 Digium, Inc. and others.
    Created by Mark Spencer <markster@digium.com>
    Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
    This is free software, with components licensed under the GNU General Public
    License version 2 and other licenses; you are welcome to redistribute it under

    certain conditions. Type 'core show license' for details.

    Connected to Asterisk 11.25.0 currently running on abulcoms (pid = 19143)
    == Using SIP VIDEO TOS bits 136
    == Using SIP VIDEO CoS mark 6
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Executing [8257@from-internal:1] Macro("SIP/600-0000000b", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/600-0000000b", "TOUCH_MONITOR=1486146290.24") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/600-0000000b", "AMPUSER=600") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/600-0000000b", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/600-0000000b", "1?Set(REALCALLERIDNUM=600)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/600-0000000b", "AMPUSER=600") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/600-0000000b", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/600-0000000b", "AMPUSERCIDNAME=PBX Guru") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/600-0000000b", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/600-0000000b", "AMPUSERCID=600") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/600-0000000b", "DIAL_OPTIONS=tr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/600-0000000b", "CALLERID(all)="PBX Guru" <600>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/600-0000000b", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/600-0000000b", "1?Set(GROUP(concurrency_limit)=600)") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("SIP/600-0000000b", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("SIP/600-0000000b", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,28)
    -- Executing [s@macro-user-callerid:28] Set("SIP/600-0000000b", "CALLERID(number)=600") in new stack
    -- Executing [s@macro-user-callerid:29] Set("SIP/600-0000000b", "CALLERID(name)=PBX Guru") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/600-0000000b", "CDR(cnum)=600") in new stack
    -- Executing [s@macro-user-callerid:31] Set("SIP/600-0000000b", "CDR(cnam)=PBX Guru") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/600-0000000b", "CHANNEL(language)=en") in new stack
    -- Executing [8257@from-internal:2] Set("SIP/600-0000000b", "INTRACOMPANYROUTE=YES") in new stack
    -- Executing [8257@from-internal:3] Set("SIP/600-0000000b", "MOHCLASS=default") in new stack
    -- Executing [8257@from-internal:4] Set("SIP/600-0000000b", "_NODEST=") in new stack
    -- Executing [8257@from-internal:5] Gosub("SIP/600-0000000b", "sub-record-check,s,1(out,8257,)") in new stack
    -- Executing [s@sub-record-check:1] Set("SIP/600-0000000b", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:2] GotoIf("SIP/600-0000000b", "1?check") in new stack
    -- Goto (sub-record-check,s,7)
    -- Executing [s@sub-record-check:7] Set("SIP/600-0000000b", "
    MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:8] GotoIf("SIP/600-0000000b", "1?next") in new stack
    -- Goto (sub-record-check,s,11)
    -- Executing [s@sub-record-check:11] ExecIf("SIP/600-0000000b", "0?Return()") in new stack
    -- Executing [s@sub-record-check:12] ExecIf("SIP/600-0000000b", "0?Set(REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:13] GotoIf("SIP/600-0000000b", "0?out,1") in new stack
    -- Executing [s@sub-record-check:14] Set("SIP/600-0000000b", "
    REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:15] Set("SIP/600-0000000b", "NOW=1486146290") in new stack
    -- Executing [s@sub-record-check:16] Set("SIP/600-0000000b", "DAY=03") in new stack
    -- Executing [s@sub-record-check:17] Set("SIP/600-0000000b", "
    MONTH=02") in new stack
    -- Executing [s@sub-record-check:18] Set("SIP/600-0000000b", "YEAR=2017") in new stack
    -- Executing [s@sub-record-check:19] Set("SIP/600-0000000b", "
    TIMESTR=20170203-212450") in new stack
    -- Executing [s@sub-record-check:20] Set("SIP/600-0000000b", "FROMEXTEN=600") in new stack
    -- Executing [s@sub-record-check:21] Set("SIP/600-0000000b", "
    CALLFILENAME=out-8257-600-20170203-212450-1486146290.24") in new stack
    -- Executing [s@sub-record-check:22] Goto("SIP/600-0000000b", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("SIP/600-0000000b", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("SIP/600-0000000b", "0?record,1(exten,8257,600)") in new stack
    -- Executing [out@sub-record-check:3] Return("SIP/600-0000000b", "") in new stack
    -- Executing [8257@from-internal:6] Macro("SIP/600-0000000b", "dialout-trunk,10,8257,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/600-0000000b", "DIAL_TRUNK=10") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/600-0000000b", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/600-0000000b", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/600-0000000b", "DIAL_NUMBER=8257") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/600-0000000b", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/600-0000000b", "OUTBOUND_GROUP=OUT_10") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/600-0000000b", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/600-0000000b", "1?skipoutcid") in new stack
    -- Goto (macro-dialout-trunk,s,12)
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/600-0000000b", "0?sub-flp-10,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/600-0000000b", "OUTNUM=8257") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/600-0000000b", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/600-0000000b", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusicdefault)tr)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/600-0000000b", "0?Set(DIAL_TRUNK_OPTIONS=trM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/600-0000000b", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/600-0000000b", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/600-0000000b", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/600-0000000b", "1?Set(CONNECTEDLINE(num,i)=8257)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/600-0000000b", "1?Set(CONNECTEDLINE(name,i)=CID:600)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/600-0000000b", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,25)
    -- Executing [s@macro-dialout-trunk:25] Set("SIP/600-0000000b", "pre_num=AMP:OOH323/") in new stack
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/600-0000000b", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:27] Set("SIP/600-0000000b", "post_num=@NMG_HQ_PBX") in new stack
    -- Executing [s@macro-dialout-trunk:28] GotoIf("SIP/600-0000000b", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,29)
    -- Executing [s@macro-dialout-trunk:29] Set("SIP/600-0000000b", "the_num=8257") in new stack
    -- Executing [s@macro-dialout-trunk:30] Dial("SIP/600-0000000b", "OOH323/8257@NMG_HQ_PBX,300,tr") in new stack
    [2017-02-03 21:24:50] NOTICE[19182]: chan_ooh323.c:4460 ooh323_convertAsteriskCapToH323Cap: Don't know how to deal with mode h261
    [2017-02-03 21:24:50] NOTICE[19182]: chan_ooh323.c:4460 ooh323_convertAsteriskCapToH323Cap: Don't know how to deal with mode h263p
    [2017-02-03 21:24:50] NOTICE[19182]: chan_ooh323.c:4460 ooh323_convertAsteriskCapToH323Cap: Don't know how to deal with mode h264
    -- Called OOH323/8257@NMG_HQ_PBX
    -- OOH323/NMG_HQ_PBX-9 is ringing

      my sip extension is 600

        Write a Reply...