[OpenSIPS-Users] Detecting RPID

Jeff Pyle jpyle at fidelityvoice.com
Wed Nov 25 01:12:27 CET 2009


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

- Jeff

On 11/24/09 6:37 PM, "Brad Bendy" <brad.bendy at benganetworks.com> 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:1234569999 at x.x.x.x
> 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!

More information about the Users mailing list