login | register
Fri 09 of Jan, 2009 [00:26 UTC]

voip-info.org

History

Asterisk cmd SipAddHeader

Created by: muppetmaster,Last modification on Fri 01 of Aug, 2008 [17:46 UTC] by JustRumours
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.

With this app, you may add any header to an outgoing call with the Dial() app. It is a generic way of adding custom SIP Headers in your dialplan.

Details

SIPaddheader() adds a SIP header to the first INVITE message in that channel. Of course, you need to know what you do with this function. You can add any header of your own, that you need to communicate with another node. One thing you could do in an Asterisk network is add the account code to the INVITE... You can not replace SIP headers with this function, only add new ones. Remember: If you add non-standard headers, prefix them with "X-", like in e-mail.



Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


Comments