Hi Daniel,<br><br>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><br>Thank you<br>Alex<br><br><br><br><div class="gmail_quote">On Tue, Feb 2, 2010 at 2:28 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">
Hello,<div class="im"><br>
<br>
On 2/2/10 1:18 PM, alex pappas wrote:
<blockquote type="cite">Hi Daniel,<br>
<br>
I'm capturing with tcpdump the packets when they live the server and I
don't see the extra header added.<br>
<br>
</blockquote>
<br></div>
are you having the rpid value in subscriber table? Is it loaded via
load_credentials of auth_db or do you set the right avp in script?<br>
<br>
Have you tried append_hf()? Seems you want to add r-uri to rpid, which
is easier via append_hf() then.<br>
<br>
Cheers,<br><font color="#888888">
Daniel</font><div><div></div><div class="h5"><br>
<br>
<blockquote type="cite">Cheers<br>
Alex<br>
<br>
<br>
<br>
<div class="gmail_quote">On Tue, Feb 2, 2010 at 12:24 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">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;">Hi
Alex,
<div>
<div><br>
<br>
On 2/2/10 11:04 AM, alex pappas wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear friends,<br>
<br>
I'm trying to give to a user the option to have privacy in a call. I'm
trying to do that by adding an extra header with:<br>
append_rpid_hf("sip",
";party=calling;id-type=subscriber;privacy=off;screen=no");<br>
<br>
I'm using this header in the begining of the kamailio.cfg<br>
<br>
if(($rU=="99999") || ($rU=="77777"))<br>
{<br>
append_rpid_hf("sip",
"$ru;party=calling;id-type=subscriber;privacy=off;screen=no");<br>
xlog("alx ------- We have rU match --------");<br>
}<br>
<br>
When I see the sip messages I don't see this extra header added into it.<br>
<br>
Does anyone had experience in this ?<br>
</blockquote>
</div>
</div>
the header is visible when the message is forwarded. To see it
immediately, but only in 3.0.0, you can use msg_apply_changes().<br>
<br>
Cheers,<br>
<font color="#888888">Daniel</font>
<div>
<div><br>
<br>
-- <br>
Daniel-Constantin Mierla<br>
eLearning class for Kamailio 3.0.0<br>
Starting Feb 8, 2010<br>
* <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
<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></div>
</blockquote></div><br>