chaiwats2 / php-sip

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

cannot set sip proxy port #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I added a simple setPort() method to the class for personal use, however I did 
not see any way to set the proxy port.

Since it is not GPL I will contribute my patch, which really is not much of 
one, but it lets you cut and paste instead of typing :)

  /**
   * Sets SIP Proxy port
   *
   * @param $port
   */
  public function setPort($port)
  {
    $this->port = $port;
  }

Original issue reported on code.google.com by trixter%...@gtempaccount.com on 20 Apr 2011 at 9:20

GoogleCodeExporter commented 8 years ago
Hi, thanks for contribution... however existing setProxy method can take the 
argument in the following format: proxy_address:port_number for example:

$api->setProxy(10.10.10.1:5678);

See http://code.google.com/p/php-sip/source/browse/trunk/PhpSIP.class.php#556

Regards,
Chris

Original comment by level7systems@googlemail.com on 20 Apr 2011 at 9:25

GoogleCodeExporter commented 8 years ago
Oh I will just use that then :)

Original comment by trixter%...@gtempaccount.com on 20 Apr 2011 at 9:38

GoogleCodeExporter commented 8 years ago

Original comment by level7systems@googlemail.com on 20 Apr 2011 at 9:44