Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A sample php code that you can use for debug can be downloaded from this link:
Sample Test PHP script:

View file
namegetgatewaytest (1).php

The sample code will always return 'gateway1'.

...

You can download the sample PHP code that will connect to a MySQL Database from the link below:
Sample PHP Script:

View file
namegetgateway (1).php

The sample PHP script accepts the following parameters:
db_url: URL of database to connect to. Default: localhost
db_user: Username to connect to database. Default: root
db_password: Password to connect to database. Default: sangoma
db_name: Database name. Default: sangoma_sbc
db_tableTable name. Default: gateways
db_number_column: Name of column that contains the number to look-up. Default: number
db_gateway_column: Name of column that contatins the gateway name. Default: gateway

...