Get The Status Of A PJSIP Endpoint?
Is there an equivalent to ${SIPPEER(${peer},status)} for PJSIP?
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?
3 thoughts on - Get The Status Of A PJSIP Endpoint?
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.
Yeah, this isn’t going to give you current state.
On Tue, Nov 18, 2014 at 10:55 AM, George Joseph
Thanks George, That appears to do what I need and it’s easier to call as well. Win/Win!
It even looks like I can use the same function on my 1.8 boxes so now I can go back and update those to use the same code I’m writing now.
On Tue, Nov 18, 2014 at 11:00 AM, George Joseph