[Spce-user] Anonymous calls
Andreas Granig
agranig at sipwise.com
Tue May 8 06:08:26 EDT 2012
Hi Sylvester,
On 05/08/2012 11:14 AM, Sylvester Nielsen wrote:
> Our carriers send a p-asserted identity header which contains the number
> and a privacy header like this:
>
> Privacy: user;id;critical
The SPCE only understands a header "Privacy: id", so you'd need to do
some extra matching to catch "user;id;critical". To do so, copy
/etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.tt2 to
/etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.customtt.tt2 and
modify the customtt file accordingly.
Search for the line:
is_present_hf("Privacy") && $hdr(Privacy) == "id"
and change it to something like this:
is_present_hf("Privacy") && $hdr(Privacy) =~ "(^|;)id(;|$)"
Not sure if the proxy recognizes this regex, so you might need to
experiment a bit with it, or just set it to
is_present_hf("Privacy") && $hdr(Privacy) == "user;id;critical"
if you're 100% certain that it will always look like this (which I
wouldn't).
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20120508/257eabc1/attachment-0001.asc>
More information about the Spce-user
mailing list