<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
I was trying with the $hdr, but was not using select, I see why yours works.<BR>
<BR>
Thanks for the help.<BR>
<BR>
On Tue, 2009-11-24 at 19:12 -0500, Jeff Pyle wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Brad,</FONT>

<FONT COLOR="#000000">I use:</FONT>

<FONT COLOR="#000000">$var(rpidpriv) = $(hdr(Remote-Party-ID){s.select,1,&gt;}{param.value,privacy});</FONT>
<FONT COLOR="#000000">if ($var(rpidpriv) == &quot;full&quot; || $var(rpidpriv) == &quot;uri&quot;) {</FONT>
<FONT COLOR="#000000">        setflag(10);    # Privacy flag</FONT>
<FONT COLOR="#000000">}</FONT>

<FONT COLOR="#000000">Later in my script can check flag 10, and if it's set, I know it&#185;s a private</FONT>
<FONT COLOR="#000000">call.</FONT>



<FONT COLOR="#000000">- Jeff</FONT>


<FONT COLOR="#000000">On 11/24/09 6:37 PM, &quot;Brad Bendy&quot; &lt;<A HREF="mailto:brad.bendy@benganetworks.com">brad.bendy@benganetworks.com</A>&gt; wrote:</FONT>

<FONT COLOR="#000000">&gt; Hi list,</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Im trying to find the best way to detect RPID and then check to see if privacy</FONT>
<FONT COLOR="#000000">&gt; has been set. Ive checked the $re headers and they return:</FONT>
<FONT COLOR="#000000">&gt; <A HREF="sip:1234569999@x.x.x.x">sip:1234569999@x.x.x.x</A></FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Their is a function is_privacy() but your suppose to pass a privacy type to</FONT>
<FONT COLOR="#000000">&gt; it, from what I can tell their is no way to check if privacy=full is in the</FONT>
<FONT COLOR="#000000">&gt; RPID - that's basically what im trying to do.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Any ideal how to get the RPID header and then look at it, am I missing</FONT>
<FONT COLOR="#000000">&gt; something real obvious?</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Thanks!</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; </FONT>


<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:Users@lists.opensips.org">Users@lists.opensips.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A></FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>