[asterisk-users] Get the status of a PJSIP endpoint?

George Joseph george.joseph at fairview5.com
Tue Nov 18 12:00:47 CST 2014


On Tue, Nov 18, 2014 at 10:55 AM, George Joseph <george.joseph at fairview5.com
> wrote:

>
> On Mon, Nov 17, 2014 at 1:52 PM, John Kiniston <johnkiniston at gmail.com>
> wrote:
>
>> Is there an equivalent to ${SIPPEER(${peer},status)} for PJSIP?
>>
>>
> I could swear there was a non-obvious way to get state but I guess it's so
> non-obvious that I can't find it again.   I'll create one if I can;t find
> it.
>
>

Oh yeah... It's DEVICE_STATE(PJSIP/endpoint)

Not as non-obvious as I thought.


> The closest I've been able to get is to use AST_SOURCERY to see if they
>> have a contact
>>
>> ${AST_SORCERY(res_pjsip,aor,${peer},contact) but I'm not certain if I'll
>> still have a contact entry after a phone has gone unreachable?
>>
>>
> Yeah, this isn't going to give you current state.
>
>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20141118/8e6f2b48/attachment.html>


More information about the asterisk-users mailing list