[Home]

Summary:ASTERISK-27263: Attended transfer by SNOM not working : REFER rejected by Asterisk
Reporter:herman joossen (woodpecker505)Labels:
Date Opened:2017-09-08 08:40:19Date Closed:2017-09-11 05:50:00
Priority:MinorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip_refer
Versions:13.13.1 Frequency of
Occurrence
Related
Issues:
duplicatesASTERISK-26655 [patch]pjsip: Transfers Broken with Compact Headers Enabled
is related toASTERISK-24508 pjsip - REFER request from SNOM is rejected with "400 bad request" - DEBUG shows "Received a REFER without a parseable Refer-To"
Environment:Freepbx 13Attachments:
Description:Hi,
When making an attended transfer from a SNOM 710 IPphone I have the same issue as was reported earlier (ASTERISK-24508) - this is with Asterisk version 13.13.1.

See below for SIP REFER message and 400 reply from Asterisk:
{noformat}
pbx*CLI> pjsip set logger on
PJSIP Logging enabled
pbx*CLI>
<--- Received SIP request (589 bytes) from UDP:10.134.63.25:5060 --->
REFER sip:10.134.63.4:5060 SIP/2.0
v: SIP/2.0/UDP 10.134.63.25:5060;branch=z9hG4bK-icqox8uxx0j3;rport
f: <sip:41@10.134.63.4>;tag=o6z5dyqidr
t: "Vanbroekhoven Danny" <sip:42@10.134.63.4;user=phone>;tag=4bcca52e-6253-4996-b250-90c6619e4c73
i: 313530343837353337363537313335-aayjxqpexeo8
CSeq: 4 REFER
Max-Forwards: 5
User-Agent: snom710/8.7.5.35
m: <sip:41@10.134.63.25:5060;line=mandi9ey>;reg-id=1
r: sip:49@10.134.63.4?Replaces=9230ff8d-7789-4640-96b2-5ebe61c3f39d%3Bto-tag%3D6d256959-3898-411a-bf01-50eed31ed556%3Bfrom-tag%3Dxn7syxv2wq
Referred-By: sip:41@10.134.63.4
l: 0
<--- Transmitting SIP response (391 bytes) to UDP:10.134.63.25:5060 --->
SIP/2.0 400 Bad Request
Via: SIP/2.0/UDP 10.134.63.25:5060;rport=5060;received=10.134.63.25;branch=z9hG4bK-icqox8uxx0j3
Call-ID: 313530343837353337363537313335-aayjxqpexeo8
From: <sip:41@10.134.63.4>;tag=o6z5dyqidr
To: "Vanbroekhoven Danny" <sip:42@10.134.63.4;user=phone>;tag=4bcca52e-6253-4996-b250-90c6619e4c73
CSeq: 4 REFER
Server: FPBX-13.0.192.16(13.13.1)
Content-Length: 0
{noformat}
Comments:By: Asterisk Team (asteriskteam) 2017-09-08 08:40:19.899-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: herman joossen (woodpecker505) 2017-09-10 05:05:47.676-0500

Apparently the issue is only appearing when using "SNOM compact SIP headers". If this is not set, then REFER is ok - see below. Reason for using SIP compact headers is to avoid issues with VPN connections that limit to 1500 bytes message length.

This issue did not appear when using SIP_Chan instead of PJSIP : regular or compact headers did not matter (and also don't seem to matter for PJSIP in other SIP messages - except for REFER)

<--- Received SIP request (651 bytes) from UDP:10.134.63.25:5060 --->
REFER sip:asterisk@10.134.63.4:5060 SIP/2.0
Via: SIP/2.0/UDP 10.134.63.25:5060;branch=z9hG4bK-005o6ptej461;rport
From: <sip:41@10.134.63.25;line=mandi9ey>;tag=uah16tkmst
To: "Vanbroekhoven Danny" <sip:42@10.134.63.4>;tag=bf1df546-a36f-4015-b3be-3890b0c8da2b
Call-ID: 40312cfe-844d-4686-ab80-19ff86e3e3af
CSeq: 2 REFER
Max-Forwards: 5
User-Agent: snom710/8.7.5.35
Contact: <sip:41@10.134.63.25:5060;line=mandi9ey>;reg-id=1
Refer-To: sip:40@10.134.63.4;user=phone?Replaces=313530353033363733313231383531-rxgu8ilp2mns%3Bto-tag%3Df49e4c9b-ab18-4c58-b34d-d2113d0dfb5f%3Bfrom-tag%3D3nxqoo05me
Referred-By: sip:41@10.134.63.4
Content-Length: 0


<--- Transmitting SIP response (600 bytes) to UDP:10.134.63.25:5060 --->
SIP/2.0 202 Accepted
Via: SIP/2.0/UDP 10.134.63.25:5060;rport=5060;received=10.134.63.25;branch=z9hG4bK-005o6ptej461
Call-ID: 40312cfe-844d-4686-ab80-19ff86e3e3af
From: <sip:41@10.134.63.25;line=mandi9ey>;tag=uah16tkmst
To: "Vanbroekhoven Danny" <sip:42@10.134.63.4>;tag=bf1df546-a36f-4015-b3be-3890b0c8da2b
CSeq: 2 REFER
Expires: 600
Contact: <sip:asterisk@10.134.63.4:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Server: FPBX-13.0.192.16(13.13.1)
Content-Length:  0