[Asterisk-Dev] Channel struct in pri_dchannel

Martin Pycko martinp at digium.com
Tue Nov 4 08:38:57 MST 2003


The disconnect cause is already brought up with HANGUPCAUSE variable.
However these are *universal* causes interpreted by asterisk, so take a
look at the code.

regards
Martin

On Tue, 4 Nov 2003, Claude Klimos wrote:

> Hi all,
>
> Does anyone know how to find the ast_channel that contains the number I
> dial when I get a certain event PRI_EVENT_HANGUP_REQ in pri_dchannel()
> in chan_zap.c? What I'm trying to do is detect a busy signal after I
> dial out and report the event to an asterisk application that I wrote
> with the number dialed using pbx_exec().
>
> It seems that the struct ast_channel *c variable is not used in that
> function, and I couldn't find the dialed number in the
> pri->pvt[chan]->owner structure.
>
> Any help or hints or suggected are very welcomed.
>
> Regards,
>
> CK
>
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>




More information about the asterisk-dev mailing list