Picture of Sam 4951
Registered 5 years 62 days
Sam 4951 Friday, 11 September 2020, 09:09 PM
PBX App object does not connect to App (at customer)
Good evening forum,

Today we installed an App, that is working in our office, on premise at the customer, via binary file upload (developer mode).

The PBX App object was created manually, by copy/paste of the URL shown at the bottom of the instance configuration.
See attached screenshots.

The problem is that the PBX App object stays "connecting", it fails to connect it's websocket.
The AppLoginResult message doesn't contain "ok": true.

The logfile is attached as well.

I'm pretty sure that there's no password mismatch, because if I re-calculate the digest myself, it is correct.
See my inserts in the logfile (line 579).

Are there any other fields, besides the password, that have to match between configuration and code (hardcoded values)?

Thank you very much for a reply,
Best regards,
Sam
logs_SNOM.zip
Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Monday, 14 September 2020, 03:26 PM
Re: PBX App object does not connect to App (at customer)
Hi Sam,

you can try adding some debugs:

1. in your AppNameService class:
class AppInstance * AppNameService::CreateInstance(AppInstanceArgs * args)
{
debug->printf("args.appPassword:%s", args.appPassword);
return new AppName(iomux, this, args);
}

2. in your session class:
char * AppNameService::AppWebsocketPassword() override {
// here you must return the password from the AppInstanceArgs from the CreateInstance function above.
}

Do you get the expected password in both cases (which must be the configured App Password inside the AP Manager and the PBX App object)?

All other values are not relevant, as they are just used as they are received inside the AppLogin message.

Greetings,
Daniel
Picture of Sam 4951
Registered 5 years 62 days
Sam 4951 Wednesday, 16 September 2020, 10:40 AM
Re: PBX App object does not connect to App (at customer)
Hey Daniel,

Thanks for the tip, but in the meantime the customer re-installed both platform + app.
After this the PBX App object can connect to the App.

Thus probably a pwd mismatch indeed, like you were thinking.

Thanks for your help,
Best regards,
Sam
← You can define your color theme preference here