[asterisk-dev] Ast_channel question

Salvatore Frandina salvatore.frandina at gmail.com
Fri Jan 15 02:26:12 CST 2010


Ok. What do the following fields contain?

(inside struct ast_channel)

const char *data; /*!< Data passed to current application */

struct ast_cdr *cdr; /*!< Call Detail Record */


2010/1/14 Mark Michelson <mmichelson at digium.com>

> Salvatore Frandina wrote:
> > Hi,
> >
> > does ast_channel data structure contain a field about IP and port of
> > Asterisk server?
> >
> > Thank
> >
> > --
>
> No.
>
> However, in certain channel drivers, most notably VoIP channel drivers, you
> can
> sometimes find such information in the channel's tech_pvt structure. For
> instance, chan_sip's sip_pvt structure has a field called "ourip" that has
> the
> information you requested. Specifically, "ourip" will contain the source IP
> address and port being used when communicating over the corresponding
> channel.
>
> Mark Michelson
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>



-- 
_______________________________________
Salvatore Frandina
website: http://frandinas.altervista.org
mail: salvatore.frandina at gmail.com

_______________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20100115/bce90b79/attachment.htm 


More information about the asterisk-dev mailing list