asterisk / node-ari-client

Node.js client for ARI. This library is best effort with limited support.
Other
250 stars 98 forks source link

endpoints.sendMessage triggers CLI errors on 15.0.0-rc1 #95

Closed capouch closed 6 years ago

capouch commented 6 years ago

This request: http://asterisk.example.com:8088/ari/endpoints/sendMessage( { from: from_param, to: to_param, body: body_param} )

Works fine on 14.6.2.

On 15.0.0-rc1 the CLI shows this: `Asterisk Ready.

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor

ast_tcptls_close_session_file: ast_tcptls_close_session_file invoked on session instance without file or file descriptor`

I have verified that the error occurs only when that API is called through the ari-client package, the following command works silently on both versions:

curl -v -u user:pass -X PUT "http://asterisk.example.com:8088/ari/endpoints/sendMessage?from=sip:8006&to=sip:8005&body=Now%20I%20am%20there"

capouch commented 6 years ago

After some more testing, it looks like these errors occur after most/all accesses to the ARI resources exposed through ari-client.

jcolp commented 6 years ago

This message is harmless and has already been changed to a debug message in 15.0. If you are experiencing other problems then that would be separate.