<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important">Hello all,</p>
<p style="margin:0px 0px 1.2em!important">So I discarded all previous changes and re-worked it all on sofia instead of console.<br>You may want to check it out on </p>
<p style="margin:0px 0px 1.2em!important"><a href="https://freeswitch.org/stash/users/davidcsi/repos/freeswitch/browse">https://freeswitch.org/stash/users/davidcsi/repos/freeswitch/browse</a></p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">freeswitch@core&gt; sofia

USAGE:
--------------------------------------------------------------------------------
sofia filter &lt;filter-expression|off&gt;
sofia global siptrace &lt;on|off&gt;
sofia        capture  &lt;on|off&gt;
             watchdog &lt;on|off&gt;

sofia profile &lt;name&gt; [start | stop | restart | rescan] [wait]
                     flush_inbound_reg [&lt;call_id&gt; | &lt;[user]@domain&gt;] [reboot]
                     check_sync [&lt;call_id&gt; | &lt;[user]@domain&gt;]
                     [register | unregister] [&lt;gateway name&gt; | all]
                     killgw &lt;gateway name&gt;
                     [stun-auto-disable | stun-enabled] [true | false]]
                     siptrace &lt;on|off&gt;
                     capture  &lt;on|off&gt;
                     watchdog &lt;on|off&gt;

sofia &lt;status|xmlstatus&gt; profile &lt;name&gt; [reg [&lt;contact str&gt;]] | [pres &lt;pres str&gt;] | [user &lt;user@domain&gt;]
sofia &lt;status|xmlstatus&gt; gateway &lt;name&gt;

sofia loglevel &lt;all|default|tport|iptsec|nea|nta|nth_client|nth_server|nua|soa|sresolv|stun&gt; [0-9]
sofia tracelevel &lt;console|alert|crit|err|warning|notice|info|debug&gt;

sofia help
--------------------------------------------------------------------------------
</code></pre><p style="margin:0px 0px 1.2em!important">sofia:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">freeswitch@core&gt; sofia filter

