Skip to main content
Version: v4 (Stable)

FindUserDialNumber

FindUserDialNumber(UserId AS Integer, DriverId AS Integer, Address AS String[, Active AS Boolean]) AS Integer

Searches for the first user having the call number <Address> for the call driver referred to by <DriverId>, starting from the user id following the id defined in <UserId> (0 at the beginning). If the user is found, his ID is returned in <UserId>.

If the optional parameter <Active> is TRUE, the searched number must be active (TRUE by default).

The <DriverId> parameter can specify a specific driver by its identifier or a type of driver by using a combination of the following values:

  • &h8001 = Beep driver
  • &h8002 = Vocal driver
  • &h8004 = SMS driver
  • &h8008 = Pager driver
  • &h8010 = Fax driver
  • &h8020 = Email driver
  • &h8040 = Printer driver
  • &h8100 = AlertMobile driver

Returns an error code (0 if user found, 8 if not found).