[Asterisk-Dev] Getting caller id

ast guy astguy at gmail.com
Wed Nov 16 05:46:10 MST 2005


On 11/16/05, Jacob Tinning <tinning at sifira.dk> wrote:
> On Wed, 16 Nov 2005, ast guy wrote:
>
> > In ast_channel (channel.h) structure there is ast_callerid variable,
> > but when I use that variable in code it gives error:
> >
> > structure has no member named `cid'
> > How do I get caller id string ?
>
> I think you can read the caller in chan->cid.cid_num and chan->cid.cid_name.
>
> Mvh. Jacob
> --

mentioned
'ast_callerid	cid'
 is in ast_channel structure
but any way found it under ast_channel->callerid but mentioned in docs
ast_channel.ast_callerid.cid_num



More information about the asterisk-dev mailing list