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

how to set argument and get argument value #88

Closed
mpbanna opened this issue May 4, 2017 · 4 comments
Closed

how to set argument and get argument value #88

mpbanna opened this issue May 4, 2017 · 4 comments

Comments

@mpbanna
Copy link

mpbanna commented May 4, 2017

hello,
How to set argument value in channel.orginate() and how to get argument value in ari.on('StasisStart',function(){});

@mpbanna
Copy link
Author

mpbanna commented May 4, 2017

ok, then how to get argument value in ari.on('StasisStart',function(){});

@lucassoler
Copy link

lucassoler commented May 4, 2017

Hello,

channel.originate(
{endpoint: 'SIP/1000', app: 'application', appArgs: 'yourargument'},
function (err, channel) {}
);

ari.on('StasisStart',function(event, channel){
var arg = event.args;
});

(sorry I sent the comment by error on the first time)

@mpbanna
Copy link
Author

mpbanna commented May 4, 2017

Thanks, it working.

@samuelg
Copy link
Contributor

samuelg commented May 4, 2017

Thanks for the quick reply @lucassoler

@samuelg samuelg closed this as completed May 4, 2017
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

3 participants