odannyc / php-sip

A PHP library to have SIP options. OPTIONS/INVITE/REGISTER
1 stars 0 forks source link

Minimum bind port setting broken #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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