Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong proxy host in app provisioning #182

Closed
Stell0 opened this issue Apr 17, 2024 · 0 comments
Closed

Wrong proxy host in app provisioning #182

Stell0 opened this issue Apr 17, 2024 · 0 comments
Assignees
Milestone

Comments

@Stell0
Copy link
Collaborator

Stell0 commented Apr 17, 2024

In the provisioning process, the proxy host is currently being set to the same host as the API endpoint of the CTI, a holdover from when they used to be the same. To address this issue, we need to instruct the provisioning app to use the correct proxy host.
The simplest solution would be to include this in the /user/me endpoint as with the LK

The consequence is that the proxy certificate is considered invalid because name doesn't match

Example: if proxy host is proxy.example.com and CTI endpoint is cti.example.com, this is the current provisioning query result:

<account>
  <cloud_username>username@cti.example.com</cloud_username>
  <cloud_password>**********</cloud_password>
  <username>1234</username>
  <password>************************</password>
  <extProvInterval>3600</extProvInterval>
  <proxy>cti.example.com:5061</proxy>
  <host>cti.example.com</host>
  <transport>tls+sip:</transport>
</account>

and this is how it should be

<account>
  <cloud_username>username@cti.example.com</cloud_username>
  <cloud_password>**********</cloud_password>
  <username>1234</username>
  <password>************************</password>
  <extProvInterval>3600</extProvInterval>
  <proxy>proxy.example.com:5061</proxy>
  <host>cti.example.com</host>
  <transport>tls+sip:</transport>
</account>
@Stell0 Stell0 converted this from a draft issue Apr 17, 2024
@Stell0 Stell0 self-assigned this Apr 17, 2024
@Stell0 Stell0 moved this from Backlog to In Progress in NethVoice NS8 Apr 17, 2024
@Stell0 Stell0 added this to the RC1 milestone Apr 17, 2024
Stell0 added a commit to nethesis/ctiapp-authproxy that referenced this issue Apr 18, 2024
@Stell0 Stell0 closed this as completed Apr 18, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in NethVoice NS8 Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant