【发布时间】:2015-12-13 13:29:04
【问题描述】:
我正在尝试使用以下代码从sipFactory 创建一个sipStack:
this.sipFactory = SipFactory.getInstance();
this.sipFactory.setPathName("gov.nist");
// Create and set the SIP stack properties.
this.properties = new Properties();
this.properties.setProperty("javax.sip.STACK_NAME", "stack");
// Create the SIP stack.
this.sipStack = this.sipFactory.createSipStack(this.properties);
但是,我得到一个无法实例化“SipStackImpl”的异常,我应该检查是否设置了路径名,即使我确实有在同一个包中实现 SipStack 接口的类。
我错过了什么?我应该如何创建 sip 堆栈?
【问题讨论】: