From: SUDHAKAR R. G. <SUD...@ca...> - 2016-12-20 09:52:39
|
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 |
From: Anton R. <ant...@gm...> - 2016-12-20 11:06:32
|
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 > > |
From: SUDHAKAR R. G. <SUD...@ca...> - 2016-12-20 11:35:43
|
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<http://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<http://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...<mailto: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...<mailto:Gul...@li...> https://lists.sourceforge.net/lists/listinfo/gull-users |
From: Anton R. <ant...@gm...> - 2016-12-20 11:46:10
|
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 > > > |
From: SUDHAKAR R. G. <SUD...@ca...> - 2016-12-20 11:48:08
|
Ok. So let me try this case and let you know with the result. Thanks, Sudhakar From: csk...@gm... [mailto: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...<mailto: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...> [mailto:csk...@gm...<mailto:csk...@gm...>] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 4:36 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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<http://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<http://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...<mailto: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...<mailto:Gul...@li...> https://lists.sourceforge.net/lists/listinfo/gull-users |
From: Anton R. <ant...@gm...> - 2016-12-20 12:15:55
|
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 > > > > > |
From: SUDHAKAR R. G. <SUD...@ca...> - 2016-12-20 12:24:39
Attachments:
def.xml
|
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...<mailto: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<http://origin-host.com>"> </avp> <avp name="Origin-Realm" value="origin-realm.com<http://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...<mailto:ant...@gm...>> Cc: gul...@li...<mailto: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...> [mailto:csk...@gm...] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 5:16 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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...<mailto: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...> [mailto:csk...@gm...<mailto:csk...@gm...>] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 4:36 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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<http://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<http://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...<mailto: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...<mailto:Gul...@li...> https://lists.sourceforge.net/lists/listinfo/gull-users |
From: SUDHAKAR R. G. <SUD...@ca...> - 2016-12-20 12:26:36
|
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...> [mailto:csk...@gm...] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 5:16 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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...<mailto: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...> [mailto:csk...@gm...<mailto:csk...@gm...>] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 4:36 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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<http://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<http://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...<mailto: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...<mailto:Gul...@li...> https://lists.sourceforge.net/lists/listinfo/gull-users |
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 > > > > > > > |
From: SUDHAKAR R. G. <SUD...@ca...> - 2016-12-21 10:36:42
|
Hi Anton, I have given my scenario like this <traffic> <default> <send channel-1> </send> <receive> </receive> </default> </traffic> Reg. 2nd point, How do I know EOL is of UNIX or Windows type. How do I change the EOL character type in scenario file? Appreciate your help. Thanks, Sudhakar From: csk...@gm... [mailto:csk...@gm...] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 7:28 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...> Cc: gul...@li... Subject: Re: [Seagull-users] Scenario response based on request from Client 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...<mailto: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...> [mailto:csk...@gm...<mailto:csk...@gm...>] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 5:46 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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...<mailto: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<http://origin-host.com>"> </avp> <avp name="Origin-Realm" value="origin-realm.com<http://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...<mailto:ant...@gm...>> Cc: gul...@li...<mailto: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...> [mailto:csk...@gm...] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 5:16 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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...<mailto: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...> [mailto:csk...@gm...<mailto:csk...@gm...>] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 4:36 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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<http://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<http://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...<mailto: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...<mailto:Gul...@li...> https://lists.sourceforge.net/lists/listinfo/gull-users |
From: Anton R. <ant...@gm...> - 2016-12-21 11:30:35
|
Hi, 1) Not sure, but I'd keep receive/send order in <default> section the same as in the rest of the scenario. I mean if the first section in the scenario is <receive>, make this section to be the first one in <default> section as well. 2) http://lmgtfy.com/?q=how+to+check+EOL+charachter+in+text+file :) Regards, Anton 2016-12-21 13:36 GMT+03:00 SUDHAKAR REDDY GAJJALA < SUD...@ca...>: > Hi Anton, > > I have given my scenario like this > > > > <traffic> > > <default> > > <send channel-1> > > > > </send> > > > > <receive> > > </receive> > > </default> > > </traffic> > > > > > > Reg. 2nd point, > > > > How do I know EOL is of UNIX or Windows type. How do I change the EOL > character type in scenario file? > > > > Appreciate your help. > > > > Thanks, > > Sudhakar > > > > > > *From:* csk...@gm... [mailto:csk...@gm...] *On Behalf Of *Anton > Rozhkov > *Sent:* Tuesday, December 20, 2016 7:28 PM > > *To:* SUDHAKAR REDDY GAJJALA <SUD...@ca...> > *Cc:* gul...@li... > *Subject:* Re: [Seagull-users] Scenario response based on request from > Client > > > > 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 > > > > > > > > > |
From: SUDHAKAR R. G. <SUD...@ca...> - 2016-12-21 11:49:03
|
Hi Anton, My requirement is to handle the messages for multiple subscribers. When I initiate the traffic testing, I am not sure in which order the subscriber comes in. To handle the right messages for all the subscribers , scenario should be defined to send the particular response based on request . Struggling to find a way to make the scenario file handle multiple subs.. Thanks, Sudhakar From: csk...@gm... [mailto:csk...@gm...] On Behalf Of Anton Rozhkov Sent: Wednesday, December 21, 2016 5:00 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...> Cc: gul...@li... Subject: Re: [Seagull-users] Scenario response based on request from Client Hi, 1) Not sure, but I'd keep receive/send order in <default> section the same as in the rest of the scenario. I mean if the first section in the scenario is <receive>, make this section to be the first one in <default> section as well. 2) http://lmgtfy.com/?q=how+to+check+EOL+charachter+in+text+file :) Regards, Anton 2016-12-21 13:36 GMT+03:00 SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>>: Hi Anton, I have given my scenario like this <traffic> <default> <send channel-1> </send> <receive> </receive> </default> </traffic> Reg. 2nd point, How do I know EOL is of UNIX or Windows type. How do I change the EOL character type in scenario file? Appreciate your help. Thanks, Sudhakar From: csk...@gm...<mailto:csk...@gm...> [mailto:csk...@gm...<mailto:csk...@gm...>] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 7:28 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto:gul...@li...> Subject: Re: [Seagull-users] Scenario response based on request from Client 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...<mailto: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...> [mailto:csk...@gm...<mailto:csk...@gm...>] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 5:46 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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...<mailto: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<http://origin-host.com>"> </avp> <avp name="Origin-Realm" value="origin-realm.com<http://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...<mailto:ant...@gm...>> Cc: gul...@li...<mailto: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...> [mailto:csk...@gm...] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 5:16 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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...<mailto: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...> [mailto:csk...@gm...<mailto:csk...@gm...>] On Behalf Of Anton Rozhkov Sent: Tuesday, December 20, 2016 4:36 PM To: SUDHAKAR REDDY GAJJALA <SUD...@ca...<mailto:SUD...@ca...>> Cc: gul...@li...<mailto: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<http://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<http://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...<mailto: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...<mailto:Gul...@li...> https://lists.sourceforge.net/lists/listinfo/gull-users |