You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/utils/pdbt/docs/network_protocol.txt

17 lines
863 B

* Network protocol of pdb server and sip-router module *
The pdb server daemon listen only for UDP messages. The requests contains in
the UDP payload the number starting with a international prefix, e.g. '49' for
germany. It must contain only numbers like this: '49721913742734'.
The answer packet contains then the number string from the respective request,
null-terminated and followed by two bytes which represents the result. This
two bytes are interpreted as 16 bit signed integer value, the UDP payload is
in network byte order (most significant byte first).
Possible values for the search request:
* 0: the number could not be found
* 1-999 the number was found and the result represents its carrier ID
* 1000: the number could be found, but its owned from a carriers which is
not interesting for us and belongs to the "other carrier" group