summaryrefslogtreecommitdiff
path: root/main/slinfactory.c
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@digium.com>2008-04-01 17:53:08 +0000
committerJeff Peeler <jpeeler@digium.com>2008-04-01 17:53:08 +0000
commita5cdd849e555daafe39591a2bf522b4b09c7bf0d (patch)
tree8bb7e481848794e991a01f151dcc3c6f65e33b86 /main/slinfactory.c
parenta8be22f9da906efca51e68c7e3db461629be9cff (diff)
This adds DNS SRV record support to DNS manager. If there is a SRV record for a given domain, the hostname and port listed in the SRV record will be used. If no SRV record exists or a SRV lookup is not attempted, the DNS lookup on the specified domain will be performed as normal. Chan_sip has been modified to take advantage of the new SRV support.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@112207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/slinfactory.c')
-rw-r--r--main/slinfactory.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/main/slinfactory.c b/main/slinfactory.c
index af70399e6..6c1bdd6f9 100644
--- a/main/slinfactory.c
+++ b/main/slinfactory.c
@@ -172,9 +172,6 @@ int ast_slinfactory_read(struct ast_slinfactory *sf, short *buf, size_t samples)
memcpy(offset, frame_data, ineed * sizeof(*offset));
sofar += ineed;
frame_data += ineed;
- if (remain > (AST_SLINFACTORY_MAX_HOLD - sf->holdlen)) {
- remain = AST_SLINFACTORY_MAX_HOLD - sf->holdlen;
- }
memcpy(sf->hold, frame_data, remain * sizeof(*offset));
sf->holdlen = remain;
}