Asterisk Project : Application_SIPRemoveHeader

Asterisk Project : Application_SIPRemoveHeader This page last changed on Mar 30, 2011 by wikibot. # SIPRemoveHeader() ### Synopsis Remove SIP headers previously added with SIPAddHeader ### Description 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 2 headers: SIPAddHeader(P-Asserted-Identity: sip:foo@bar); SIPAddHeader(P-Preferred-Identity: sip:bar@foo); // remove all headers SIPRemoveHeader(); // remove all P- headers SIPRemoveHeader(P-); // remove only the PAI header (note the : at the end) SIPRemoveHeader(P-Asserted-Identity; Always returns `0`. ### Syntax
    SIPRemoveHeader([Header])
##### Arguments `Header` ### See Also ### Import Version This documentation was imported from Asterisk version SVN-branch-1.8-r311874.

Document generated by Confluence on Oct 04, 2011 12:42