[asterisk-bugs] [JIRA] (ASTERISK-21960) ooh323 channels stuck
Alexander Anikin (JIRA)
noreply at issues.asterisk.org
Thu Sep 12 12:39:03 CDT 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-21960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=210199#comment-210199 ]
Alexander Anikin commented on ASTERISK-21960:
---------------------------------------------
Dmitry,
Looks like you're right about relation to GK reregister. There is global lockup in some situation and it's specific for asterisk 11 (bug is in codes that support direct rtp that implemented from 11 version).
There is infinitely wait of condition variable which mean that rtp structure for call is created, but if Gk client isn't in correct state
then stack call creation routine just not called and condition variable doesn't receive signal never.
And there is global stack command lock that wraps waiting of call create and we have global lockup of ooh323 processing as result.
The attached patch change from ast_cond_wait to ast_cond_timedwait for call creation with 3 seconds timeout. This is not a better way but must work.
I will think how to perform here right.
Please test with attached patch.
> ooh323 channels stuck
> ---------------------
>
> Key: ASTERISK-21960
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-21960
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Addons/chan_ooh323
> Affects Versions: 11.4.0
> Environment: Centos 6/x86-64
> Reporter: Dmitry Melekhov
> Assignee: Alexander Anikin
> Attachments: ASTERISK-21690.patch, ASTERISK-21960-stacklockup.patch, h323_log
>
>
> Hello!
> I just ( about 10 minutes ago ) got link problem between asterisk and gnugk - link is down , switched to backup channel, and I got stuck channels:
> ast-nsk*CLI> core show channels
> Channel Location State Application(Data)
> DAHDI/i1/7171-237c 2077 at dahdi:5 Ring Dial(OOH323/2077)
> DAHDI/i1/7171-237b 2170 at dahdi:5 Ring Dial(OOH323/2170)
> DAHDI/i1/7171-237e 2077 at dahdi:5 Ring Dial(OOH323/2077)
> SIP/ast-ngdu1-000000 2311 at ast-ngdu1:1 Ringing AppDial((Outgoing Line))
> OOH323/2077-8965 (None) Down (None)
> OOH323/2077-8963 (None) Down (None)
> OOH323/2077-8974 (None) Down (None)
> OOH323/2077-8970 (None) Down (None)
> OOH323/2077-8971 (None) Down (None)
> OOH323/4222-8954 (None) Down (None)
> DAHDI/i1/7005-2379 6842 at dahdi:5 Ring Dial(OOH323/6842)
> OOH323/2041-8973 (None) Down (None)
> OOH323/6842-8960 (None) Down (None)
> OOH323/6278-8956 (None) Down (None)
> OOH323/6278-8953 (None) Down (None)
> OOH323/6278-8952 (None) Down (None)
> OOH323/2073-8961 (None) Down (None)
> OOH323/2073-8966 (None) Down (None)
> OOH323/2073-8964 (None) Down (None)
> DAHDI/i1/7103-2382 6441 at dahdi:5 Ring Dial(OOH323/6441)
> DAHDI/i1/7103-2381 6441 at dahdi:5 Ring Dial(OOH323/6441)
> DAHDI/i1/7047-2372 6278 at dahdi:5 Ring Dial(OOH323/6278)
> DAHDI/i1/7047-2371 6278 at dahdi:5 Ring Dial(OOH323/6278)
> DAHDI/i1/7047-2375 6278 at dahdi:5 Ring Dial(OOH323/6278)
> OOH323/2170-8972 (None) Down (None)
> OOH323/2170-8967 (None) Down (None)
> OOH323/2170-8962 (None) Down (None)
> DAHDI/i1/7130-2373 4222 at dahdi:5 Ring Dial(OOH323/4222)
> OOH323/6441-8968 (None) Down (None)
> OOH323/6441-8969 (None) Down (None)
> DAHDI/i1/7025-237f 2073 at dahdi:5 Ring Dial(OOH323/2073)
> DAHDI/i1/7025-237d 2073 at dahdi:5 Ring Dial(OOH323/2073)
> OOH323/6441-8955 (None) Down (None)
> DAHDI/i1/7025-237a 2073 at dahdi:5 Ring Dial(OOH323/2073)
> OOH323/6441-8957 (None) Down (None)
> OOH323/6441-8959 (None) Down (None)
> OOH323/6441-8958 (None) Down (None)
> DAHDI/i1/-2315 2311 at dahdi:2 Ring Dial(SIP/2311 at ast-ngdu1)
> DAHDI/i1/7103-2378 6441 at dahdi:5 Ring Dial(OOH323/6441)
> DAHDI/i1/7103-2374 6441 at dahdi:5 Ring Dial(OOH323/6441)
> DAHDI/i1/7103-2376 6441 at dahdi:5 Ring Dial(OOH323/6441)
> DAHDI/i1/7103-2377 6441 at dahdi:5 Ring Dial(OOH323/6441)
> DAHDI/i1/7171-2386 2041 at dahdi:5 Ring Dial(OOH323/2041)
> DAHDI/i1/7171-2387 2077 at dahdi:5 Ring Dial(OOH323/2077)
> DAHDI/i1/7171-2384 2077 at dahdi:5 Ring Dial(OOH323/2077)
> DAHDI/i1/7171-2385 2170 at dahdi:5 Ring Dial(OOH323/2170)
> DAHDI/i1/7171-2383 2077 at dahdi:5 Ring Dial(OOH323/2077)
> DAHDI/i1/7171-2380 2170 at dahdi:5 Ring Dial(OOH323/2170)
> 48 active channels
> 24 active calls
> 9068 calls processed
> ast-nsk*CLI> exit
> Sorry, I restarted asterisk, just because users complained.
> I don't know how to reproduce this, may be I'll have an idea ;-)
> And I understand that there is no enough info :-( , but may be problem can be found just from looking into code.
> patch from ASTERISK-21800 is applied.
> Thank you!
--
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