[Home]

Summary:ASTERISK-07655: SIP_HEADER crashes asterisk
Reporter:hristo (hristo)Labels:
Date Opened:2006-09-01 10:02:18Date Closed:2006-09-01 12:07:58
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/Configuration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) bt.txt
Description:The following line will crash asterisk:
exten => 1234,1,NoOp(Header: ${SIP_HEADER(X-Test-Header)})

It doesn't really matter if the header itselt is present in the INVITE or not. The only thing that seems to avoid the crash is to explicitly state that this is the first header to match (even though there is only one occurance). The following seems to be ok:
exten => 1234,1,NoOp(Header: ${SIP_HEADER(X-Test-Header,1)})

****** ADDITIONAL INFORMATION ******

backtrace attached
Comments:By: Joshua C. Colp (jcolp) 2006-09-01 11:19:34

Fixed in trunk as of revision 41689, and previously reported as another bug.