From: SUDHAKAR R. G. <SUD...@ca...> - 2017-01-02 12:32:50
|
Hi, I think it's a repeated question but would like to clarify the following I want Seagull server to add or delete AVPs based on Request type. For example, I have scenario file like this <receive channel="channel-1"> <command name="CCR"> <!-- Only need to specify what needs to be parsed --> <avp name="Session-Id" value="dont_care"> </avp> <avp name="CC-Request-Type" value="1"> </avp> </command> <action> <store name="HbH" entity="HbH-id"></store> <store name="E2E" entity="EtE-id"></store> <store name="session" entity="Session-Id"></store> <store name="AuthId" entity="Auth-Application-Id"></store> <store name="OriginHost" entity="Origin-Host"></store> <store name="OriginRealm" entity="Origin-Realm"></store> <store name="RequestType" entity="CC-Request-Type"></store> <store name="RequestNumber" entity="CC-Request-Number"></store> <start-timer></start-timer> </action> <!-- Store action is at the end of the command --> </receive> <send channel="channel-1"> <!-- Restore action is before the command --> <action> <restore name="HbH" entity="HbH-id"> </restore> <restore name="E2E" entity="EtE-id"> </restore> <restore name="session" entity="Session-Id"></restore> <restore name="AuthId" entity="Auth-Application-Id"></restore> <restore name="OriginHost" entity="Origin-Host"></restore> <restore name="OriginRealm" entity="Origin-Realm"></restore> <restore name="RequestType" entity="CC-Request-Type"></restore> <restore name="RequestNumber" entity="CC-Request-Number"></restore> <stop-timer></stop-timer> </action> <!-- Warning: content of CCA to check --> <command name="CCA"> <avp name="Session-Id" value="will_be_erased"> </avp> <avp name="Auth-Application-Id" value="16777238"></avp> <avp name="Origin-Host" value="dummy"> </avp> <avp name="Origin-Realm" value="something.com"> </avp> <avp name="Result-Code" value="2001"> </avp> <avp name="CC-Request-Type" value="1"> </avp> <avp name="CC-Request-Number" value="0"> </avp> <avp name="Subscription-Id"> <avp name="Subscription-Id-Type" value="0"> </avp> <avp name="Subscription-Id-Data" value="012345678901234"> </avp> </avp> <avp name="Charging-Rule-Install"> <avp name="Charging-Rule-Name" value="pm1"> </avp> </avp> </command> </send> Test 1 : When Seagull servers gets a request of CCR-I , the CCA-I with all the above AVPs should be sent. If Servers gets a request type of CCR-T , it should not send the Charging-Rule-Install AVP in the response. I am looking to customize my CCR Reply so that I can use the single CCR messages in scenario file. Also while running multiple subs from Client, this scenario file should work properly provided the response is sent by adding/removing Avps Please help. Thanks, Sudhakar |