Index: configure =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: channels/chan_dahdi.c =================================================================== --- channels/chan_dahdi.c (revision 194832) +++ channels/chan_dahdi.c (working copy) @@ -117,7 +117,8 @@ This application will send the given string of digits in a Keypad - Facility IE over the current channel. + Facility IE over the current channel. Please note that the string has + a maximum limit of 32 digits. @@ -3594,6 +3595,9 @@ #ifdef SUPPORT_USERUSER const char *useruser; #endif +#ifdef HAVE_PRI_AUTHCODE + char *authcode; +#endif int pridialplan; int dp_strip; int prilocaldialplan; @@ -3752,6 +3756,12 @@ } c++; } +#ifdef HAVE_PRI_AUTHCODE + if ((authcode = strchr(c + p->stripmsd + dp_strip, '/'))) { + *authcode++ = '\0'; + pri_sr_set_authcode(sr, authcode); + } +#endif pri_sr_set_called(sr, c + p->stripmsd + dp_strip, pridialplan, s ? 1 : 0); ldp_strip = 0; Index: configure.ac =================================================================== --- configure.ac (revision 194832) +++ configure.ac (working copy) @@ -1430,6 +1430,8 @@ AST_EXT_LIB_CHECK([PRI_SERVICE_MESSAGES], [pri], [pri_maintenance_service], [libpri.h]) +AST_EXT_LIB_CHECK([PRI_AUTHCODE], [pri], [pri_sr_set_authcode], [libpri.h]) + AST_EXT_LIB_CHECK([RESAMPLE], [resample], [resample_open], [libresample.h], [-lm]) AST_C_COMPILE_CHECK([SPANDSP], [ Index: include/asterisk/autoconfig.h.in =================================================================== --- include/asterisk/autoconfig.h.in (revision 194832) +++ include/asterisk/autoconfig.h.in (working copy) @@ -683,6 +683,12 @@ /* Define this to indicate the ${PRI_DESCRIP} library */ #undef HAVE_PRI +/* Define this to indicate the ${PRI_AUTHCODE_DESCRIP} library */ +#undef HAVE_PRI_AUTHCODE + +/* Define to indicate the ${PRI_AUTHCODE_DESCRIP} library version */ +#undef HAVE_PRI_AUTHCODE_VERSION + /* Define this to indicate the ${PRI_INBANDDISCONNECT_DESCRIP} library */ #undef HAVE_PRI_INBANDDISCONNECT