Asterisk channel

Greetings,

Endless googling has none given me the answer to this following query… Maybe someone here can help.

Is there a function that allows me to access the specific variable binded to a a specific channel through the DialPlan ? I’m looking for a c function. Something like ast_get_val_chan( channel name, variable name).

If not can somebody give me some advice on how I shall be able to do this ?
Any suggestions are welcome.

Thanks,
Newman

core show functions will tell you.

It’s IMPORT.

Hey,

Well I found the answer if anybody else is wondering you can you the following function

pbx_builtin_getvar_helper(chanID, “NAMEOFVARIABLE” )

That was a developer question, so off topic. I didn’t spot the lower case “c”.