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

setChannelVar #155

Open
adriavidal opened this issue Mar 6, 2023 · 3 comments
Open

setChannelVar #155

adriavidal opened this issue Mar 6, 2023 · 3 comments

Comments

@adriavidal
Copy link

adriavidal commented Mar 6, 2023

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
Copy link

geilt commented Apr 19, 2023

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
Copy link

@adriavidal , the channel name content id of channel?

@adriavidal
Copy link
Author

adriavidal commented Mar 10, 2024 via email

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