asterisk / node-ari-client

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

how to set argument and get argument value #88

Closed mpbanna closed 7 years ago

mpbanna commented 7 years ago

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

mpbanna commented 7 years ago

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

lucassoler commented 7 years ago

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 commented 7 years ago

Thanks, it working.

samuelg commented 7 years ago

Thanks for the quick reply @lucassoler