Daniel hi,<br><br>Now it works!<br>I'm adding in the rpid avp the value that the RFC it says $avp(s:rpid) = $fu; and then<br><br>append_rpid_hf("$fU", ";party=calling;id-type=subscriber;privacy=off;screen=no");<br>
<br>In this way I see the headers added correctly in sip message. Considering what you said about the from header make it anonymus that is right! Even in our network we have a switch which din't understand rpid and we change the from to anonymous. In Kamailio the $fu and $fU are writable. In this case how can I change that ?<br>
<br>Thank you<br><br>Alex<br><br><br><br><div class="gmail_quote">On Tue, Feb 2, 2010 at 11:07 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"><div class="im">
<br>
<br>
On 2/2/10 3:08 PM, alex pappas wrote:
</div><blockquote type="cite">Hi Daniel,<br>
<br><div class="im">
What i want to implement is when a call comes with an avp=1 then this
call should not present the calling number. From examples I saw it
looks like I need to add an extra header, with :<br>
append_rpid_hf("sip",
"$ru;party=calling;id-type=subscriber;privacy=off;screen=no");<br>
<br>
I don't understand for what stands the rpid even I'm reading about it:<br>
<br>
<u>The SIP Remote-Party-ID header identifies the calling party and
includes user, party, screen and privacy headers that specify how a
call is presented and screened. </u><br>
<br>
I mean what value I should add in subscriber table if the call is
coming from an IP address and from a particular number?<br>
<br>
I'm loading now the rpid:<br>
modparam("auth_db", "load_credentials", "rpid")<br>
but I don't understand how it works :-(<br>
</div></blockquote>
do you have something in the column 'rpid' of subscriber table for
caller record?<br>
<br>
However, with the example above of what you want to try, you add
request uri in the RPID, which is destination not caller (it is called
party not calling party).<br>
<br>
If you just need to take calling number and add it to RPID, try:<br>
<br>
append_hf("<$fu>;party=calling;id-type=subscriber;privacy=off;screen=no\r\n");<br>
<br>
You do not need values in subscriber table. Beware that RPID works only
with some gateways, if you need full privacy, is better to replace the
from URI with anonymous.<div class="im"><br>
<br>
Cheers,<br>
Daniel<br>
<pre cols="72">--
Daniel-Constantin Mierla
eLearning class for Kamailio 3.0.0
Starting Feb 8, 2010
* <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a>
</pre>
</div></div>
</blockquote></div><br>