gpt4 book ai didi

sip - Mobicents - RestComm 问题

转载 作者:行者123 更新时间:2023-12-02 05:12:45 27 4
gpt4 key购买 nike

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

每当我调用 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

我认为电话的 header 很好,

13:42:05,514 INFO [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]

;tag=97936972_57a5b08a_d49670a8-7483-482d-b493-47b6f0ffb64a Via: SIP/2.0/UDP 192.168.132.86:5060;rport=5060;branch=z9hG4bK24540;received=127.0.0.1 CSeq: 20 OPTIONS Call-ID: 23338 From: ;tag=1545 Content-Length: 0

]]>

13:42:05,524 INFO [InitialRequestDispatcher] 已调度请求事件 到 RestComm 13:42:05,546 信息 [SIPTransactionStack]

;tag=32134 To: Call-ID: 23679 CSeq: 20 INVITE Contact: Content-Type: application/sdp Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,NOTIFY,MESSAGE,SUBSCRIBE,INFO Max-Forwards: 70 User-Agent: Linphone/3.5.2 (eXosip2/3.6.0) Subject: Phone call Content-Length: 479

v=0 o=toto 294 294 IN IP4 192.168.132.86 s=Talk 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]

Via: 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 Via: 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 Contact: Content-Length: 0

]]>

13:42:05,576 INFO [InitialRequestDispatcher] 已调度请求事件 到 RestComm 13:42:05,593 警告 [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 警告 [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 警告 [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

最佳答案

我通过将声音文件移动到另一个目录而不是 war 文件来解决它。在 restcomm.xml 中,我像这样改变了他们的路径。

来自

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

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

我猜,这只是 Windows 操作系统的问题,同样的示例在 Linux 上一定运行得很好。

关于sip - Mobicents - RestComm 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15153717/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com