<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi,<BR><BR>I'm using the append_rpid_hf() command 
to add the remote party id.<BR><BR>I've implemented it like this:<BR><BR><FONT 
face="Courier New">modparam("auth", "rpid_prefix", 
"&lt;sip:")<BR>modparam("auth", "rpid_suffix", 
"@xxx.xxx.xxx.xxx;user=phone&gt;;party=calling;id-type=subscriber;screen=yes;privacy=off")</FONT><BR><BR>[...]<BR><BR><FONT 
face="Courier New"># first the caller needs to be authenticated<BR>if 
(uri=~"^sip:[0-9]*@(xxx.xxx.xxx.xxx|(voip1\.)?test\.com)") 
{<BR>&nbsp;&nbsp;&nbsp; if (!(src_ip==xxx.xxx.xxx.xxx | method==ACK | 
method=="CANCEL" | method=="BYE")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if 
(!proxy_authorize("xxx.xxx.xxx.xxx", "subscriber")) {<BR>&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; proxy_challenge( 
"xxx.xxx.xxx.xxx","0");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; break;<BR>} else if (method=="INVITE" &amp; !check_from()) 
{<BR>&nbsp;&nbsp;&nbsp; log(1, "LOG: Spoofed from 
attempt\n");<BR>&nbsp;&nbsp;&nbsp; sl_send_reply("403", "Use From=id next 
time");<BR>&nbsp;&nbsp;&nbsp; 
break;<BR>};<BR>};<BR>};<BR><BR>append_rpid_hf();<BR></FONT><BR><BR>What I 
noticed is that sometimes ser sends it and sometimes not. I have a value 
in&nbsp;the rpid column of the user...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Has anyone of you an idea why that 
happens??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Sebastian</FONT></DIV></BODY></HTML>