*SIGH* evidently there&#39;s a magic keystroke that means &quot;send&quot; in GMail and I accidentally pressed it.<br><br>As I was saying, it looks like this function is only called 6 times:<br><br><span style="font-family:courier new,monospace">&lt;139&gt;:grep -n spanfax_log_message mod_spandsp_fax.c</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">262:void spanfax_log_message(int level, const char *msg)</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">716:        span_log_set_message_handler(&amp;fax-&gt;logging, spanfax_log_message);</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">717:        span_log_set_message_handler(&amp;t30-&gt;logging, spanfax_log_message);</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">772:            span_log_set_message_handler(&amp;t38-&gt;logging, spanfax_log_message);</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">773:            span_log_set_message_handler(&amp;t30-&gt;logging, spanfax_log_message);</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">827:     span_log_set_message_handler(&amp;pvt-&gt;t38_gateway_state-&gt;logging, spanfax_log_message);</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">828:     span_log_set_message_handler(&amp;pvt-&gt;t38_core-&gt;logging, spanfax_log_message);</span><br style="font-family:courier new,monospace"><br>I&#39;d wager that each of those calls to the logging function would have knowledge of the sesssion. I&#39;d recommend adding a 3rd argument to the logging function. In this case, I&#39;d just add a const char *uuid and then change each call to that function to supply the UUID as the 3rd argument. If there is no knowledge of the session or uuid then just put an empty string as the argument.<br>
<br>In any case, happy coding! :)<br><br>-MC<br><br><br><div class="gmail_quote">On Tue, Mar 27, 2012 at 1:15 AM, Anita Hall <span dir="ltr">&lt;<a href="mailto:anita.hall@simmortel.com">anita.hall@simmortel.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes Mitch, I did that but the Fax internal messages are printed by this line which has no knowledge of the session. <br>
  switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, &quot;%s&quot;, msg);<br><br>I do not think, it can print the uuid without knowing the session ?<br>
<br>Here is a log snippet to show uuid prefixed at other places except line 286 of mod_spandsp_fax.c shown above<br><br>2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30   1... ....= Extension indicator: Set<br>

2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30   .... ..0.= Compressed/uncompressed mode: Compressed<br>2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30   .... .1..= Error correction mode (ECM): ECM<br>

2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30   .... 0...= Frame size: 256 octets<br>2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30   .1.. ....= T.6 coding: Set<br>2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30   0... ....= Extension indicator: Not set<br>

2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 Selected compression T.6 (3)<br>46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:327 === Negotiation Result =======================================================<br>

46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:328 Remote station id:<br>46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:329 Local station id:  Sangoma Fax Ident<br>

46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:330 Transfer Rate:     4800<br>46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:332 ECM status         on<br>

46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:333 remote country:<br>46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:334 remote vendor:<br>

46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:335 remote model:<br>46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:337 =========================================================================<br>

<br><br clear="all">regards,<br>Anita<br>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>