Compile Problem with Chan_SCCP_B on Asterisk 1.6

by clementsm on December 3, 2009

Asterisk LogoWhen you try to compile chan_sccp_b on a machine with Asterisk 1.6.0+ installed you receive the following error:

sccp_pbx.c:588: error: ‘AST_CONTROL_T38’ undeclared (first use in this function)


This is due to the fact that Digium have replaced AST_CONTROL_T38 with AST_CONTROL_T38_PARAMETERS in Asterisk 1.6.0. (I haven’t checked through the SVN to find out exactly when they did that I will update this when I get around to doing that with the precise version, so if you receive this error you know you are past the version on which the change was made).

So, what you really want to know is how to fix that and get a clean compile? Right? Find the file sccp_pbx.c and look for the line beginning with:


#ifdef CS_AST_CONTROL_T38
case AST_CONTROL_T38:
return "T38RequestNotification";

and change it to:

#ifdef CS_AST_CONTROL_T38_PARAMETERS
case AST_CONTROL_T38:
return "T38RequestNotification";

In the mean time – checkout the support forums on source forge for any updates, as I am sure that someone will soon fix the Makefile to accommodate this change.

{ 3 comments… read them below or add one }

Wookie March 27, 2010 at 7:31 am

I had this problem too – thanks for posting!

Reply

clementsm March 27, 2010 at 9:08 am

Diederik de Groot mentioned that he fixed this in trunk in this forum post on Source Forge so you should be fine if you get the latest source from trunk.

Reply

bram December 10, 2009 at 8:40 am

works like a charm now, thanks for sharing this

Reply

Leave a Comment

Previous post:

Next post: