Setting channel variables from chan_sip.c

Hi all,

I’m trying set a new channel variable from chan_sip.c, I tested with function: pbx_builtin_setvar_helper, but it sets a global variable.
Someone knows how can I do it?


This is s developer question and should be asked on the developer mailing list or IRC channel.

Otherwise, all I can suggest is copying and pasting from a know working part of the code.