[Asterisk-Users] Distinguishing Busy from No Answer
Andrew Kohlsmith
akohlsmith-asterisk at benshaw.com
Sun Oct 30 19:46:33 MST 2005
On Sunday 30 October 2005 21:12, Rusty Dekema wrote:
> Watching the Asterisk console on verbosity=5 reveals that Asterisk receives
> a "SIP 486 Busy Here" when the called line is busy, and says "Nobody picked
> up in 45000 ms" when nobody answers (with the SIP dial timeout set to 45
> sec). However, either way, it appears to go to the next incremental
> priority in the dialplan. If this is the correct behavior, how am I
> supposed to distinguish between busy and unanswered calls? I would like to
> return a busy signal for busy calls and a 'Playback()' of a recording along
> the lines of "The call was not answered..." in the case of an unanswered
> call.
Have you tried looking at the status of ${DIALSTATUS} or ${HANGUPCAUSE} (the
latter being PRI and IAX-related only, IIRC.
-A.
More information about the asterisk-users
mailing list