On Tue, Nov 18, 2014 at 10:55 AM, George Joseph <[email protected]
> wrote:

>
> On Mon, Nov 17, 2014 at 1:52 PM, John Kiniston <[email protected]>
> 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.
>
>
>>
>>
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to