1

我们曾尝试在我们的 LAB 中部署 RestComm 服务器,但将其集成到 IMS 时遇到了一些麻烦。

那时我们有:6 个虚拟机(Clearwater IMS:sprout、bono、ellis、homer、homestead;Telestax:restcomm)在一个网络子网中的一个物理设备上。

我们测试了 Restcomm AMI Demos,一切正常。文字转语音有效,通话有效。

比我们尝试集成 Clearwater IMS 和 restcomm ( http://telestax.wpengine.netdna-cdn.com/wp-content/uploads/2013/12/ClearWater-RestComm-Integration-2013.pdf ),但这里我们没有工作解决方案:

  10.199.200.89 -> 10.199.200.95 SIP/SDP 399 Request: INVITE sip:0000006606@cw.domain.ru, with session description
  10.199.200.95 -> 10.199.200.89 SIP 801 Status: 404 Not found
  10.199.200.89 -> 10.199.200.95 SIP 556 Request: ACK sip:0000006606@cw.domain.ru

(10.199.200.89 - 清水芽,10.199.200.95 - restcomm,0000006606 - restcomm 上的 sip sip 号码)

restcomm 响应“404 Not found”,据我们了解,这是因为域是“cw.domain.ru”,但没有找到任何要设置的配置参数。结果我们没有从 Clearwater IMS 到 Restcomm 的调用流程服务。

在 Restcomm 日志中,我们有:

12:25:32,603 INFO  [org.mobicents.servlet.sip.core.session.SipApplicationSessionImpl] (RestComm-akka.actor.default-dispatcher-12908) Invalidating the following sip application session 671d0ad7-baf1-4867-b
4c1-a1d572e3a37c;RestComm

12:25:32,604 INFO  [org.mobicents.servlet.sip.core.session.SipSessionImpl] (RestComm-akka.actor.default-dispatcher-12908) Invalidating the sip session (97067297_ba1d553a_57a5b08a_671d0ad7-baf1-4867-b4c1-a
1d572e3a37c;e2c424771fe1c2d0d8a88873fd103485@10.199.200.95;671d0ad7-baf1-4867-b4c1-a1d572e3a37c;RestComm)

12:25:32,604 INFO  [org.mobicents.servlet.sip.core.session.SipApplicationSessionImpl] (RestComm-akka.actor.default-dispatcher-12908) The following sip application session 671d0ad7-baf1-4867-b4c1-a1d572e3a
37c;RestComm has been invalidated

12:26:30,998 INFO  [gov.nist.javax.sip.stack.SIPTransactionStack] (SIP-TCP-Core-PipelineThreadpool-7) <message
from="10.199.200.89:51730" 
to="10.199.200.95:5080" 
time="1429521990997"
isSender="false" 
transactionId="z9hg4bkpjyfeolh7nut46itlpj376kiq3nchyw7ga" 
callId="1025744989-5062-2@BA.BJJ.DA.BCC" 
firstLine="INVITE sip:0000006606@cw.domain.ru SIP/2.0" 
>
<![CDATA[INVITE sip:0000006606@cw.domain.ru SIP/2.0
Via: SIP/2.0/TCP 10.199.200.89:51730;rport=51730;branch=z9hG4bKPjyfeOlh7NUt46itlpj376kIQ3ncHyW7ga;received=10.199.200.89
Via: SIP/2.0/TCP 10.199.200.87:42302;rport=42302;received=10.199.200.87;branch=z9hG4bKPjjmliVkif1UEiatjnn-ja0uL8bw3zF7RD
Via: SIP/2.0/TCP 10.199.30.122:5062;rport=50235;received=10.199.30.122;branch=z9hG4bK2054587840;alias
Record-Route: <sip:sprout.cw.domain.ru:5054;transport=TCP;lr;service=scscf;billing-role=charge-orig>
Record-Route: <sip:10.199.200.87:5058;transport=TCP;lr>
Record-Route: <sip:Ws8ywGuzBs@bono01.cw.domain.ru:5060;transport=TCP;lr>
From: "0000006625@cw.domain.ru" <sip:0000006625@cw.domain.ru>;tag=71152997
To: <sip:0000006606@cw.domain.ru>
Call-ID: 1025744989-5062-2@BA.BJJ.DA.BCC
CSeq: 10 INVITE
Contact: "0000006625@cw.domain.ru" <sip:0000006625@10.199.30.122:5062;transport=tcp>
Max-Forwards: 64
User-Agent: Grandstream GXP1405 1.0.7.4
Supported: replaces,path,timer
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,SUBSCRIBE,NOTIFY,INFO,REFER,UPDATE,MESSAGE
Accept: application/sdp,application/dtmf-relay
P-Asserted-Identity: <sip:0000006625@cw.domain.ru>
Session-Expires: 600
Privacy: none
Route: <sip:10.199.200.95:5080;lr>
Route: <sip:odi_vzCEsiz4y5@10.199.200.89:5054;lr>
P-Served-User: <sip:0000006606@cw.domain.ru>;regstate=reg;sescase=term
Content-Type: application/sdp
Content-Length: 410
v=0
o=0000006625 8001 8000 IN IP4 10.199.30.122
s=SIP Call
c=IN IP4 10.199.30.122
t=0 0
m=audio 5008 RTP/AVP 0 8 18 97 9 4 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:9 G722/8000
a=rtpmap:4 G723/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
]]>
</message>

12:26:31,006 INFO  [gov.nist.javax.sip.stack.SIPTransactionStack] (RestComm-akka.actor.default-dispatcher-12910) <message
from="10.199.200.95:5080" 
to="10.199.200.89:51730" 
time="1429521991006"
isSender="true" 
transactionId="z9hg4bkpjyfeolh7nut46itlpj376kiq3nchyw7ga" 
callId="1025744989-5062-2@BA.BJJ.DA.BCC" 
firstLine="SIP/2.0 404 Not found" 
>
<![CDATA[SIP/2.0 404 Not found
To: <sip:0000006606@cw.domain.ru>;tag=57299471_ba1d553a_57a5b08a_a01b3174-c173-4651-8c15-8b5cf0ecbfd9
Via: SIP/2.0/TCP 10.199.200.89:51730;rport=51730;branch=z9hG4bKPjyfeOlh7NUt46itlpj376kIQ3ncHyW7ga;received=10.199.200.89
Via: SIP/2.0/TCP 10.199.200.87:42302;rport=42302;received=10.199.200.87;branch=z9hG4bKPjjmliVkif1UEiatjnn-ja0uL8bw3zF7RD
Via: SIP/2.0/TCP 10.199.30.122:5062;rport=50235;received=10.199.30.122;branch=z9hG4bK2054587840;alias
CSeq: 10 INVITE
Call-ID: 1025744989-5062-2@BA.BJJ.DA.BCC
From: "0000006625@cw.domain.ru" <sip:0000006625@cw.domain.ru>;tag=71152997
Server: Mobicents Restcomm MAJOR_VERSION_NUMBER.BUILD_NUMBER
Contact: <sip:10.199.200.95:5080;transport=tcp>
Content-Length: 0
]]>
</message>

12:26:31,007 INFO  [org.mobicents.servlet.sip.core.dispatchers.InitialRequestDispatcher] (SIP-TCP-Core-PipelineThreadpool-7) Request event dispatched to RestComm

12:26:31,012 INFO  [gov.nist.javax.sip.stack.SIPTransactionStack] (SIP-TCP-Core-PipelineThreadpool-8) <message
from="10.199.200.89:51730" 
to="10.199.200.95:5080" 
time="1429521991011"
isSender="false" 
transactionId="z9hg4bkpjyfeolh7nut46itlpj376kiq3nchyw7ga" 
callId="1025744989-5062-2@BA.BJJ.DA.BCC" 
firstLine="ACK sip:0000006606@cw.domain.ru SIP/2.0" 
>
<![CDATA[ACK sip:0000006606@cw.domain.ru SIP/2.0
Via: SIP/2.0/TCP 10.199.200.89:51730;rport=51730;branch=z9hG4bKPjyfeOlh7NUt46itlpj376kIQ3ncHyW7ga;received=10.199.200.89
Max-Forwards: 70
From: "0000006625@cw.domain.ru" <sip:0000006625@cw.domain.ru>;tag=71152997
To: <sip:0000006606@cw.domain.ru>;tag=57299471_ba1d553a_57a5b08a_a01b3174-c173-4651-8c15-8b5cf0ecbfd9
Call-ID: 1025744989-5062-2@BA.BJJ.DA.BCC
CSeq: 10 ACK
Route: <sip:10.199.200.95:5080;lr>
Route: <sip:odi_vzCEsiz4y5@10.199.200.89:5054;lr>
Content-Length: 0
]]>
</message>

12:26:32,645 INFO  [gov.nist.javax.sip.stack.SIPTransactionStack] (RestComm-akka.actor.default-dispatcher-12910) <message
from="10.199.200.95:5080" 
to="10.199.30.107:43240" 
time="1429521992644"
isSender="true" 
transactionId="z9hg4bk79f90da6-eedd-48e9-9298-0de946eb7ac4_57a5b08a_d9ab1446-96ab-402f-b751-cd728cb74353" 
callId="5a0703819a997212235257c2ebf3741f@10.199.200.95" 
firstLine="OPTIONS sip:bob@10.199.30.107:43240;transport=tcp;lr SIP/2.0" 
>
<![CDATA[OPTIONS sip:bob@10.199.30.107:43240;transport=tcp;lr SIP/2.0
Call-ID: 5a0703819a997212235257c2ebf3741f@10.199.200.95
CSeq: 1 OPTIONS
From: <sip:restcomm@10.199.200.95>;tag=94331963_ba1d553a_57a5b08a_79f90da6-eedd-48e9-9298-0de946eb7ac4
To: <sip:bob@10.199.30.107:43240>
Max-Forwards: 70
User-Agent: Mobicents Restcomm MAJOR_VERSION_NUMBER.BUILD_NUMBER
Contact: <sip:restcomm@10.199.200.95:5080;transport=tcp>
Via: SIP/2.0/TCP 10.199.200.95:5080;branch=z9hG4bK79f90da6-eedd-48e9-9298-0de946eb7ac4_57a5b08a_d9ab1446-96ab-402f-b751-cd728cb74353
Route: <sip:bob@10.199.30.107:43240;transport=tcp;lr>
Content-Length: 0
]]>
</message>

12:26:32,692 INFO  [gov.nist.javax.sip.stack.SIPTransactionStack] (SIP-TCP-Core-PipelineThreadpool-9) <message
from="10.199.30.107:43240" 
to="10.199.200.95:5080" 
time="1429521992692"
isSender="false" 
transactionId="z9hg4bk79f90da6-eedd-48e9-9298-0de946eb7ac4_57a5b08a_d9ab1446-96ab-402f-b751-cd728cb74353" 
callId="5a0703819a997212235257c2ebf3741f@10.199.200.95" 
firstLine="SIP/2.0 200 OK" 
>
<![CDATA[SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.199.200.95:5080;branch=z9hG4bK79f90da6-eedd-48e9-9298-0de946eb7ac4_57a5b08a_d9ab1446-96ab-402f-b751-cd728cb74353
From: <sip:restcomm@10.199.200.95>;tag=94331963_ba1d553a_57a5b08a_79f90da6-eedd-48e9-9298-0de946eb7ac4
To: <sip:bob@10.199.30.107:43240>;tag=995341531
Call-ID: 5a0703819a997212235257c2ebf3741f@10.199.200.95
CSeq: 1 OPTIONS
Supported: replaces,path,timer
User-Agent: Grandstream GXP1405 1.0.7.8
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,SUBSCRIBE,NOTIFY,INFO,REFER,UPDATE,MESSAGE
Content-Length: 0
]]>
</message>

12:26:32,696 INFO  [org.mobicents.servlet.sip.core.session.SipApplicationSessionImpl] (RestComm-akka.actor.default-dispatcher-12910) Invalidating the following sip application session 79f90da6-eedd-48e9-9298-0de946eb7ac4;RestComm

12:26:32,696 INFO  [org.mobicents.servlet.sip.core.session.SipSessionImpl] (RestComm-akka.actor.default-dispatcher-12910) Invalidating the sip session (94331963_ba1d553a_57a5b08a_79f90da6-eedd-48e9-9298-0de946eb7ac4;5a0703819a997212235257c2ebf3741f@10.199.200.95;79f90da6-eedd-48e9-9298-0de946eb7ac4;RestComm)

12:26:32,697 INFO  [org.mobicents.servlet.sip.core.session.SipApplicationSessionImpl] (RestComm-akka.actor.default-dispatcher-12910) The following sip application session 79f90da6-eedd-48e9-9298-0de946eb7ac4;RestComm has been invalidated

12:26:39,510 INFO  [org.mobicents.servlet.sip.core.session.SipSessionImpl] (MSS-Executor-Thread-3) Invalidating the sip session (71152997;1025744989-5062-2@BA.BJJ.DA.BCC;a01b3174-c173-4651-8c15-8b5cf0ecbfd9;RestComm)

12:26:39,511 INFO  [org.mobicents.servlet.sip.core.session.SipApplicationSessionImpl] (MSS-Executor-Thread-3) Invalidating the following sip application session a01b3174-c173-4651-8c15-8b5cf0ecbfd9;RestComm

12:26:39,511 INFO  [org.mobicents.servlet.sip.core.session.SipApplicationSessionImpl] (MSS-Executor-Thread-3) The following sip application session a01b3174-c173-4651-8c15-8b5cf0ecbfd9;RestComm has been invalidated

12:27:12,016 INFO  [gov.nist.javax.sip.stack.SIPTransactionStack] (SIP-TCP-Core-PipelineThreadpool-10) <message
from="10.199.200.89:34239" 
to="10.199.200.95:5080" 
time="1429522032014"
isSender="false" 
transactionId="z9hg4bkpjvmnmgxo253hvm75so5qm.sn-vccrqjfa" 
callId="231825113" 
firstLine="INVITE sip:0000006625@cw.domain.ru SIP/2.0" 

  1. RestComm 版本:mobicents-Restcomm-JBoss-AS7-7.0.2
  2. 0000006606 在 restcomm 上配置:
    {  
    "sid": "PN9905e897237440aaad83af5ee9b8d502",  
    "account_sid": "ACae6e420f425248d6a26948c17a9e2acf",  
    "friendly_name": "0000006606",  
    "phone_number": "0000006606",  
    "voice_url": "/restcomm-rvd/services/apps/rvdSayVerbDemo/controller",  
    "voice_method": "POST",  
    “voice_fallback_url”:空,  
    "voice_fallback_method": "POST",  
    “状态回调”:空,  
    "status_callback_method": "POST",  
    “voice_caller_id_lookup”:假,  
    “voice_application_sid”:空,  
    "date_created": "2015 年 4 月 20 日星期一 19:00:34 +0300",  
    "date_updated": "2015 年 4 月 20 日星期一 19:00:34 +0300",  
    “sms_url”:空,  
    "sms_method": "POST",  
    “sms_fallback_url”:空,  
    "sms_fallback_method": "POST",  
    “sms_application_sid”:空,  
    “能力”:{  
    “voice_capable”:假,  
    “sms_capable”:假,  
    “mms_capable”:假,  
    “fax_capable”:假  
    },  
    "api_version": "2012-04-24",  
    "uri": "/restcomm/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/IncomingPhoneNumbers/PN9905e897237440aaad83af5ee9b8d502.json"  
    }  
  1. 我尝试使用在 restcomm 上注册的软件电话拨打号码 1234。它的作品。
  2. 是的,我已经看到它http://docs.telestax.com/restcomm-understanding-autoconfigure-script/和 restcomm 上的网络端口:
@rcomm01:~$ netstat -nlptu  
(并非所有进程都可以识别,非拥有进程信息
 不会显示,你必须是 root 才能看到它。)
 活动 Internet 连接(仅限服务器)
 Proto Recv-Q Send-Q 本地地址 外部地址 状态 PID/程序名称  
 tcp 0 0 127.0.0.1:9999 0.0.0.0:* 听 3049/java  
 tcp 0 0 10.199.200.95:8080 0.0.0.0:* 听 3049/java         
 tcp 0 0 0.0.0.0:8787 0.0.0.0:* 听 3049/java         
 tcp 0 0 0.0.0.0:22 0.0.0.0:* 听 -                 
 tcp 0 0 10.199.200.95:5080 0.0.0.0:* 听 3049/java         
 tcp 0 0 10.199.200.95:5081 0.0.0.0:* 听 3049/java         
 tcp 0 0 10.199.200.95:5082 0.0.0.0:* 听 3049/java         
 tcp 0 0 10.199.200.95:4447 0.0.0.0:* 听 3049/java         
 tcp 0 0 127.0.0.1:9990 0.0.0.0:* 听 3049/java         
 tcp6 0 0 :::22 :::* 听 -                 
 UDP 0 0 10.199.200.95:5080 0.0.0.0:* 3049/java         
 UDP 0 0 0.0.0.0:48637 0.0.0.0:* -                 
 UDP 0 0 0.0.0.0:68 0.0.0.0:* -                 
 UDP 0 0 10.199.200.95:2427 0.0.0.0:* 3050/java         
 UDP 0 0 10.199.200.95:2727 0.0.0.0:* 3049/java         
 udp6 0 0 :::39678 :::* -                 
4

1 回答 1

2

您使用哪个版本的 RestComm?您是否将 0000006606 配置到 RestComm 应用程序?您是否尝试先拨打 1234 以查看是否将媒体公告播放为烟雾测试?您可以使用来自https://mobicents.ci.cloudbees.com/view/RestComm/job/RestComm/lastSuccessfulBuild/artifact/的最新二进制文件来克服 404。顺便说一下http://telestax.wpengine.netdna-cdn .com/wp-content/uploads/2013/12/ClearWater-RestComm-Integration-2013.pdf有点过时,请使用http://docs.telestax.com/restcomm-understanding-autoconfigure-script/ , 部分“绑定到不同的 IP 地址”以启动 RestComm。这样,它将自动修改所有配置文件中的 IP 地址。

于 2015-04-22T14:52:55.493 回答