[asterisk-users] when we try to add CURL code to file channel.c we get an error - undefined reference to curl_easy_init
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Mon Mar 3 11:35:52 CST 2008
On Mon, Mar 03, 2008 at 11:13:28AM -0600, Tilghman Lesher wrote:
> On Monday 03 March 2008 07:18, Prashant Sharma wrote:
> > I'm trying to make asterisk detect some DTMF digits during a call and post
> > them (can't use WaitExten or Features.conf).
>
> I would suggest that you implement that in logger.c and configure a line to
> send logs to an HTTP POST (via logger.conf), with the
> pbx_substitute_variables_helper function, using the ${CURL()} function
> directly. You may need to "preload => func_curl.so" in modules.conf, but
> that will work well.
Or a simple log watcher.
tail -n0 -f /var/log/asterisk/debug | \
grep 'DTMF digit: [0-9#*]' | \
your_custum_filter
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list