From a6e777da0a10cd155eecfa4e0a3d6a286e18a7d9 Mon Sep 17 00:00:00 2001 From: Flaviu Mates Date: Fri, 29 May 2020 16:32:09 +0300 Subject: [PATCH] TT#80994 - Get click2dial version from config * As click2dial2 was implemented for pro versions, the version of click2dial is now in ngcp_panel.conf and it will be taken from there Change-Id: Iee1d6eea2cae3a80616272bd3fd5bce9b35fc496 (cherry picked from commit 951bad48e135ba36a996e967b967ef74edfb03f8) --- lib/NGCP/Panel/Utils/Sems.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/Sems.pm b/lib/NGCP/Panel/Utils/Sems.pm index a3ef7ccb26..4b91e603fc 100644 --- a/lib/NGCP/Panel/Utils/Sems.pm +++ b/lib/NGCP/Panel/Utils/Sems.pm @@ -301,13 +301,20 @@ sub dial_out { my $caller_username = $prov_subscriber->username; my $caller_domain = $prov_subscriber->domain->domain; my $caller_password = $prov_subscriber->password; + my $click2dial; + if ($c->config->{click2dial}->{version} == 1) { + $click2dial = 'click2dial'; + } + elsif ($c->config->{click2dial}->{version} == 2) { + $click2dial = 'click2dial2'; + } my $ret = NGCP::Panel::Utils::XMLDispatcher::dispatch($c, "appserver", 0, 1, < dial_auth_b2b - click2dial + $click2dial $announcement sip:$caller_username\@$caller_domain sip:$callee_user\@$callee_domain