[asterisk-users] Multiple real times for same object

Dovid Bender dovid at telecurve.com
Mon Apr 13 09:36:48 CDT 2020


What should Asterisk do if one of the real time methods fail? I have in
musiconhold => curl,http://localhost/moh.php,1
musiconhold => mysql,db-east,asterisk_moh,2

If the first server sends back a 404 it does not go to the second
connection. Shouldn't a 404 be considered a failure and it should then move
over to the next rt engine?

On Thu, Jan 2, 2020 at 7:06 AM Joshua C. Colp <jcolp at sangoma.com> wrote:

> On Sun, Dec 29, 2019 at 10:22 AM Dovid Bender <dovid at telecurve.com> wrote:
>> Hi,
>> Is there any way in Asterisk to have multiple forms of real time for the
>> same object? For instance my main source for real time is MySQL. I want a
>> fail over that if a mailbox is say not in the MySQL database for Asterisk
>> to try via curl.
> The realtime configuration describes a failover method with priorities[1],
> but I'm not sure if anyone has used it in recent times or if it works with
> voicemail. I'm also not sure if it'll behave exactly as you want and kick
> in when it's not found.
> [1]
> https://github.com/asterisk/asterisk/blob/master/configs/samples/extconfig.conf.sample#L52
> --
> Joshua C. Colp
> Asterisk Technical Lead
> Sangoma Technologies
> Check us out at www.sangoma.com and www.asterisk.org
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20200413/c4e85de0/attachment.html>

More information about the asterisk-users mailing list