Hi All,
Can anybody give me some pointers on getting Privacy headers included in outgoing SIP Trunk calls?
I am using SNOM phones, and when I withold CLI they send the CLI as anonymous, and then set the Privacy headers.
However Asterisk/Thirdlane is then re-inserting the extension number and not passing on the Privacy headers to the outbound SIP trunk.
I can see posts about adding stuff like
SIPAddHeader(P-Preferred-Identity: )
I am relatively new to Asterisk, so where should this be done?
Thanks for the quick
Thanks for the quick response.
>It all depends on your provider and what they will accept.
>what type of connection: analog, pri/ti, SIP, IAX2
SIP
>who is your provider?
Me :-)
I have asterisk connected to a CIsco CUBE, and then on to AN Other Carrier, so in the first instance I have a SIP trunk to a Cisco 2851 that I control.
This then has a SIP trunk to AN Other Carrier.
>do they trust remote-part-ID?
Yes, they state they are compliant with rfc3233
>does your snom phones use remote party id to mark it private?
Yes, I have the following in the call from the phone
From: "Anonymous" ;tag=k3aha3drp4
Privacy: id
P-Preferred-Identity: "1760"
P-Key-Flags: keys="3"
>Do you just want a *67 option to mark private?
That would be nice as well
thanks
Almost working now
The *67 was a clue :-)
I added
exten => _*67XXXXXXXXXXX,1,SetCallerPres(prohib_not_screened)
exten => _*67XXXXXXXXXXX,2,Goto(dialout-context,${EXTEN:3},1)
and could get it to work for when I dial *67
Still not working when the phone sets the parameters directly.
in sip.conf under [general]
in sip.conf under [general] add
sendrpid=yes
trustrpid=yes
you could make your pattern
_*67. if you wanted to make it easier. I made a feature code that looks like this..
script is
[macro-bgnv-callidblock]
exten => s,1,SetCallerPres(prohib_passed_screen)
exten => s,n,Goto(from-inside-redir${TL_DASH}${tenant},${MACRO_EXTEN:${ARG1}},1)
and then assigned it to a feature code pattern _*67.
It all depends on your provider and what they will accept.
what type of connection: analog, pri/ti, SIP, IAX2
who is your provider?
do they trust remote-part-ID?
does your snom phones use remote party id to mark it private?
Do you just want a *67 option to mark private?