|
From: Anjlica M. XX \(TX/EUS\) <anj...@er...> - 2006-06-29 20:53:56
|
=20
Ok, I give up. The script does not seem to be reading the input from
the external file.
1. Here is the Field that I want to set:
(my dictionary)
<define name=3D"Subscription-Id-Data" type=3D"OctetString">
<setfield name=3D"avp-code" value=3D"554"></setfield>
<setfield name=3D"flags" value=3D"192"></setfield>
<setfield name=3D"Vendor-ID" value=3D"193"></setfield>
</define>
2. Data file:
I want to set MSISDNs - 19725830000 and so on.
"string";
"0x3139373235383330303030" ;
"0x3139373235383330303031" ;
"0x3139373235383330303032" ;
I tried:
"string";
"1119725830000" ;
"1119725830001" ;
"1119725830002" ;
"string";
"0a19725830000" ;
"0a19725830001" ;
"0a19725830002" ;
"string";
"0a3139373235383330303030" ;
"0a3139373235383330303031" ;
"0a3139373235383330303032" ;
3. Configuration file:
<!-- Input file to read MSISDNs-->
<define entity=3D"traffic-param" name=3D"external-data-file"
value=3D"/home/qanjmal/seagull.svn/exe-env/diameter-env/config/external_d=
a
ta.csv"></define>
<define entity=3D"traffic-param" name=3D"external-data-select"
value=3D"sequential"></define>
4. Scenario file:
<traffic>
<send channel=3D"trans-ip-v4">
<action>
<!-- For each new call, increment the session-ID counter -->
<inc-counter name=3D"HbH-counter"> </inc-counter>
<inc-counter name=3D"EtE-counter"> </inc-counter>
<inc-counter name=3D"session-counter"> </inc-counter>
<set-value name=3D"HbH-id"=20
format=3D"$(HbH-counter)"></set-value>
<set-value name=3D"EtE-id"=20
format=3D"$(EtE-counter)"></set-value>
<set-value name=3D"Session-Id"=20
=20
format=3D"aaa://138.85.194.72:1812;transport=3Dtcp;1000096298391;$(sessio=
n-c
ounter)"></set-value>
<restore-from-external field=3D"0" entity=3D"Subscription-Id-Data"
begin=3D"1" end=3D"12"></restore-from-external>
</action>
<command name=3D"ACR">
<avp name=3D"Session-Id" value=3D"value_is_replaced"> </avp>
<avp name=3D"Vendor-Specific-Application-Id">
<avp name=3D"Vendor-Id" value=3D"193"></avp>
<avp name=3D"Acct-Application-Id" value=3D"19302"></avp>
</avp>
<avp name=3D"Origin-Host"
value=3D"aaa://138.85.194.72:1812;transport=3Dtcp"> </avp>
<avp name=3D"Origin-Realm" value=3D"digicel.com"> </avp>
<avp name=3D"Subscription-Id">
<avp name=3D"Subscription-Id-Data" value=3D"12146150000"></avp>
<avp name=3D"Subscription-Id-Type" value=3D"0"></avp>
</avp>
5. This is how it shows up in the log:
|M| [Subscription-Id
|M| (avp-code =3D 553)(flags =3D 192)(Vendor-ID =
=3D
193)] =3D [
|M| | [Subscription-Id-Data
|M| | (avp-code =3D 554)(flags =3D 192)(Vendor-ID =
=3D
193)] =3D [
|M| | 31 32 31 34 36 31 35 30 30 30 30
|M| | ]
Any help will be appreciated.
Thanks.
Anjlica Malla
-----Original Message-----
From: gul...@li...
[mailto:gul...@li...] On Behalf Of Anjlica
Malla XX (TX/EUS)
Sent: Thursday, June 29, 2006 1:10 PM
To: gul...@li...
Subject: Re: [Seagull-users] DIAMETER: Reading input variables from a
textfile
AH! I think I need to try this:
external_data.csv <define entity=3D"traffic-param"
name=3D"external-data-file" value=3D"external_data.csv"> </define>
sequential <define entity=3D"traffic-param" =
name=3D"external-data-select"
value=3D"sequential"> </define> =20
I am answering my own questions.
Let me give it a try and I can then upload my script.
Anjlica=20
-----Original Message-----
From: gul...@li...
[mailto:gul...@li...] On Behalf Of Anjlica
Malla XX (TX/EUS)
Sent: Thursday, June 29, 2006 1:06 PM
To: gul...@li...
Subject: [Seagull-users] DIAMETER: Reading input variables from a text
file
Hi,
I am trying to get my scripts to read input variables from external data
files.
http://gull.sourceforge.net/doc/core.html#action_restore
How do I specify the name of the external data file. Can we use multiple
input files per call instance?
Does anyone have a sample?
<restore-from-external> Modify the value of a field with data coming
from a file
<restore-from-external field=3D"1" entity=3D"Volume_requested">
</restore-from-external> =20
field The number of the data field used, in the data file field=3D"0"
for the first field=20
Entity The field of the message to which is assigned the new value
entity=3D"Volume_requested"=20
sub-entity Identifier of component parameter in which we insert some
data. sub-entity=3D"operation-data"=20
instance Instance identifier of the component to be checked.
instance=3D"InitialDP-data"=20
begin Position at which we start to inject the data.=20
Be careful, the count for the positions start at zero.=20
Example for the second position: begin=3D"1"=20
end Position at which we stop to inject the data.=20
Be careful, the count for the positions start at zero, and the last
piece of data injected is at end position minus one. end=3D"9"=20
Thanks.
Anjlica
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Gull-users mailing list
Gul...@li...
https://lists.sourceforge.net/lists/listinfo/gull-users
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Gull-users mailing list
Gul...@li...
https://lists.sourceforge.net/lists/listinfo/gull-users
|