Re: [asterisk-users] header replacement

2006-07-19 Thread Russell Bryant
On Thu, 2006-07-20 at 09:18 +0800, unplug wrote: > 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 =>

Re: [asterisk-users] header replacement

2006-07-19 Thread unplug
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]) ..

Re: [asterisk-users] header replacement

2006-07-19 Thread Russell Bryant
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

[asterisk-users] header replacement

2006-07-19 Thread unplug
Hi, I know there are commands called sipaddheader and sipgetheader but I can't find any method to replace/remove header. Does anyone know how to replace/remove a header in the sip message? Say, I have a header field in the sip message: Remote-Party-ID: [EMAIL PROTECTED] I want to replace it to :

[asterisk-users] header replacement

2006-07-19 Thread unplug
Hi, I know there are commands called sipaddheader and sipgetheader but I can't find any method to replace/remove header. Does anyone know how to replace/remove a header in the sip message? Say, I have a header field in the sip message: Remote-Party-ID: [EMAIL PROTECTED] I want to replace it to :