oh323.conf

Hi i have been looking around for a lot of answers about Oh323.
all i can say is after a lots of trying i done it.
hope this can be helpfully.
I decide to input this space just because i can find easy explanation on working with h323 unfortunaly in some cases providers just work on this protocol.

this is what you can do to configure your open h323 drivers and .conf.
click here you will find how to compile and install your h323 correctly.
just download it untar and follow up the instructions.

http://www.oinko.net/astrecipes/index.php?n=40

then
if you want to install g729 codecs go ahead to this page
http://www.readytechnology.co.uk/open/g729/
get authorization from intel they will email you a link where you have to download and them install it.
just follow instructions. (check the path where you install it is very important.)

well finally this is a sample of the config for h323 that should work:

;
; 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     ~~#FF0000:here you specify wich ip will sent traffic~~
;
; Port to listen to.
; Default value is 1720.
;
listenPort=1720
;
; Port to connect to.
; (Used only when we don't have a gatekeeper)
; Default value is 1720.
;
connectPort=1720        ~~#FF0000:;wich port to sent traffic OUT~~
; Configure TCP port range to be used by H.323
;
tcpStart=10000
tcpEnd=20000
;
; Configure 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). ~~#FF0000:HERE IS SOMETHING PRETTY IMPORTANT BE CAREFULLY AND DONT BE SHY TO ASK YOUR PROVIDER IF THEY HAVE FAST START ON YOUR H245 CONFIGURATION. ALSO IF THEY DO TUNNELING OR IN SETUP. LACKING ON THIS WILL GIVE YOU LOTS OF ERRORS WHEN MAKING A CALL:~~
;
fastStart=no
;
; Enable H.245 tunnelling (yes,no).
;
h245Tunnelling=no
;
; Enable early H.245 messages in call SETUP message.
;
h245inSetup=no
;
; Enable in-band-DTMF detection. 
; (Note: Netmeeting uses in-band DTMFs)
;
inBandDTMF=yes
;
; Enable silence suppression.
;
silenceSuppression=yes
;
; Set jitter buffer (in milliseconds, 20...10000).
;
jitterMin=20
jitterMax=100
;
; Set IP Type-of-Service byte for RTP channels.
; Valid values for this option are:
;   lowdelay, throughput, reliability, mincost, none
;
ipTos=none
;
; Set the maximum number of inbound/outbound/simultaneous
; H.323 connections.
;
outboundMax=10
inboundMax=10
simultaneousMax=10
;
; 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 trace info for OpenH323 is logged in libTraceFile.
;
wrapLibTraceLevel=1
libTraceLevel=0
libTraceFile=stdout
;
; Disable gatekeeper or specify a gatekeeper.~~#FF0000:HERE YOU SPECIFY IF YOU USING A GATEKEEPER OR NOT( IM NOT USING IT):~~
; Valid values for this option are:
;   DISABLE,
;   DISCOVER,
;   <gatekeeper's DNS name>,
;   <gatekeeper's ip>,
;   GKID:<gatekeeper's id>
;
;gatekeeper=192.168.1.2
gatekeeper=DISABLE
;
; Set the gatekeeper password
;
;gatekeeperPassword=secret
;
; Set the gatekeeper registration timeout
;
;gatekeeperTTL=600
;
; Set the mode for sending user-input
; Valid values for this option are:
;   Q931        -   Q.931 Keypad Information Element
;   STRING      -   H.245 string
;   TONE        -   H.245 tone
;   RFC2833     -   RFC2833
;
userInputMode=TONE
;
; AMA flags (default, omit, billing, documentation)
;
amaFlags=default
;
; Account code
;
accountCode=H323
;
; Set the default context of H.323 calls.
;
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=51
;
; Aliases/prefixes routed in "all-aliases" context.
;
context=all-aliases
alias=ASTERISK
alias=514
;
; Aliases/prefixes routed in "more-aliases" context.
;
context=default
alias=515
;
; Aliases/prefixes routed in "all-prefixes" context.
;
context=all-prefixes
gwprefix=51
gwprefix=51
;
; Aliases/prefixes routed in "more-stuff" context.
;
context=more-stuff
alias=664
gwprefix=02

