[asterisk-bugs] [JIRA] (ASTERISK-28348) Failed to initialize OOH323 endpoint-OOH323 Disabled

Alexander Anikin (JIRA) noreply at issues.asterisk.org
Sun Mar 31 17:31:47 CDT 2019


     [ https://issues.asterisk.org/jira/browse/ASTERISK-28348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Anikin updated ASTERISK-28348:
----------------------------------------

    Assignee: Dmitry Shubin  (was: Alexander Anikin)
      Status: Waiting for Feedback  (was: In Progress)

Hi Dmitry,

Please try the issue again with attached second patch. It shoud applied to clean asterisk sources without previous patch.
h.323 tracefile name isn't harcoded with absolute path now. Error string now return back from OOH323 Endpoint init to chan_ooh323 and displayed in error message on asterisk console/logs



> Failed to initialize OOH323 endpoint-OOH323 Disabled
> ----------------------------------------------------
>
>                 Key: ASTERISK-28348
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28348
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Addons/chan_ooh323
>    Affects Versions: 16.2.1
>            Reporter: Dmitry Shubin
>            Assignee: Dmitry Shubin
>            Severity: Minor
>              Labels: patch, pjsip
>         Attachments: ASTERISK-28348-1.patch, ASTERISK-28348-2.patch, asterisk.conf, configure.log, make_install.log, make.log, modules.conf, ooh323.conf
>
>
> I’ve compiled latest asterisk-16.2.1 with chan_ooh323, but this module can’t start even with default config after make samples!
> I’ve got error:
> {quote}
> > ERROR[22478]: chan_ooh323.c:3842 load_module: Failed to initialize OOH323 endpoint-OOH323 Disabled
> sipsrv1*CLI> module show like 323
> Module                         Description                              Use Count  Status      Support Level
> chan_ooh323.so                 Objective Systems H323 Channel           0          Not Running      extended
> 1 modules loaded
> sipsrv1*CLI> module load chan_ooh323.so 
> Unable to load module chan_ooh323.so
> Command 'module load chan_ooh323.so ' failed.
>     --   == Setting default context to default
> [Mar 25 16:07:26] ERROR[2348]: chan_ooh323.c:3842 load_module: Failed to initialize OOH323 endpoint-OOH323 Disabled
> {quote}
> No errors during compilation or configuration (Configuration and compilation logs attached):
> ./contrib/scripts/install_prereq test
> ./configure --prefix=/usr/local/asterisk-16.2.1 --sysconfdir=/etc/aster16lts --localstatedir=/var/aster16lts --with-ssl --with-srtp --with-netsnmp --with-jansson-bundled --with-pjproject-bundled
> menuselect.makeopts
> make
> make install
> make samples
> {quote}
> root at sipsrv1:/usr/local/asterisk-16.2.1/lib/asterisk/modules# ldd chan_ooh323.so 
>         linux-vdso.so.1 =>  (0x00007fffd6c75000)
>         libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6783bc5000)
>         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6783839000)
>         /lib64/ld-linux-x86-64.so.2 (0x00007f678413e000)
> {quote}
> {quote}
> root at sipsrv1:/usr/local/asterisk-16.2.1/lib/asterisk/modules# lsof -nPi
> COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
> ntpd     1859  ntp   16u  IPv4   7184      0t0  UDP *:123 
> ntpd     1859  ntp   17u  IPv4   7188      0t0  UDP 127.0.0.1:123 
> ntpd     1859  ntp   18u  IPv4   7189      0t0  UDP 192.168.164.114:123 
> sshd     1950 root    3u  IPv4   4558      0t0  TCP *:22 (LISTEN)
> snmpd    1992 snmp    9u  IPv4   5975      0t0  UDP 127.0.0.1:161 
> snmpd    1992 snmp   10u  IPv4   5951      0t0  UDP *:56552 
> asterisk 2019 root   12u  IPv4   6041      0t0  UDP *:4569 
> asterisk 2019 root   13u  IPv4   6044      0t0  TCP *:2000 (LISTEN)
> asterisk 2019 root   15u  IPv4   6049      0t0  UDP *:5060 
> asterisk 2019 root   16u  IPv4   6050      0t0  UDP *:2727 
> asterisk 2019 root   17u  IPv4   6051      0t0  UDP *:5000 
> asterisk 2019 root   18u  IPv4   6054      0t0  UDP *:4520 
> master   2069 root   12u  IPv4   6235      0t0  TCP *:25 (LISTEN)
> sshd     2120 root    3r  IPv4   6017      0t0  TCP 192.168.164.114:22->192.168.164.45:38471 (ESTABLISHED)
> sshd     2167 root    3r  IPv4   6068      0t0  TCP 192.168.164.114:22->192.168.164.45:38485 (ESTABLISHED)
> sshd     2256 root    3r  IPv4   6078      0t0  TCP 192.168.164.114:22->192.168.164.45:38488 (ESTABLISHED)
> sshd     2349 root    3r  IPv4   6796      0t0  TCP 192.168.164.114:22->192.168.164.45:38509 (ESTABLISHED)
> sshd     2467 root    3r  IPv4   7539      0t0  TCP 192.168.164.114:22->192.168.164.45:38543 (ESTABLISHED)
> {quote}
> {quote}
> root at sipsrv1:/usr/local/asterisk-16.2.1/lib/asterisk/modules# ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>     inet 127.0.0.1/8 scope host lo
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 1000
>     link/ether 00:50:56:a3:6d:c6 brd ff:ff:ff:ff:ff:ff
>     inet 192.168.164.114/22 brd 192.168.167.255 scope global eth0
> {quote}
> Part from make log:
> {quote}
>    [CC] chan_ooh323.c -> chan_ooh323.o
>    [CC] ooh323c/src/ooCmdChannel.c -> ooh323c/src/ooCmdChannel.o
>    [CC] ooh323c/src/ooLogChan.c -> ooh323c/src/ooLogChan.o
>    [CC] ooh323c/src/ooUtils.c -> ooh323c/src/ooUtils.o
>    [CC] ooh323c/src/ooGkClient.c -> ooh323c/src/ooGkClient.o
>    [CC] ooh323c/src/context.c -> ooh323c/src/context.o
>    [CC] ooh323c/src/ooDateTime.c -> ooh323c/src/ooDateTime.o
>    [CC] ooh323c/src/decode.c -> ooh323c/src/decode.o
>    [CC] ooh323c/src/dlist.c -> ooh323c/src/dlist.o
>    [CC] ooh323c/src/encode.c -> ooh323c/src/encode.o
>    [CC] ooh323c/src/errmgmt.c -> ooh323c/src/errmgmt.o
>    [CC] ooh323c/src/memheap.c -> ooh323c/src/memheap.o
>    [CC] ooh323c/src/ootrace.c -> ooh323c/src/ootrace.o
>    [CC] ooh323c/src/oochannels.c -> ooh323c/src/oochannels.o
>    [CC] ooh323c/src/ooh245.c -> ooh323c/src/ooh245.o
>    [CC] ooh323c/src/ooports.c -> ooh323c/src/ooports.o
>    [CC] ooh323c/src/ooq931.c -> ooh323c/src/ooq931.o
>    [CC] ooh323c/src/ooCapability.c -> ooh323c/src/ooCapability.o
>    [CC] ooh323c/src/ooSocket.c -> ooh323c/src/ooSocket.o
>    [CC] ooh323c/src/perutil.c -> ooh323c/src/perutil.o
>    [CC] ooh323c/src/eventHandler.c -> ooh323c/src/eventHandler.o
>    [CC] ooh323c/src/ooCalls.c -> ooh323c/src/ooCalls.o
>    [CC] ooh323c/src/ooStackCmds.c -> ooh323c/src/ooStackCmds.o
>    [CC] ooh323c/src/ooh323.c -> ooh323c/src/ooh323.o
>    [CC] ooh323c/src/ooh323ep.c -> ooh323c/src/ooh323ep.o
>    [CC] ooh323c/src/printHandler.c -> ooh323c/src/printHandler.o
>    [CC] ooh323c/src/rtctype.c -> ooh323c/src/rtctype.o
>    [CC] ooh323c/src/ooTimer.c -> ooh323c/src/ooTimer.o
>    [CC] ooh323c/src/h323/H235-SECURITY-MESSAGESDec.c -> ooh323c/src/h323/H235-SECURITY-MESSAGESDec.o
>    [CC] ooh323c/src/h323/H235-SECURITY-MESSAGESEnc.c -> ooh323c/src/h323/H235-SECURITY-MESSAGESEnc.o
>    [CC] ooh323c/src/h323/H323-MESSAGES.c -> ooh323c/src/h323/H323-MESSAGES.o
>    [CC] ooh323c/src/h323/H323-MESSAGESDec.c -> ooh323c/src/h323/H323-MESSAGESDec.o
>    [CC] ooh323c/src/h323/H323-MESSAGESEnc.c -> ooh323c/src/h323/H323-MESSAGESEnc.o
>    [CC] ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.c -> ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.o
>    [CC] ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLDec.c -> ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLDec.o
>    [CC] ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLEnc.c -> ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLEnc.o
>    [CC] ooh323cDriver.c -> ooh323cDriver.o
>    [LD] chan_ooh323.o ooh323c/src/ooCmdChannel.o ooh323c/src/ooLogChan.o ooh323c/src/ooUtils.o ooh323c/src/ooGkClient.o ooh323c/src/context.o ooh323c/src/ooDateTime.o ooh323c/src/decode.o ooh323c/src/dlist.o ooh323c/src/encode.o ooh323c/src/errmgmt.o ooh323c/src/memheap.o ooh323c/src/ootrace.o ooh323c/src/oochannels.o ooh323c/src/ooh245.o ooh323c/src/ooports.o ooh323c/src/ooq931.o ooh323c/src/ooCapability.o ooh323c/src/ooSocket.o ooh323c/src/perutil.o ooh323c/src/eventHandler.o ooh323c/src/ooCalls.o ooh323c/src/ooStackCmds.o ooh323c/src/ooh323.o ooh323c/src/ooh323ep.o ooh323c/src/printHandler.o ooh323c/src/rtctype.o ooh323c/src/ooTimer.o ooh323c/src/h323/H235-SECURITY-MESSAGESDec.o ooh323c/src/h323/H235-SECURITY-MESSAGESEnc.o ooh323c/src/h323/H323-MESSAGES.o ooh323c/src/h323/H323-MESSAGESDec.o ooh323c/src/h323/H323-MESSAGESEnc.o ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.o ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLDec.o ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLEnc.o ooh323cDriver.o -> chan_ooh323.so
> {quote}
> ooh323.conf (lines beginning with “;” was removed):
> {quote}
> [general]
> bindaddr=0.0.0.0
> h323id=ObjSysAsterisk
> e164=100
> callerid=asterisk
> aniasdni=no
> gatekeeper = DISABLE
> context=default
> disallow=all     ;Note order of disallow/allow is important.
> allow=gsm
> allow=ulaw
> dtmfmode=rfc2833
> faxdetect = cng
> directmedia=no
> directrtpsetup=no
> [myuser1]
> type=user
> context=context1
> disallow=all
> allow=gsm
> allow=ulaw
> [myfriend1]
> type=friend
> context=default
> ip=10.0.0.82   ; UPDATE with appropriate ip address
> port=1820    ; UPDATE with appropriate port
> disallow=all
> allow=ulaw
> e164=12345
> rtptimeout=60
> dtmfmode=rfc2833
> {quote}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list