From: Anton R. <ant...@gm...> - 2016-12-20 13:58:12
|
1) Try with having <receive> and <send> tags, not just <default> ones. 2) Make sure EOL charachter in the scenario file is UNIX type (LF) and not Windows (CR LF) Regards, Anton 2016-12-20 15:24 GMT+03:00 SUDHAKAR REDDY GAJJALA < SUD...@ca...>: > I did not paste the full file. The traffic tag is closed.. I am attaching > the full file here. Please take a look and let me know what’s wrong in that > > > > Thanks, > > Sudhakar > > > > *From:* csk...@gm... [mailto:csk...@gm...] *On Behalf Of *Anton > Rozhkov > *Sent:* Tuesday, December 20, 2016 5:46 PM > > *To:* SUDHAKAR REDDY GAJJALA <SUD...@ca...> > *Cc:* gul...@li... > *Subject:* Re: [Seagull-users] Scenario response based on request from > Client > > > > Is the <traffic> tag closed? > > > Regards, > > Anton > > > > 2016-12-20 15:12 GMT+03:00 SUDHAKAR REDDY GAJJALA < > SUD...@ca...>: > > Hi Anton, > > I tried adding default in the scenario file as below > > > > > > <traffic> > > <default> > > <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> > > <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> > > <set-value name="Revalidation-Time" method="systime" > > format="startoffset=2208988576"></set-value> > > <stop-timer></stop-timer> > > </action> > > <command name="CCA"> > > <avp name="Session-Id" value="bng1:400:1:0"> </avp> > > <avp name="Auth-Application-Id" value="16777238"></avp> > > <avp name="Origin-Host" value="origin-host.com"> </avp> > > <avp name="Origin-Realm" value="origin-realm.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="Event-Trigger" value="17"> </avp> > > <avp name="Revalidation-Time" 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="defaultpolicy"> </avp> > > </avp> > > </command> > > </send> > > </default> > > > > > > When I run the server, I am getting below error in logs > > > > 2016-12-20.04:04:50.635|A|START log > > *2016-12-20.04:04:50.635|E|Unknown command default* > > *2016-12-20.04:04:50.635|E|Bad scenario definition* > > *2016-12-20.04:04:50.635|E|Traffic scenario error* > > 2016-12-20.04:04:50.636|A|STOP log > > > > > > How and where do I add the default section in scenario file? > > > > Thanks, > > Sudhakar > > > > > > *From:* SUDHAKAR REDDY GAJJALA > *Sent:* Tuesday, December 20, 2016 5:18 PM > *To:* 'Anton Rozhkov' <ant...@gm...> > *Cc:* gul...@li... > *Subject:* RE: [Seagull-users] Scenario response based on request from > Client > > > > Ok. So let me try this case and let you know with the result. > > Thanks, > > Sudhakar > > > > > > *From:* csk...@gm... [mailto:csk...@gm... > <csk...@gm...>] *On Behalf Of *Anton Rozhkov > *Sent:* Tuesday, December 20, 2016 5:16 PM > > > *To:* SUDHAKAR REDDY GAJJALA <SUD...@ca...> > *Cc:* gul...@li... > *Subject:* Re: [Seagull-users] Scenario response based on request from > Client > > > > Yes, it should. Frankly, I didn't try it personally, I only used one > default section with DWR/DWA, and it worked fine. According to > documentation and some scenario examples I have, it should match particular > section and play the corresponding messages from that section. > So considering my example below: > If I receive DWR anytime during the scenario execution, I reply with DWA. > If I receive DPR anytime, I reply with DPA. > Just give it a try :) > > > > Regards, > > Anton > > > > 2016-12-20 14:35 GMT+03:00 SUDHAKAR REDDY GAJJALA < > SUD...@ca...>: > > Hi Anton, > > Thanks for your reply.. Sorry it was a mistake in RAR/RAA . As you > mentioned RAR is always sent by server. > > > > If I have more than one default , does the server pick up the right > default. Lets say, I want to add CCR-Initial, CCR-Update and CCR-Terminate > in the default. > > When I send the request from client , does it pick up the right default > message and send the replay back? > > > > Thanks, > > Sudhakar > > > > *From:* csk...@gm... [mailto:csk...@gm...] *On Behalf Of *Anton > Rozhkov > *Sent:* Tuesday, December 20, 2016 4:36 PM > *To:* SUDHAKAR REDDY GAJJALA <SUD...@ca...> > *Cc:* gul...@li... > *Subject:* Re: [Seagull-users] Scenario response based on request from > Client > > > > Hi, > > BTW, RAR cannot be generated by a client, it is always sent by a server, > and the client replies with RAA. > > For your task I'd consider using <default> section > http://gull.sourceforge.net/doc/core.html#scen_default > > Just an example: > <default> > <receive channel="channel-1"> > <command name="DWR"></command> > <action> > <store name="HopByHop" entity="HbH-id"> </store> > <store name="EndToEnd" entity="EtE-id"> </store> > </action> > </receive> > > <send channel="channel-1"> > <action> > <restore name="HopByHop" entity="HbH-id"> </restore> > <restore name="EndToEnd" entity="EtE-id"> </restore> > </action> > > <command name="DWA"> > <avp name="Result-Code" value="2001"> </avp> > <avp name="Origin-Host" value="server.name"> </avp> > <avp name="Origin-Realm" value="server.realm"> </avp> > </command> > </send> > </default> > > <default> > <receive channel="channel-1"> > <command name="DPR"></command> > <action> > <store name="HopByHop" entity="HbH-id"> </store> > <store name="EndToEnd" entity="EtE-id"> </store> > </action> > </receive> > <send channel="channel-1"> > <action> > <restore name="HopByHop" entity="HbH-id"> </restore> > <restore name="EndToEnd" entity="EtE-id"> </restore> > </action> > <command name="DPA"> > <avp name="Result-Code" value="2001"> </avp> > <avp name="Origin-Host" value="server.name"> </avp> > <avp name="Origin-Realm" value="server.realm"> </avp> > </command> > </send> > </default> > > > > > Regards, > > Anton > > > > 2016-12-20 12:19 GMT+03:00 SUDHAKAR REDDY GAJJALA < > SUD...@ca...>: > > Hi, > > I am working on Seagull where my client and Server are running in a > different servers. I have created a scenario file with the below scenario > > > > Client Server > > > > CER CEA > > CCR-I CCA-I > > CCR-U CCA-U > > RAR RAA > > CCR-T CCA-T > > > > My scenario file is in the above order. Due to some requirements, I had my > Seagull server to respond with the particular response instead of going > sequentially. > > > > Is there a way seagull identify the request and send response based on the > request.. I mean to say when server receives CCR-U , it should respond with > CCA-U. for some other subscriber, if it receives CCR-T , seagull should > respond with CCA-T message. > > > > Any help is appreciated. > > > > Thanks, > > Sudhakar > > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today.http://sdm.link/intel > _______________________________________________ > Gull-users mailing list > Gul...@li... > https://lists.sourceforge.net/lists/listinfo/gull-users > > > > > > > |