;-----------------------------------------
; Specify and configure CODEC related
; options
;-----------------------------------------
[codecs]
;
; Define the codec list of the channel driver.
; Every "codec" option may have a "frames" option
; associated with it.
; Valid values for the "codec" option are:
;   G711U       -   G.711 u-Law
;   G711A       -   G.711 A-Law
;   G7231       -   G.723.1(6.3k)
;   G72316K3    -   G.723.1(6.3k)
;   G72315K3    -   G.723.1(5.3k)
;   G7231A6K3   -   G.723.1A(6.3k)
;   G7231A6K3   -   G.723.1A(6.3k)
;   G726        -   G.726(32k)
;   G72616K     -   G.726(16k)
;   G72624K     -   G.726(24k)
;   G72632K     -   G.726(32k)
;   G72640K     -   G.726(40k)
;   G728        -   G.728
;   G729        -   G.729
;   G729A       -   G.729A
;   G729B       -   G.729B
;   G729AB      -   G.729AB
;   GSM0610     -   GSM 0610
;   MSGSM       -   Microsoft GSM Audio Capability
;   LPC10       -   LPC-10
; Number of frames in RTP packet (if not specified) is 1.
  

; HERE YOU DECLARE THE CODECS THAT H323 WILL BE USING.

codec=G729
frames=2

