folks, How can I determine whether a sip device is busy (channel unavailable), or it is not registered/connected? ChanIsAvail only checks the channel availability, so it's not specific enough. If I could get the output of "sip show peers" in an AGI script, I could create the functionality, but I'm hoping for some dialplan command sequence. Thanks, Glen
Philipp von Klitzing
2005-Feb-11 18:52 UTC
[Asterisk-Users] differentiating busy & not connected
Hi!> How can I determine whether a sip device is busy (channel unavailable), > or it is not registered/connected?For the latter try "database show sip" or DBGet(...) respectively. Won't work with RealTime in Head though, I assume. ;-> Busy: You can always employ CheckGroup() and the like, although that gives you only the Asterisk view of things, not the SIP UAs point of view. Maybe sipsak and a custom SIP message can help, but that's of course outside of Asterisk. Philipp