[asterisk-users] INVITE Privacy Information

Cyprus VoIP voipcy at gmail.com
Tue Jul 28 04:14:36 CDT 2009


Thank you Philipp for your help.

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.

This is the script:
exten => _*67.,1,SIPAddHeader(Privacy: id);
exten => _*67.,2,Set(CALLERPRES()=prohib_passed_screen);
exten => _*67.,3,SIPAddHeader(P-Asserted-Identity: 
<sip:${CALLERID(num)}@10.10.10.20:5060>);
exten => _*67.,4,Set(CALLERID(num)=anonymous)
exten => _*67.,5,Set(CALLERID(name)=Anonymous);
exten => _*67.,6,Dial(SIP/${EXTEN:3}@10.10.10.10)

... and this is the result:
INVITE sip:0011223344 at 10.10.10.10 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.20:5060;branch=z9hG4bK3031c135
Max-Forwards: 70
From: "Anonymous" <sip:anonymous at 10.10.10.20>;tag=as6d95f136
To: <sip:0011223344 at 10.10.10.10>
Contact: <sip:anonymous at 10.10.10.20>
Call-ID: 1732ae8f6581677c4a0d46360b102642 at 10.10.10.20
CSeq: 102 INVITE
User-Agent: Asterisk-PBX
Remote-Party-ID: "Anonymous" 
<sip:anonymous at 10.10.10.20>;privacy=full;screen=yes
Date: Tue, 28 Jul 2009 09:00:20 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces, timer
P-Asserted-Identity: <sip:123456789 at 10.10.10.20:5060>
Privacy: id


-------- Original Message  --------
Subject: Re: [asterisk-users] INVITE Privacy Information
From: Philipp Kempgen <philipp.kempgen at amooma.de>
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users at lists.digium.com>
Date: Monday, 27 July, 2009 17:16:45

> Cyprus VoIP schrieb:
>> I would like to use Asterisk to add/modify SIP headers in the INVITE 
>> message, to include Privacy information, if the INVITE includes a *67 
>> prefix (or another predefined prefix).
>>
>> That's an example of the INVITE I get:
>> /INVITE sip:*6700112233445 at 192.168.1.100 SIP/2.0
>> From: "123456789"<sip:*123456789*@192.168.1.100>;tag=333333333
>> To: <sip:*6700112233445 at 192.168.1.100>
>> /
>> These are the sip headers I need to add to the INVITE:
>> /P-Asserted-Identity: <sip:*123456789*@192.168.1.100:5060>
> 
> SIPAddHeader(P-Asserted-Identity: <sip:... at ...>);  // RFC 3325
> 
>> Remote-Party-ID: 
>> <sip:*123456789*@192.168.1.100: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);
> 
>> Privacy: id/
> 
> SIPAddHeader(Privacy: id);  // RFC 3325, RFC 3323
> 
>> And I need to change the "From" to 
>> "/"Anonymous"<sip:Anonymous at 192.168.1.100>/" and to remove the "*67" 
>> prefix from the "INVITE" and "To" lines.
> 
> Set(CALLERID(num)=anonymous);  // RFC 2543
> Set(CALLERID(name)=Anonymous);
> 
> 
>     Philipp Kempgen



More information about the asterisk-users mailing list