Infobip Whatsapp messages not generating a contact
If you notice that WhatsApp messages from a specific number are not generating a CTLive contact, this may stem from a previous network error or a configuration issue.
When a new message arrives in IMChannel, it checks Redis to determine whether it relates to an existing contact or if a new contact needs to be created. If the contact has already been created in IMChannel but CTLive is unaware of it, a misalignment occurs, preventing any messages from that number from being processed for the next 24 hours.
To debug and resolve this issue, you will need to connect to Redis and examine existing sessions.
If you are using a Docker CTLive deployment, ensure you have SSH access to your server.
Launch redis-cli
from the Redis container, providing the authentication password (refer to your .env
file):
docker-compose exec -it redis redis-cli --pass "YOUR_REDIS_PASSWORD"
Once in redis-cli
, you can view all the IMChannel contacts currently stored:
keys IMChannel:Contact:*
You could find some keys with the following format
IMChannel:Contact:<caller_number>:<callee_number>
To delete an existing contact, use the following command: