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:
exten => _X.,n,*SetCallerPres(prohib)* This worked for me in this particular scenario. Zeeshan A Zakaria On Tue, Jul 28, 2009 at 10:13 AM, Cyprus VoIP <[email protected]> wrote: > That's exactly what I ended up doing: > > SIPAddHeader(Remote-Party-ID: > <sip:${CALLERID(num)}...@....>\;privacy=full\;screen=yes) > > Note the \ before each ; It wouldn't put anything behind the ; without > them. > > Thanks. > > -------- Original Message -------- > Subject: Re: [asterisk-users] INVITE Privacy Information > From: Philipp Kempgen <[email protected]> > To: Asterisk Users Mailing List - Non-Commercial Discussion > <[email protected]> > Date: Tuesday, 28 July, 2009 14:10:55 > > > Cyprus VoIP schrieb: > >> I ran into this problem: When I change the CALLERID(num and name) to > >> anonymous, they are also changed in the RPID line and not only in the > From. > > > > OK. I'd try to set sendrpid=no in sip.conf and then add a > > Remote-Party-ID header in the dialplan. > > SIPAddHeader(Remote-Party-ID: <sip:....@...>;screen=yes;privacy=full); > > I have no idea if Asterisk will let you do that even if sendrpid > > is disabled. > > > >> -------- Original Message -------- > >> Subject: Re: [asterisk-users] INVITE Privacy Information > >> From: Philipp Kempgen <[email protected]> > >> To: Asterisk Users Mailing List - Non-Commercial Discussion > >> <[email protected]> > >> Date: Monday, 27 July, 2009 17:16:45 > >> > >>> Cyprus VoIP schrieb: > > > >>> These are the sip headers I need to add to the INVITE: > >>>> /P-Asserted-Identity: <sip:*[email protected]:5060> > >>> SIPAddHeader(P-Asserted-Identity: <sip:....@...>); // RFC 3325 > >>> > >>>> Remote-Party-ID: > >>>> <sip:*[email protected]:5060 > >;party=calling;screen=yes;privacy=full > >>> Enable > >>> sendrpid=yes ; If Remote-Party-ID should be sent > >>> in the [general] section in sip.conf. > >>> SetCallerPres(prohib_passed_screen); > > > >>>> And I need to change the "From" to > >>>> "/"Anonymous"<sip:[email protected]<sip%[email protected]>>/" > and to remove the "*67" > >>>> prefix from the "INVITE" and "To" lines. > >>> Set(CALLERID(num)=anonymous); // RFC 2543 > >>> Set(CALLERID(name)=Anonymous); > > > > > > Philipp Kempgen > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- Zeeshan A Zakaria
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
