- for my $val (qw(host login password)) {
- if (defined(${$Config{$section}}{$val})) {
- print "$section: $val: <" . ${$Config{$section}}{$val}.">\n";
+ if (defined(${$Config{$section}}{host})) {
+ $g_host->append_text($section);
+ if (defined(${$Config{$section}}{login}) &&
+ defined(${$Config{$section}}{password})) {
+ $ua->credentials(${$Config{$section}}{host}.":80",
+ "snom",
+ ${$Config{$section}}{login},
+ ${$Config{$section}}{password});