1

我正在开发一个基于 JAIN SIP 和 NIST 实现的 Java 应用程序,并希望启用/查看 SIP 堆栈调试。

我找不到实现这一目标的工作方式 - 任何帮助将不胜感激。

谢谢!乔

4

2 回答 2

2

初始化堆栈时尝试传递以下属性

gov.nist.javax.sip.LOG_MESSAGE_CONTENT=true
gov.nist.javax.sip.TRACE_LEVEL=32
gov.nist.javax.sip.DEBUG_LOG=logs/mss-jsip-debuglog.txt
gov.nist.javax.sip.SERVER_LOG=logs/mss-jsip-messages.xml
于 2012-04-18T12:47:18.083 回答
0

尝试这个

    Properties properties = new Properties();
    properties.setProperty("com.g5.javax.sip.STACK_NAME",Profile.getUserName());
    properties.setProperty("com.g5.javax.sip.IP_ADDRESS", Profile.getProxyIp());

    // DEBUGGING: Information will go to files

    properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "32");
    properties.setProperty("gov.nist.javax.sip.SERVER_LOG",
            "textclient.txt");
    properties.setProperty("gov.nist.javax.sip.DEBUG_LOG",
            "textclientdebug.log");
    try{
        sipStack = sipFactory.createSipStack(properties);

    }catch(Exception e){
        System.out.println(e.getMessage());
    }
于 2012-10-17T08:45:38.797 回答