Tap here to compare the top VoIP providersTap here to hide the top VoIP Providers
Asterisk RealTime H323
Asterisk RealTime H323 (chan_h323)
The realtime code was merged into trunk more then a year ago but still no documentation on that. So I decided to fill this vacuum.
Asterisk realtime for chan_h323 is configured in same ways as SIP and IAX2 tables. Below you can find a simple guide how to implement this.
Configure Asterisk to load peers via realtimeAdd the following lines in extconfig.conf:
h323 => mysql,billing,h323_peer
We use MySQL database so we define database connection in res_mysql.conf:
dbhost = 127.0.0.1
dbname = billing
dbuser = user
dbpass = pass
dbport = 3306
Database structureh323_peer table has the following structure
DROP TABLE IF EXISTS h323_peer;
CREATE TABLE h323_peer(
id BIGINT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(128) NOT NULL UNIQUE,
host VARCHAR(15) DEFAULT NULL ,
secret VARCHAR(64) DEFAULT NULL,
context VARCHAR(64) NOT NULL,
type VARCHAR(6) NOT NULL,
port INT DEFAULT NULL,
permit VARCHAR(128) DEFAULT NULL,
deny VARCHAR(128) DEFAULT NULL,
mailbox VARCHAR(128) DEFAULT NULL,
e164 VARCHAR(128) DEFAULT NULL,
prefix VARCHAR(128) DEFAULT NULL,
allow VARCHAR(128) DEFAULT NULL,
disallow VARCHAR(128) DEFAULT NULL,
dtmfmode VARCHAR(128) DEFAULT NULL,
accountcode INT DEFAULT NULL,
amaflags varchar(13) DEFAULT NULL,
That's all, folks.
P.S. You can find more details and new info on asterisk h323 friends on my wiki as I cannot keep it updated in all places.
P.P.S. What an awful wiki syntax! MoinMoin rules the world! ;-) Even google uses moinmoin wiki style.
Created by: litnimax, Last modification: Sat 13 of Oct, 2007 (22:37 UTC)
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+