📄 readme
字号:
Open H.323 Channel Driver for Asterisk By Jeremy McNamara For The NuFone Network First public release on November 10th, 2002 Dependancies (based on OpenH323/PWLib ones): openssl-0.9.6b+ openssl-devel-0.9.6b+ expat-1.95+ expat-dev-1.95+Tested with Open H.323 version v1.18.0, PWLib v1.10.0 and GCC v3.2.2. Usage of anyother (especially prior OpenH323 v1.17.3 and PWLib v1.9.2) versions is notsupported.NOTICE: Whatever you do, DO NOT USE distrubution specific installsof Open H.323 and PWLib. In fact, you should check to make sure your distro did not install them for you without your knowledge.To compile this code--------------------Once PWLib and Open H.323 have been compiled per their specific buildinstructions, issue a make in the asterisk/channels/h323 directory withargument used to build PWLib and OpenH323 (for example, make opt), then goback to the Asterisk source top level directory and issue a make install.The most common compile error ----------------------------If you receive ANYTHING that says 'undefined symbol' you are experiencingtypical version skew. For example:libh323_linux_x86_r.so.1: undefined symbol: GetNumberValueAt__C14PAbstractArrayiYou need to search and destroy every version of libh323 and libpt then completely recompile everythingExample commands to make sure everything gets cleaned and thenrebult in proper order:cd /path/to/pwlib./configuremake clean optcd /path/to/openh323./configuremake clean opt cd /path/to/asterisk/channels/h323make optcd /path/to/asteriskmake install Most common run-time error-------------------------libpt_linux_x86_r.so.1: cannot open shared object file: No such file or directoryYou have not set the LD_LIBRARY_PATH environment variable.Example environment for sh/bash:PWLIBDIR=$HOME/pwlibexport PWLIBDIROPENH323DIR=$HOME/openh323export OPENH323DIRLD_LIBRARY_PATH=$PWLIBDIR/lib:$OPENH323DIR/libexport LD_LIBRARY_PATHWe recomend puting the above directives into your /etc/profile so you do not have to remember to export those values every time you want to recompile. Make sure to logout and log back in, so yourenvrionment can pick up the new variables.Upgrading Asterisk-----------------After you cvs update (or make update) Asterisk you have to go intoasterisk/channels/h323 and issue a make clean all, before compiling therest of asterisk. Doing this process every time you upgrade Asteriskwill ensure a sane build.Dialing an H.323 channel------------------------Without a gatekeeper:exten => _1NXXNXXXXXX,1,Dial,H323/${EXTEN}@peerorexten => _1NXXNXXXXXX,1,Dial,H323/${EXTEN}@ip.or.hostname'peer' is defined in h323.conf as:[peer]type=peerhost=1.2.3.4disallow=allallow=ulawUsing a gatekeeper:exten => _1NXXNXXXXXX,1,Dial,H323/${EXTEN}When using a gatekeeper you cannot utilize the type=peer features,since the H.323 spec states that when a Gatekeeper is part of an H.323 network, the Gatekeeper shall be used for all communication. Developer Contact----------------If you have trouble contact 'JerJer' in #Asterisk on irc.freenode.net and/or send reasonable debug information to support@nufone.net.If are lucky enough to segfault this code please run a backtrace and send the gory details. Segmentation faults are nottolerated, no matter what Distro you run (even debian)!a simple bt example:# /usr/sbin/asterisk -vvvgc...[chan_h323.so]Segmentation Fault (core dumped)# ls core.*core.1976# gdb /usr/sbin/asterisk core.1976...lots of useless garbage here...(gdb) btSend whatever shows up right after the 'bt'Also, a full debug screen output is almost needed. Make sure you are in the full console mode (-c) and turn on 'h.323 debug' or worst casesenerio 'h.323 trace 4'. A nice way to capture debug info is with script (man script). If you are motivated to update/fix this code please submit a disclaimer along with the patch to the Asterisk bug tracker: http://bugs.digium.com/Jeremy McNamaraThe NuFone Network
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -