Index: channels/chan_dahdi.c
===================================================================
--- channels/chan_dahdi.c (revision 221970)
+++ channels/chan_dahdi.c (working copy)
@@ -127,7 +127,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.
Index: channels/sig_pri.c
===================================================================
--- channels/sig_pri.c (revision 221970)
+++ channels/sig_pri.c (working copy)
@@ -2458,6 +2458,9 @@
#ifdef SUPPORT_USERUSER
const char *useruser;
#endif
+#ifdef HAVE_PRI_AUTHCODE
+ char *authcode;
+#endif
int pridialplan;
int dp_strip;
int prilocaldialplan;
@@ -2611,6 +2614,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 221970)
+++ configure.ac (working copy)
@@ -1447,6 +1447,8 @@
AST_EXT_LIB_CHECK([PRI_REVERSE_CHARGE], [pri], [pri_sr_set_reversecharge], [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], [