By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,279 Members | 1,606 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,279 IT Pros & Developers. It's quick & easy.

RAP file processing

crazy4perl
P: 20
Hi all,

Here is my query, I hav some RAP files (related to telecomm espcially Roamming) which when I m opening with any text editor showing some junk data. Is it possible to convert or read that file using script. if yes then how. pls let me know.
Feb 1 '08 #1
Share this Question
Share on Google+
6 Replies


eWish
Expert 100+
P: 971
I have not heard of this type of file before. Check out the TAP3::Tap3edit module at CPAN. Maybe it will do what you want.

--Kevin
Feb 1 '08 #2

crazy4perl
P: 20
I have not heard of this type of file before. Check out the TAP3::Tap3edit module at CPAN. Maybe it will do what you want.

--Kevin
Hey thanks alot this what i m looking for.
Feb 2 '08 #3

crazy4perl
P: 20
Hi,
Is it possible to use data dumper to dump data into a file????
Feb 6 '08 #4

crazy4perl
P: 20
Hi,
Anyone here knows here abt TAP and RAP files. actually i m able to process tap file using tap3edit module but when i m processing the rap file it is giving me following error.

decode error 5f840f<=>5f8135 26 4 rapFileSequenceNumber at C:/Perl/site/lib/Convert/ASN1/_decode.pm line 106.
at C:\pp\tap\tap_display.pl line 17

actually tap and rap files are the ASN1 format files. These files are generated when u make a call while roaming (tap) by the visited location network operator n sent to ur home n/w operator. if there is an error in the tap file a rap files is generated for the same and sent back to visited location network operator.


here is my peice of code:-

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2.  
  3. use TAP3::Tap3edit;
  4. use Data::Dumper;
  5. use XML::Dumper;
  6.  
  7. $Data::Dumper::Indent=1;
  8. $Data::Dumper::Useqq=1;
  9.  
  10. $filename=shift;
  11.  
  12. if ( ! $filename ) {
  13.     die "Usage: $0 filename\n";
  14. }
  15.  
  16. $tap3 = TAP3::Tap3edit->new();
  17. $tap3->decode($filename) || die $tap3->error;
  18.  
  19. print Dumper ($tap3->structure);
thanks
Feb 8 '08 #5

crazy4perl
P: 20
Nobody replied yet :((
Feb 11 '08 #6

P: 1
Did you check tap3edit.com? there you can find a special version of Convert::ASN1 patched to solved that problem.

cheers
Mar 26 '08 #7

Post your reply

Sign in to post your reply or Sign up for a free account.