How To: Sip Logging and Freeswitch
This is a quick guide as to one approach to logging the sip messages between a Sip phone and freeswitch. There are other methods (e.g. wireshark) - feel free to reply if you have other alternatives. It involves putting a java TCP Proxy (grinder) in front of freeswitch and reconfiguring your SipPhone to send SIP to the proxy. The software (grinder) is Java based so will require an JDK. Once you've downloaded Grinder create a file called startProxy5061.cmd and put the following into it: call setGrinderEnv.cmd java -cp %CLASSPATH% net.grinder.TCPProxy -console -localhost 192.168.30.10 -localport 5061 -remotehost 192.168.30.10 -remoteport 5060 > freeswitch_sip.log The proxy forwards all traffic it receives on 5061 to 5060 and logs to freeswitch_sip.log. You'll need to change the IPs above. Create another file called setGrinderEnv.cmd and put the following in to it: set GRINDERPATH=C:\dev\apps\grinder-3.3 set GRINDERPROPERTIES=C:\dev\apps\grinder-3.3\grinder.properties set CLASSPATH=%GRINDERPATH%\lib\grinder.jar;%CLASSPATH% set JAVA_HOME=c:\Program Files\java\jdk1.6.0_11 PATH=%JAVA_HOME%\bin;%PATH% You'll need to change the paths above. The soft phone will need to be configured to use port 5061 instead of 5060 as the proxy. Owen -- View this message in context: http://n2.nabble.com/How-To-Sip-Logging-and-Freeswitch-tp4802944p4802944.htm... Sent from the freeswitch-users mailing list archive at Nabble.com.
Oops here's the link to the java proxy software. http://grinder.sourceforge.net/ -- View this message in context: http://n2.nabble.com/How-To-Sip-Logging-and-Freeswitch-tp4802944p4802952.htm... Sent from the freeswitch-users mailing list archive at Nabble.com.
This looks like something that could go on the wiki. How about creating a new page and linking to it from this page: http://wiki.freeswitch.org/wiki/Examples 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 irc.freenode.net. My nick is mercutioviz. Thanks for sharing! -MC On Fri, Mar 26, 2010 at 2:54 AM, OwenW <williams.owen@gmail.com> wrote:
This is a quick guide as to one approach to logging the sip messages between a Sip phone and freeswitch. There are other methods (e.g. wireshark) - feel free to reply if you have other alternatives.
It involves putting a java TCP Proxy (grinder) in front of freeswitch and reconfiguring your SipPhone to send SIP to the proxy.
The software (grinder) is Java based so will require an JDK.
Once you've downloaded Grinder create a file called startProxy5061.cmd and put the following into it: call setGrinderEnv.cmd java -cp %CLASSPATH% net.grinder.TCPProxy -console -localhost 192.168.30.10 -localport 5061 -remotehost 192.168.30.10 -remoteport 5060 > freeswitch_sip.log
The proxy forwards all traffic it receives on 5061 to 5060 and logs to freeswitch_sip.log.
You'll need to change the IPs above. Create another file called setGrinderEnv.cmd and put the following in to it: set GRINDERPATH=C:\dev\apps\grinder-3.3 set GRINDERPROPERTIES=C:\dev\apps\grinder-3.3\grinder.properties set CLASSPATH=%GRINDERPATH%\lib\grinder.jar;%CLASSPATH% set JAVA_HOME=c:\Program Files\java\jdk1.6.0_11 PATH=%JAVA_HOME%\bin;%PATH%
You'll need to change the paths above.
The soft phone will need to be configured to use port 5061 instead of 5060 as the proxy.
Owen
-- View this message in context: http://n2.nabble.com/How-To-Sip-Logging-and-Freeswitch-tp4802944p4802944.htm... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Michael Collins
-
OwenW