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
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to