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
--
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de
--