Passing the value of a variable from dialplan to the agi file

hello dear friends, I am new to Asterisk Can we get the user defined variable from dialplan to the agi file if yes the n how ? would you mind helping me ! thanks in Advance.

You just pass it as parameter to your agi file like this AGI(script.php,{var1},{var2})
Then on your script you need to access to the variable using the method your programming language for the AGI script provide, in the php case using the $agrv array

I don’t understand your difficulty. Please provide details of what you have tried, and logs and descriptions of how it failed…

This forum is not a substitute for the documentation.