asterisk / node-ari-client

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

setChannelVar #155

Open adriavidal opened 1 year ago

adriavidal commented 1 year ago

I'm triying to use the setChannelVar ,but nothing comes to the Asterisk side.

Tried like these

channel.setChannelVar( {channelId: channel.id, CUSTOM_DIGITS: digit}, function (err) {}

    );
    console.log('Channel %s setChannelVar... digit', channel.id);

and like these too.

    channel.setChannelVar(
        {channelId: channel.name, CUSTOM_DIGITS: digit},
        function (err) {}

      );

      console.log('Channel %s setChannelVar... digit', channel.name);
geilt commented 1 year ago

Your console request is likely executing before the channel var has been set. Try putting as setTimeout, or listeing for an event that the channel var has been set?

dorlanpabon commented 4 months ago

@adriavidal , the channel name content id of channel?

adriavidal commented 4 months ago

I've stop using the library in the project.

Will try if needed in the future, thanks

Missatge de dorlanpabon @.***> del dia dt., 5 de març 2024 a les 14:32:

@adriavidal https://github.com/adriavidal , the channel name content id of channel?

— Reply to this email directly, view it on GitHub https://github.com/asterisk/node-ari-client/issues/155#issuecomment-1978784447, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFRMEO2SZHZ3PCL6HLICGLYWXCNJAVCNFSM6AAAAAAVQ5GQHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZYG44DINBUG4 . You are receiving this because you were mentioned.Message ID: @.***>