Hi All, <div><br></div><div>I'm answering late, but was working on something else... We've tried to look inside sofia module source code, and tried to find where sip headers are **really** written; but, we've just found how to set some variables (like sip_h_Diversion-1, etc... ) </div>
<div><br></div><div>Now, what we'd like to know is : where in sofia source code, or anywhere else, may we write sip headers using variables we have set before ? </div><div>We saw some lines with something like "add_header_string" methods, we don't really know and where we can use it...</div>
<div><br></div><div>Just for resume what we'd like to do : with some variables named sip_h_Diversion, sip_h_Diversion-1, sip_h_Diversion-2, we want to write multiple SIP Diversion headers as below :</div><div>Diversion: [sip_h_Diversion VALUE]</div>
<div><div>Diversion: [sip_h_Diversion-1 VALUE]</div></div><div><div>Diversion: [sip_h_Diversion-2 VALUE]</div></div><div><br></div><div>Thanks for your help, and if you need further informations, feel free to ask me.</div>
<div><br></div><div><div><b><div><span style="font-weight:normal">Bien cordialement, </span></div><div><span style="font-weight:normal">Best Regards, </span></div><div><span style="font-weight:normal"><br></span></div></b><b>Kevin MATHY</b><div>
<b><br></b></div></div>
<br><br><div class="gmail_quote">2013/5/15 Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As Anthony asks, Does it change the current behavior, maybe we could use the array variables feature? <a href="https://wiki.freeswitch.org/wiki/Dialplan_ARRAYS" target="_blank">https://wiki.freeswitch.org/wiki/Dialplan_ARRAYS</a><br>
<div class="im HOEnZb"><br>
<br>
On May 15, 2013, at 1:45 AM, Kevin Mathy <<a href="mailto:k.mathy@hexanet.fr">k.mathy@hexanet.fr</a>> wrote:<br>
<br>
> Hi Brian,<br>
><br>
</div><div class="HOEnZb"><div class="h5">> Maybe I didn't understand what exactly is a JIRA, but I've already published a patch on <a href="http://jira.freeswitch.org/browse/FS-5411" target="_blank">http://jira.freeswitch.org/browse/FS-5411</a> adding the possibility to manage more than one Diversion header in FS.<br>
> So, I think the first thing to be done is to validate my patch, and then, try to find a solution for the problem due to this patch...<br>
><br>
> I'm sorry, but I don't use to publish patch, particularly for FS, and maybe I don't do it right. Of course I'm listening to any advice.<br>
><br>
> Thanks<br>
><br>
> Bien cordialement,<br>
> Best Regards,<br>
><br>
> Kevin MATHY<br>
<br>
</div></div></blockquote></div><br></div>
<br>
<img src="http://www.hexanet.fr/sites/files/hexanet/files/20130205_signature_hexanet.gif">