Hi, please let me know if I’m posting this in the wrong place.
I am trying to develop a module that will contain functions that can be called from within the a dial plan. One of the things I want to do within one of my functions is add/modify the diversion sip header and then make a call. I can make a call using ast_call() in channel.h but I can’t seem to figure out how to add the sip header. I would have thought the function to do this would be in channel.h.
I realize that this is easy to do within the dial plan itself using SipAddHeader() but running doing this within the dial plan isn’t feasible for the deployment I am setting up. I apologize if this is a newbie question, I’m fairly new to asterisk development and module development in particular.