I am quite a newbe in Kamailio scripts and further to my effort to implement push notification, I am adding to the contact header device ID.

I have two problems:
1. When the register of the callee expires Kamailio frees the record so the information on the calle is not available.
2. Even when the callee is registered I do not how to access the contact field. Tried reg_fetch_contacts(...,"callee") and there is a lot of info but not the contact header.

Thanks and regards,