<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
On 5/27/10 9:56 PM, dotnetdub wrote:
<blockquote
 cite="mid:AANLkTinytJbg1KQOusBxtz8FMfNIb0yjVBSFB7NsqgJp@mail.gmail.com"
 type="cite">Hi All,
  <div><br>
  </div>
  <div>Kamailio 3</div>
  <div><br>
  </div>
  <div>I currently store a default RPID in our database. We allow some
asterisk customers to send us the RPID.</div>
  <div><br>
  </div>
  <div>I want to store the RPID sent by the customer on the radius
record.</div>
  <div><br>
  </div>
  <div>We test:</div>
  <div><br>
  </div>
  <div>
  <div>&nbsp;&nbsp;if!(is_present_hf("Remote-Party-ID")) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#RPID Not Set by Asterisk - Will set now from DB</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;append_rpid_hf();</div>
  <div>}</div>
  <div><br>
  </div>
  <div>Do I use textops to get the RPID that the Asterisk sends and
then overwrite what we read from the database?</div>
  </div>
</blockquote>
<br>
yes, to delete the received RPID use remove_hf("Remote-Party-ID") from
textops.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
 cite="mid:AANLkTinytJbg1KQOusBxtz8FMfNIb0yjVBSFB7NsqgJp@mail.gmail.com"
 type="cite">
  <div>
  <div><br>
  </div>
  <div>$avp(s:rpid) = ?</div>
  <div><br>
  </div>
  <div>Not really sure how to extract the RPID from the SIP message
sent from the asterisk.</div>
  <div><br>
  </div>
  <div>TIA.</div>
  <div>Stephen.</div>
  <div><br>
  </div>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
<a class="moz-txt-link-freetext" href="http://www.asipto.com/index.php/kamailio-advanced-training/">http://www.asipto.com/index.php/kamailio-advanced-training/</a>
</pre>
</body>
</html>