[Home]

Summary:ASTERISK-24433: Diversion header is only partially parsed into REDIRECTING structure
Reporter:Michaƫl Arnauts (michaelarnauts)Labels:chan-sip-message-parsing
Date Opened:2014-10-17 09:02:00Date Closed:
Priority:MinorRegression?
Status:Open/NewComponents:Channels/chan_sip/General
Versions:11.14.0 13.18.4 Frequency of
Occurrence
Constant
Related
Issues:
is related toASTERISK-27045 Issue with Parsing Contact Header without Brackets and with additional HeaderParameters seperated with semicolon
Environment:Ubuntu 12.04 LTSAttachments:
Description:The Diversion header is not fully parsed into the REDIRECTING function.

Therefore, the example documented at https://wiki.asterisk.org/wiki/display/AST/Manipulating+Party+ID+Information#ManipulatingPartyIDInformation-Simpleredirection to make a transfer doesn't work.

I'm sending the following Diversion-header:

<sip:27912345@88.99.00.11>\;reason=unconditional\;counter=1\;privacy=off

However, the REDIRECTING(count) returns nothing. This should return 1. My current workaround is to parse the SIP_HEADER(Diversion) to extract the value of the counter and use that.

I also have to write the Diversion-header myself, since the code in chan_sip only writes out the number and the reason, not the counter.
Comments: