[Home]

Summary:ASTERISK-17104: [patch] Uri encoded Refer-To fails to match callid, attended transfer fails
Reporter:Niklas Larsson (pnlarsson)Labels:patch
Date Opened:2010-12-14 01:34:40.000-0600Date Closed:
Priority:MinorRegression?No
Status:Open/NewComponents:Channels/chan_sip/Transfers
Versions:Frequency of
Occurrence
Related
Issues:
is related toASTERISK-27045 Issue with Parsing Contact Header without Brackets and with additional HeaderParameters seperated with semicolon
Environment:Attachments:( 0) sip_refer.patch
Description:Asterisk and Dialogic SoftIP failed to do a attended transfer. The reason is that Dialogic is encoding the Replaces and when asterisk is decoding, the %20 (space) is remaining in front of the callid. And when we later on compare callid's - there is no match.

Simple patch is included, could probobly be done in a better way.


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

Sip packet from dialogic that fails:

<--- SIP read from 82.115.148.168:5060 --->
REFER sip:0703016666@81.93.151.197 SIP/2.0
Via: SIP/2.0/UDP 82.115.148.168:5060;rport;branch=z9hG4bK4194851264-6030284
Max-Forwards: 70
Allow: SUBSCRIBE,NOTIFY,REFER,INFO,INVITE,ACK,OPTIONS,CANCEL,BYE
Supported: replaces,TIMER
From: <sip:9559@82.115.148.168>;tag=Dialogic_4158022264-5178316
To: "0703016666" <sip:0703016666@81.93.151.197>;tag=as6bb8c847
Call-ID: 77901597513cec856a96dc8970003583@81.93.151.197
CSeq: 3 REFER
Contact: <sip:12345@82.115.148.168:5060>
Refer-To: <sip:0498253666@81.93.151.197:5060?Replaces=%20f8210fa8-5503cc-5%4082.115.148.168%3bfrom-tag%3dDialogic_4162916264-5702604%3bto-tag%3das760c9146>
Referred-By: sip:031995533@82.115.148.168:5060
Content-Length: 0

Comments: