[Home]

Summary:ASTERISK-19846: sip users/peers not matched on incoming invite when there are multiple A records in DNS
Reporter:John Fawcett (johnfawcett)Labels:
Date Opened:2012-05-06 18:01:24Date Closed:2012-05-06 21:55:01
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:10.4.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:centos 6.2, asterisk 10.4.0Attachments:
Description:when a sip provider has multiple A records, for example sip.sipnl.net and a sip user is setup with host=sip.sipnl.net. If an INVITE arrives from an ip which is different to the one registered/stored, then it is not matched against the sip user. So the calls are treated as anonymous even though they would match the host name specified. Seems asterisk checks only a single A record of the specified host.

One workaround is to have a sip user per IP address (with the IP address configured instead of host name), but this is not maintainable, if the provider changes or adds ips, the system will change behaviour without warning and is undesirable for a production system.
Comments:By: Michael L. Young (elguero) 2012-05-06 21:54:13.605-0500

This is the current expected behavior.  The first A record returned is what gets used.

A patch to add this feature of handling multiple A records would be needed and would be welcomed.

Features requests are no longer submitted to or accepted through the issue tracker without a patch. Features requests are openly discussed on the mailing lists [1] and Asterisk IRC channels and made note of by Bug Marshals.

[1] http://www.asterisk.org/support/mailing-lists