<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
On 2/2/10 11:12 AM, alex pappas wrote:
<blockquote
 cite="mid:88b5e74c1002020212m1353e799t65406fb6fa7243c2@mail.gmail.com"
 type="cite">Hi,<br>
Concerning the append_rpid_hf() in the doc I see the following:<br>
  <br>
  <u>The function does nothing if no saved SIP URI exists. </u><br>
  <br>
Saved sip URI where ?<br>
  <br>
</blockquote>
the module uses a internal avp set when password is retrieved from
database if you set it via load_credentials. You can set the avp from
other sources, it has to be the same as rpid_avp:<br>
<br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/3.0.x/modules_k/auth.html#id2547004">http://kamailio.org/docs/modules/3.0.x/modules_k/auth.html#id2547004</a><br>
<br>
If you have the r-uri you can use append_hf() (textops module) directly.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
 cite="mid:88b5e74c1002020212m1353e799t65406fb6fa7243c2@mail.gmail.com"
 type="cite">Thanks<br>
Alex<br>
  <br>
  <br>
  <div class="gmail_quote">On Tue, Feb 2, 2010 at 12:04 PM, alex pappas
  <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:rebel.pappas@gmail.com">rebel.pappas@gmail.com</a>&gt;</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;">Dear
friends,<br>
    <br>
I'm trying&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_rpid_hf("sip",
"$ru;party=calling;id-type=subscriber;privacy=off;screen=no");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("alx ------- We have rU match&nbsp; --------");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<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>
    <br>
Thank you<br>
    <font color="#888888">Alex<br>
    <br>
    <br>
    </font></blockquote>
  </div>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a class="moz-txt-link-freetext" href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
eLearning class for Kamailio 3.0.0
Starting Feb 8, 2010
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
</body>
</html>