Horas and konnichiwa untuk semua


Changing Ezmlm messages
March 17, 2004, 6:26 pm
Filed under: notes/Settings

Quoted from http://sunsite.dk/node/id/86

It is possible to change the messages ezmlm sends when somebody subscribes to your list, unsubscribes from your list, etc. etc. . In order for this, you must have remote administration enabled for the list you would like to change the default messages for. To enable remote administration, simply email staff@sunsite.dk with the list you require to have remote administration set up for.
(more…)



Gatekeeper functionality
March 17, 2004, 6:17 pm
Filed under: notes/General

Mandatory Gatekeeper Functions
1. Address Translation - Translates H.323 IDs (such as gwy1@domain.com) and E.164 numbers (standard telephone numbers) to endpoint IP addresses.
2. Admission Control - Controls endpoint admission into the H.323 network. To achieve this, the gatekeeper uses the following:
H.225 Registration, Admission, and Status (RAS) messages
Admission Request ARQ)
Admission Confirm ACF)
Admission Reject (ARJ)

3. Bandwidth Control – Consists of managing endpoint bandwidth requirements. To achieve this, the gatekeeper uses these H.225 RAS messages:
Bandwidth Request (BRQ)
Bandwidth Confirm (BCF)
Bandwidth Reject (BRJ)

4. Zone Management - The gatekeeper provides zone management for all registered endpoints in the zone. For example, controlling the endpoint registration process.

Optional Gatekeeper Functions
1. Call Authorization - With this option, the gatekeeper can restrict access to certain terminals or gateways and/or have time-of-day policies restrict access.
2. Call Management - With this option, the gatekeeper maintains active call information and uses it to indicate busy endpoints or redirect calls.
3. Bandwidth Management - With this option, the gatekeeper can reject admission when the required bandwidth is not available.
4. Call Control Signaling - With this option, the gatekeeper can route call-signaling messages between H.323 endpoints using the Gatekeeper-Routed Call Signaling (GKRCS) model. Alternatively, it allows endpoints to send H.225 call-signaling messages directly to each other.

Reference:

http://www.cisco.com/warp/public/788/voip/understand-gatekeepers.html#funct

http://www.iec.org/online/tutorials/h323/topic06.html

http://www.iec.org/online/tutorials/gatekeep/topic03.html



Private IP address range
March 17, 2004, 6:01 pm
Filed under: notes/General

10.0.0.0 to 10.255.255.255 (10.0.0.0/8)
172.16.0.0 to 172.31.255.255 (172.16.0.0/12)
192.168.0.0 – 192.168.255.255 (192.168.0.0/16)

Hardcore stuff:
http://www.faqs.org/rfcs/rfc1918.html



Using SQL database with Ezmlm
March 17, 2004, 5:54 pm
Filed under: notes/Settings

ezmlm support for SQL databases.
http://www.ezmlm.org/faq-0.40/FAQ-5.html

1. Adding subscribers from text file containing addresses
/usr/local/bin/ezmlm/ezmlm-sub ~vpopmail/domains/adventmail.org/forum-seiman/ <forum-members.txt

2. Setting up a mailing list using MySQL
Table for mailing list: “forumsqlseiman” (“-” is not allowed)
Database name: “adventmailorg”

First make the database and table:
mysqladmin -u root -p create adventmailorg
Then create the tables using ezmlm-mktab
/usr/local/bin/ezmlm/ezmlm-mktab -d forumsqlseiman |mysql -u root -p -f adventmailorg

Then setup the mailing list using qmailadmin using the above database information.

3. To unsubscribe members
/usr/local/bin/ezmlm/ezmlm-unsub ~vpopmail/domains/adventmail.org/cq-seiman/ <cq-members.txt
(more…)



Temporary link in PHP
March 17, 2004, 5:37 pm
Filed under: notes/Programming

Create a download handler:

/files/download.php

This file streams a document given certain parameters.

/files/download.php?id=e45fg6f7a7c7b776d4cc4e56&fileid=4001

The id could be an MD5 of the SessionID for that user
and the download handler just checks the session ID with the one passed in

The 4001 could be a db lookup giving information about the file.
(path to file, MIME type, etc)

Then, just stream the file back to the user with the appropriate Headers

Content-type: application/zip
Content-disposition: attachment; filename=file4001.zip