; codec=GSM0610
; frames=4
; codec=G7231
; frames=2
; codec=G729
; frames=2
---------------------------- ) ( -----------------------------------------------0(_____________________


~~#FF0000:HOPE IT DOES WORK IT DID FOR ME. thanks.
WHEN YOU WANT TO MAKE A CALL DONT FORGET THIS:~~

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>


Hi i have been looking around for a lot of answers about Oh323.
all i can say is after a lots of trying i done it.
hope this can be helpfully.
I decide to input this space just because i can find easy explanation on working with h323 unfortunaly in some cases providers just work on this protocol.

this is what you can do to configure your open h323 drivers and .conf.
click here you will find how to compile and install your h323 correctly.
just download it untar and follow up the instructions.

http://www.oinko.net/astrecipes/index.php?n=40

then
if you want to install g729 codecs go ahead to this page
http://www.readytechnology.co.uk/open/g729/
get authorization from intel they will email you a link where you have to download and them install it.
just follow instructions. (check the path where you install it is very important.)

well finally this is a sample of the config for h323 that should work:

;
; 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     ~~#FF0000:here you specify wich ip will sent traffic~~
;
; Port to listen to.
; Default value is 1720.
;
listenPort=1720
;
; Port to connect to.
; (Used only when we don't have a gatekeeper)
; Default value is 1720.
;
connectPort=1720        ~~#FF0000:;wich port to sent traffic OUT~~
; Configure TCP port range to be used by H.323
;
tcpStart=10000
tcpEnd=20000
;
; Configure 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). ~~#FF0000:HERE IS SOMETHING PRETTY IMPORTANT BE CAREFULLY AND DONT BE SHY TO ASK YOUR PROVIDER IF THEY HAVE FAST START ON YOUR H245 CONFIGURATION. ALSO IF THEY DO TUNNELING OR IN SETUP. LACKING ON THIS WILL GIVE YOU LOTS OF ERRORS WHEN MAKING A CALL:~~
;
fastStart=no
;
; Enable H.245 tunnelling (yes,no).
;
h245Tunnelling=no
;
; Enable early H.245 messages in call SETUP message.
;
h245inSetup=no
;
; Enable in-band-DTMF detection. 
; (Note: Netmeeting uses in-band DTMFs)
;
inBandDTMF=yes
;
; Enable silence suppression.
;
silenceSuppression=yes
;
; Set jitter buffer (in milliseconds, 20...10000).
;
jitterMin=20
jitterMax=100
;
; Set IP Type-of-Service byte for RTP channels.
; Valid values for this option are:
;   lowdelay, throughput, reliability, mincost, none
;
ipTos=none
;
; Set the maximum number of inbound/outbound/simultaneous
; H.323 connections.
;
outboundMax=10
inboundMax=10
simultaneousMax=10
;
; 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 trace info for OpenH323 is logged in libTraceFile.
;
wrapLibTraceLevel=1
libTraceLevel=0
libTraceFile=stdout
;
; Disable gatekeeper or specify a gatekeeper.~~#FF0000:HERE YOU SPECIFY IF YOU USING A GATEKEEPER OR NOT( IM NOT USING IT):~~
; Valid values for this option are:
;   DISABLE,
;   DISCOVER,
;   <gatekeeper's DNS name>,
;   <gatekeeper's ip>,
;   GKID:<gatekeeper's id>
;
;gatekeeper=192.168.1.2
gatekeeper=DISABLE
;
; Set the gatekeeper password
;
;gatekeeperPassword=secret
;
; Set the gatekeeper registration timeout
;
;gatekeeperTTL=600
;
; Set the mode for sending user-input
; Valid values for this option are:
;   Q931        -   Q.931 Keypad Information Element
;   STRING      -   H.245 string
;   TONE        -   H.245 tone
;   RFC2833     -   RFC2833
;
userInputMode=TONE
;
; AMA flags (default, omit, billing, documentation)
;
amaFlags=default
;
; Account code
;
accountCode=H323
;
; Set the default context of H.323 calls.
;
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=51
;
; Aliases/prefixes routed in "all-aliases" context.
;
context=all-aliases
alias=ASTERISK
alias=514
;
; Aliases/prefixes routed in "more-aliases" context.
;
context=default
alias=515
;
; Aliases/prefixes routed in "all-prefixes" context.
;
context=all-prefixes
gwprefix=51
gwprefix=51
;
; Aliases/prefixes routed in "more-stuff" context.
;
context=more-stuff
alias=664
gwprefix=02

;-----------------------------------------
; Specify and configure CODEC related
; options
;-----------------------------------------
[codecs]
;
; Define the codec list of the channel driver.
; Every "codec" option may have a "frames" option
; associated with it.
; Valid values for the "codec" option are:
;   G711U       -   G.711 u-Law
;   G711A       -   G.711 A-Law
;   G7231       -   G.723.1(6.3k)
;   G72316K3    -   G.723.1(6.3k)
;   G72315K3    -   G.723.1(5.3k)
;   G7231A6K3   -   G.723.1A(6.3k)
;   G7231A6K3   -   G.723.1A(6.3k)
;   G726        -   G.726(32k)
;   G72616K     -   G.726(16k)
;   G72624K     -   G.726(24k)
;   G72632K     -   G.726(32k)
;   G72640K     -   G.726(40k)
;   G728        -   G.728
;   G729        -   G.729
;   G729A       -   G.729A
;   G729B       -   G.729B
;   G729AB      -   G.729AB
;   GSM0610     -   GSM 0610
;   MSGSM       -   Microsoft GSM Audio Capability
;   LPC10       -   LPC-10
; Number of frames in RTP packet (if not specified) is 1.
  

; HERE YOU DECLARE THE CODECS THAT H323 WILL BE USING.

codec=G729
frames=2

; codec=GSM0610
; frames=4
; codec=G7231
; frames=2
; codec=G729
; frames=2
---------------------------- ) ( -----------------------------------------------0(_____________________


~~#FF0000:HOPE IT DOES WORK IT DID FOR ME. thanks.
WHEN YOU WANT TO MAKE A CALL DONT FORGET THIS:~~

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>


Created by: kissel, Last modification: Mon 04 of Jun, 2012 (07:35 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+