[asterisk-bugs] [Asterisk 0010725]: moh does not play during calls to func_curl

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Sep 14 17:50:14 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10725 
====================================================================== 
Reported By:                mnicholson
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10725
Category:                   Functions/func_curl
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             09-14-2007 16:51 CDT
Last Modified:              09-14-2007 17:50 CDT
====================================================================== 
Summary:                    moh does not play during calls to func_curl
Description: 
func_curl does not service the channel during execution which causes music
on hold to stop playing during curl execution.  This can be fixed by
starting an autoservice on the channel before doing any long running
operations.
====================================================================== 

---------------------------------------------------------------------- 
 qwell - 09-14-07 17:50  
---------------------------------------------------------------------- 
So, I'm looking at this, and I'm pondering...

It looks like if you try to do an ast_autoservice_start more than once, it
does nothing.  Once you ast_autoservice_stop, that's it - it's done.

The reason I was pondering this, is nested functions..  Imagine the
following scenario...

Set(blah=${CURL(${CURL(http://myurl/that/returns/another/url)})})

Once the first (inner) CURL is finished, it'll remove the autoservice from
the channel, and the audio will stop during the second. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-14-07 17:50  qwell          Note Added: 0070588                          
======================================================================




More information about the asterisk-bugs mailing list