[asterisk-bugs] [Asterisk 0012667]: Unable to overwrite SIP Header using SipAddHeader()

noreply at bugs.digium.com noreply at bugs.digium.com
Fri May 16 10:17:28 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12667 
====================================================================== 
Reported By:                dimitripietro
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12667
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-16-2008 08:44 CDT
Last Modified:              05-16-2008 10:17 CDT
====================================================================== 
Summary:                    Unable to overwrite SIP Header using SipAddHeader()
Description: 
I'm using the alert-info sip header to use distictive ringtone on Polycom
phone. Basically, the polycom need to see a specific value in the
alert-info field.

In Asterisk 1.2, I was using : Set(_ALERT_INFO=info=Custom 1) to set the
ringtone and to overwrite it later, it was using the same thing with
another value : Set(_ALERT_INFO=info=Custom 2)

In Asterisk 1.4, now I'm using : Sipaddheader(Alert-Info:Custom 1) but if
I try to overwrite it later with Sipaddheader(Alert-Info:Custom 2) it won't
work, it add a second header instead.

The polycom will now use the latest SIP Alert-Info header instead of the
newest.
====================================================================== 

---------------------------------------------------------------------- 
 blitzrage - 05-16-08 10:17  
---------------------------------------------------------------------- 
How hard would it be to add an 'r' option for 'replace'?

I know this is a feature request, so feel free to ignore my idea :) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-16-08 10:17  blitzrage      Note Added: 0086945                          
======================================================================




More information about the asterisk-bugs mailing list