** **
\*****************************************************************************/
-#include "stdio.h"
-#include "sys/types.h"
-#include "string.h"
-#include "main.h"
+#include <stdio.h>
+#include <stdarg.h>
+#include <string.h>
+#include <stdlib.h>
+#include "macro.h"
+#include "cause.h"
+#include "extension.h"
struct isdn_cause isdn_cause[128] = {
/********************************* - **/ /*38*/
*multicause = newcause;
*multilocation = newlocation;
} else
- if (newcause==CAUSE_NOUSER && *multicause==CAUSE_NOUSER) /* cause 18, but no cause yet, use the location */
+ if (newcause==CAUSE_NOUSER && *multicause==CAUSE_NOUSER) /* cause 18, use the location */
{
*multilocation = newlocation;
+ } else
+ if (*multicause==0) /* no cause yet, use newcause (should be 18) */
+ {
+ *multicause = newcause;
+ *multilocation = newlocation;
}
}