What I did was:

int ooh323_onReceivedSetup(ooCallData *call, Q931Message *pmsg)

{

if(p->callerid_name)

{

;p->username = strdup(p->callerid_name);

p->username = strdup(call->remoteIP);



So p->username will have the IP address.

Hope this helps,

On 7/19/06, Avin Patel <[EMAIL PROTECTED] > wrote:
Hi Tim,
Can you provide more information with logs & lineno informations.

Regards,
Avin Patel
Objective Systems Inc

Tim King wrote:
> Using ooh323 from asterisk-addons1.2.3 I get several asterisk crashes
> a day. Turned on MALLOC_DEBUG and see that I am getting invalid free()
> in either Dial or Hangup. After investigating some more it is clearly
> the callerid structure that has presumably been already free()ed by
> chan_h323 or maybe somewhere else but left in place in the asterisk
> chan structure so it gets free(0ed a second time. Does anyone
> understand what is going on? This seems a serious bug as if not
> spotted the invalid free leads to corrupt heap and hence asterisk
> crashes - usually somewhere in memory management.
>
> Surprised no-else seems to have seen this. Am I doing something
> different? Using it to call Cisco Call Manager.
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> ooh323c-devel mailing list
> ooh323c-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ooh323c-devel
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: 7/17/2006
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ooh323c-devel mailing list
ooh323c-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ooh323c-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ooh323c-devel mailing list
ooh323c-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ooh323c-devel

Reply via email to