pumpagubben created an issue (kamailio/kamailio#4359)
### Description
There is a limit in
[resolve.c](https://github.com/kamailio/kamailio/blob/4e2a93074476a3e1747eb46cb197cd8f492d5902/src/core/resolve.c#L724)
that blocks session with DNS responses containing over 100 record results.
This effectively blocks Kamailio from signaling with large SIP clusters since
the calls are dropped with an error.
### Expected behavior
Kamailio can handle any number of hosts/records in a DNS response.
Or if a threshold is desired - truncate the response to desired threshold
ignoring rest of the records.
#### Actual observed behavior
The [code goes to
error](https://github.com/kamailio/kamailio/blob/4e2a93074476a3e1747eb46cb197cd8f492d5902/src/core/resolve.c#L834)
and the call fails if more than threshold records are returned.
### Possible Solutions
This limit should be configurable and the code could instead gracefully
truncate the response and continue if you think large results are problematic
(with DEBUG/VERBOSE level message instead of ERROR).
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4359
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the
sender!