[asterisk-users] SIP_HEADER() read-only

Joshua Colp jcolp at digium.com
Thu Aug 3 05:18:00 MST 2006


----- Original Message -----
From: Douglas Garstang
[mailto:dgarstang at oneeighty.com]
To: devel at regnard.org, Asterisk Users
Mailing List - Non-Commercial Discussion
[mailto:asterisk-users at lists.digium.com]
Sent: Thu, 03 Aug 2006 12:50:54
-0300
Subject: RE: [asterisk-users] SIP_HEADER() read-only


> Oh... That's real nice. I was considering using SIP instead of IAX to trunk
> calls between Asterisk boxes as IAX has some severe limitations in regards
> to passing variables. A few people said 'use SIP!' because you can set the
> SIP headers. Looks like that isn't an option!
> 

You can use the SIPAddHeader application:

  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

Joshua Colp
Digium



More information about the asterisk-users mailing list