This looks like something that could go on the wiki. How about creating a new page and linking to it from this page:<br><a href="http://wiki.freeswitch.org/wiki/Examples">http://wiki.freeswitch.org/wiki/Examples</a><br><br>
Be sure to give it a category of "Examples". If you need any help at all with wiki markup or getting started just let me know. Join us on IRC: #freeswitch at <a href="http://irc.freenode.net">irc.freenode.net</a>. My nick is mercutioviz.<br>
<br>Thanks for sharing!<br>-MC<br><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 2:54 AM, OwenW <span dir="ltr"><<a href="mailto:williams.owen@gmail.com">williams.owen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
This is a quick guide as to one approach to logging the sip messages between<br>
a Sip phone and freeswitch. There are other methods (e.g. wireshark) - feel<br>
free to reply if you have other alternatives.<br>
<br>
It involves putting a java TCP Proxy (grinder) in front of freeswitch and<br>
reconfiguring your SipPhone to send SIP to the proxy.<br>
<br>
The software (grinder) is Java based so will require an JDK.<br>
<br>
Once you've downloaded Grinder create a file called startProxy5061.cmd and<br>
put the following into it:<br>
call setGrinderEnv.cmd<br>
java -cp %CLASSPATH% net.grinder.TCPProxy -console -localhost 192.168.30.10<br>
-localport 5061 -remotehost 192.168.30.10 -remoteport 5060 ><br>
freeswitch_sip.log<br>
<br>
The proxy forwards all traffic it receives on 5061 to 5060 and logs to<br>
freeswitch_sip.log.<br>
<br>
You'll need to change the IPs above.<br>
Create another file called setGrinderEnv.cmd and put the following in to it:<br>
set GRINDERPATH=C:\dev\apps\grinder-3.3<br>
set GRINDERPROPERTIES=C:\dev\apps\grinder-3.3\grinder.properties<br>
set CLASSPATH=%GRINDERPATH%\lib\grinder.jar;%CLASSPATH%<br>
set JAVA_HOME=c:\Program Files\java\jdk1.6.0_11<br>
PATH=%JAVA_HOME%\bin;%PATH%<br>
<br>
You'll need to change the paths above.<br>
<br>
The soft phone will need to be configured to use port 5061 instead of 5060<br>
as the proxy.<br>
<br>
Owen<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://n2.nabble.com/How-To-Sip-Logging-and-Freeswitch-tp4802944p4802944.html" target="_blank">http://n2.nabble.com/How-To-Sip-Logging-and-Freeswitch-tp4802944p4802944.html</a><br>
</font><div class="im">Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>