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

ari only response to the first call #9

Closed
playsolo opened this issue Oct 26, 2014 · 2 comments
Closed

ari only response to the first call #9

playsolo opened this issue Oct 26, 2014 · 2 comments

Comments

@playsolo
Copy link

node-ari-client: 0.1.5
nodejs: v0.10.32
asterisk: 13.0.0-beta3

the first call works fine, if I hangup and dial again, nothing happen, call hit Stasis but there're no log from nodejs, if I break nodejs and run again, it will work, but only for 1st call.

@samuelg
Copy link
Contributor

samuelg commented Oct 27, 2014

Are you using once or on to register an event handler? If using once, only the first event will fire. I know some of the examples incorrectly show once for a StasisStart event. Switching to client.on('StasisStart', handler); will fix that.

@playsolo
Copy link
Author

thanks for your reply, it's working :)

@samuelg samuelg closed this as completed Oct 27, 2014
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