Closed goharahmed closed 1 year ago
Nice, thanks!
It looks like you're failing the linter with formatting issues. Can you be sure to run through gofumpt
?
Thank you so much for quick review.
Its linted by VSCode, as Im not familiar with gofumpt
Do you want me to run this:
gofumpt -l -w .
from this library: https://github.com/mvdan/gofumpt
Closer; (hint: you can run golangci-lint run ./...
locally to shorten the dev-check loop)
@Ulexus seems my changes are acceptable but there is an unchanged file having some string.Title() problem. Do you want me to fix that as well or leave it ?
Ah, I see; it must be a newer linter restriction since the last commit. If you don't mind fixing it here, that would be great.
Let me see as how to fix it :)
Should just be to replace with https://pkg.go.dev/golang.org/x/text/cases#Title
@Ulexus - I think all set, I was reading about the "Language.Und" and I don't fully comprehend what could the "x" string possible values and if the Undisclosed language rules will make it work or not. Anways, the PR related to ari-proxy is ready but waiting for the main ari package to show the UserEvent implementation
s.ari.Channel().UserEvent undefined (type ari.Channel has no field or method UserEvent)
Once this PR is closed I'll submit the next one.
Hmm... it looks like there's a mess of additional linter errors after that one. I'm going to go ahead and merge this and then fix the rest myself before tagging the next release.
Thanks for your submission!
Tagged v5.3.0 with this feature, @goharahmed
Allows ARI to trigger AMI layer userevent. Please provide feedback. Changes corresponding to this in ari-proxy to be followed shortly in the respective repository.
Thank you.
Ref: https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Events+REST+API#Asterisk18EventsRESTAPI-userEvent
This change is