[asterisk-bugs] [JIRA] (ASTERISK-28053) Wrong or missing Q.850 reason in CANCEL

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Mon Sep 17 07:47:54 CDT 2018


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

Richard Mudgett edited comment on ASTERISK-28053 at 9/17/18 7:46 AM:
---------------------------------------------------------------------

Hi Joshua; I've summed up all the relevant information  in the ticket description, but I understand your needs for reliable informations.

So I've done the test again and I'm attaching the relevant log.

In this attempt, the caller is the number 03421950085 (proxed by a kamilio box at IP 212.183.160.238) and the callee is 03631979004 (IP 83.137.237.140). In the line 968 of the log the kamailio send a CANCEL request:
{noformat}
CANCEL sip:03631979004 at 212.183.160.238;user=phone SIP/2.0
Via: SIP/2.0/UDP 212.183.160.238;branch=z9hG4bK361a.09665bc5d6cb0a2379cb292ae0d550e3.0
From: "03421950085" <sip:03421950085 at 212.183.160.238>;tag=mtwl0ivrok
To: <sip:03631979004 at 212.183.160.238;user=phone>
Call-ID: 3c64394a57a8-8u0e813m9w70
CSeq: 2 CANCEL
Max-Forwards: 70
Content-Length: 0
Reason: SIP;cause=487;text="Request terminated by user"
{noformat}

As you can see in the logfile, at line 1083 asterisk forwards that CANCEL to the other end (IP 83.137.237.140) with a wrong reason:
{noformat}
CANCEL sip:03631979004 at 83.137.237.140:5060 SIP/2.0
Via: SIP/2.0/UDP 83.137.237.154:5060;rport;branch=z9hG4bKPj333a2cae-1f87-4d7f-a7d2-f82269dcd537
From: "03421950085" <sip:03421950085 at 83.137.237.154>;tag=261f2e78-dac0-41de-988c-721f335baee1
To: <sip:03631979004 at 83.137.237.140>
Call-ID: b99d0ce5-6347-4925-bc6d-1d1cc5ee2af3
CSeq: 27019 CANCEL
Reason: Q.850;cause=0
Max-Forwards: 70
User-Agent: Asterisk PBX 13.21.1~qcom-1.1
Content-Length:  0
{noformat}

The reason should be "cause=16", not cause=0


was (Author: simone.lazzaris):
Hi Joshua; I've summed up all the relevant information  in the ticket description, but I understand your needs for reliable informations.

So I've done the test again and I'm attaching the relevant log.

In this attempt, the caller is the number 03421950085 (proxed by a kamilio box at IP 212.183.160.238) and the callee is 03631979004 (IP 83.137.237.140). In the line 968 of the log the kamailio send a CANCEL request:

CANCEL sip:03631979004 at 212.183.160.238;user=phone SIP/2.0
Via: SIP/2.0/UDP 212.183.160.238;branch=z9hG4bK361a.09665bc5d6cb0a2379cb292ae0d550e3.0
From: "03421950085" <sip:03421950085 at 212.183.160.238>;tag=mtwl0ivrok
To: <sip:03631979004 at 212.183.160.238;user=phone>
Call-ID: 3c64394a57a8-8u0e813m9w70
CSeq: 2 CANCEL
Max-Forwards: 70
Content-Length: 0
Reason: SIP;cause=487;text="Request terminated by user"


As you can see in the logfile, at line 1083 asterisk forwards that CANCEL to the other end (IP 83.137.237.140) with a wrong reason:
CANCEL sip:03631979004 at 83.137.237.140:5060 SIP/2.0
Via: SIP/2.0/UDP 83.137.237.154:5060;rport;branch=z9hG4bKPj333a2cae-1f87-4d7f-a7d2-f82269dcd537
From: "03421950085" <sip:03421950085 at 83.137.237.154>;tag=261f2e78-dac0-41de-988c-721f335baee1
To: <sip:03631979004 at 83.137.237.140>
Call-ID: b99d0ce5-6347-4925-bc6d-1d1cc5ee2af3
CSeq: 27019 CANCEL
Reason: Q.850;cause=0
Max-Forwards: 70
User-Agent: Asterisk PBX 13.21.1~qcom-1.1
Content-Length:  0


The reason should be "cause=16", not cause=0

> Wrong or missing Q.850 reason in CANCEL
> ---------------------------------------
>
>                 Key: ASTERISK-28053
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28053
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 13.23.0
>         Environment: Debian 9
> X86_64
>            Reporter: Simone Lazzaris
>            Assignee: Unassigned
>            Severity: Minor
>              Labels: pjsip
>         Attachments: debug_q850.txt
>
>
> Hi all;
> I have an issue regarding the Q850 reason code in CANCEL messages.
> The scenario is this: number A calls number B; while the second leg is still not established (e.g. while number B is RINGING), A aborts the call.
> Asterisk will receive a CANCEL message with a Reason field like this:
> Reason: SIP;cause=487;text="Request terminated by user" 
> Immediatly, a CANCEL is sent to B, with this Reason
> Reason: Q.850;cause=0
> The correct message that my carrier expect is "cause=16". 
> I've not found a way to set the cause via dialplan. Even setting the "Q(16)" flag within the Dial app doesn't work.
> I've tried to debug the issue and I've found the following line in the debug log:
> chan_pjsip.c: AST hangup cause 0 (no match found in PJSIP)
> I think that the issue is due to the fact that the 487 Reason is not forwarded from leg a to leg b.
> Any hints?



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



More information about the asterisk-bugs mailing list