[asterisk-bugs] [JIRA] (ASTERISK-23789) Registry counter badly dec. with Realtime

Dr Lous (JIRA) noreply at issues.asterisk.org
Mon May 26 15:33:43 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dr Lous updated ASTERISK-23789:
-------------------------------

    Attachment: sip reload no register.txt

Attach file, debug output when sip reload.

Before reload, regobjs is already -1 !

On start of asterisk => 2x "Destroying registry entry", so 2x "regobjs--", but only one added to registry array.

After sip reload, one destroy only, because flush registration array.
And the computation of delay for the sched, make negative value (regobjs == -2, default_expiry == 120, so ms = -12000)

I recompiled from tarball 12.2.0, bug/issue is on original source, not after my other patch.

> Registry counter badly dec. with Realtime
> -----------------------------------------
>
>                 Key: ASTERISK-23789
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23789
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/Registration
>    Affects Versions: 12.2.0
>         Environment: One sip registration, full Realtime.
>            Reporter: Dr Lous
>         Attachments: patch chan_sip regobjs counter 12.2.0.txt, sip reload no register.txt
>
>
> If you use Realtime for sippeers, the chan_sip.c get peers available for registry (eq. to "register=>" in sip.conf).
> But when parse different row in the database, sip_register structure built everytime and check the regl object if already added. If already added the object is destroy. But every destroy decrement the registry object counter.
> Tested version 12.2.0
> Result of this bug : you start asterisk => every fine good, registry made to ISP (in this case) and call is ok. But if you make "sip reload" the regobjs counter go negative and no register made and all stay Unregistered for ever.



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



More information about the asterisk-bugs mailing list