Brad,
I use:
$var(rpidpriv) = $(hdr(Remote-Party-ID){s.select,1,>}{param.value,privacy});
if ($var(rpidpriv) == "full" || $var(rpidpriv) == "uri") {
setflag(10); # Privacy flag
}
Later in my script can check flag 10, and if it's set, I know it¹s a private
call.
- Jeff
On 11/24/09 6:37 PM, "Brad Bendy" <[email protected]> wrote:
> Hi list,
>
> Im trying to find the best way to detect RPID and then check to see if privacy
> has been set. Ive checked the $re headers and they return:
> sip:[email protected]
>
> Their is a function is_privacy() but your suppose to pass a privacy type to
> it, from what I can tell their is no way to check if privacy=full is in the
> RPID - that's basically what im trying to do.
>
> Any ideal how to get the RPID header and then look at it, am I missing
> something real obvious?
>
> Thanks!
>
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users