search for: sergey12313

Displaying 2 results from an estimated 2 matches for "sergey12313".

2020 May 13
0
Tip/Question about encoding temporary data for storage in Asterisk variable to use in AGI
...ms to be about 3000 characters or so(?), so make sure your base64 encoded object is small! The following is a simple example which just encodes and decodes the agi variables themselves as they're an object in ts-agi (I'm using the ts-agi node package here as an example - https://github.com/sergey12313/ts-agi/ ) await ctx.setVariable('testvar2', Buffer.from(JSON.stringify(ctx.variables), 'utf8').toString('base64')) const testvar2 = (await ctx.getVariable('testvar2')).value const decoded = JSON.parse(Buffer.from(testvar2, 'base64').toString('...
2019 Dec 27
2
AGI: "Get variable" returns variable VALUE vs "Get full variable" returns variable NAME - bug or my misunderstanding?
Just trying out a node agi package (https://github.com/sergey12313/ts-agi/ , and it wasn't behaving as I expected, but when turning on agi debug, it looks like it might be Asterisk (using 17.1.0) This works as expected <Local/1000 at default-00000020;2>AGI Rx << SET VARIABLE myVar "Hello World!!!" <Local/1000 at default-00000020;2&gt...