MT#5349 API: Fix domain activation for xmpp

mr3.3.1
Andreas Granig 12 years ago
parent 52cdacc7a6
commit e8853cf869

@ -208,8 +208,8 @@ sub POST :Allow {
try {
unless($c->config->{features}->{debug}) {
$self->xmpp_domain_reload($c);
$self->sip_domain_reload($c, $resource);
$self->xmpp_domain_reload($c, $resource->{domain});
$self->sip_domain_reload($c);
}
} catch($e) {
$c->log->error("failed to activate domain: $e"); # TODO: user, message, trace, ...

@ -142,8 +142,8 @@ EOF
}
sub xmpp_domain_reload {
my ($self, $c, $resource) = @_;
NGCP::Panel::Utils::Prosody::activate_domain($c, $resource->{domain});
my ($self, $c, $domain) = @_;
NGCP::Panel::Utils::Prosody::activate_domain($c, $domain);
}
sub xmpp_domain_disable {

Loading…
Cancel
Save