<p dir="ltr">Cool, too bad it isn't documented. I'll add it into PHPARI as well. </p>
<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><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><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></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></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><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></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>