aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-08-03 06:31:20 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-08-03 06:31:20 +0000
commit612f18f550b9aa69d4c4592f03db27c3b5cbbebc (patch)
treed6ebe938d1884884d2d7d137e879b65b58e1bbee /pbx.c
parenta35eec0cbef1b19aeaa6913c961b5fd2d08da14f (diff)
Plane commits (a.k.a. the Delta deltas): 1) Make muted reconnect 2) Add "X" option to meetme and add ${MEETME_EXIT_CONTEXT}, 3) Allow SIP call parking with supervised transfer, 4) Only create parking entries when calls actually get parked, 5) Add "sunshine" song, 6) Update hardware documentation, 7) Don't load empty strings from history file
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3572 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pbx.c b/pbx.c
index 1a18208fd..c39d7e104 100755
--- a/pbx.c
+++ b/pbx.c
@@ -1,4 +1,4 @@
-/*
+ /*
* Asterisk -- A telephony toolkit for Linux.
*
* Core PBX routines.
@@ -2044,7 +2044,7 @@ int ast_context_remove_include2(struct ast_context *con, char *include, char *re
while (i) {
/* find our include */
if (!strcmp(i->name, include) &&
- (!strcmp(i->registrar, registrar) || !registrar)) {
+ (!registrar || !strcmp(i->registrar, registrar))) {
/* remove from list */
if (pi)
pi->next = i->next;
@@ -2116,7 +2116,7 @@ int ast_context_remove_switch2(struct ast_context *con, char *sw, char *data, ch
while (i) {
/* find our switch */
if (!strcmp(i->name, sw) && !strcmp(i->data, data) &&
- (!strcmp(i->registrar, registrar) || !registrar)) {
+ (!registrar || !strcmp(i->registrar, registrar))) {
/* remove from list */
if (pi)
pi->next = i->next;
@@ -2189,7 +2189,7 @@ int ast_context_remove_extension2(struct ast_context *con, char *extension, int
/* look for right extension */
if (!strcmp(exten->exten, extension) &&
- (!strcmp(exten->registrar, registrar) || !registrar)) {
+ (!registrar || !strcmp(exten->registrar, registrar))) {
struct ast_exten *peer;
/* should we free all peers in this extension? (priority == 0)? */
@@ -2224,7 +2224,7 @@ int ast_context_remove_extension2(struct ast_context *con, char *extension, int
while (peer) {
/* is this our extension? */
if (peer->priority == priority &&
- (!strcmp(peer->registrar, registrar) || !registrar)) {
+ (!registrar || !strcmp(peer->registrar, registrar) )) {
/* we are first priority extension? */
if (!previous_peer) {
/* exists previous extension here? */
@@ -3459,7 +3459,7 @@ int ast_context_remove_ignorepat2(struct ast_context *con, char *ignorepat, char
ip = con->ignorepats;
while (ip) {
if (!strcmp(ip->pattern, ignorepat) &&
- (registrar == ip->registrar || !registrar)) {
+ (!registrar || (registrar == ip->registrar))) {
if (ipl) {
ipl->next = ip->next;
free(ip);