73dae11255
Asterisk is a complete PBX in software. It provides all of the features you would expect from a PBX and more. Asterisk does voice over IP in three protocols, and can interoperate with almost all standards-based telephony equipment using relatively inexpensive hardware. Asterisk provides Voicemail services with Directory, Call Conferencing, Interactive Voice Response, Call Queuing. It has support for three-way calling, caller ID services, ADSI, SIP and H.323 (as both client and gateway). This is a standard version. It is scheduled to go to security fixes only on October 3th, 2018, and EOL on October 3th, 2019. See here for more information about Asterisk versions: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
40 lines
1.3 KiB
C
40 lines
1.3 KiB
C
$NetBSD: patch-res_res__pjsip_pjsip__configuration.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
|
|
|
|
--- res/res_pjsip/pjsip_configuration.c.orig 2018-06-11 21:21:37.000000000 +0000
|
|
+++ res/res_pjsip/pjsip_configuration.c
|
|
@@ -18,12 +18,6 @@
|
|
|
|
#include "asterisk.h"
|
|
|
|
-#include <pjsip.h>
|
|
-#include <pjsip_ua.h>
|
|
-
|
|
-#include "asterisk/res_pjsip.h"
|
|
-#include "include/res_pjsip_private.h"
|
|
-#include "asterisk/res_pjsip_cli.h"
|
|
#include "asterisk/acl.h"
|
|
#include "asterisk/manager.h"
|
|
#include "asterisk/astobj2.h"
|
|
@@ -35,6 +29,13 @@
|
|
#include "asterisk/pbx.h"
|
|
#include "asterisk/stream.h"
|
|
|
|
+#include <pjsip.h>
|
|
+#include <pjsip_ua.h>
|
|
+
|
|
+#include "asterisk/res_pjsip.h"
|
|
+#include "include/res_pjsip_private.h"
|
|
+#include "asterisk/res_pjsip_cli.h"
|
|
+
|
|
/*! \brief Number of buckets for persistent endpoint information */
|
|
#define PERSISTENT_BUCKETS 53
|
|
|
|
@@ -1222,7 +1223,7 @@ static int from_user_handler(const struc
|
|
const char *val;
|
|
|
|
for (val = var->value; *val; val++) {
|
|
- if (!isalpha(*val) && !isdigit(*val) && !strchr(valid_uri_marks, *val)) {
|
|
+ if (!isalpha((unsigned char)*val) && !isdigit((unsigned char)*val) && !strchr(valid_uri_marks, *val)) {
|
|
ast_log(LOG_ERROR, "Error configuring endpoint '%s' - '%s' field "
|
|
"contains invalid character '%c'\n",
|
|
ast_sorcery_object_get_id(endpoint), var->name, *val);
|