<div>Ok. What do the following fields contain?</div><div><br></div><div>(inside struct ast_channel)</div><div>
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal">
<font face="Times New Roman, serif"><font size="3">const char *data;
/*!< Data passed to current application */</font></font></p>
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal">
<font face="Times New Roman, serif"><font size="3">struct ast_cdr
*cdr; /*!< Call Detail Record */</font></font></p>
<br></div><br><div class="gmail_quote">2010/1/14 Mark Michelson <span dir="ltr"><<a href="mailto:mmichelson@digium.com">mmichelson@digium.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Salvatore Frandina wrote:<br>
> Hi,<br>
><br>
> does ast_channel data structure contain a field about IP and port of<br>
> Asterisk server?<br>
><br>
> Thank<br>
><br>
> --<br>
<br>
</div>No.<br>
<br>
However, in certain channel drivers, most notably VoIP channel drivers, you can<br>
sometimes find such information in the channel's tech_pvt structure. For<br>
instance, chan_sip's sip_pvt structure has a field called "ourip" that has the<br>
information you requested. Specifically, "ourip" will contain the source IP<br>
address and port being used when communicating over the corresponding channel.<br>
<br>
Mark Michelson<br>
<font color="#888888"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>_______________________________________<br>Salvatore Frandina<br>website: <a href="http://frandinas.altervista.org">http://frandinas.altervista.org</a><br>mail: <a href="mailto:salvatore.frandina@gmail.com">salvatore.frandina@gmail.com</a><br>
<br>_______________________________________<br><br>