]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 12 Jan 2006 18:16:55 +0000 (18:16 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 12 Jan 2006 18:16:55 +0000 (18:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@323 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_iaxchan/mod_iaxchan.c

index fe2b33227d692748a34247b346b4c9f6ba1da511..59fe2f70bb6c7bae0b29ec1b6b597eae15e2d138 100644 (file)
@@ -310,10 +310,11 @@ static switch_status iax_set_codec(struct private_object *tech_pvt, struct iax_s
        assert(channel != NULL);
 
        if (*samprate) {
-               srate = 8000;
                unsigned short samples = iax_build_codec_rates();
                unsigned short mixed = (*samprate & samples);
 
+               srate = 8000;
+
                if (mixed & IAX_RATE_16KHZ) {
                        srate = 16000;
                }