PJSIP aor status before dial

Hi,
Is there a way to know the aor status before making Dial?
The aor configured with ‘qualify_frequency’ in the pjsip.conf.

Thanks,
Yaniv

As of this time you can only query the state of the endpoint itself, using the DEVICE_STATE[1] dialplan function and PJSIP/.

[1] https://wiki.asterisk.org/wiki/display/AST/Function_DEVICE_STATE

You could query the state before dial using DEVICE_STATE function and make logical decision based on the state of the device. As described on the above post

Thank you for your answer,
Is there a way to know the endpoit state before dialing.
Yaniv