[sr-dev] [kamailio] PDB module prefixes (#433)

Stefan Mititelu notifications at github.com
Tue Dec 8 23:52:39 CET 2015


You should try have a look in pdbt.c, query_udp():
```
short int carrierid;
...
short int * idptr;
```

You should try have a look in pdb_server.c, udp_server():
```
case PDB_VERSION_1:
...
                short int *_id
```

Try to change all the _short int_ related to the carrier id to uint32_t (or *unsigned int*).
For both of them, you should try to replace ntohs/htons with ntohl/htonl (see [1]).

[1] http://linux.die.net/man/3/ntohs

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/433#issuecomment-163046622
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151208/9152e6ec/attachment.html>


More information about the sr-dev mailing list