[asterisk-dev] [svn-commits] tilghman: branch 1.4 r87120 - /branches/1.4/funcs/func_curl.c
Russell Bryant
russell at digium.com
Fri Oct 26 20:10:52 CDT 2007
Tilghman Lesher wrote:
> I believe you're mistaken. I don't see any code in pbx.c where it is assured
> that a channel cannot be NULL when calling functions. I checked both
> ast_func_read and pbx_substitute_variables_helper_full.
This is the commit that I was referring to:
:~/src/asterisk/1.4$ svn log -r 61765
------------------------------------------------------------------------
r61765 | russell | 2007-04-23 13:17:00 -0500 (Mon, 23 Apr 2007) | 5 lines
Some dialplan functions, such as CUT(), expect to operate on variables on a
channel. So, this little hack lets them work in places where a channel doesn't
exist, such as within DUNDi configuration.
(issue #9465, reported and patched by Corydon76, testing by blitzrage)
------------------------------------------------------------------------
However, the code has since been changed such that it only creates the bogus
channel in some circumstances, and not all of them. In that case, I think there
are some other dialplan functions that I made the same autoservice addition to
that need the same fix.
--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.
More information about the asterisk-dev
mailing list