login | register
Wed 08 of Oct, 2008 [07:26 UTC]

voip-info.org

Discuss [7] History

Asterisk oh323 channels

Created by: oej,Last modification on Mon 23 of Oct, 2006 [11:41 UTC] by Younger

oh323 channel

The first H.323 implementation for Asterisk. The H.323 channel driver included in
Asterisk CVS source is based on this source code.

Both versions have continued independent development, so there are two drivers, one in the Asterisk distribution and one available on the InAccess Networks web site:

http://www.inaccessnetworks.com/projects/asterisk-oh323

To use OH323 you will need to compile third party software packages like PWLib and OpenH323. Recent version of OH323 compile everything into a big static module that need no dynamic libs loaded. Look at www.oinko.net for a detailed step-by-step instruction list on how to compile.

Dial syntax

Without gatekeeper:
<exten> and <port> are optional

 Dial(OH323/[<exten>@]<host>[:<port>])

With gatekeeper:

 Dial(OH323/<exten>)

The second option is valid only in the case where a gatekeeper is used. OH323 supports only one gatekeeper (or none, but not multiple gatekeepers). OH323 itself only acts as H.323 Gateway.
NOTE: OpenH323 library v1.12.0 has a bug in the parsing of the destination host. When this version is used then the above syntax should be:

 OH323/h323:<exten>@<host>:<port>

Installation guides


Installing oh323 7.3 on Asterisk 1.2.13

I installed oh323 7.3 with asterisk 1.2.13 on redhat linux 7.3 and 9.0 successfully. But I failed on FC5(pwlib does not compile). Here is what I did:
  1. Download Asterisk 1.2.13 from http://ftp.digium.com/pub/asterisk/releases/asterisk-1.2.13.tar.gz
  2. Download oh323 7.3 from http://www.inaccessnetworks.com/ian/projects/asterisk-oh323/download/asterisk-oh323-0.7.3.tar.gz
  3. Download patched pwlib from http://www.inaccessnetworks.com/ian/projects/asterisk-oh323/Libraries/pwlib-Mimas_patch2-src-tar.gz
  4. Download patched openh323 from http://www.inaccessnetworks.com/ian/projects/asterisk-oh323/Libraries/openh323-Mimas_patch2-src-tar.gz
  5. Compile asterisk and install.
  6. Compile pwlib with "./configure && make opt"
  7. Set environment variable "PWLIBDIR" to path of pwlib source.
  8. Compile openh323 with "./configure && make clean && make opt"
  9. Modify Makefile of oh323. Change "PWLIBDIR", "OPENH323DIR", "ASTERISKINCDIR" to the path of the source code(Remember to append "/include" in ASTERISKINCDIR).
  10. Compile oh323 with "make && make install".
  11. By default oh323 wrapper will be installed in "/usr/local/lib", which is defined as OH323WRAPLIBDIR in Makefile. Add the path to /etc/ld.so.conf and run "ldconfig".
  12. END

See also



Go back to Asterisk


Comments

Comments Filter
222

333Asterisk1.4 and oh323

by brucehalex, Thursday 27 of September, 2007 [16:46:48 UTC]
When I use Asterisk1.4, could not compile oh323 with it, pwlib and openh323 are successfully compiled. Did somebody try that successfully.

Give some tips.

Thanks
222

333Select context for an incoming call

by jeroko, Friday 26 of January, 2007 [12:18:46 UTC]
Is there any way of sending an incoming call to an specific context depending on the ip which it came in?
This could be done with h323 module, isn't oh323 capable of doing this?
222

333How to link Asterisks to a H323 gateway?

by inimd, Tuesday 23 of January, 2007 [17:33:47 UTC]
I just installed ooh323 0.73 in my asterisk box. oh323 commands can be found in asterisk CLI. But no calls can get through. Any one's help?

First problem, oh323.conf in etc/asterisk/ cannot be loaded with phpconfig. I need to restart amportal all the time. Does it mean I missed something during installation? What should I do?

Then my situation, what I need to do is:

SIP phones--->asterisk------>H323 soft switch for termination

The provider told me I can treat the soft switch as a gateway, gave me the IP, prefix and nothing else.

Then my oh323.conf

;
; Configuration file of OpenH323 channel driver
;

;-----------------------------------------
; General configuration options
; (ports, jitter, GK, ...)
;-----------------------------------------
general
;
; Address to bind to for incoming connections.
; Default is ALL.
;
listenAddress=0.0.0.0
;
; Port to listen to.
; Default value is 1720.
;
listenPort=1720
;
; Configure the TCP port range to be used by H.323
;
tcpStart=10000
tcpEnd=20000
;
; Configure the UDP port range to be used by H.323
Note
The port range used by RTP are configured from
; "rtp.conf"
;
udpStart=10000
udpEnd=20000
;
; Enable fast start (yes,no).
;
;fastStart=yes
fastStart=no
;
; Enable H.245 tunnelling (yes,no).
;
;h245Tunnelling=yes
h245Tunnelling=no

;
; Enable early H.245 messages in call SETUP message.
;
;h245inSetup=yes
h425inSetup=no
;
; Set jitter buffer (in milliseconds, 20...10000).
;
jitterMin=20
jitterMax=100
;

