[asterisk-users] header replacement
Russell Bryant
russell at digium.com
Wed Jul 19 09:06:59 MST 2006
On Wed, 2006-07-19 at 16:27 +0800, unplug wrote:
> I have a header field in the sip message: Remote-Party-ID:
> someone at somewhere.com.
> I want to replace it to :Remote-Party-ID: me at nowhere.com
In Asterisk 1.2 and the trunk, the SipAddHeader and SipGetHeader
applications are deprecated. There is a SIP_HEADER dialplan function,
instead. You can use it for exactly this purpose.
exten => 1234,1,Set(SIP_HEADER(Remote-Party-ID)=me at nowhere.com)
--
Russell Bryant
Software Developer
Digium, Inc.
More information about the asterisk-users
mailing list