...
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 |
---|
title | Example: Add 2 headers |
---|
|
...
|
same => n,SIPAddHeader(P-Asserted-Identity: sip:[email protected]) |
...
same => n,SIPAddHeader(P-Preferred-Identity: sip:[email protected]) |
...
Code Block |
---|
title | Example: Remove all headers |
---|
linenumbers | true |
---|
|
same => n,SIPRemoveHeader() |
...
Code Block |
---|
title | Example: Remove all P- headers |
---|
linenumbers | true |
---|
|
same => n,SIPRemoveHeader(P-) |
...
Code Block |
---|
title | Example: Remove only the PAI header (note the : at the end) |
---|
linenumbers | true |
---|
|
same => n,SIPRemoveHeader(P-Asserted-Identity |
...
Always returns 0
.
No Format |
---|
SIPRemoveHeader([Header]) |
...
This documentation was imported from Asterisk Version GIT-18-20d9158