sofia filter is disabled.  (sofia filter &lt;filter-expression|off&gt;) - Enable, disable filtering, set &#39;filer-expression&#39; to use as filter. Set &#39;filter-expression&#39; to &#39;off&#39; to stop filtering
</code></pre><p style="margin:0px 0px 1.2em!important">Comments are very welcome!</p><p style="margin:0px 0px 1.2em!important"><br></p><p style="margin:0px 0px 1.2em!important">Please whoever is able, test and comment!</p>
<p style="margin:0px 0px 1.2em!important">Thanks!!</p>
<p style="margin:0px 0px 1.2em!important">David</p>
<div title="MDH:SGVsbG8gYWxsLDxkaXY+PGJyPjwvZGl2PjxkaXY+U28gSSBkaXNjYXJkZWQgYWxsIHByZXZpb3Vz
IGNoYW5nZXMgYW5kIHJlLXdvcmtlZCBpdCBhbGwgb24gc29maWEgaW5zdGVhZCBvZiBjb25zb2xl
LjwvZGl2PjxkaXY+WW91IG1heSB3YW50IHRvIGNoZWNrIGl0IG91dCBvbiZuYnNwOzwvZGl2Pjxk
aXY+PGJyPjwvZGl2PjxkaXY+aHR0cHM6Ly9mcmVlc3dpdGNoLm9yZy9zdGFzaC91c2Vycy9kYXZp
ZGNzaS9yZXBvcy9mcmVlc3dpdGNoL2Jyb3dzZTxicj48L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2
PmBgYDwvZGl2PjxkaXY+PGRpdj5mcmVlc3dpdGNoQGNvcmUmZ3Q7IHNvZmlhPC9kaXY+PGRpdj48
YnI+PC9kaXY+PGRpdj5VU0FHR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yB0byB1c2UgYXMgZmlsdGVyLiBTZXQgJ2ZpbHRlci1leHByZXNzaW9uJyB0
byAnb2ZmJyB0byBzdG9wIGZpbHRlcmluZzwvZGl2PjwvZGl2PjxkaXY+YGBgPC9kaXY+PGRpdj48
YnI+PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRp
dj5Db21tZW50cyBhcmUgdmVyeSB3ZWxjb21lITwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+VGhh
bmtzISE8L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PkRhdmlkPC9kaXY+" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&amp;type=zerocontent&amp;guid=c277f8bc-873c-47d1-89cf-90b5dae49e16"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 28, 2016 at 11:27 PM, David Villasmil <span dir="ltr">&lt;<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Great, thanks mike.<div><br></div><div>David</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&amp;type=zerocontent&amp;guid=b52a00c1-0242-4522-950e-67b0f9388d07"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Aug 26, 2016 at 10:06 PM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="word-wrap:break-word">sorry for the delay.. take a look in sofia.c<div><br></div><div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#d53bd3">static</span><span style="color:#f5f5f5"> </span><span>void</span><span style="color:#f5f5f5"> </span><span style="color:#0220b3;background-color:#00a6b2">logger</span><span style="color:#f5f5f5">(</span><span>void</span><span style="color:#f5f5f5"> *</span><span style="color:#c33720">logarg</span><span style="color:#f5f5f5">, </span><span>char</span><span style="color:#f5f5f5"> </span><span style="color:#d53bd3">const</span><span style="color:#f5f5f5"> *</span><span style="color:#c33720">fmt</span><span style="color:#f5f5f5">, </span><span>va_list</span><span style="color:#f5f5f5"> </span><span style="color:#c33720">ap</span><span style="color:#f5f5f5">)</span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span>{   </span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span>    </span><span style="color:#d53bd3">if</span><span> (!fmt) </span><span style="color:#d53bd3">return</span><span>;</span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);min-height:17px"><span></span><br></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span>    switch_log_vprintf(SWITCH_CHAN<wbr>NEL_LOG_CLEAN, mod_sofia_globals.tracelevel, fmt, ap);</span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span>}</span></div></div><div><br></div><div>and also in </div><div><br></div><div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span>switch_status_t</span><span style="color:#f5f5f5"> </span><span style="color:#5330e1">sofia_init</span><span style="color:#f5f5f5">(</span><span>void</span><span style="color:#f5f5f5">)</span></div></div><div><br></div><div>where it binds the logger function</div><div><br></div><div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span>su_log_redirect(tport_log, </span><span style="background-color:#00a6b2">logger</span><span>, </span><span style="color:#34bbc7">NULL</span><span>);</span></div></div><div><br></div><div>Mike</div><div><div><div><br></div><div><br><div><blockquote type="cite"><div>On Aug 26, 2016, at 11:33 AM, David Villasmil &lt;<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.co<wbr>m</a>&gt; wrote:</div><br><div><div dir="ltr">Nice, thanks</div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&amp;type=zerocontent&amp;guid=a5e7a10a-840a-4db7-9024-68d440fd5a40"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 26, 2016 at 5:26 PM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">give me a few minutes to finish my meeting and I&#39;ll get you that <div><div><span></span><br><br>On Friday, August 26, 2016, David Villasmil &lt;<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.co<wbr>m</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Michael, <div><br></div><div>Agreed, i just couldn&#39;t find the related code. It&#39;s important to note i&#39;m no expert :)</div><div><br></div><div>Regards,</div><div><br></div><div>David</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&amp;type=zerocontent&amp;guid=969a263b-c225-4877-890f-9e4766acd57a"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 26, 2016 at 5:14 PM, Michael Jerris <span dir="ltr">&lt;<a>mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">this is interesting but I&#39;m much more interested in this in mod_sofia at the callback we get for sip tracing.  I think this is interesting too but maybe better to do down one level in logger so you can do this to log files and other things too.<div><div><span></span><br><br>On Friday, August 26, 2016, David Villasmil &lt;<a>david.villasmil.work@gmail.co<wbr>m</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><p style="margin:0px 0px 1.2em!important">Hello guys,</p><p style="margin:0px 0px 1.2em!important">You can get all SIP messages coming and going to a specific profile by typing on the console:<br>“sofia profile [PROFILE] siptrace on”</p><p style="margin:0px 0px 1.2em!important">But if you have traffic on the box, this is a NIGHTMARE, as you get ALL messages…</p><p style="margin:0px 0px 1.2em!important">So I made a modification to mod_console.c to add a filtering for siptraces.</p><p style="margin:0px 0px 1.2em!important">By enabling the filter like so:</p><p style="margin:0px 0px 1.2em!important">“console filter [expression]”</p><p style="margin:0px 0px 1.2em!important">Where “expression” can be anything present in the packets you want to get, be it username, dialed number, whatever. Only those messages on which the expression was found will be shown:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">freeswitch@MacBookPro-David&gt; console

