Skip to content

OnEvent(StateChanged) #50

Answered by daniele77
TomWocken asked this question in Q&A
Apr 20, 2021 · 2 comments · 9 replies
Discussion options

You must be logged in to vote

I guess you want to use:

pcClient->OnEvent("ChannelStateChanged");

instead of:

pcClient->OnEvent("StateChanged");

Because StateChanged is not a valid ARI event.

However, Client::OnEvent() should be used only for events that have no explicit handler available in AriModel class.

As for as the ChannelTalkingStart event, you should check if it is fired by asterisk using e.g. this tool: https://github.com/daniele77/aritester

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@TomWocken
Comment options

@daniele77
Comment options

@TomWocken
Comment options

Answer selected by TomWocken
Comment options

You must be logged in to vote
6 replies
@daniele77
Comment options

@TomWocken
Comment options

@TomWocken
Comment options

@daniele77
Comment options

@TomWocken
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants