Very cool, keep up the good work!<br><br><div class="gmail_quote">On Fri, Aug 13, 2010 at 1:20 AM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Hello,<br>
<br>
I committed in master branch (to be 3.1.0) code that allows to set uri, username, domain and display name for To and From headers using assignments to their respective PVs in configuration file. For example:<br>
<br>
$fu = &quot;sip:anonymous@invalid&quot;;<br>
$fn = &#39;&quot;Jon Doe&quot;&#39;;<br>
$tU = &quot;+123455678&quot;;<br>
<br>
Assignment of each such attribute should be done only once, otherwise you get concatenated values since it uses the internal lump system. Therefore, doing an update is not visible immediately in config unless you do use msg_apply_changes().<br>

<br>
Also, use it carefully, in case you have sipv1 devices in your network then it can break dialog matching. Anyhow changing content of From and To headers was possible with remove_hf()/append_hf() or subst() functions, the new feature comes just to ease writing the config when one needs it.<br>

<br>
Cheers,<br>
Daniel<br>
<br>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div><br>