[asterisk-bugs] [JIRA] (ASTERISK-24132) Remote TLS server close connection. Dialstatus = CANCEL

Olle Johansson (JIRA) noreply at issues.asterisk.org
Tue Jul 29 04:48:56 CDT 2014


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

Olle Johansson commented on ASTERISK-24132:
-------------------------------------------

This little patch reveals where in app_dial the call is hung up.

Index: apps/app_dial.c
===================================================================
--- apps/app_dial.c	(revision 419680)
+++ apps/app_dial.c	(working copy)
@@ -1494,6 +1494,7 @@
 				printf("Hangup received on %s\n", in->name);
 #endif
 			if (!f || ((f->frametype == AST_FRAME_CONTROL) && (f->subclass.integer == AST_CONTROL_HANGUP))) {
+				ast_debug(8, " ===> Dial got hung up on %s\n", in->name);
 				/* Got hung up */
 				*to = -1;
 				strcpy(pa->status, "CANCEL");


> Remote TLS server close connection. Dialstatus = CANCEL
> -------------------------------------------------------
>
>                 Key: ASTERISK-24132
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24132
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/TCP-TLS
>    Affects Versions: 1.8.29.0
>         Environment: Linux Centos 6, Microsoft Lync
>            Reporter: Olle Johansson
>            Severity: Minor
>
> Call is set up, TLS connection opened. Microsoft Lync requires TLS client cert, Asterisk sends cert (automatically in OpenSSL I guess) and MS Lync doesn't approve. 
> Lync close TCP connection, Asterisk sends SSL finish, then connection closes.
> TLS read now generates a read error on the socket, the TCP thread shuts down and app_dial can't read a frame during call setup, the call fails with CANCEL as dialstatus.
> I think it has to be CONGESTION. But can't figure out where to set that status in this chain of events. CANCEL is very wrong.



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



More information about the asterisk-bugs mailing list