Nguyen Trung Tin
2005-Oct-08 01:09 UTC
[Asterisk-Users] Re: Asterisk-Users Digest, Vol 15, Issue 28
Hello All Anybody had used ooH323 for asterisk i using ooH323-0.7.2 and asterisk CVS may 2005. OpenH323 1.17.1 and pwlib 1.9.0 and GNUGK 2.0.2 audio is very good, better than SIP and IAX, but i have problem. how to router call from openh323 to outside PSTN. my h323.conf setting ; Objective System's H323 Configuration example for tvcti ; ooh323c driver configuration ; ; [general] section defines global parameters ; ; This is followed by profiles which can be of three types - user/peer/friend ; Name of the user profile should match with the h323id of the user device. ; For peer/friend profiles, host ip address must be provided as "dynamic" is ; not supported as of now. ; ; Syntax for specifying a H323 device in extensions.conf is ; For Registered peers/friends profiles: ; H323/name where name is the name of the peer/friend profile. ; ; For unregistered H.323 phones: ; H323/ip[:port] OR if gk is used H323/alias where alias can be any H323 ; alias ; ; For dialing into another tvcti peer at a specific exten ; H323/exten/peer OR H323/exten@ip ; ; Domain name resolution is not yet supported. ; ; When a H.323 user calls into tvcti, his H323ID is matched with the profile ; name and context is determined to route the call ; ; The channel driver will register all global aliases and aliases defined in ; peer profiles with the gatekeeper, if one exists. So, that when someone ; outside our pbx (non-user) calls an extension, gatekeeper will route that ; call to our tvcti box, from where it will be routed as per dial plan. [general] ;Define the asetrisk server h323 endpoint ;The port tvcti should listen for incoming H323 connections. ;Default - 1720 ;port=1720 ;The dotted IP address tvcti should listen on for incoming H323 ;connections ;Default - tries to find out local ip address on it's own bindaddr=192.168.22.224 ;Whether tvcti should use fast-start and tunneling for H323 connections. ;Default - yes ;faststart=no ;h245tunneling=no faststart=yes h245tunneling=yes ;H323-ID to be used for tvcti server ;Default - tvcti PBX ;h323id=ObjSystvcti ;e164=100 h323id=9 ;e164=100 ;e164=0,1,2,3,4,5,6,7,8,9,*,# ;CallerID to use for calls ;Default - Same as h323id callerid=tvcti ;Whether this tvcti server will use gatekeeper. ;Default - DISABLE ;gatekeeper = DISCOVER ;gatekeeper = a.b.c.d gatekeeper = 192.168.22.224 ;Location for H323 log file ;Default - /var/log/tvcti/h323_log ;logfile=/var/log/tvcti/h323_log ;Following values apply to all users/peers/friends defined below, unless ;overridden within their client definition ;Sets default context all clients will be placed in. ;Default - default context=from-h323 ;Sets rtptimeout for all clients, unless overridden ;Default - 60 seconds rtptimeout=60 ; Terminate call if 60 seconds of no RTP activity ; when we're not on hold ;Type of Service ;Default - none (lowdelay, thoughput, reliability, mincost, none) tos=lowdelay ;amaflags = default amaflags = billing ;The account code used by default for all clients. accountcode=h3230101 ;The codecs to be used for all clients.Only ulaw and gsm supported as of now. ;Default - ulaw ; ONLY ulaw, gsm, g729 and g7231 supported as of now disallow=all ;Note order of disallow/allow is important. allow=gsm allow=ulaw allow=alaw ; dtmf mode to be used by default for all clients. Only rfc2833 supported as ; of now. ;Default - rfc 2833 ;dtmfmode=rfc2833 dtmfmode=inband ; User/peer/friend definitions: ; User config options Peer config options ; ------------------ ------------------- ; context ; disallow disallow ; allow allow ; accountcode accountcode ; amaflags amaflags ; dtmfmode dtmfmode ; rtptimeout ip ; port ; h323id ; email ; url ; e164 ; rtptimeout ; [152] type=peer context=from-h323 ;ip=a.b.c.d ; UPDATE with appropriate ip address ;port=1720 ; UPDATE with appropriate port ;e164=0,1,2,3,4,5,6,7,8,9,*,# e164=9911 allow=ulaw allow=alaw allow=gsm [myfriend11] type=friend context=from-h323 ;ip=10.0.0.82 ; UPDATE with appropriate ip address ;port=1820 ; UPDATE with appropriate port disallow=all allow=ulaw e164=9 rtptimeout=60 dtmfmode=rfc2833 [myfriend1] type=friend context=from-h323 ;ip=10.0.0.82 ; UPDATE with appropriate ip address ;port=1820 ; UPDATE with appropriate port disallow=all allow=ulaw ;e164=7777 ;h323id=tvcti_tvgk1 h323id=0,1,2,3,4,5,6,7,8,9 rtptimeout=60 ;dtmfmode=rfc2833 dtmfmode=rfc2833 [abc1] type=friend context=from-h323 disallow=all allow=ulaw allow=alaw h323id=9911 rtptimeout=60 dtmfmode=rfc2833 how to setup prefix for gateway GNUGK?? Please help me -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051008/feb75105/attachment.htm