USAGE:
------------------------------<wbr>------------------------------<wbr>--------------------
console help
console loglevel [[0-7] | &lt;loglevel_string&gt;]
console filter &lt;filter-expression&gt;  &lt;&lt;&lt;——— NEW functionality
console colorize [on|off|toggle]
——————————————————————————————<wbr>——————————
</code></pre><pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">freeswitch@MacBookPro-David&gt; console filter

USAGE:
------------------------------<wbr>------------------------------<wbr>--------------------
console filter &lt;filter-expression|off&gt;

Enable, disable filtering, Only messages containing the &#39;filer-expression&#39; will be printed out.
set &#39;filter-expression&#39; to &#39;off&#39; to stop filtering
——————————————————————————————<wbr>——————————
</code></pre><p style="margin:0px 0px 1.2em!important">Typing:<br><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248)">console filter 1001</code></p><p style="margin:0px 0px 1.2em!important">Would result in only seeing messages which include 1001</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">EXPRESSION (1001) FOUND IN:
 &lt;&lt;&lt;recv 1255 bytes from tcp/[127.0.0.1]:52917 at 21:43:11.739980:
   ------------------------------<wbr>------------------------------<wbr>------------
   INVITE <a>sip:1001@127.0.0.1</a> SIP/2.0
   Call-ID: 6f9cdc511446251e254e9e617d2664<a href="mailto:7c@0:0:0:0:0:0:0:0" target="_blank"><wbr>7c@0:0:0:0:0:0:0:0</a>
   CSeq: 2 INVITE
   From: &quot;1000&quot; &lt;<a>sip:1000@127.0.0.1</a>&gt;;tag=45dd8<wbr>65b
   To: &lt;<a>sip:1001@127.0.0.1</a>&gt;
   Max-Forwards: 70
   Contact: &quot;1000&quot; &lt;<a href="http://sip:1000@127.0.0.1:52917/" target="_blank">sip:1000@127.0.0.1:52917</a>;tran<wbr>sport=tcp;registering_acc=127_<wbr>0_0_1&gt;
   User-Agent: Jitsi2.8.5426Mac OS X
   Content-Type: application/sdp
   Via: SIP/2.0/TCP 127.0.0.1:52917;branch=z9hG4bK<wbr>-343435-1dc76531757a26482fa8ff<wbr>1bac9acf3b
   Proxy-Authorization: Digest username=&quot;1000&quot;,realm=&quot;127.0.0<wbr>.1&quot;,nonce=&quot;1a2be9b9-fa12-4763-<wbr>b00c-dfeacc79f9fd&quot;,uri=&quot;<a>sip:10<wbr>01@127.0.0.1</a>&quot;,response=&quot;fce7bf<wbr>74772a149fe39ec7e50ec61c69&quot;,al<wbr>gorithm=MD5,qop=auth,cnonce=&quot;x<wbr>yz&quot;,nc=00000001
   Content-Length: 566

   v=0
   o=<a href="http://1000-jitsi.org/" target="_blank">1000-jitsi.org</a> 0 0 IN IP4 127.0.0.1
   s=-
   c=IN IP4 127.0.0.1
   t=0 0
   m=audio 5119 RTP/AVP 96
   a=rtpmap:96 opus/48000/2
   a=fmtp:96 usedtx=1
   a=extmap:1 urn:ietf:params:rtp-hdrext:csr<wbr>c-audio-level
   a=extmap:2 urn:ietf:params:rtp-hdrext:ssr<wbr>c-audio-level
   a=rtcp-xr:voip-metrics
   m=video 5121 RTP/AVP 97 99
   a=recvonly
   a=rtpmap:97 H264/90000
   a=fmtp:97 profile-level-id=4DE01f;packet<wbr>ization-mode=1
   a=imageattr:97 send * recv [x=[0-1920],y=[0-1200]]
   a=rtpmap:99 H264/90000
   a=fmtp:99 profile-level-id=4DE01f
   a=imageattr:99 send * recv [x=[0-1920],y=[0-1200]]
   ------------------------------<wbr>------------------------------<wbr>------------

