mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
96_SIP : fix set password
git-svn-id: https://svn.fhem.de/fhem/trunk@13552 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cb2e7eec1e
commit
4dbdf7c14d
@ -52,7 +52,7 @@ use Net::Domain qw( hostfqdn );
|
||||
use Blocking; # http://www.fhemwiki.de/wiki/Blocking_Call
|
||||
#use Data::Dumper;
|
||||
|
||||
my $sip_version ="V1.3 / 27.02.17";
|
||||
my $sip_version ="V1.31 / 28.02.17";
|
||||
my $ua; # SIP user agent
|
||||
|
||||
my %sets = (
|
||||
@ -473,10 +473,6 @@ sub SIP_Set($@)
|
||||
SIP_updateConfig($hash);
|
||||
return undef;
|
||||
}
|
||||
elsif ($cmd eq "password")
|
||||
{
|
||||
return SIP_storePassword($name,$subcmd);
|
||||
}
|
||||
|
||||
# die ersten beiden brauchen wir nicht mehr
|
||||
shift @a;
|
||||
@ -499,6 +495,10 @@ sub SIP_Set($@)
|
||||
readingsSingleUpdate($hash, "call_state",$subcmd,1);
|
||||
return undef;
|
||||
}
|
||||
elsif ($cmd eq "password")
|
||||
{
|
||||
return SIP_storePassword($name,$subcmd);
|
||||
}
|
||||
|
||||
return "Unknown argument: $cmd, choose one of ".join(" ", sort keys %sets);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user