2

我正在关注 RestComm 的 Mobicents 实施教程。我通过 CURL 成功绑定并注册了 Hello-World demo 和 DTMF Demo 的用户。

每当我在 sip:1234@127.0.0.1:5080 或 sip:3333@127.0.0.1:5080 上拨打电话时,我都会收到以下异常

    13:29:58,728 INFO  [InitialRequestDispatcher] Request event dispatched to RestComm
    13:29:58,767 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,768 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,768 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,768 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,769 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,769 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,769 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav

我认为电话的标题很好,

13:42:05,514 信息 [SIPTransactionStack]

;tag=1545 To: Call-ID: 23338 CSeq: 20 OPTIONS Accept: application/sdp Max-Forwards: 70 User-Agent: Linphone/3.5.2 (eXosip2/3.6.0) Content-Length: 0

]]>

13:42:05,518 信息 [SIPTransactionStack]

;标签= 97936972_57A5B08A_D49670A8-7483-482D-B493-47B6F0FFB64A VIA标记=1545 内容长度:0

]]>

13:42:05,524 INFO [InitialRequestDispatcher] 请求事件分派到 RestComm 13:42:05,546 INFO [SIPTransactionStack]

;tag=32134 To: Call-ID: 23679 CSeq: 20 INVITE Con​​tact: Content-Type: application/sdp Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,NOTIFY,MESSAGE,SUBSCRIBE,INFO Max-Forwards: 70用户代理:Linphone/3.5.2 (eXosip2/3.6.0) 主题:电话内容长度:479

v=0 o=toto 294 294 IN IP4 192.168.132.86 s=谈话 c=IN IP4 192.168.132.86 t=0 0 m=音频 7078 RTP/AVP 112 111 110 3 0 8 101 a=rtpmap:112 speex/32000 a =fmtp:112 vbr=on a=rtpmap:111 speex/16000 a=fmtp:111 vbr=on a=rtpmap:110 speex/8000 a=fmtp:110 vbr=on a=rtpmap:101 电话事件/8000 a =fmtp:101 0-11 m=视频 9078 RTP/AVP 103 99 98 a=rtpmap:103 VP8/90000 a=rtpmap:99 MP4V-ES/90000 a=fmtp:99 profile-level-id=3 a=rtpmap :98 H263-1998/90000 a=fmtp:98 CIF=1;QCIF=1 ]]>

13:42:05,558 信息 [SIPTransactionStack]

通过: SIP/2.0/UDP 192.168.132.86:5060;rport=5060;branch=z9hG4bK2917;received=127.0.0.1 CSeq: 20 INVITE Call-ID: 23679 From: ;tag=32134 Content-Length: 0

]]>

13:42:05,573 信息 [SIPTransactionStack]

;tag=51502709_57a5b08a_2e371fbf-827f-4e13-be37-4ba38c93a9c9 通过:SIP/2.0/UDP 192.168.132.86:5060;rport=5060;branch=z9hG4bK2917;received=1279: SIP/2.0/UDP 192.168.132.86:5060;rport=5060;branch=z9hG4bK2917;received=1279: SIP/2.0/UDP tag=32134 联系人:内容长度:0

]]>

13:42:05,576 INFO [InitialRequestDispatcher] 请求事件分派到 RestComm 13:42:05,593 WARN [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException:java.lang.IllegalArgumentException:索引 7 处的权限中的非法字符: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war/audio/one-second-silence.wav 13:42:05,634 WARN [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: 索引 7 的权限中的非法字符:file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server \default\deploy\restcomm.war/audio/one-second-silence.wav 13:42:05,634 WARN [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in索引 7 的权威:file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war/audio/one-second-silence.wav

4

2 回答 2

3

我通过将声音文件移动到另一个目录而不是战争文件来解决它。在 restcomm.xml 里面我改变了他们的路径。

${restcomm:home}/audio/one-second-silence.wav

C:/restcomm/sounds/one-second-silence.wav

我想,这只是 Windows 操作系统的问题,同样的例子在 Linux 上运行起来一定很有魅力。

于 2013-03-01T10:49:21.203 回答
2

您还可以使用 Amazon Marketplace 上现成的 AMI https://aws.amazon.com/marketplace/pp/B00FFHJ6SU/ref=sp_mpg_product_title?ie=UTF8&sr=0-3来避免此类问题,因为一切都已正确预配置

于 2014-01-09T09:02:02.203 回答