diff --git a/lib/csc/Controller/autodevice.pm b/lib/csc/Controller/autodevice.pm index 8b8fa84..b996935 100644 --- a/lib/csc/Controller/autodevice.pm +++ b/lib/csc/Controller/autodevice.pm @@ -79,10 +79,11 @@ sub savespa : Local $spa{ip} = $c->request->params->{ip}; $c->log->debug('***device::spa ip='.$spa{ip}); - $spa{fxs1_subscriber_id} = int($c->request->params->{fxs1}) - if($c->request->params->{fxs1} && $c->request->params->{fxs1} =~ /^\d+$/); - $spa{fxs2_subscriber_id} = int($c->request->params->{fxs2}) - if($c->request->params->{fxs2} && $c->request->params->{fxs2} =~ /^\d+$/); + print($c->request->params->{fieldset} . "\n"); + my $num1 = $c->request->params->{fieldset} eq "small" ? $c->request->params->{fxs1} : $c->request->params->{fullnum1}; + my $num2 = $c->request->params->{fieldset} eq "small" ? $c->request->params->{fxs2} : $c->request->params->{fullnum2}; + $spa{fxs1_subscriber_id} = int($num1) if($num1 && $num1 =~ /^\d+$/); + $spa{fxs2_subscriber_id} = int($num2) if($num2 && $num2 =~ /^\d+$/); if(defined $spa{fxs1_subscriber_id} && defined $spa{fxs2_subscriber_id} && $spa{fxs1_subscriber_id} == $spa{fxs2_subscriber_id}) { diff --git a/root/tt/autoconf_device.tt b/root/tt/autoconf_device.tt index 01d2f97..3215847 100644 --- a/root/tt/autoconf_device.tt +++ b/root/tt/autoconf_device.tt @@ -1,5 +1,56 @@ [% META title = 'device' %] + +
Test
@@ -37,20 +88,18 @@ -

SPA9000 einrichten

+

Endgerät einrichten

-

Bitte tragen Sie die Mac-Adresse Ihrer Telefonanlage ein und weisen Sie bei Bedarf den analogen Anschlüssen eine Durchwahl zu

-

- Die Mac-Adresse ist eine Nummer und befindet sich auf der Unterseite Ihres Geräts. -

-
+

Bitte tragen Sie die Mac-Adresse Ihrer Telefonanlage ein und weisen Sie bei Bedarf den analogen Anschlüssen eine Durchwahl zu

+

Die Mac-Adresse ist eine Nummer und befindet sich auf der Unterseite Ihres Geräts.

+
- @@ -69,7 +118,9 @@
-
+ + +
@@ -107,6 +158,46 @@
+
+ + +
+
+ +
+ + +
+
+
@@ -191,3 +282,8 @@

+