ipTos=none


outboundMax=100
inboundMax=100
simultaneousMax=100


; Set the bandwidth limit for H.323 connections.
; The value is in Kbps.
;
;bandwidthLimit=1024
;
; Set tracing options for the wrapper library and for the
; OpenH323 library.
; libTraceFile can be 'stdout' or a full path name to the tracefile.
; Only the trace info for OpenH323 is logged in libTraceFile.
;
wrapLibTraceLevel=3
libTraceLevel=3
libTraceFile=stdout
;

gatekeeper=DISABLE


gatekeeperTTL=600
;
; Set the mode for sending user-input (DTMF)
Valid values for this option are
; Q931 - Q.931 Keypad Information Element
; STRING - H.245 string
; TONE - H.245 tone
; RFC2833 - RFC2833
; INBAND -
;
userInputMode=TONE

amaFlags=default

accountCode=H323

language=en

musiconhold=default

context=voip-h323

;-----------------------------------------
; Configure H.323 aliases, prefixes and
; related ASTERISK's contexts
;-----------------------------------------
register
;
; Aliases/prefixes associated with the default context
; defined in section general.
;
;alias=asterisk
;alias=123
;
; Aliases/prefixes routed in "all-aliases" context.
;
context=all-aliases
;alias=ASTERISK
;alias=666
;
; Aliases/prefixes routed in "more-aliases" context.
;
;context=more-aliases
;alias=665
;
; Aliases/prefixes routed in "all-prefixes" context.
;
;context=all-prefixes
;gwprefix=00
;gwprefix=01
;
; Aliases/prefixes routed in "more-stuff" context.
;
;context=more-stuff
;alias=664
;gwprefix=02

codecs
codec=G711A
frames=20

Then I add a line to extensions.conf from-internal for testing

exten => _9999X.,1,Dial(OH323/${EXTEN}@xxx.xxx.xxx.xxx:1720)

Then the debug:

   — Executing Dial("SIP/9091-094537a8", "OH323/99998xxxxxx@xxx.xxx.xxx.xxx:1720") in new stack
   — H.323 call to 99998xxxxxx@xxx.xxx.xxx.xxx:1720 with codec(s) alaw
   — Outbound H.323 call to destination 99998xxxxxx@xxx.xxx.xxx.xxx:1720', channel 'OH323/99998xxxxxx@xxx.xxx.xxx.xxx:1720-3ee0f73'.
   — Called 99998xxxxxx@xxx.xxx.xxx.xxx:1720

Then nothing happened. Even with a reason 0, 5,8,...until I hungup

   — Hungup 'OH323/99998xxxxxx@xxx.xxx.xxx.xxx:1720'
 == Spawn extension (from-internal, 99998xxxxxx, 1) exited non-zero on 'SIP/9091-094537a8'


222

333Asterisk H323 to Quintum DX

by rushan, Thursday 16 of March, 2006 [17:22:09 UTC]
Anyone got the correct oh323.conf to be able to link my asterisk to send calls to my Quintum DX gateway?

im trying to let my sip asterisk users to make calles from the asterisk and route the calls to the quintum that will originate the call

Any Help???

Rushan@mec.com.jo
222

333

by rushan, Thursday 16 of March, 2006 [17:21:53 UTC]
Anyone got the correct oh323.conf to be able to link my asterisk to send calls to my Quintum DX gateway?

im trying to let my sip asterisk users to make calles from the asterisk and route the calls to the quintum that will originate the call

Any Help???

Rushan@mec.com.jo
222

333Re: uninstall?

by , Monday 07 of February, 2005 [07:55:12 UTC]
it only installs 3 files:
$(DESTDIR)/etc/asterisk/oh323.conf
$(DESTDIR)/usr/local/lib/liboh323wrap_s.a
$(DESTDIR)/usr/lib/asterisk/modules/chan_oh323.so

I made a patch for my custom settings that included the following:


+++../Makefile 2005-02-01 16:20:02.142037782 -0800 @@ -38,9 +38,9 @@
#
# Install everything under this directory. If this is empty, then everything
# will be installed under /
#
-DESTDIR=
+DESTDIR=/opt/asterisk-oh323-0.6.5  
#
# Set PWLIBDIR variable to the directory containing the sources of
# PWlib library.


But then I had to add these symbolic links for Asterisk.
lrwxrwxrwx 1 root root 49 Feb 1 16:41 /etc/asterisk/oh323.conf -> /opt/asterisk-oh323-0.6.5/etc/asterisk/oh323.conf
lrwxrwxrwx 1 root root 64 Feb 1 16:43 /usr/lib/asterisk/modules/chan_oh323.so -> /opt/asterisk-oh323-0.6.5/usr/lib/asterisk/modules/chan_oh323.so

note, it doesn't seem to need a link to liboh323wrap_s.a
222

333uninstall?

by , Thursday 13 of January, 2005 [08:46:06 UTC]
I have had problems with asterisk-oh323. I've tryed to uninstall it but it seems like some traces of the module persist on asterisk and creates problems with chan_h323.

Anyone knows how to get rid of oh323?