On Mon, Apr 13, 2020 at 12:08 PM Dovid Bender <do...@telecurve.com> wrote:

>
>
> On Mon, Apr 13, 2020 at 10:45 AM Joshua C. Colp <jc...@sangoma.com> wrote:
>
>> On Mon, Apr 13, 2020 at 11:38 AM Dovid Bender <do...@telecurve.com>
>> wrote:
>>
>>> Josh,
>>>
>>> What should Asterisk do if one of the real time methods fail? I have in
>>> extconfig.conf
>>> 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?
>>>
>>
>> Depends on what the realtime driver provides back to the core in what
>> scenario. I've never used or touched the curl stuff, so dunno.
>>
>>
> I tried fishing around the code but can't seem to find it. Where in
> Asterisk does the code evaluate the response from curl?
>

The realtime code for CURL is res/res_config_curl.c which seems to use
funcs/func_curl.c underneath. Realtime stuff is in main/config.c

-- 
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

Reply via email to