[Asterisk-Dev] Device State

Mark Edwards mark.p.edwards at gmail.com
Fri Sep 2 04:42:31 MST 2005


I am trying to figure out a way to get a consistent picture of
line/channel state during a call. To cut a long and quite
uninteresting story short, my problem arises from the manager
interface. I am developing a callcentre application that requires
asterisk to inform an external device of the current state of the
call, i.e.

* line up or down
* B party ringing, busy or congested
* B party has answered

Unfortunately, I am finding it quite hard to identify the correct
state from the different events that the management interface issues.
Additionally, it isnt' quite clear some times when a line is hung up -
actually why it got hung up. For instance, when an analogue ZAP
channel is busy, dsp.c dutifully detects this and requests a soft
hangup of the channel, but the hangup event indicates normal clearing.
This may be desired behaviour...

So, having perused the code, I find devicestate.c which appears to
only have recently found its way into the codebase and I am wondering
if this is perhaps a way of abstracting the call state across the
different channel drivers?

Additionally, is there a way of getting access to this information via
the manager interface? Ideally the callcentre app will need to be able
to detect state across different channel drivers - sip, iax or pri

I would very much appreciate a constructive nudge in the right direction.

Cheers,

Mark.


-- 
regards,

Mark P. Edwards
FWD: 667917



More information about the asterisk-dev mailing list