Asterisk cmd SIPGetHeader

SIPGetHeader()



SIPGetHeader is deprecated, use the * Asterisk func sip_header instead.

With this app, you can pick any header from an incoming invite and
stuff it into a channel variable. It is a generic way of supporting any header
a vendor or service provider may add that you want to use in your dial
plan.

See bug 2838 - introduced for/in Asterisk 1.1

Details


SIPgetheader() takes any sip header from the incoming INVITE and adds it to a variable. This can be done in the dial plan with any header.

SIPaddheader() adds a SIP header. 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 1.4: This appears to have been removed, use SIP_HEADER

Example

_X.,7,SIPGetHeader(Var_TO=To)

header To: will be stored in variable named Var_TO



See also





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

SIPGetHeader()



SIPGetHeader is deprecated, use the * Asterisk func sip_header instead.

With this app, you can pick any header from an incoming invite and
stuff it into a channel variable. It is a generic way of supporting any header
a vendor or service provider may add that you want to use in your dial
plan.

See bug 2838 - introduced for/in Asterisk 1.1

Details


SIPgetheader() takes any sip header from the incoming INVITE and adds it to a variable. This can be done in the dial plan with any header.

SIPaddheader() adds a SIP header. 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 1.4: This appears to have been removed, use SIP_HEADER

Example

_X.,7,SIPGetHeader(Var_TO=To)

header To: will be stored in variable named Var_TO



See also





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

Created by: JustRumours, Last modification: Sat 13 of Oct, 2007 (10:05 UTC) by davidjd
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+