node-ari-client icon indicating copy to clipboard operation
node-ari-client copied to clipboard

setChannelVar

Open adriavidal opened this issue 1 year ago • 3 comments

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);

adriavidal avatar Mar 06 '23 10:03 adriavidal

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?

geilt avatar Apr 19 '23 10:04 geilt

@adriavidal , the channel name content id of channel?

dorlanpabon avatar Mar 05 '24 13:03 dorlanpabon

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: @.***>

adriavidal avatar Mar 10 '24 20:03 adriavidal