[asterisk-bugs] [JIRA] (ASTERISK-27668) PjSIP missing feature: Endpoint registration status

Samuel For (JIRA) noreply at issues.asterisk.org
Mon Feb 12 06:39:13 CST 2018


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

Samuel For commented on ASTERISK-27668:
---------------------------------------

So, if I understand you correctly, you are saying is that we should emulate the old behavior by categorizing:

qualify = success
UNKNOWN
NOT_INUSE
INUSE
BUSY
RINGING
RINGINUSE
ONHOLD

qualify = failed
INVALID
UNAVAILABLE

DEVICE_STATE reports our endpoint as UNAVAILABLE when Asterisk restarts until the qualify is successful which is not what we'd like as it would drop all the calls after a restart until qualifications have completed. It would have been better if it reported as UNKNOWN.

We have run a number of tests now and ChanIsAvail() seems to yield the functionality we want. We didn't use this initially because of two reasons: (1) AVAILSTATUS always yields 0. We still don't understand why that is but we now check if the AVAILCHAN is an empty string or not and that works well. (2) If an endpoint is unreachable it will throw an error where we think it shouldn't, should only warn or perhaps inform that the endpoint isn't available. It seems that it tries to create a dialog rather than just checking the availability.

-- Executing [s at CALL:13] ChanIsAvail("PJSIP/testserver-00000006", "PJSIP/testserver") in new stack
[Feb 12 12:31:13] ERROR[5072]: res_pjsip.c:3163 ast_sip_create_dialog_uac: Endpoint 'testserver': Could not create dialog to invalid URI 'testserver'.  Is endpoint registered and reachable?
[Feb 12 12:31:13] ERROR[5072]: chan_pjsip.c:2475 request: Failed to create outgoing session to endpoint 'testserver'

At this time we most likely will move forward with (ChanIsAvail) so I thank you for that. Not sure if you'd like to act on anything of the above. We are running tests here now on this so if we can help in any way please let me know.


> PjSIP missing feature: Endpoint registration status
> ---------------------------------------------------
>
>                 Key: ASTERISK-27668
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27668
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 15.2.0
>            Reporter: Samuel For
>            Assignee: Samuel For
>            Severity: Minor
>              Labels: pjsip
>
> We tried to migrate chan_sip to chan_pjsip but got stuck on a missing feature.
> In chan_sip:
> ${SIPPEER(endpointname,status)
> Yields the qualify status of the endpoint. This can then in turn be used to determine if we should call on the endpoint or not.
> There is no corresponding feature in chan_pjsip, at least we can't find it.



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



More information about the asterisk-bugs mailing list