[asterisk-bugs] [JIRA] Commented: (ASTERISK-19003) asterisk closes TLS connection after receiving ACK for 401 following INVITE sent by Snom m9

Pietro Bertera (JIRA) noreply at issues.asterisk.org
Wed Sep 19 05:17:27 CDT 2012


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

Pietro Bertera commented on ASTERISK-19003:
-------------------------------------------

Another workaround: in order to decrease the size of SIP request you can also enable "Compact Headers" in snom phones: http://wiki.snom.com/wiki/index.php/Settings/short_form


> asterisk closes TLS connection after receiving ACK for 401 following INVITE sent by Snom m9
> -------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-19003
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-19003
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/TCP-TLS
>    Affects Versions: 1.8.7.1
>         Environment: Debian squeeze amd64
>            Reporter: Gregor Schaffrath
>         Attachments: Asterisk-TLS.zip, Asterisk-TLS.zip, relevant_bits.log, snom_fail.log, snom_fail.log, snom_fail_noansi.log
>
>
> Registering the Snom m9 via TLS works fine.
> The initial INVITE triggers a 401 Unauthorized response from asterisk.
> The received ACK is handled by handle_incoming, and then asterisk states that it did not find the CSeq used for all previous messages and disconnects without waiting for the new INVITE:
> ---
> (last lines)
> [Dec 10 00:08:33] ^[[1;32mDEBUG^[[0m[3292]: ^[[1;37mchan_sip.c^[[0m:^[[1;37m7835^[[0m ^[[1;37mfind_call^[[0m: = Looking for  Call ID: povyizfse8 (Checking From) --From tag 9fs5t8 --To-tag as791817a8
> [Dec 10 00:08:33] ^[[1;32mDEBUG^[[0m[3292]: ^[[1;37mchan_sip.c^[[0m:^[[1;37m24471^[[0m ^[[1;37mhandle_incoming^[[0m: **** Received ACK (6) - Command in SIP ACK
> [Dec 10 00:08:33] ^[[1;32mDEBUG^[[0m[3292]: ^[[1;37mchan_sip.c^[[0m:^[[1;37m4011^[[0m ^[[1;37m__sip_ack^[[0m: Stopping retransmission on 'povyizfse8' of Response 29123: Match Not Found
> ---
> It seems as if asterisk just forgot about the CSeq after sending the 401?
> The new INVITE sent immediately after the ACK never reaches asterisk, but merely triggers TCP RST packets from the server.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list