summaryrefslogtreecommitdiff
path: root/net/asterisk16/files/sip_set_auth.diff
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2009-02-14 21:17:22 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2009-02-14 21:17:22 +0000
commit38e1f1309ac8d4eb76a1e98e8d2e5aa5e573755b (patch)
treeb10d7f236d9bf4d625ffaf944f93a31f5c4c27fe /net/asterisk16/files/sip_set_auth.diff
parentRemove CONFLICTS to qt4, bump PORTREVISION (diff)
Add asterisk16 after repo-copy from net/asterisk. Some functions (e.g.
DAHDI support) are still missed and will be added on later date.
Notes
Notes: svn path=/head/; revision=228315
Diffstat (limited to 'net/asterisk16/files/sip_set_auth.diff')
-rw-r--r--net/asterisk16/files/sip_set_auth.diff45
1 files changed, 0 insertions, 45 deletions
diff --git a/net/asterisk16/files/sip_set_auth.diff b/net/asterisk16/files/sip_set_auth.diff
deleted file mode 100644
index 1addc4f48add..000000000000
--- a/net/asterisk16/files/sip_set_auth.diff
+++ /dev/null
@@ -1,45 +0,0 @@
---- channels/chan_sip.c.orig 2008-04-29 08:21:05.000000000 -0400
-+++ channels/chan_sip.c 2008-05-28 18:41:48.000000000 -0400
-@@ -15962,6 +15978,9 @@
- char *ext, *host;
- char tmp[256];
- char *dest = data;
-+ char *secret = NULL;
-+ char *md5secret = NULL;
-+ char *authname = NULL;
-
- if (!(p = sip_alloc(NULL, NULL, 0, SIP_INVITE))) {
- ast_log(LOG_ERROR, "Unable to build sip pvt data for '%s' (Out of memory or socket error)\n", (char *)data);
-@@ -15983,6 +16002,17 @@
- if (host) {
- *host++ = '\0';
- ext = tmp;
-+ secret = strchr(ext, ':');
-+ if (secret) {
-+ *secret++ = '\0';
-+ md5secret = strchr(secret, ':');
-+ if (md5secret) {
-+ *md5secret++ = '\0';
-+ authname = strchr(md5secret, ':');
-+ if (authname)
-+ *authname++ = '\0';
-+ }
-+ }
- } else {
- ext = strchr(tmp, '/');
- if (ext)
-@@ -16015,6 +16045,14 @@
- ast_string_field_set(p, username, ext);
- ast_string_field_free(p, fullcontact);
- }
-+ if (secret && !ast_strlen_zero(secret))
-+ ast_string_field_set(p, peersecret, secret);
-+
-+ if (md5secret && !ast_strlen_zero(md5secret))
-+ ast_string_field_set(p, peermd5secret, md5secret);
-+
-+ if (authname && !ast_strlen_zero(authname))
-+ ast_string_field_set(p, authname, authname);
- #if 0
- printf("Setting up to call extension '%s' at '%s'\n", ext ? ext : "<none>", host);
- #endif