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

TLS Connicting to Zammad #3

Open
andyacep opened this issue Jan 8, 2020 · 4 comments
Open

TLS Connicting to Zammad #3

andyacep opened this issue Jan 8, 2020 · 4 comments

Comments

@andyacep
Copy link

andyacep commented Jan 8, 2020

HI, Thankyou for this code

ive installed it on a freepbx centos system, can you help?

Im getting the below error event though the zammad server has SSL and works over https ok

2020-01-08 10:16:11 +0000 [info] posting to Zammad: direction=in&to=550&callId=5501578478563.12264&from=07766163096&event=newCall
Use of uninitialized value $data in string ne at ./asterisk-zammad-cti-bridge line 84.
undef
\ {
Reason "TLS support not available on this system",
Status 596,
URL "https://xxxxx.xxxx.xx.xx/api/v1/cti/TVe9XESeCxxxXSbycMSiIuZJWXA"

@martinvonwittich
Copy link
Owner

Reason "TLS support not available on this system",
Status 596,

The error originates from the AnyEvent::HTTP library that asterisk-zammad-cti-bridge uses to submit the request to Zammad:

https://metacpan.org/pod/AnyEvent::HTTP#METHODS

If an internal error occurs, such as not being able to resolve a hostname, then $data will be undef, $headers->{Status} will be 590-599 and the Reason pseudo-header will contain an error message. Currently the following status codes are used:

596 - errors during TLS negotiation, request sending and header processing.
[...]

Try to install the package perl-Net-SSLeay, I believe that should resolve the issue.

@andyacep
Copy link
Author

andyacep commented Jan 8, 2020 via email

@andyacep
Copy link
Author

andyacep commented Jan 8, 2020 via email

@andyacep
Copy link
Author

andyacep commented Jan 9, 2020

start asterisk-zammad-cti-bridge.service

logs show

Jan 9 09:19:28 pbx asterisk-zammad-cti-bridge: 2020-01-09 09:19:28 +0000 [info] pushing to Zammad post queue: direction=in&to=550&callId=5501578561564.95&from=07966163026&event=newCall

but nothing is happening at the Zammad end?

But running from the cli
2020-01-09 09:29:25 +0000 [info] posting to Zammad: direction=in&to=550&callId=5501578562162.139&from=07966163026&event=newCall

call shows up straight away

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