How to pass a bash value?

Is it possible (if yes, how ?) to pass a variable value from a bash script to Asterisk ?

If no, what solution(s) are there? (PHP script via AGI ?)

yes it is possible to write into asterisk db, from there read it

asterisk -rx (execute asterisk command db)

[quote=“Reaper”]yes it is possible to write into asterisk db, from there read it

asterisk -rx (execute asterisk command db)[/quote]

Can you please specify in more detail ?

Isn’t it possible not to use a db, but to pass the bash variable directly via AGI to a dial plan variable.

[quote=“henkoegema”]
Can you please specify in more detail ?

Isn’t it possible not to use a db, but to pass the bash variable directly via AGI to a dial plan variable.[/quote]

I think we need more details from you in order to answer your question. When you say bash variable… Do you mean you want an AGI script to execute a shell script, then take the STDOUT and do something with it (ie set an * variable?