[Asterisk-Users] How to handle "provider UNREACHABLE" in the
dialplan?
Ronald Wiplinger
ronald at elmit.com
Fri Feb 3 04:21:09 MST 2006
Florian Overkamp wrote:
> 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,
that is exactly the point what I am looking for. How can I use the next
peer in the dial logic? I was trying DIALSTATUS, ... but I could not
make it.
bye
Ronald
More information about the asterisk-users
mailing list