[asterisk-bugs] [JIRA] (ASTERISK-25476) chan_sip loses registrations after a while

abelbeck (JIRA) noreply at issues.asterisk.org
Tue Oct 27 07:53:33 CDT 2015


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

abelbeck commented on ASTERISK-25476:
-------------------------------------

Hi Dirk,

Related to your scheduler ID 0 is not handled in:
sip_unregister(): {{peer->expire > 0}}
complete_sip_registered_peer(): {{peer->expire > 0}}

Those both are addressed here by Matt with his ASTERISK-25476-13.diff attachment, though that seems only related to the CLI command 'sip unregister'.

Though your set_peer_defaults() problem has not yet been addressed, and it seems {{if (peer->expire == 0) {}} should be {{if (peer->expire < 0) {}} in set_peer_defaults(), though others should verify that is the best fix.

Additionally, another problem is in res_rtp_asterisk.c which I placed patch attachments here for Asterisk 11/13, and Michael Keuter has been actively testing.

> chan_sip loses registrations after a while
> ------------------------------------------
>
>                 Key: ASTERISK-25476
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25476
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 11.20.0
>         Environment: AstLinux 1.2.4, Linux 3.2.66, x86 32bit
>            Reporter: Michael Keuter
>         Attachments: 11.20.0-SIP-options.txt, asterisk-11-issue-ASTERISK-25476.patch, asterisk-13-issue-ASTERISK-25476.patch, ASTERISK-25476-13.diff
>
>
> In Asterisk 11.20.0 chan_sip looses registrations of some IP-phones (on several different systems) after a while. In Asterisk the phone then shows "unreachable", while the phone's status shows "Registered". Reverting back to Asterisk 11.19.0 solves the problem. The phones are mostly Yealink phones, different models with different firmwares on different systems, none of the phones firmware was recently upgraded. Dis-/enbling the phone's SIP account or rebooting the phone makes it work again for a while, but then  Asterisk shows the phone again as unreachable.
> I attach a SIP trace of a Yealink W52P DECT base with 2 handsets (331/332). "qualify=yes" is enabled, after a while Asterisk stops sending Option packets to ext. 331 while keeps sending packets to 332.



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



More information about the asterisk-bugs mailing list