Despues de mucho tiempo tratando de hacer que los dispositivos H.323 puedan llamar a extensiones IAX2 y SIP, lo he logrado. Comparto esta pequena y simple "receta" para habilitar el soporte H.323 en Asterisk version 1.2.4 :
1.- Actualizar Asterisk a la version 1.2.4:
Necesitaremos tener instalados:
[quote]
ncurses y ncurses-devel
openssl y openssl-devel
zlib y zlib-devel
bison y bison-devel
[/quote]
# cd /usr/src
# svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk
# svn checkout http://svn.digium.com/svn/zaptel/trunk zaptel
# svn checkout http://svn.digium.com/svn/libpri/trunk libpri
# cd zaptel
# make clean; make install
# cd ../libpri
# make clean; make install
# cd ../asterisk
# make clean; make install
2.- Necesitamos compilar el canal oh323, pwlib y openh323:
Creamos un directorio para la compilacion:
# mkdir /usr/src/asterisk-oh323
# cd /usr/src/asterisk-oh323
Descargamos los archivos necesarios:
# wget http://www.inaccessnetworks.com/projects/asterisk-oh323/download/asterisk-oh323-0.7.3.tar.gz; wget http://www.inaccessnetworks.com/ian/projects/asterisk-oh323/Libraries/pwlib-Mimas_patch2-src-tar.gz; wget http://www.inaccessnetworks.com/ian/projects/asterisk-oh323/Libraries/openh323-Mimas_patch2-src-tar.gz
Tenemos que descomprimirlos:
# tar zvxf asterisk-oh323-0.7.3.tar.gz; tar zvxf pwlib-Mimas_patch2-src-tar.gz; tar zvxf openh323-Mimas_patch2-src-tar.gz
Empezamos con pwlib:
# cd pwlib-Mimas_patch2
# ./configure
# make clean; make opt; make install
Luego openh323:
# cd ../openh323-Mimas_patch2
# ./configure
# make clean; make opt
Por ultimo con channel_oh323:
# cd asterisk-oh323-0.7.3
Modificamos Makefile para que contenga la ubicacion correcta de pwlib, openh323 y asterisk en sus respectivas lineas:
[quote]
# vi Makefile
PWLIBDIR=/usr/src/asterisk-oh323/pwlib_Mimas_patch2
OPENH323DIR=/usr/src/asterisk-oh323/openh323_Mimas_patch2
ASTERISKINCDIR=/usr/src/asterisk-1.2.4/include
[/quote]
Compilamos:
# make; make install
Revisamos que el modulo halla sido copiado:
# ls -l /usr/lib/asterisk/modules/chan_oh323.so
Reiniciamos asterisk:
asterisk -rvvvc -x "restart now"
3.- Ahora debemos configurar el canal H.323 en el archivo /etc/asterisk/oh323.conf
Mi archivo contiene lo siguiente:
;
; Configuration file of OpenH323 (OH323) 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 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).
;
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=no
;
; 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. 'simultaneousMax' must be less than or equal
; to 'outboundMax' + 'inboundMax'.
;
outboundMax=10
inboundMax=10
simultaneousMax=10
;
; Call Rate Limiter params (ingress direction). When the total number
; of active calls is above 'crlThreshold' then the rate of the incoming
; H.323 calls is restricted in a way where no more than 'crlCallNumber'
; calls are allowed in 'crlCallTime' milliseconds, thus limiting the rate
; of incoming calls to:
; 'crlCallNumber' / ('crlCallTime' / 1000) Calls-per-Sec.
;
;crlCallNumber=20
;crlCallTime=20000
;crlThreshold=30
;
; 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.
; Valid values for this option are:
; DISABLE,
; DISCOVER,
; ,
; ,
; GKID:
;
;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=RCF2833
;
; Default value for AMA flags (default, omit, billing, documentation)
;
amaFlags=default
;
; Default value for the account code of H.323 calls
;
accountCode=H323
;
; Default context of H.323 calls.
;
;context=voip-h323
context=from-internal
;
codec=G7231
frames=2
codec=G729
frames=2
codec=G711A
frames=20
codec=G711U
frames=20
codec=GSM0610
frames=4
4.- Finalmente nos queda configurar los dispositivos H.323 para que utilizen como GATEWAY la ip del servidor ASTERISK. Para cada dispositivo H.323 se debera crear una extension de la siguiente manera, para ilustrar el ejemplo la extension es la numero 100:
exten ==> 100,1,Dial(OH323/100@XX.XX.XX.XX:1720)
Donde XX.XX.XX.XX es la ip del dispositivo H.323.
De esta manera es posible marcar desde un dispositivo H.323 a una extension SIP/IAX2 y viceversa.
Comentarios
duda
me dice al instalar pwlib que puede tener problemas respecto al horario una cosa asi y se demora mucho al instalarlo
aunque finalizo trate de ke se instale el openh323 pero = tarde demaciado espero finalice pronto...
Un Saludo y veo que no tengo respuesta...
Bueno ya instale OpenH323 y segun ya esta funcionando,
mi duda ahora es con respecto a la configuracion de
OH323.conf si alguien tiene una idea de como configurar
2 o 3 clientes para realizar pruebas se los agradeceria...
Caller ID oh323
Buenos dias, Tengo funcionando una asterisk 1.0.9 con oh323 y puedo setear el Caller ID sin problemas.
Bien, Ahora estoy probando versiones de Asterisk 1.2.x con el nuevo oh323 y no encuentro la manera de
cambiar el caller ID. Probe con Set(CALLERID(num)=xxxx) y nada
Para quienes usen
Para quienes usen Debian,
echo "deb http://pkg-voip.buildserver.net/debian sarge main" >> /etc/apt/sources.list
aptitude update
aptitude install asterisk asterisk-oh323
Que facil no? ;)
------------
Antes de preguntar visita el [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:
[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]
-----
Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:
[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]
(adsbygoogle = window.adsbygoogle || []).push({});
Hola, tengo instalado
Hola, tengo instalado trixbox 2.2 que ya tiene el h.323.
Tengo una cuenta sip que solo funciona con h.323 pero no se configurar nada,
alguien me podria ayudar. Muchas gracias
Cita: Tengo una cuenta sip
[quote]
Tengo una cuenta sip que solo funciona con h.323 pero no se configurar nada
[/quote]
Una cuenta SIP que solo funciona con h.323 ????? :? eso si que es nuevo para mí.
------------
Antes de preguntar visita el [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:
[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]
-----
Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:
[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]
(adsbygoogle = window.adsbygoogle || []).push({});
troncal h323
Como puedo habilitar una troncal h323?, la cree dentro del ooh323.conf.
[trunk323]
type=peer
ip=x.x.x.x
port=1720
h323id=xxxxxxxxxxxx
e164=xxxxxxxxxxxx
disallow=all
allow=g729
allow=g723
Pero estoy un tanto perdido para crear la ruta de salida que me permita llamar a traves de esta troncal. Agradezco de antemano la atencion prestada y su valiosa ayuda.