[Asterisk-Users] How to handle "provider UNREACHABLE" in the dialplan?

Florian Overkamp florian at obsimref.com
Fri Feb 3 00:37:25 MST 2006


Hi Ronald,

Ronald Wiplinger wrote:
> voipbuster/xxxx           194.221.62.201              5060     UNREACHABLE
> voipstunt/xxxxx             194.120.0.200               5060     

> a reload shows than:
> 
> voipbuster/xxxx           80.239.235.200             5060     UNREACHABLE
> voipstunt/xxxxx           194.120.0.200               5060     UNREACHABLE

Seems like voipbuster is doing round-robin DNS for redundancy. Bad 
choice with asterisk, since asterisk only looks up DNS on startup or 
reloads.

You could read out all the entries in the DNS zone and create your own 
list of entries in /etc/hosts, and then create multiple asterisk peers: 
voipbuster1, voipbuster2, etc... Then you can use regular dialplan logic 
to cycle through all of them.

Florian



More information about the asterisk-users mailing list