<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 17, 2014 at 1:52 PM, John Kiniston <span dir="ltr"><<a href="mailto:johnkiniston@gmail.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=johnkiniston@gmail.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">johnkiniston@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Is there an equivalent to ${SIPPEER(${peer},status)} for PJSIP?<br><br></div></div></blockquote><div><br></div><div>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.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>The closest I've been able to get is to use AST_SOURCERY to see if they have a contact<br><br>${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?<span class="HOEnZb"><font color="#888888"><br><br clear="all"></font></span></div></div></blockquote><div><br></div><div>Yeah, this isn't going to give you current state.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span class="HOEnZb"><font color="#888888"></font></span></div><span class="HOEnZb"><font color="#888888"><div><div><div><br></div></div></div></font></span></div></blockquote></div></div></div>