Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated to GIT-18-20d9158

...

SIPRemoveHeader() allows you to remove headers which were previously added with SIPAddHeader(). If no parameter is supplied, all previously added headers will be removed. If a parameter is supplied, only the matching headers will be removed.For example you have added these

Code Block
titleExample: Add 2 headers

...

linenumberstrue


same => n,SIPAddHeader(P-Asserted-Identity: sip:[email protected])

...


same => n,SIPAddHeader(P-Preferred-Identity: sip:[email protected])

...



Code Block
titleExample: Remove all headers
linenumberstrue


same => n,SIPRemoveHeader()

...



Code Block
titleExample: Remove all P- headers
linenumberstrue


same => n,SIPRemoveHeader(P-)

...



Code Block
titleExample: Remove only the PAI header (note the : at the end)
linenumberstrue


same => n,SIPRemoveHeader(P-Asserted-Identity

...

:)

Always returns 0.

Syntax

No Format
SIPRemoveHeader([Header])

...

This documentation was imported from Asterisk Version GIT-18-20d9158