Hi,
I have successfully Installed opensrs-client-2.51 and I am able to register .com
domains (by calling subroutine register from reg_system.cgi). But, while
registering .info/.biz domains it gives me following error:
"Domain: domain.info Registration attempt failed: Invalid data. owner phone
number has to be in a +1.4165551122x1234 format: '44.2073717787'
billing phone number has to be in a +1.4165551122x1234 format: '44.2073841096'
billing fax number has to be in a +1.4165551122x1234 format: '44.2073841296'
admin phone number has to be in a +1.4165551122x1234 format: '44.2073841096'
admin fax number has to be in a +1.4165551122x1234 format: '44.2073841296'"
I am putting Phone numbers as +44.2073841096 only but, it is replacing + sign as
space. The reason I could find out is subroutine register (sub register) in
reg_system.cgi is calling subroutine unencode (sub unencode) from XML_Client.pm
which is just replacing the + sign to space
#reg_system.cgi
foreach $key (keys %in) {
$in{$key} = unencode($in{$key});
}
#XML_Client.pm
sub unencode {
my $text = shift;
$text =~ tr/+/ /;
$text =~ s/%([0-9a-fA-F]{2})/pack("c",hex($1))/ge;
return $text;
}
Then I tried to assign the original values to the variables by following way in
reg_system.cgi (sub register):
my $admin_phone = $in{admin_phone};
my $admin_fax = $in{admin_fax};
my $billing_phone = $in{billing_phone};
my $billing_fax = $in{billing_fax};
my $owner_phone = $in{owner_phone};
my $owner_fax = $in{owner_fax};
foreach $key (keys %in) {
$in{$key} = unencode($in{$key});
}
$in{admin_phone} = $admin_phone;
$in{admin_fax} = $admin_fax;
$in{billing_phone} = $billing_phone;
$in{billing_fax} = $billing_fax;
$in{owner_phone} = $owner_phone;
$in{owner_fax} = $owner_fax;
(In that way I am sending the phone numbers in required format only.)
and then I got error message as:
"Domain: domain.info Registration attempt failed: Invalid data."
So, please suggest me as how to register .info and .biz TLDs
Regards,
Sanjay