- return (0, "Channel: $call not found") if !$ref;
-
- my @fields = $ref->fields;
- my $field;
- push @out, "User Information $call";
- foreach $field (@fields) {
- my $prompt = $ref->field_prompt($field);
- my $val = $ref->{$field};
- push @out, "$prompt: $val";
- }
+ if ($ref) {
+ @out = print_all_fields($self, $ref, "Channe Information $call");
+ } else {
+ return (0, "Channel: $call not found") if !$ref;
+ }
+ push @out, "" if @list > 1;