Picture of Wim 4127
Registered 6 years 310 days
Wim 4127 Tuesday, 26 May 2020, 01:34 PM
Why does PBX manager not show plugin for the template app
When you create a new app from the template in visual studio, it creates an app, an admin interface and a pbx manager plugin. For the app itself the PBX object is created. I also created an app object for the admin interface, which is than also visible (it doesn't work however, see other ticket). However, I would expect that the plugin defined in that application shows up in the PBX manager... but that doesn't happen. From the other applications I can see you do not need an app object for that; do I have to do something else then?
Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Tuesday, 26 May 2020, 01:54 PM
Re: Why does PBX manager not show plugin for the template app
Hi Wim,

the PBX Manager Plugin from an App Service is shown in the PBX Manager if you created an App Instance (which is done by the VS Plugin automatically). If you have several App Instances for the same App Service, several plugins are shown in the PBX Manager, one plugin for each instance.

If you add a new instance, you need to close and reopen the PBX Manager, as it doesn't auto update the plugins.

But I'm not sure if I really get your question.

Edit: the App Service and the instance must be running through the AP Manager (not debugging inside VS) to show up inside the PBX Manager!

Greetings,
Daniel
Picture of Wim 4127
Registered 6 years 310 days
Wim 4127 Tuesday, 26 May 2020, 01:59 PM
Re: Why does PBX manager not show plugin for the template app
I create a new project in visual studio from the innovpahone project template
I do not change anything in the code and run that app in debug from visual studio. I can the open the app and increment the counter.

The admin app that comes with this template is not shown, because the visual studio plugin does not create an app object for it. So I did that myself and that works

However, the template also adds a plugin:

void InnovaphoneTemplateAppService::AppServiceApps(istd::list<AppServiceApp> * appList)
{
 appList->push_back(new AppServiceApp("xqting-innovaphonetemplateapp"));
 appList->push_back(new AppServiceApp("xqting-innovaphonetemplateappAdmin"));
}
void InnovaphoneTemplateAppService::AppInstancePlugins(istd::list<AppInstancePlugin> * pluginList)
{
 pluginList->push_back(new AppInstancePlugin("xqting.InnovaphoneTemplateAppManager", "xqting-innovaphonetemplateapp.png", "xqting.InnovaphoneTemplateAppManagerTexts"));
}

When running this app, and when I go to the PBX manager then, I do not see any plugin there. I was expecting to see an additional icon there for the app. See screenshot attached. Or is this not the purpose of a plugin to appear in that list like the "AP contacts" and so on?

pbxmanager.png

Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Tuesday, 26 May 2020, 02:09 PM
Re: Why does PBX manager not show plugin for the template app
Ah, now I see:
if you start the App through Visual Studio debugging, the plugin is not shown inside the PBX Manager, as the App isn't started from the App Manager.

  • stop debugging
  • open the AP Manager and start the App Service and the App Instance
  • close and reopen the PBX Manager

You should then see the PBX Manager Plugin.

The reason for this is, that the AP Manager supervises apps, but this causes unexpected behaviour, if the app is started through Visual Studio and not the AP Manager itself, so an App doesn't connect to the AP Manager in debugging mode, just when started through the AP Manager itself.

Greetings,
Daniel
Picture of Sam 4951
Registered 5 years 62 days
Sam 4951 Tuesday, 17 November 2020, 08:41 PM
Re: Why does PBX manager not show plugin for the template app
Hello Daniel,

I created a PBX Manager plugin.

On the PBX in our office, the plugin immediately appeared, but in my home setup it doesn't show up.

Can you give me some hints how to debug this issue?
Which trace flags to enable? DB-queries to execute? Is the AP Manager involved?
How is the PBX Manager retrieving the list of available plugins?

Thanks for your reply.

Best regards,
Sam
Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Wednesday, 18 November 2020, 07:59 AM
Re: Why does PBX manager not show plugin for the template app
Hi Sam,

the AP object inside your PBX is the reference to your AP Manager.

If you open the PBX Manager in myApps, a websocket connection is opened to:
ws://PBX-IP-or-DNS/PBX0/APPS/app_manager/websocket

On this connection the com.innovaphone.manager API is used. The PBX internally connects to your AP Manager.

This is documented here:
http://sdk.innovaphone.com/web1/com.innovaphone.manager/com.innovaphone.manager.htm

So inside your PBX Manager plugin "App platforms" you must have your local AP configured and it must have a checkmark set (which shows that the connection works).
If this is the case, your plugins from the AP should show up.

If not, browser console logs might tell you more. On your AP Manager side you can enable the AppWebsocket/Webserver traffic trace flags to see incoming connections.

Greetings,
Daniel



← You can define your color theme preference here