Status of a remote trunk

Hello all,

i have 2 asterisk boxes and i would like to check the status of the analog line on the remote box from my local box.

How can this be achieved in the dial plan ?

Thank you .