&gt;&gt;&gt;
</code></pre><p style="margin:0px 0px 1.2em!important">My goal is to extend this to also filter other messages, like call processing, etc. (ERR messages would not be filtered out)</p><p style="margin:0px 0px 1.2em!important">I’m wondering whether it is possible to do a pull request on this?</p><p style="margin:0px 0px 1.2em!important">Regards,</p><p style="margin:0px 0px 1.2em!important">David</p>
<div title="MDH:SGVsbG8gZ3V5cyw8ZGl2Pjxicj48L2Rpdj48ZGl2PllvdSBjYW4gZ2V0IGFsbCBTSVAgbWVzc2Fn
ZXMgY29taW5nIGFuZCBnb2luZyB0byBhIHNwZWNpZmljIHByb2ZpbGUgYnkgdHlwaW5nIG9uIHRo
ZSBjb25zb2xlOjwvZGl2PjxkaXY+InNvZmlhIHByb2ZpbGUgW1BST0ZJTEVdIHNpcHRyYWNlIG9u
Ijxicj48L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PkJ1dCBpZiB5b3UgaGF2ZSB0cmFmZmljIG9u
IHRoZSBib3gsIHRoaXMgaXMgYSBuaWdodG1hcmUsIGFzIHlvdSBnZXQgQUxMIG1lc3NhZ2VzLi4u
PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5TbyBJIG1hZGUgYSBtb2RpZmljYXRpb24gdG8gbW9k
X2NvbnNvbGUuYyB0byBhZGQgYSBmaWx0ZXJpbmcgZm9yIHNpcHRyYWNlcy48L2Rpdj48ZGl2Pjxi
cj48L2Rpdj48ZGl2PkJ5IGV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thPWltYWdlYXR0cjo5OSBzZW5kICogcmVjdiBbeD1bMC0xOTIwXSx5PVsw
LTEyMDBdXTwvZGl2PjxkaXY+Jm5ic3A7ICZuYnNwOy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTwvZGl2PjxkaXY+
PGJyPjwvZGl2PjxkaXY+Jmd0OyZndDsmZ3Q7YGBgPC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj48
L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PkknbSB3b25kZXJpbmcgd2hldGhlciBpdCBpcyBwb3Nz
aWJsZSB0byBkbyBhIHB1bGwgcmVxdWVzdCBvbiB0aGlzPzwvZGl2PjxkaXY+PGJyPjwvZGl2Pjxk
aXY+UmVnYXJkcyw8L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PkRhdmlkPC9kaXY+PGRpdj48YnI+
PC9kaXY+" style="min-height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&amp;type=zerocontent&amp;guid=cfd07edd-9bc3-46e7-873c-065f88f798b0"><font color="#ffffff" size="1">ᐧ</font></div>
</blockquote>
</div></div></blockquote></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div><br></div></div></div></div><br></div></div><span class="">______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></span></blockquote></div><br></div>
</blockquote></div><br></div>