[asterisk-bugs] [JIRA] (ASTERISK-22428) [patch] SIP unregister does not fully unregister when using Realtime sip peers

Michael L. Young (JIRA) noreply at issues.asterisk.org
Mon Sep 16 17:29:03 CDT 2013


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

Michael L. Young edited comment on ASTERISK-22428 at 9/16/13 5:27 PM:
----------------------------------------------------------------------

I just wanted to put a note here that I was working on some tests for this which I just finished.  There currently are no authenticated SIP register / un-register tests in the Asterisk testsuite for chan_sip (from what I could see).  Upon working on these tests, I am seeing that Asterisk responds differently when there is an un-authenticated un-REGISTER vs an authenticated un-REGISTER.  I want to track that down and see why.
                
      was (Author: elguero):
    I just wanted to put a note here that I was working on some tests for this which I just finished.  There currently are no authenticated SIP register / un-register tests in the Asterisk testsuite.  Upon working on these tests, I am seeing that Asterisk responds differently when there is an un-authenticated un-REGISTER vs an authenticated un-REGISTER.  I want to track that down and see why.
                  
> [patch] SIP unregister does not fully unregister when using Realtime sip peers
> ------------------------------------------------------------------------------
>
>                 Key: ASTERISK-22428
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22428
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/Registration
>    Affects Versions: 1.8.23.0, 11.5.0
>            Reporter: Ben Smithurst
>            Assignee: Michael L. Young
>            Severity: Minor
>         Attachments: after.pcap, asterisk-22428-dont-update-unregistered-peer.diff, before.pcap, console_after.txt, console_before.txt, realtime_unregister.diff
>
>
> When a SIP phone unregisters, this does not seem to be fully saved back to the DB when using realtime.  I see that the ipaddr and port fields are cleared, but regseconds and fullcontact are not, so the registration still works.  Asterisk seems to know it is unregistering, as it logs 'Unregistering SIP xxx' on the console.
> In console_before.txt you can see that after unregister, a call is placed, and the call is routed to the extension, but in console_after.txt it immediately says everyone is busy/congested, as expected.
> I have also attached before/after PCAPs and the simple patch I have used to solve this.  The problem is present, and the patch works, in both 11.5.0, and the head of branches/11 (SVN-branch-11-r397758).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list