Hi
i have a file name LTS_IMSBR.txt and it includes the following data:
User Physical Location
----------------------
Equipment ID = 172.22.5.74:2944
Termination ID = A124
Master/Slave type = Master
(Number of results = 1)
IMS user description
--------------------
Subscriber number = 3302552
Local DN set = 0
User type = H248 subscriber
Equipment ID = 172.22.5.74:2944
AGCU module number = 23
BGL user flag = False
Priority line flag = False
Public User Identity = 6793302552
Caller service profile index = 0
Called service profile index = 0
Register service profile index = 0
Route select source code = 0
--- END
>>-----------------------------------------------------------------------------------------------------
User Physical Location
----------------------
Equipment ID = 172.22.5.65:2944
Termination ID = A290
Master/Slave type = Slave
(Number of results = 1)
IMS user description
--------------------
Subscriber number = 3302553
Local DN set = 0
User type = H248 subscriber
Equipment ID = 172.22.5.65:2944
AGCU module number = 23
BGL user flag = False
Priority line flag = False
Public User Identity = 6793302553
Caller service profile index = 0
Called service profile index = 0
Register service profile index = 0
Route select source code = 0
--- END
>>-----------------------------------------------------------------------------------------------------
User Physical Location
----------------------
Equipment ID = 172.22.5.73:2944
Termination ID = A174
Master/Slave type = Slave
(Number of results = 1)
IMS user description
--------------------
Subscriber number = 3312552
Local DN set = 0
User type = H248 subscriber
Equipment ID = 172.22.5.73:2944
AGCU module number = 23
BGL user flag = False
Priority line flag = False
Public User Identity = 6793312552
Caller service profile index = 0
Called service profile index = 0
Register service profile index = 0
Route select source code = 0
--- END
>>-----------------------------------------------------------------------------------------------------
s
I would like to extract the following data only with its corresponding values:
Subscriber number, Termination ID, Equipment ID, AGCU module number, Master/Slave type
Please if someone could provide me with a sample code.
Thank you
@dutch I have installed the latest version of Dev C++ but i did not understand this step:
"You need to compile it as C++11. So with gcc, for example, you would add -std=c++11 to the compile line."
The spacing of your input file was probably lost when you posted it.
You need to post it within "output" tags to maintain spacing so I can see what it really looks like.
Something like this:
[output]
post the text inside the output tags
[/output]