aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-07 14:40:34 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-07 14:40:34 +0000
commit80821335db31aaa124fa8b9426311ab48d44d4e4 (patch)
treece67e7da3f02838c9edd686c1a11639b172492eb
parenta8b46ab3227e51be7abd65bd0ff193d2c76a1df9 (diff)
Don't attempt to qualify before we have a socket (bug #2331)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3740 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ef26c29af..f64d71fd2 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8314,7 +8314,7 @@ static struct sip_peer *build_peer(char *name, struct ast_variable *v)
*/
v=v->next;
}
- if (!found && peer->dynamic)
+ if (!found && peer->dynamic && (sipsock > -1))
reg_source_db(peer);
peer->delme = 0;
}