[Freeswitch-dev] uuid in mod_spandsp_fax.c
anita.hall at simmortel.com
Tue Mar 27 02:51:02 MSD 2012
This is my first post to dev mailing list and I am pretty excited :)
I want the uuid prefixed for spandsp internal messages in the log.
I noticed these are the ones printed by line 285 in mod_spandsp_fax.c
switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, "%s", msg);
The lines which do print the uuid use the session variable
"=== Negotiation Result =============\n");
So basically, I have to modify the function
void spanfax_log_message(int level, const char *msg)
so that it accepts user_data from which I can get the session.
What other change do I have to do to make sure that this new function
definition will be used correctly else where?
And, if I am not thinking in the right direction, is there a simpler way to
achieve this ?
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev