[asterisk-bugs] [JIRA] (ASTERISK-30134) IAX2 hints always return Unavailable

N A (JIRA) noreply at issues.asterisk.org
Sat Jul 23 16:05:09 CDT 2022


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

N A commented on ASTERISK-30134:
--------------------------------

chan_iax2 doesn't really implement device state natively. Looking at the device state function for it, you can see "/* let the core figure out whether it is in use or not */" pretty much sums it up.

I suspect this is because IAX2 is mainly a trunking protocol, not an individual endpoint protocol, and asking for the device state of a trunk generally isn't what people are trying to do.

What this means in practice is that the core device state handler, ast_parse_device_state, is going to be used, and that checks if there are any channels in use for that prefix, e.g. IAX2/2511-123 - if so, the device state will be that prefix. Otherwise, it'll be "UNKNOWN".

I'm not so sure this is as much a bug as perhaps a design deficiency or limitation, since that's how the channel driver was set up.

In the meantime, UNKNOWN = registered and reachable and UNAVAILABLE = not registered/reachable, and occasionally you may get other states. You may want to try DEVICE_STATE as suggested during a call.

> IAX2 hints always return Unavailable
> ------------------------------------
>
>                 Key: ASTERISK-30134
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30134
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_iax2
>    Affects Versions: 18.10.0
>         Environment: Centos 7 3.10.0-1160.53.1.el7.x86_64
>            Reporter: Jose Miguel Rivera
>            Assignee: Unassigned
>            Severity: Major
>
> The monitoring for IAX2 hints always return unavailable; this makes impossible using IAX2 devices on queues. Due to the hint always return Unavailable, the call will never reach or ring agents using IAX2 devices.
> Hints
> asterisk*CLI> core show hint 2511
> 2511 at extension-hints: IAX2/2511             State:Unavailable     Presence:not_set         Watchers  1
> 1 hint matching extension 2511
> Devices
> Name/Username    Host                                           Mask                                      Port           Status      Description                     
> 2501             (null)                                   (D)  (null)                                    (null)         UNKNOWN     IAX Reports                     
> 2511             192.168.0.5                              (D)  255.255.255.255                           53890          OK (1 ms)   IAX AND Queues 



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



More information about the asterisk-bugs mailing list