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]>/" 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