[asterisk-bugs] [JIRA] (ASTERISK-24508) pjsip - REFER request from SNOM is rejected with "400 bad request" - DEBUG shows "Received a REFER without a parseable Refer-To"

herman joossen (JIRA) noreply at issues.asterisk.org
Fri Sep 8 08:09:08 CDT 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=238590#comment-238590 ] 

herman joossen commented on ASTERISK-24508:
-------------------------------------------

Hi,

When making an attended transfer from a SNOM 710 IPphone I have this issue now with Asterisk version 13.13.1.

See below for SIP REFER message and 400 reply from Asterisk:

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 at 10.134.63.4>;tag=o6z5dyqidr
t: "Vanbroekhoven Danny" <sip:42 at 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 at 10.134.63.25:5060;line=mandi9ey>;reg-id=1
r: sip:49 at 10.134.63.4?Replaces=9230ff8d-7789-4640-96b2-5ebe61c3f39d%3Bto-tag%3D6d256959-3898-411a-bf01-50eed31ed556%3Bfrom-tag%3Dxn7syxv2wq
Referred-By: sip:41 at 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 at 10.134.63.4>;tag=o6z5dyqidr
To: "Vanbroekhoven Danny" <sip:42 at 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




> pjsip - REFER request from SNOM is rejected with "400 bad request" - DEBUG shows "Received a REFER without a parseable Refer-To"
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-24508
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24508
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip, Resources/res_pjsip_refer
>    Affects Versions: 13.0.0
>         Environment: Asterisk 13.0.0 on CentOS 6.5 
> extension 601 - SNOM 710
> extension 602 - yealink T46
> extension 603 - Jitsi
>            Reporter: Beppo Mazzucato
>            Assignee: Joshua Colp
>      Target Release: 12.8.0, 13.1.0, 14.0.0
>
>         Attachments: ASTERISK-24498-13.diff, backtrace.txt, issue_24508_capture.pcap, issue_24508_full_log, issue_24508_full_log, log2.txt, log.txt, moduleshow_output.txt, refer-fix-uri.diff, snom.pcap
>
>
> *NOTE*:
> The original issue was ASTERISK-24498. In that issue, Asterisk crashed when attempting to convert a received RTCP packet into JSON format. That crash is being fixed under ASTERISK-24498.
> After fixing the crash, the attended transfer being initiated by the SNOM was rejected with a 400 bad request. That problem is being handled under this issue.
> h3. Original Problem Description
> Asterisk crash trying to perform an attended transfer 
> ext 602 call ext 601
> ext 601 put the call on hold
> ext 601 call extension 603
> when ext 603 answers asterisk crashes
> Unattended transfer works properly
> If the attended transfer is made by the yealink phone (in other words echanging the roles of ext 601 and ext 602 above) it works properly
> Same scenario doesn't crash with asterisk 11.13.1
> I'm attaching log and backtrace
> h3. New Problem (REFER failure)
> {quote}
> I'm attaching the pcap capture for your further investigation.
> I tested the patch ... it doesn't crash anymore but the transfer doesn't complete in fact asterisk reply with a "400 Bad Request" to the REFER message from the snom phone. I'm attaching the log showing this, please let me know if you need the pcap.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list