Revision cfb460aa
Von Sven Schöling vor etwa 8 Jahren hinzugefügt
SL/CTI.pm | ||
---|---|---|
30 | 30 |
sub call_link { |
31 | 31 |
my ($class, %params) = @_; |
32 | 32 |
|
33 |
return "controller.pl?action=CTI/call&number=" . uri_encode($class->sanitize_number(number => $params{number})) . ($params{internal} ? '&internal=1' : ''); |
|
33 |
my $config = $::lx_office_conf{cti} || {}; |
|
34 |
|
|
35 |
if ($config->{dial_command}) { |
|
36 |
return "controller.pl?action=CTI/call&number=" . uri_encode($class->sanitize_number(number => $params{number})) . ($params{internal} ? '&internal=1' : ''); |
|
37 |
} else { |
|
38 |
return 'callto://' . uri_encode($class->sanitize_number(number => $params{number})); |
|
39 |
} |
|
34 | 40 |
} |
35 | 41 |
|
36 | 42 |
sub sanitize_number { |
Auch abrufbar als: Unified diff
CTI: wenn kein dial_command vorhanden callto: links rendern