我在海鷗直徑的工作,這是我的海鷗服務器和海鷗客戶海鷗直徑客戶端和服務器如何工作同步?
客戶端服務器
---- CER ---->
<--- CEA ----
---- AAR ---->
<--- AAA ----
---- STR --->
<--- STA ----
但結果場景: 所以,它不是按照我的情況下,請幫我如何配置一些東西到服務器和客戶端可以同步?
這是客戶端應用場景
<?xml version="1.0"?><scenario>
<init>
<send channel="channel-1">
<command name="CER">
</command>
</send>
<receive channel="channel-1">
<command name="CEA"> </command>
</receive>
</init>
<traffic>
<send channel="channel-1">
<command name="AAR">
<avp name="Session-Id" value="trandeptrai"> </avp>
</command>
</send>
<receive channel="channel-1">
<command name="AAA"> </command>
</receive>
<send channel="channel-1">
<command name="STR">
<avp name="Session-Id" value="trandeptrai"> </avp>
</command>
</send>
<receive channel="channel-1">
<command name="STA"> </command>
<action>
<store name="Session-Id" entity="Session-Id"> </store>
</action>
</receive>
</traffic>
</scenario>
客戶端配置:
<?xml version="1.0"?>
<configuration name="jpT DIAMETER client">
<define entity="transport" name="trans-ip-v4" file="libtrans_ip.so" create_function="create_cipio_instance" delete_function="delete_cipio_instance" init-args="type=tcp"> </define>
<define entity="channel" name="channel-1" protocol="diameter-v1" transport="trans-ip-v4" open-args="mode=client;dest=134.138.249.41:12340"> </define>
<define entity="traffic-param" name="call-timeout-ms" value="10000"> </define>
<define entity="traffic-param" name="files-no-timestamp" value="true"> </define>
<define entity="traffic-param" name="call-rate" value="1"> </define>
</configuration>
服務器方案:
<?xml version="1.0"?><scenario>
<init>
<receive channel="channel-1">
<action>
</action>
<command name="CER">
</command>
</receive>
<send channel="channel-1">
<command name="CEA"> </command>
<action>
</action>
</send>
</init>
<traffic>
<receive channel="channel-1">
<command name="AAR"> </command>
<action>
<store name="Session-Id" entity="Session-Id"> </store>
</action>
</receive>
<send channel="channel-1">
<action>
<restore name="Session-Id" entity="Session-Id"> </restore>
</action>
<command name="AAA">
<avp name="Session-Id" value="1"> </avp>
</command>
</send>
<receive channel="channel-1">
<command name="STR"> </command>
<action>
<store name="Session-Id2" entity="Session-Id"> </store>
</action>
</receive>
<send channel="channel-1">
<action>
<restore name="Session-Id2" entity="Session-Id"> </restore>
</action>
<command name="STA">
<avp name="Session-Id" value="1"> </avp>
</command>
</send>
<!-- <wait-ms value="100"> </wait-ms> -->
</traffic>
</scenario>
服務器配置:
<?xml version="1.0"?>
<configuration name="jpT DIAMETER client">
<define entity="transport" name="trans-ip-v4" file="libtrans_ip.so" create_function="create_cipio_instance" delete_function="delete_cipio_instance" init-args="type=tcp"> </define>
<define entity="channel" name="channel-1" protocol="diameter-v1" transport="trans-ip-v4" open-args="mode=client;dest=134.138.249.41:12340"> </define>
<define entity="traffic-param" name="call-timeout-ms" value="10000"> </define>
<define entity="traffic-param" name="files-no-timestamp" value="true"> </define>
<define entity="traffic-param" name="call-rate" value="1"> </define>
</configuration>
你可以添加你的文章你的方案和配置?我創建了一個類似於你的場景,我沒有看到AAR和AAS。 – delephin
您好delepin,我已更新帖子 –