B.117. SIPAddHeader()

Adds a SIP header to the SIP dialog.
SIPAddHeader(header: value)
Adds a SIP header as specified to SIP calls initiated using Dial(). Non-standard SIP headers should be preceded with an X- as in X-Asterisk-Accountcode:.
Should be used with caution as different SIP devices expect different headers and respond differently to them. May produce unexpected behavior.
Returns 0.
exten => 123,1,SIPAddHeader(X-Asterisk-Account: ${CDR(accountcode)})
exten => 123,n,Dial(SIP/123)

Note

Internal help for this application in Asterisk 1.4:
  -= Info about application 'SIPAddHeader' =- 

[Synopsis]
Add a SIP header to the outbound call

[Description]
  SIPAddHeader(Header: Content)
Adds a header to a SIP call placed with DIAL.
Remember to user the X-header if you are adding non-standard SIP
headers, like "X-Asterisk-Accountcode:". Use this with care.
Adding the wrong headers may jeopardize the SIP dialog.
Always returns 0
diff output to internal help in Asterisk 1.2:
- none -