How to access HASH value in Dialplan which was set in PHP-AGI


I am setting HASH value in my PHPAGI file but unable to access its value in my Asterisk Dialplan

below is my code snippet:

$agi->set_variable(“HASH(0, div)”, “1234567”);

exten => _X.,n,NoOp(${HASH(0,div}))

If you run Dumpchan() after you return from your AGI do you see the variable in the list returned?

No but it is showing empty

Application= DumpChan
Data= (Empty)

Sorry I was doing in a wrong way now all values are dumping using the correct method… Thanks for your time and help

1 Like

but now the problem is if I will be having multiple rows then how can we achieve this because it is showing only 1 row data