Do you mean I can set the header first and use the same command to
reset the header afterward without adding 2 same header field?  Does
there is only one remote-pary-id header in the sip message finally in
the example below?
e.g.
exten => 1234,1,Set(SIP_HEADER(Remote-Party-ID)[EMAIL PROTECTED])
...do something...
exten => 1234,10,Set(SIP_HEADER(Remote-Party-ID)[EMAIL PROTECTED])

On 7/20/06, Russell Bryant <[EMAIL PROTECTED]> wrote:
On Wed, 2006-07-19 at 16:27 +0800, unplug wrote:
> I have a header field in the sip message: Remote-Party-ID:
> [EMAIL PROTECTED]
> I want to replace it to :Remote-Party-ID: [EMAIL PROTECTED]

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)[EMAIL PROTECTED])

--
Russell Bryant
Software Developer
Digium, Inc.

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to