[Asterisk-Users] chan_sccp compile problem w/ CVS head?

Matt Schulte mschulte at netlogic.net
Wed Dec 15 13:28:57 MST 2004


Here is a snip from sccp_channel.c:

if (c->line->callerid)
      strncpy(tmp, c->line->callerid, 253);
    else
      ast_log(LOG_WARNING, "Outgoing calls %s doesn't have CallerId\n",
c->owner->name);

I changed to:

if (c->line->cid.cid_num)
      strncpy(tmp, c->line->cid.cid_num, 253);
    else
      ast_log(LOG_WARNING, "Outgoing calls %s doesn't have CallerId\n",
c->owner->name);

Still no dice, ideas?
Thanks
	Matt

-----Original Message-----
From: Matthew Boehm [mailto:mboehm at cytelcom.com] 
Sent: Wednesday, December 15, 2004 1:55 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] chan_sccp compile problem w/ CVS head?


Seems that the author of sccp_channel.c hasn't upgraded his code.

You can fix this by replacing all instances of chan->callerid with
chan->cid.cid_num

-Matthew

----- Original Message ----- 
From: "Matt Schulte" <mschulte at netlogic.net>
To: <asterisk-users at lists.digium.com>
Sent: Wednesday, December 15, 2004 1:44 PM
Subject: [Asterisk-Users] chan_sccp compile problem w/ CVS head?


Any ideas? I edited the Makefile as instructed, ty.

Now compiling .... sccp_channel.c           279 lines
sccp_channel.c: In function `sccp_channel_send_callinfo':
sccp_channel.c:48: structure has no member named `callerid'
sccp_channel.c:49: structure has no member named `callerid'
sccp_channel.c:49: structure has no member named `callerid'
sccp_channel.c:49: structure has no member named `callerid'
sccp_channel.c:49: structure has no member named `callerid'
sccp_channel.c:49: structure has no member named `callerid'
make: *** [.tmp/sccp_channel.o] Error 1
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list