Ding Peng ---------------------------------------------------------------------- Message: 1 Date: Mon, 21 Jan 2013 15:22:41 +0800 From: "Ding Peng" <roc.dingpeng at gmail.com> Subject: [asterisk-users] Does Asterisk support remove header from sip message? To: <asterisk-users at lists.digium.com> Message-ID: <000101cdf7a8$1c9e3870$55daa950$@gmail.com> 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 <sst at sil.at> Subject: Re: [asterisk-users] Does Asterisk support remove header from sip message? To: asterisk-users at lists.digium.com Message-ID: <50FCF097.7060107 at sil.at> 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> ------------------------------