<div dir="ltr"><div>Thank you Daniel<br><br></div>It looks to be the result I was after.  Thank you again <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 14, 2014 at 11:25 AM, Daniel Tryba <span dir="ltr"><<a href="mailto:daniel@pocos.nl" target="_blank">daniel@pocos.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Monday 14 April 2014 16:02:10 Joel E White wrote:<br>
> Thank you Daniel<br>
><br>
> I will try this tonight.<br>
><br>
<br>
</div>BTW I just thought about the fact that is the username is empty in the from<br>
this doesn't work (there is no @ in those URI). I have 2 cases:<br>
<br>
$avp(from)=$fu;<br>
if($fU==$null)<br>
{<br>
        avp_subst("$avp(from)", "/sip:/sip:$avp(src_callerid)@/");<br>
}<br>
else<br>
{<br>
        avp_subst("$avp(from)", "/sip:.*@/sip:$avp(src_callerid)@/");<br>
}<br>
<br>
uac_replace_from(...<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
<br>
POCOS B.V. - Croy 9c - 5653 LC Eindhoven<br>
Telefoon: 040 293 8661 - Fax: 040 293 8658<br>
<a href="http://www.pocos.nl/" target="_blank">http://www.pocos.nl/</a>   - <a href="http://www.sipo.nl/" target="_blank">http://www.sipo.nl/</a><br>
K.v.K. Eindhoven 17097024<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>