提交 c2116055 authored 作者: david varnes's avatar david varnes

Improve Outbound test java docs

上级 3bbbc1d0
...@@ -20,7 +20,24 @@ import org.junit.Test; ...@@ -20,7 +20,24 @@ import org.junit.Test;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
/**
* This 'test' is not really a unit test, more an integration test. In order to see
* any result, configure a FreeSWITCH installation with an extension something like
* the following:
* <pre>
&lt;extension&gt;
&lt;condition field="destination_number" expresssion="444"&gt;
&lt;action application="socket" data="192.168.100.88:8084 async full"/&gt;
&lt;/condition&gt;
&lt;/extension&gt;
* <pre>
* Replace the ip address with the host that FreeSWITCH sees that you are running the test on, perhaps
* localhost.
* <p/>
* Run the test, you have 45 seconds to make a call to extension 444 and observe the logs.
*
* @author david varnes
*/
public class SocketClientTest public class SocketClientTest
{ {
private final Logger log = LoggerFactory.getLogger( this.getClass() ); private final Logger log = LoggerFactory.getLogger( this.getClass() );
...@@ -30,7 +47,6 @@ public class SocketClientTest ...@@ -30,7 +47,6 @@ public class SocketClientTest
{ {
log.info( "Test starting ..." ); log.info( "Test starting ..." );
SocketClient client = new SocketClient( 8084, new SimpleHangupPipelineFactory() ); SocketClient client = new SocketClient( 8084, new SimpleHangupPipelineFactory() );
client.start(); client.start();
...@@ -39,7 +55,6 @@ public class SocketClientTest ...@@ -39,7 +55,6 @@ public class SocketClientTest
client.stop(); client.stop();
log.info( "Test ended" ); log.info( "Test ended" );
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论