Skip to content

enhancement #7

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

Open
ihabhamad opened this issue Feb 7, 2019 · 3 comments
Open

enhancement #7

ihabhamad opened this issue Feb 7, 2019 · 3 comments

Comments

@ihabhamad
Copy link

my friend if you check duration from active channels after refresh well be enhancement because duration run on the front end and it reset in refresh page

@staskobzar
Copy link
Owner

Hello,
You are right, thanks.
In this project the front-end part is considered as an example that shows how to use amiws proxy. It is not supposed to be used in production.
I am not sure I can fix it anytime soon. If you have a patch that can fix it, please, feel free to create a pull request.
Have a good day!

@ihabhamad
Copy link
Author

ihabhamad commented Jun 17, 2019

Sorry, my c language very poor I build node js project, but is not stable like your app I tested your app is very powerful but duration it will be in backend I like it and am very sorry for can't help you because my poor experience on the c

@staskobzar
Copy link
Owner

Hello,

This is not back-end/c. Back-end is simply send all AMI events to web-socket. The time is processed in the Front-end.
When the page is reloaded, it send AMI command to Asterisk "CoreShowChannel" (check the source).
This will respond with event "CoreShowChannel" that has field "duration". See Vue example in the unit test spec file.
The bug is probably in the processing the Duration field and set it on page reload:
https://github.com/staskobzar/amiws/blob/master/web_root/amipack.js#L162

This is back-end project and the front-end is given only as an example. You can clone web-root (vanila javascript or vue) and fit it for your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants