<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1619" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=896085623-28042010>Thanks</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=896085623-28042010>help much apreciated</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><FONT
color=#000000></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><FONT
color=#000000>modparam("rr", "append_fromtag",
1)<BR>modparam("uac","restore_mode","auto") </FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff><FONT face=Arial><FONT size=2><FONT
color=#000000>xlog("$fu \n");<BR>uac_replace_from(</FONT><A
href="mailto:2101573704@10.10.1.100">2101573704@1<SPAN
class=896085623-28042010>0.10.1.100</A></SPAN></FONT></FONT><FONT face=Arial
color=#000000 size=2>);<BR></FONT><FONT face=Arial size=2> xlog("$fu
\n");</FONT></DIV></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=896085623-28042010><FONT face=Arial
color=#0000ff size=2>Output</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2>sip:02086847213@1<SPAN
class=896085623-28042010>0.10.1.50</SPAN><BR>sip:02086847213@<SPAN
class=896085623-28042010>10.10.1.50</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=896085623-28042010><FONT face=Arial color=#0000ff size=2>I cant
seem to get it to change the value. am i missing something</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff
size=2></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> users-bounces@lists.opensips.org
[mailto:users-bounces@lists.opensips.org] <B>On Behalf Of </B>Antonio Anderson
Souza<BR><B>Sent:</B> 29 April 2010 00:26<BR><B>To:</B> OpenSIPS users mailling
list<BR><B>Subject:</B> Re: [OpenSIPS-Users]
uac_replace_from<BR></FONT><BR></DIV>
<DIV></DIV>
<P>The best way is to use the uac module.</P>
<P>Calling the function uac_replace_from before the relay, follow a script
snippet bellow:</P>
<P>uac_replace_from("<A
href="mailto:sip%3A22222222@10.10.1.100">sip:22222222@10.10.1.100</A>")</P>
<P>Best regards,<BR></P>
<P>Antonio Anderson M. Souza<BR>Voice Technology<BR><A
href="http://www.antonioams.com">http://www.antonioams.com</A></P>
<P>
<BLOCKQUOTE type="cite">Em 28/04/2010 20:19, "dcomms" <<A
href="mailto:info@dcomms.net">info@dcomms.net</A>>escreveu:<BR><BR><BR>HI,<BR><BR><BR>Whats
the best way to do this? i have asterisk configured
with<BR>fromuser=2222222222<BR><BR> xlog("$fu \n") shows <A
href="mailto:sip%3A2222222222@10.10.1.100">sip:2222222222@10.10.1.100</A><BR><BR><BR>I
want to change to <A
href="mailto:sip%3A1111111111@10.10.1.100">sip:1111111111@10.10.1.100</A>
before relay<BR><BR>Even better can someone show me how to change $fu for any
ip address<BR>10.10.1.100<BR><BR>thanks<BR><FONT color=#888888><BR>--<BR>View
this message in context: <A
href="http://opensips-open-sip-server.1449251.n2.nabble.com/uac-replace-from-tp4977451p4977451.html"
target=_blank>http://opensips-open-sip-server.1449251.n2.nabble.com/uac-replace-from-tp4977451p4977451.html</A><BR>Sent
from the OpenSIPS - Users mailing list archive at
Nabble.com.<BR><BR>_______________________________________________<BR>Users
mailing list<BR><A
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</A><BR><A
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target=_blank>http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A><BR></FONT></BLOCKQUOTE>
<P></P></BODY></HTML>