Restcomm GLMC直径设置

时间:2017-03-29 10:25:17

标签: restcomm diameter-protocol

我是直径协议的新手。我想要做的就是为我们的开发人员提供一种使用直径协议获取移动位置的方法。我们仍在使用地图ati而不是sigtran来请求位置信息,但自LTE以来它已不再有效。

我已经安装了RestComm GLMC <script type="text/javascript"> $(document).ready(function() { $("#submit").click(function() { var dataString = { flip: $("#flip").val(), amount: $("#amount").val(), }; $.ajax({ type: "POST", url: "flip-process.php", data: dataString, cache: true, beforeSend: function(){ $("#coins").hide(); $(".coin-flip").show(); }, success: function(html){ $(".message").html(html).fadeIn(); $("#coins").show(); $(".coin-flip").hide(); } }); return false; }); }); </script>

并配置 https://github.com/RestComm/gmlc如下所示,因为我想连接到HSS。

jboss-5.1.0.GA/server/default/deploy/restcomm-diameter-mux-1.7.0.sar/config/jdiameter-config.xml

新的我使用下面的命令启动jboss服务器 <?xml version="1.0"?> <Configuration xmlns="http://www.jdiameter.org/jdiameter-server"> <LocalPeer> <URI value=""aaa://uas.restcomm.org:3868"" /> <!-- URI value="aaa://restcomm.open-ims.test:1812" /--> <!-- OpenIMS Example --> <IPAddresses> <IPAddress value="127.0.0.1" /> </IPAddresses> <Realm value="MY_RELM_NAME" /> <!-- Realm value="open-ims.test" / --> <!-- OpenIMS Example --> <VendorID value="193" /> <ProductName value="jDiameter" /> <FirmwareRevision value="1" /> <OverloadMonitor> <Entry index="1" lowThreshold="0.5" highThreshold="0.6"> <ApplicationID> <VendorId value="193" /> <AuthApplId value="0" /> <AcctApplId value="19302" /> </ApplicationID> </Entry> </OverloadMonitor> </LocalPeer> <Parameters> <AcceptUndefinedPeer value="true" /> <DuplicateProtection value="false" /> <DuplicateTimer value="240000" /> <DuplicateSize value="5000" /> <UseUriAsFqdn value="false" /> <!-- Needed for Ericsson Emulator (set to true) --> <QueueSize value="10000" /> <MessageTimeOut value="60000" /> <StopTimeOut value="10000" /> <CeaTimeOut value="10000" /> <IacTimeOut value="30000" /> <DwaTimeOut value="10000" /> <DpaTimeOut value="5000" /> <RecTimeOut value="10000" /> <!-- Peer FSM Thread Count Configuration --> <PeerFSMThreadCount value="3" /> <!-- Statistics Configuration --> <Statistics pause="30000" delay="30000" enabled="false" active_records="Concurrent,ScheduledExecService,Network,ScheduledExecService,AppGenRequestPerSecond,NetGenRequestPerSecond,Peer,Peer.local,PeerFSM"/> <Concurrent> <Entity name="ThreadGroup" size="64"/> <!-- Common Thread Pool --> <Entity name="ProcessingMessageTimer" size="1"/> <Entity name="DuplicationMessageTimer" size="1"/> <Entity name="RedirectMessageTimer" size="1"/> <Entity name="PeerOverloadTimer" size="1"/> <Entity name="ConnectionTimer" size="1"/> <Entity name="StatisticTimer" size="1"/> </Concurrent> <Dictionary enabled="false" sendLevel="MESSAGE" receiveLevel="OFF" /> <!-- Router Request Table Cache Size and ClearSize --> <RequestTable size="10240" clear_size="2048" /> </Parameters> <Network> <Peers> <!-- Testsuite --> <Peer name="aaa://HSS_IP:3868" attempt_connect="true" rating="1" /> <!-- Ericsson SDK Client --> <!-- Peer name="aaa://127.0.0.1:11812" attempt_connect="false" rating="1"/--> <!-- Ericsson SDK Emulator --> <!-- Peer name="aaa://127.0.0.1:21812" attempt_connect="true" rating="1" /--> <!-- Sh / CCA / Cx/Dx --> <!-- Peer name="aaa://uac.restcomm.org" attempt_connect="false" rating="1" /--> <!-- Sh (OpenIMS) --> <!-- Peer name="aaa://hss.open-ims.test" attempt_connect="true" rating="1" /--> </Peers> <Realms> <!-- Ericsson SDK Client/Emulator and Testsuite --> <Realm name="MY_RELM_NAME" peers="HSS_IP_1,HSS_IP_2" local_action="LOCAL" dynamic="false" exp_time="1"> <ApplicationID> <VendorId value="193" /> <AuthApplId value="0" /> <AcctApplId value="19302" /> </ApplicationID> </Realm> <!-- Sh --> <!-- Realm name="restcomm.org" peers="127.0.0.1" local_action="LOCAL" dynamic="false" exp_time="1"> <ApplicationID> <VendorId value="10415" /> <AuthApplId value="16777217" /> <AcctApplId value="0" /> </ApplicationID> </Realm--> <!-- Sh (OpenIMS) --> <!-- Realm name="open-ims.test" peers="hss.open-ims.test,restcomm.open-ims.test" local_action="LOCAL" dynamic="false" exp_time="1"> <ApplicationID> <VendorId value="10415" /> <AuthApplId value="16777217" /> <AcctApplId value="0" /> </ApplicationID> </Realm--> <!-- CCA --> <!-- Realm name="restcomm.org" peers="127.0.0.1" local_action="LOCAL" dynamic="false" exp_time="1"> <ApplicationID> <VendorId value="0" /> <AuthApplId value="4" /> <AcctApplId value="0" /> </ApplicationID> </Realm --> <!-- Cx/Dx --> <!-- Realm name="restcomm.org" peers="127.0.0.1" local_action="LOCAL" dynamic="false" exp_time="1"> <ApplicationID> <VendorId value="10415" /> <AuthApplId value="16777216" /> <AcctApplId value="0" /> </ApplicationID> </Realm--> </Realms> </Network> <Extensions> <!-- To enable clustering uncomment the following lines <SessionDatasource value="org.mobicents.diameter.impl.ha.data.ReplicatedSessionDatasource"/> <TimerFacility value="org.mobicents.diameter.impl.ha.timer.ReplicatedTimerFacilityImpl"/> --> </Extensions> </Configuration>

启动后,当我执行卷曲请求./run.sh -bMY_IP -Xdebug -Xrunjdwp:transport=dt_socket,address=52297,suspend=n,server=y以获取特定MSISDN的位置时,我得到以下错误作为返回

curl -X POST http://MY_IP:8080/restcomm/gmlc/rest?msisdn=MY_MSISDN

jboss日志中

及以下

<html><head><title>JBoss Web/2.1.3.GA - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 501 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server does not support the functionality needed to fulfill this request ().</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/2.1.3.GA</h3></body></html>[root@eir1apps ~]#

现在我被困在这里了。我不知道这是否是配置问题

1 个答案:

答案 0 :(得分:1)

@ivcode我们还不支持GMLC中的Diameter。正在进行的工作正在进行中。您是否愿意为这项工作做出贡献?