arno72 / php-sip

Automatically exported from code.google.com/p/php-sip
0 stars 0 forks source link

Minimum bind port setting broken #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.running out of bind ports
2.cannot bind to lower ports, so i get an error
3.minimum port setting does not work.

What is the expected output? What do you see instead?
an error 

What version of the product are you using? On what operating system?

centos

Please provide any additional information below.
At line 358
      if ($prev > $this->min_port)
      {
        $src_port = $this->min_port;
      }

Should be

      if ($prev < $this->min_port)
      {
        $src_port = $this->min_port;
      }

Original issue reported on code.google.com by intelafo...@gmail.com on 15 Aug 2013 at 10:33