Compile Problem with Chan_SCCP_B on Asterisk 1.6

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.

Read something interesting? Please Share.
  • Digg
  • Twitter
  • Facebook
  • Sphinn
  • del.icio.us
  • Technorati
  • Google Bookmarks

Comments

  1. Wookie says:

    I had this problem too – thanks for posting!

  2. bram says:

    works like a charm now, thanks for sharing this

Speak Your Mind

*

Performance Optimization WordPress Plugins by W3 EDGE