<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 09 Mar 2015, at 08:54, Nir Simionovich <<a href="mailto:nir.simionovich@gmail.com">nir.simionovich@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p dir="ltr">Cool, too bad it isn't documented. I'll add it into PHPARI as well. </p></blockquote><div><br></div><div><br></div><div>I believe that this was one of the reasons we created the support for _VARIABLE and __VARIABLE</div><div>in Asterisk. The ability to reach over to the new channel from the old channel was required</div><div>for a number of things we wanted to do.</div><div><div><br></div><div>The code is very old and at the time it was seem as a bad hack to use the channel</div><div>variables for this.  The decision was not to expose this part while trying to figure out a better</div></div><div>way to do it. It's still around, about ten years later. :-)</div><div><br></div><div>I have mentioned this a number of times on various mailing lists, so it should be known,</div><div>even though it is not documented.</div><div><br></div><div>Make sure that if you add variables not using the dialplan function,  you must use high numbers and </div><div>decrement so the risk of a collision is lower.</div><div><br></div><div>/O</div><div><br></div><br><blockquote type="cite">
<div class="gmail_quote">On Mar 8, 2015 6:18 PM, "Matthew Jordan" <<a href="mailto:mjordan@digium.com">mjordan@digium.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 8, 2015 at 10:51 AM, Nir Simionovich <span dir="ltr"><<a href="mailto:nir.simionovich@gmail.com" target="_blank">nir.simionovich@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok, I'll have a look into that one.</div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 8, 2015 at 1:03 PM, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
On 08 Mar 2015, at 09:52, Nir Simionovich <<a href="mailto:nir.simionovich@gmail.com" target="_blank">nir.simionovich@gmail.com</a>> wrote:<br>
<br>
> Hi All,<br>
><br>
>   So, I've been banging my head against an issue with ARI. While Channel Originate enables<br>
> you to originate channels, you can't really do a "SIPAddHeader" type functionality in there.<br>
><br>
>   Originally, I was under impression that endpoints/message should be able to give me the functionality I wanted, but it didn't.<br>
><br>
>   So, I realized that the functionality I'm looking for doesn't really exist.<br>
><br>
>   Question, are we missing a feature here? or is there an alternative method of achieving the<br>
> same functionality?<br>
</div>If you can add channel variables, you can add SIP headers.<br>
Look at a dump of the channel after you executed SIPaddheader to figure out how it works.<br>
Add two headers, and run dumpchan().<br>
<span></span></blockquote></div></div></div></blockquote><div><br></div><div>You should be able to do it with just the channel variable "SIPADDHEADER", that is:<br><br></div><div>SIPADDHEADER=X-CustomHeader-1: foo<br></div><div>SIPADDHEADER=X-CustomHeader-2: bar<br></div></div><br></div><div class="gmail_extra">These can be specified in the /channels operation's JSON body.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">WIth chan_pjsip, headers are manipulated using a dialplan function, so there shouldn't be any issue there.<br></div><div class="gmail_extra"><br>-- <br><div><div dir="ltr"><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Director of Technology<br></div><div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com/" target="_blank">http://digium.com</a> & <a href="http://asterisk.org/" target="_blank">http://asterisk.org</a></div></div></div></div>
</div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div>
-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div><br></body></html>