Hi, Stefan, Thanks for your reply. " SipRemoveHeader " is a good application to remove the header added by "SipAddHeader" application. If the header is included in the receiving message by Asterisk(not added by "SipAddHeader"), can it be removed? >From my testing it doesn't work.
Ding Peng ---------------------------------------------------------------------- Message: 1 Date: Mon, 21 Jan 2013 15:22:41 +0800 From: "Ding Peng" <[email protected]> Subject: [asterisk-users] Does Asterisk support remove header from sip message? To: <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="us-ascii" Hi, all, I need remove some header from sip message, such as removing the privacy:id from receiving INVITE and sending out? Is there any method to do that? Thanks in advance. Ding Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130121/80631 031/attachment-0001.htm> ------------------------------ Message: 2 Date: Mon, 21 Jan 2013 08:39:03 +0100 From: Stefan Schmidt <[email protected]> Subject: Re: [asterisk-users] Does Asterisk support remove header from sip message? To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Am 21.01.13 08:22, schrieb Ding Peng: > > Hi, all, > > I need remove some header from sip message, such as removing the > privacy:id from receiving INVITE and sending out? > > Is there any method to do that? > > Thanks in advance. > > Ding Peng > > Hello, "core show application SipRemoveHeader" should do what you want. But removing Sip headers which are set from the stack itself not by yourself could lead to a really mess. Maybe you should try to find another way to solve this, like setting the CALLERID(num-pres)=allowed, this should also remove the privacy:id header flag. best regards stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130121/26587 d30/attachment-0001.htm> ------------------------------ -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
