This script implements REGISTER method, which registers the contact (ip:port address) for a given address of record (SIP address).