[OpenSIPS-Users] Detecting RPID

Brad Bendy brad.bendy at benganetworks.com
Wed Nov 25 15:20:14 CET 2009


I was trying with the $hdr, but was not using select, I see why yours
works.

Thanks for the help.

On Tue, 2009-11-24 at 19:12 -0500, Jeff Pyle wrote:

> 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" <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!
> > 
> > 
> > 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091125/8135c412/attachment-0001.htm 


More information about the Users mailing list