It depends what the carrier is looking for in the SIP header, so some interop between you and your carrier is necessary in this regard. Last year for a customer I had to setup *67 to hide caller id, and the carrier asked me to use "Remote-Party-ID" or "P-Asserted-Identity" in the SIP header. I did so, but it didn't work. I went through the RFCs to understand how the privacy settings work, struggled with inserting additional SIP headers, but all in vain. The carrier was not able to help. I ended up removing all the SIPAddHeader information and did the following to hide the caller id:<br>
<br>exten => _X.,n,<b style="color: rgb(255, 0, 0);">SetCallerPres(prohib)</b><br><br>This worked for me in this particular scenario.<br><br>Zeeshan A Zakaria<br><br><div class="gmail_quote">On Tue, Jul 28, 2009 at 10:13 AM, Cyprus VoIP <span dir="ltr"><<a href="mailto:voipcy@gmail.com">voipcy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">That's exactly what I ended up doing:<br>
<br>
SIPAddHeader(Remote-Party-ID:<br>
<sip:${CALLERID(num)}@....>\;privacy=full\;screen=yes)<br>
<br>
Note the \ before each ; It wouldn't put anything behind the ; without them.<br>
<br>
Thanks.<br>
<div class="im"><br>
-------- Original Message --------<br>
Subject: Re: [asterisk-users] INVITE Privacy Information<br>
From: Philipp Kempgen <<a href="mailto:philipp.kempgen@amooma.de">philipp.kempgen@amooma.de</a>><br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
<<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>
</div><div><div></div><div class="h5">Date: Tuesday, 28 July, 2009 14:10:55<br>
<br>
> Cyprus VoIP schrieb:<br>
>> I ran into this problem: When I change the CALLERID(num and name) to<br>
>> anonymous, they are also changed in the RPID line and not only in the From.<br>
><br>
> OK. I'd try to set sendrpid=no in sip.conf and then add a<br>
> Remote-Party-ID header in the dialplan.<br>
> SIPAddHeader(Remote-Party-ID: <sip:...@...>;screen=yes;privacy=full);<br>
> I have no idea if Asterisk will let you do that even if sendrpid<br>
> is disabled.<br>
><br>
>> -------- Original Message --------<br>
>> Subject: Re: [asterisk-users] INVITE Privacy Information<br>
>> From: Philipp Kempgen <<a href="mailto:philipp.kempgen@amooma.de">philipp.kempgen@amooma.de</a>><br>
>> To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
>> <<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>
>> Date: Monday, 27 July, 2009 17:16:45<br>
>><br>
>>> Cyprus VoIP schrieb:<br>
><br>
>>> These are the sip headers I need to add to the INVITE:<br>
>>>> /P-Asserted-Identity: <sip:*123456789*@<a href="http://192.168.1.100:5060" target="_blank">192.168.1.100:5060</a>><br>
>>> SIPAddHeader(P-Asserted-Identity: <sip:...@...>); // RFC 3325<br>
>>><br>
>>>> Remote-Party-ID:<br>
>>>> <sip:*123456789*@<a href="http://192.168.1.100:5060" target="_blank">192.168.1.100:5060</a>>;party=calling;screen=yes;privacy=full<br>
>>> Enable<br>
>>> sendrpid=yes ; If Remote-Party-ID should be sent<br>
>>> in the [general] section in sip.conf.<br>
>>> SetCallerPres(prohib_passed_screen);<br>
><br>
>>>> And I need to change the "From" to<br>
>>>> "/"Anonymous"<<a href="mailto:sip%3AAnonymous@192.168.1.100">sip:Anonymous@192.168.1.100</a>>/" and to remove the "*67"<br>
>>>> prefix from the "INVITE" and "To" lines.<br>
>>> Set(CALLERID(num)=anonymous); // RFC 2543<br>
>>> Set(CALLERID(name)=Anonymous);<br>
><br>
><br>
> Philipp Kempgen<br>
<br>
</div></div><div><div></div><div class="h5">_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zeeshan A Zakaria<br>