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:*[email protected] SIP/2.0 > From: "123456789"<sip:*[email protected]>;tag=333333333 > To: <sip:*[email protected]> > / > 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); > Privacy: id/ SIPAddHeader(Privacy: id); // RFC 3325, RFC 3323 > 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 -- 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 -- _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
