Asterisk 11: Multiple Hosts in one context

Hello,

we have problems with SIP-Providers using multiple IPs behind one FQDN.
Let’s assume there is a provider with FQDN prov.sip.org und two IPs 1.1.1.1 and 2.2.2.2.
sip.conf looks like this:

[general] 
register=>012345:Password@prov.sip.org:5060/012345
...

[provider] 
host=prov.sip.org 
... 

When resolving the DNS Asterisk will only take the first IP 1.1.1.1 (is this still true in Asterisk 11?). If a call comes in from 2.2.2.2 the call will be rejected.

We know that there is a workaround with creating multiple peers like described here: mail-archive.com/asterisk-u … 98920.html

But is there also a way in Asterisk 11 like

[provider] 
host=1.1.1.1,2.2.2.2 
... 

or

[provider] 
host=1.1.1.1&2.2.2.2 
... 

etc. ?

Kind regards,
Norman

I think not.

You can check Asterisk support for DNS SRV. I am not sure what is the current support for it on Asterisk.